/* =========================================================
   Atlântica Benefícios — sistema de design (tokens)
   Conceito: "A fatura decifrada" — preto, dourado e branco
   ========================================================= */
:root {
  /* Cores */
  --c-bg: #0a0a0b;
  --c-surface: #131315;
  --c-surface-2: #1b1b1e;
  --c-line: rgba(244, 241, 234, 0.10);
  --c-line-strong: rgba(244, 241, 234, 0.18);
  --c-text: #f4f1ea;
  --c-muted: #a9a49a;
  --c-gold: #d4ae5a;
  --c-gold-2: #ecd08f;
  --c-gold-ink: #1a1405;
  --c-light: #f4f1ea;
  --c-light-text: #121212;
  --c-light-muted: #55524c;
  --c-light-line: rgba(18, 18, 18, 0.12);

  /* Tipografia */
  --f-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-hero: clamp(2.4rem, 1.5rem + 4.4vw, 5.25rem);

  /* Espaços */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --gutter: 1rem;
  --max: 1180px;

  /* Cantos, sombras, movimento */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-gold: 0 10px 40px -12px rgba(212, 174, 90, 0.45);
  --shadow-card: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
}
@media (min-width: 768px) { :root { --gutter: 2rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
em { font-style: normal; color: var(--c-gold); }
:focus-visible { outline: 2px solid var(--c-gold-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-gold); color: var(--c-gold-ink); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-8) 0; position: relative; }
@media (min-width: 900px) { .section { padding: var(--s-9) 0; } }

/* Grão sutil de fundo */
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Rótulo numerado ---------- */
.label {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold);
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Botões ---------- */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--bh); padding: 0 1.5rem; border-radius: var(--r-pill);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold)); color: var(--c-gold-ink); box-shadow: var(--shadow-gold); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(212,174,90,.6); }
.btn--ghost { border-color: var(--c-line-strong); color: var(--c-text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--c-gold); color: var(--c-gold-2); }
.btn--dark { background: var(--c-light-text); color: var(--c-light); }
.btn--dark:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1; }
.brand__name small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-gold); margin-top: 4px; }
.header .btn { --bh: 44px; padding: 0 1.1rem; font-size: .9375rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-6) 0 var(--s-8); }
.hero__glow {
  position: absolute; inset: -20% -30% auto auto; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(212,174,90,.20), rgba(212,174,90,0) 70%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: center; }
@media (min-width: 980px) { .hero { padding: var(--s-8) 0 var(--s-9); } .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-8); } }
.hero h1 { font-size: var(--fs-hero); margin: var(--s-4) 0 var(--s-5); max-width: 13ch; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero__lead { color: var(--c-muted); font-size: var(--fs-lg); max-width: 34ch; line-height: 1.5; }
.hero__lead strong { color: var(--c-text); font-weight: 600; }
.hero__ctas { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 560px) { .hero__ctas { flex-direction: row; flex-wrap: wrap; } }
.hero__micro { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.hero__micro span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__micro span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); }

/* Linha de corrente (momento assinatura) */
.current { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; opacity: .9; }
.current path { fill: none; stroke: url(#gGold); stroke-width: 1.4; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s var(--ease) .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .current path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Fatura decifrada (cartão do hero) ---------- */
.bill {
  position: relative; background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  border: 1px solid var(--c-line-strong); border-radius: var(--r-lg); padding: var(--s-5);
  box-shadow: var(--shadow-card); max-width: 460px; width: 100%; justify-self: center;
}
.bill::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(236,208,143,.55), transparent 35%, transparent 70%, rgba(236,208,143,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bill__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px dashed var(--c-line-strong); }
.bill__title { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.bill__tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.bill__bar { display: flex; height: 14px; border-radius: var(--r-pill); overflow: hidden; margin: var(--s-5) 0 var(--s-3); background: #2a2a2e; }
.bill__bar .seg-e { flex: 0 0 70%; background: linear-gradient(90deg, #8a7134, var(--c-gold)); position: relative; }
.bill__bar .seg-d { position: absolute; right: 0; top: 0; bottom: 0; width: 15%; background: var(--c-gold-2);
  box-shadow: 0 0 18px rgba(236,208,143,.8); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bill__bar .seg-d { animation: none; } }
.bill__rows { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); }
.bill__rows li { display: grid; grid-template-columns: 12px 1fr auto; gap: var(--s-3); align-items: center; color: var(--c-muted); }
.bill__rows li b { color: var(--c-text); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 3px; }
.dot--e { background: var(--c-gold); } .dot--d { background: var(--c-gold-2); box-shadow: 0 0 10px rgba(236,208,143,.8); } .dot--o { background: #3a3a3f; }
.bill__foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px dashed var(--c-line-strong); font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.5; }

/* ---------- Simulador ---------- */
.sim { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.sim__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 980px) { .sim__grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; } }
.sim h2 { font-size: var(--fs-2xl); margin: var(--s-4) 0 var(--s-4); }
.sim__intro p { color: var(--c-muted); max-width: 42ch; }
.panel { background: var(--c-bg); border: 1px solid var(--c-line-strong); border-radius: var(--r-lg); padding: var(--s-5); }
@media (min-width: 768px) { .panel { padding: var(--s-6); } }
.field label { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.field__hint { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--s-3); }
.money { display: flex; align-items: center; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface); transition: border-color .25s, box-shadow .25s; }
.money:focus-within { border-color: var(--c-gold); box-shadow: 0 0 0 4px rgba(212,174,90,.15); }
.money span { padding-left: 1.1rem; color: var(--c-gold); font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.money input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: var(--c-text); font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; padding: .85rem 1rem .85rem .5rem; outline: none; }
.money input::placeholder { color: #55534e; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.chip { min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-strong); background: transparent; color: var(--c-text); font: 500 var(--fs-sm) var(--f-body); cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--c-gold); background: rgba(212,174,90,.1); }

.result { margin-top: var(--s-5); border-radius: var(--r-md); padding: var(--s-5); background: radial-gradient(120% 140% at 100% 0%, rgba(212,174,90,.16), rgba(212,174,90,0) 60%), var(--c-surface-2); border: 1px solid rgba(212,174,90,.35); outline: none; }
.result__row { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 520px) and (max-width: 979px) { .result__row { grid-template-columns: 1fr 1fr; } }
.result__k { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.result__v { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); color: var(--c-gold-2); line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.result__v small { font-size: .5em; color: var(--c-muted); font-weight: 500; margin-right: .2em; }
.result__v--sm { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--c-text); }
.result__note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.55; }
.result.is-vazio .result__v { opacity: .45; }
.sim__ctas { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 520px) { .sim__ctas { grid-template-columns: 1fr 1fr; } }
.sim__ctas .btn { padding: 0 1rem; }

/* ---------- Como funciona (seção clara) ---------- */
.light { background: var(--c-light); color: var(--c-light-text); }
.light .label { color: #8a6a1f; }
.light em { color: #8a6a1f; }
.steps__head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
@media (min-width: 900px) { .steps__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.steps__head h2 { font-size: var(--fs-2xl); }
.steps__head p { color: var(--c-light-muted); max-width: 46ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--c-light-line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.step { padding: var(--s-6) 0; border-bottom: 1px solid var(--c-light-line); display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; border-bottom: 0; border-left: 1px solid var(--c-light-line); padding: 0 var(--s-6); } .step:first-child { border-left: 0; padding-left: 0; } }
.step__n { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.2px #8a6a1f; }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step p { color: var(--c-light-muted); font-size: var(--fs-base); }

/* ---------- Para quem é ---------- */
.who h2 { font-size: var(--fs-2xl); margin: var(--s-4) 0 var(--s-6); max-width: 18ch; }
.who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .who__grid { grid-template-columns: repeat(4, 1fr); } }
.who__item { background: var(--c-bg); padding: var(--s-5) var(--s-4); transition: background .3s; }
@media (min-width: 768px) { .who__item { padding: var(--s-6) var(--s-5); } }
.who__item:hover { background: var(--c-surface); }
.who__item svg { width: 36px; height: 36px; color: var(--c-gold); margin-bottom: var(--s-5); }
.who__item h3 { font-size: 1.125rem; margin-bottom: var(--s-2); }
.who__item p { font-size: var(--fs-sm); color: var(--c-muted); }
.who__note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- Sem fidelidade ---------- */
.free { border-top: 1px solid var(--c-line); overflow: hidden; }
.free__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .free__grid { grid-template-columns: auto 1fr; gap: var(--s-8); } }
.free__big { font-family: var(--f-display); font-weight: 600; line-height: .8; font-size: clamp(9rem, 6rem + 14vw, 16rem); background: linear-gradient(180deg, var(--c-gold-2), #7d6327); -webkit-background-clip: text; background-clip: text; color: transparent; }
.free__big small { display: block; font-size: .12em; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); -webkit-text-fill-color: var(--c-muted); margin-top: .8em; font-weight: 500; line-height: 1.3; }
.free h2 { font-size: var(--fs-2xl); margin: var(--s-4) 0 var(--s-4); }
.free p { color: var(--c-muted); max-width: 50ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 900px) { .faq__grid { grid-template-columns: .7fr 1.3fr; gap: var(--s-8); } }
.faq h2 { font-size: var(--fs-2xl); margin-top: var(--s-4); }
.faq__list { border-top: 1px solid var(--c-line-strong); }
.faq details { border-bottom: 1px solid var(--c-line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c-line-strong); display: grid; place-items: center; color: var(--c-gold); font-size: 1.25rem; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s-5); color: var(--c-muted); max-width: 62ch; }

/* ---------- CTA final ---------- */
.final { text-align: center; overflow: hidden; }
.final h2 { font-size: var(--fs-2xl); max-width: 20ch; margin: var(--s-4) auto var(--s-4); }
.final p { color: var(--c-muted); max-width: 46ch; margin: 0 auto; }
.final .hero__ctas { justify-content: center; }
.final__glow { position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%); width: 900px; height: 600px; max-width: 140vw; background: radial-gradient(closest-side, rgba(212,174,90,.18), transparent 70%); pointer-events: none; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--c-line); padding: var(--s-7) 0 calc(var(--s-7) + 76px); font-size: var(--fs-sm); color: var(--c-muted); }
@media (min-width: 768px) { .footer { padding-bottom: var(--s-7); } }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1.4fr; } }
.footer__slogan { font-family: var(--f-display); color: var(--c-text); font-size: 1.125rem; margin-top: var(--s-3); }
.footer__legal { line-height: 1.6; }
.footer__legal p + p { margin-top: var(--s-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-5); }
.footer__links a { color: var(--c-text); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Barra fixa no celular ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(10,10,11,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--c-line); }
.mbar .btn { --bh: 50px; padding: 0 .75rem; font-size: .9375rem; }
@media (min-width: 768px) { .mbar { display: none; } }

/* Botão flutuante de WhatsApp (computador) */
.fab { display: none; }
@media (min-width: 768px) {
  .fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.55); transition: transform .3s var(--ease); }
  .fab:hover { transform: scale(1.06); }
  .fab svg { width: 30px; height: 30px; }
}

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; } .js .reveal[data-d="2"] { transition-delay: .16s; } .js .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Página de texto (privacidade) ---------- */
.doc { padding: var(--s-7) 0 var(--s-8); }
.doc__in { max-width: 720px; }
.doc h1 { font-size: var(--fs-2xl); margin: var(--s-4) 0 var(--s-5); }
.doc h2 { font-size: var(--fs-lg); margin: var(--s-6) 0 var(--s-3); color: var(--c-gold-2); }
.doc p, .doc li { color: var(--c-muted); }
.doc p + p { margin-top: var(--s-3); }
.doc ul { padding-left: 1.2rem; }
.doc a { color: var(--c-gold-2); }
