/* GliCare — landing page
   Tokens espelham o app (app/lib/core/theme/app_colors.dart), para a página e
   o produto parecerem a mesma coisa. Mobile-first. */

:root {
  --primary: #b43929;
  --primary-dark: #872b1f;
  --primary-light: #f4c2bd;
  --blush: #ffe2e2; /* fundo das telas de marca do app */
  --blush-soft: #fff5f3;

  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --warn: #d97706;
  --warn-bg: #fef3c7;
  --low: #dc2626;
  --low-bg: #fee2e2;

  --bg: #fafaf8;
  --surface: #ffffff;
  --muted: #f3f4f1;
  --border: #e7e5e0;
  --ink: #1c1c1a;
  --ink-2: #5b5b56;
  --ink-3: #8b8b85;

  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --radius: 20px;
  --radius-lg: 32px;
  --section: clamp(72px, 11vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgb(28 28 26 / 0.04), 0 12px 32px -12px rgb(28 28 26 / 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  /* Público 40-65 anos: corpo um pouco maior que o padrão. */
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--primary-light);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 60, "opsz" 96;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 18px;
}

.accent {
  color: var(--primary);
  font-style: italic;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.header.scrolled {
  background: rgb(255 255 255 / 0.85);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.header-logo img {
  width: auto;
  height: 44px;
}

.nav {
  display: none;
  gap: 32px;
}

.nav a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    box-shadow 0.25s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgb(180 57 41 / 0.6);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgb(180 57 41 / 0.6);
}

.btn-primary .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .icon {
  transform: translateX(3px);
}

.header .btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: -72px;
  padding-top: calc(72px + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(64px, 9vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 85% 10%, rgb(255 255 255 / 0.7), transparent 60%),
    linear-gradient(180deg, var(--blush) 0%, var(--blush-soft) 78%, var(--bg) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-copy .lead {
  max-width: 540px;
  margin-top: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgb(180 57 41 / 0.15);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-badge span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.hero-cta {
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--ok);
  stroke-width: 2.6;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(244 194 189 / 0.9), transparent 68%);
  filter: blur(10px);
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Store buttons ---------- */

.stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 24px;
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    box-shadow 0.25s;
}

.store svg {
  width: 28px;
  height: 28px;
}

.store small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
  opacity: 0.8;
}

.store strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.store-play {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgb(28 28 26 / 0.5);
}

.store-play:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px rgb(180 57 41 / 0.55);
}

.store-soon {
  border: 1px solid rgb(28 28 26 / 0.1);
  background: rgb(255 255 255 / 0.6);
  color: var(--ink-2);
}

.store-soon svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 560px) {
  .stores {
    flex-direction: row;
    align-items: center;
  }

  .stores.center {
    justify-content: center;
  }
}

/* Antes do lançamento (main.js): botão da Play vira "em breve", sem link. */
.store-aguardando,
.store-aguardando:hover {
  background: var(--ink-2);
  box-shadow: none;
  transform: none;
  cursor: default;
}

/* ---------- Contagem regressiva do lançamento ---------- */

.countdown {
  margin-bottom: 20px;
}

.countdown[hidden] {
  display: none;
}

.countdown-title {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}

.countdown-title strong {
  color: var(--primary-dark);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 76px));
  gap: 10px;
}

.countdown-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px 10px;
  border: 1px solid rgb(180 57 41 / 0.15);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.75);
  box-shadow: var(--shadow);
}

.countdown-grid b {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown-grid small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.countdown.center {
  text-align: center;
}

.countdown.center .countdown-grid {
  justify-content: center;
}

/* ---------- Phone mockup (painel do app) ---------- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 46px;
  background: #1c1c1a;
  box-shadow:
    0 0 0 2px #3a3a37 inset,
    0 40px 80px -30px rgb(135 43 31 / 0.45),
    0 20px 40px -20px rgb(28 28 26 / 0.35);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  border-radius: 37px;
  background: var(--bg);
  font-size: 11px;
  line-height: 1.35;
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 22px;
  border-radius: 20px;
  background: #1c1c1a;
  transform: translateX(-50%);
}

.app {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 42px 13px 0;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-top img {
  width: 26px;
  height: auto;
}

.app-top b {
  display: block;
  font-size: 13.5px;
}

.app-top small {
  color: var(--ink-3);
  font-size: 10px;
}

.app-bell {
  position: relative;
  margin-left: auto;
  color: var(--ink-2);
}

.app-bell .icon {
  width: 18px;
  height: 18px;
}

.app-bell i {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--bg);
  border-radius: 50%;
  background: var(--primary);
}

.card {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.glic-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.glic-value b {
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.glic-value small {
  color: var(--ink-3);
  font-size: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.chip-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.chip-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.chip-low {
  background: var(--low-bg);
  color: var(--low);
}

.spark {
  width: 100%;
  height: 46px;
  margin-top: 6px;
}

.dose {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
}

.dose + .dose {
  border-top: 1px solid var(--border);
}

.dose-time {
  min-width: 34px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 800;
}

.dose-name b {
  display: block;
  font-size: 11.5px;
}

.dose-name small {
  color: var(--ink-3);
  font-size: 9.5px;
}

.dose-check {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.dose-check.done {
  display: grid;
  place-items: center;
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}

.dose-check.done .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3.4;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.mini-row b {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.mini-row small {
  display: block;
  color: var(--ink-3);
  font-size: 9.5px;
}

.app-nav {
  display: flex;
  justify-content: space-around;
  margin: auto -13px 0;
  padding: 9px 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
}

.app-nav span {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.app-nav .icon {
  width: 17px;
  height: 17px;
}

.app-nav .on {
  color: var(--primary);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  line-height: 1.3;
}

.float-card b {
  display: block;
}

.float-card small {
  color: var(--ink-3);
}

.float-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.float-icon .icon {
  width: 20px;
  height: 20px;
}

/* Fica acima do card de glicemia, sem cobrir o valor. */
.float-card.reminder {
  top: 2%;
  left: -12%;
}

.float-card.report {
  right: -8%;
  bottom: 18%;
}

@media (max-width: 719px) {
  .deco-hide-sm {
    display: none;
  }
}

@media (max-width: 559px) {
  .float-card.reminder {
    top: -3%;
    left: -2%;
  }

  .float-card.report {
    right: -2%;
  }
}

/* ---------- Problema ---------- */

.pains {
  display: grid;
  gap: 18px;
}

.pain {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pain-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--muted);
  color: var(--ink-2);
}

.pain p {
  margin-top: 10px;
  color: var(--ink-2);
}

.bridge {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--blush);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.bridge img {
  width: 44px;
  height: auto;
  flex: none;
}

@media (min-width: 820px) {
  .pains {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Funcionalidades ---------- */

.features-section {
  background: var(--surface);
}

.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(72px, 10vw, 120px);
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 60, "opsz" 72;
}

.feature-copy > p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.feature-tag {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--blush);
  color: var(--primary);
}

.feature-tag .icon {
  width: 26px;
  height: 26px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  font-weight: 600;
}

.checks .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  stroke-width: 3;
}

.feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--blush) 0%, var(--blush-soft) 100%);
  overflow: hidden;
}

.panel {
  width: min(100%, 380px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-title {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.reading + .reading {
  border-top: 1px solid var(--border);
}

.reading-value {
  min-width: 64px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.reading-value small {
  margin-left: 2px;
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
}

.reading-ctx {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.35;
}

.reading-ctx b {
  display: block;
  color: var(--ink);
}

.reading .chip {
  margin-left: auto;
  font-size: 0.78rem;
}

.notif {
  display: flex;
  gap: 14px;
  width: min(100%, 380px);
  padding: 16px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.notif + .notif {
  margin-top: 12px;
}

.notif img {
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 12px;
  background: var(--blush);
  object-fit: contain;
}

.notif-body {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.4;
}

.notif-body header {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.78rem;
}

.notif-body b {
  display: block;
  margin-top: 2px;
}

.notif-body p {
  color: var(--ink-2);
}

.notif.muted {
  opacity: 0.55;
  transform: scale(0.96);
}

.stack {
  width: 100%;
  display: grid;
  justify-items: center;
}

/* PDF */
.pdf {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1.35;
  padding: 24px 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 30px 60px -24px rgb(135 43 31 / 0.35),
    0 2px 6px rgb(28 28 26 / 0.06);
  font-size: 9px;
  line-height: 1.4;
  transform: rotate(-2.5deg);
}

.pdf::after {
  content: "";
  position: absolute;
  inset: 12px -14px -14px 12px;
  z-index: -1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px -14px rgb(28 28 26 / 0.25);
  transform: rotate(5deg);
}

.pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.pdf-head img {
  width: 82px;
  height: auto;
}

.pdf-head span {
  color: var(--ink-3);
  font-size: 8px;
  text-align: right;
}

.pdf h4 {
  margin: 12px 0 6px;
  color: var(--primary-dark);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pdf-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pdf-kpis div {
  padding: 6px;
  border-radius: 6px;
  background: var(--muted);
}

.pdf-kpis b {
  display: block;
  font-size: 13px;
}

.pdf-kpis small {
  color: var(--ink-3);
  font-size: 7.5px;
}

.pdf-chart {
  width: 100%;
  height: 72px;
}

.pdf-bars div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.pdf-bars span {
  width: 64px;
  color: var(--ink-2);
  font-size: 8px;
}

.pdf-bars i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--ok);
}

.pdf-bars em {
  color: var(--ink-3);
  font-size: 8px;
  font-style: normal;
}

.pdf-lines i {
  display: block;
  height: 5px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--muted);
}

/* Peso */
.weight-chart {
  width: 100%;
  height: 130px;
  margin-top: 8px;
}

.segmented {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 12px;
  background: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.segmented span {
  flex: 1;
  padding: 5px 0;
  border-radius: 9px;
  color: var(--ink-3);
  text-align: center;
}

.segmented .on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(28 28 26 / 0.1);
}

.weight-now {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.weight-now b {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.weight-now small {
  color: var(--ink-2);
  font-weight: 700;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .feature.flip .feature-visual {
    order: -1;
  }
}

/* ---------- Como funciona ---------- */

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.step p {
  margin-top: 10px;
  color: var(--ink-2);
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Números / confiança ---------- */

.trust {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary-dark);
  color: #fff;
}

.trust-inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding: clamp(40px, 7vw, 80px);
}

.trust h2 {
  color: #fff;
}

.trust .lead {
  margin-top: 18px;
  color: rgb(255 255 255 / 0.78);
}

.stats {
  display: grid;
  gap: 16px;
}

.stat {
  padding: 22px 24px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgb(255 255 255 / 0.78);
}

.trust-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(244 194 189 / 0.35), transparent 65%);
}

@media (min-width: 960px) {
  .trust-inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.faq details[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--blush);
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

.faq-plus .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.faq details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--ink-2);
}

/* ---------- CTA final ---------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--blush) 100%);
}

.final-mark {
  width: 96px;
  height: auto;
  margin: 0 auto 28px;
}

.final h2 {
  max-width: 760px;
  margin-inline: auto;
}

.final .lead {
  max-width: 560px;
  margin: 20px auto 36px;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 56px 40px;
  border-top: 1px solid rgb(180 57 41 / 0.12);
  background: var(--blush);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  gap: 32px;
}

.footer-top img {
  width: auto;
  height: 40px;
}

.footer-top p {
  max-width: 360px;
  margin-top: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links strong {
  color: var(--ink);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.disclaimer {
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.6);
  font-size: 0.88rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.88rem;
}

@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Página de texto (privacidade) ---------- */

.doc-hero {
  padding-block: 56px 40px;
  background: linear-gradient(180deg, var(--blush), var(--bg));
}

.doc-hero p {
  margin-top: 12px;
  color: var(--ink-2);
}

.doc {
  max-width: 760px;
  padding-bottom: var(--section);
}

.doc h2 {
  margin: 48px 0 14px;
  font-size: 1.6rem;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc strong {
  color: var(--ink);
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc th {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Animações ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }

  50% {
    transform: translateY(-10px) rotate(var(--r, 0deg));
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

.float.slow {
  animation-duration: 8s;
  animation-delay: -2s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float {
    animation: none;
  }
}
