:root {
  --blue: #004aad;
  --orange: #ff914c;
  --grey: #a6a6a6;
  --white: #fff;
  --ice: #f3f6fa;
  --ink: #12151a;
  --mute: #4f5b69;           /* texto secundário com contraste AA em fundo claro */
  --line: rgba(18, 21, 26, .16);
  --wa: #25d366;
  --gut: clamp(20px, 6vw, 96px);
  --fg: var(--ink);
  --fg2: var(--mute);
  --acc: var(--blue);
  --fade: rgba(238, 243, 249, .94);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { background: var(--ice); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--ice); overflow-x: hidden;
  font: 400 17px/1.55 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, dt { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, canvas, svg, iframe { display: block; max-width: 100%; }
h1, h2, .big-num, .logo span, .btn { font-family: Sora, Manrope, system-ui, sans-serif; }
em { font-style: italic; font-weight: 600; color: var(--acc); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- barra de progresso e navegação ---------- */
.bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 80; background: transparent; }
.bar i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; inset: 3px 0 auto 0; z-index: 70; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gut); pointer-events: none;
}
.nav > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); }
.logo img { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(18, 21, 26, .18); }
body.dark .logo { color: #fff; }
.nav { transition: background .3s, backdrop-filter .3s; }
body.past .nav { background: rgba(243, 246, 250, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.past.dark .nav { background: rgba(18, 21, 26, .86); }

/* ---------- botões ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px; border: 0; text-decoration: none; font-weight: 600; font-size: 1rem;
  color: #05210f; background: var(--wa); box-shadow: 0 10px 30px rgba(37, 211, 102, .3);
  transition: transform .25s var(--ease), box-shadow .25s; will-change: transform;
}
.btn::after { /* brilho que cruza o botão */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%) skewX(-18deg); }
.btn:hover { box-shadow: 0 14px 36px rgba(37, 211, 102, .42); }
.btn-sm { padding: 10px 20px; font-size: .9rem; box-shadow: none; }
.btn-lg { padding: 20px 38px; font-size: 1.1rem; }
.tlink { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--fg); text-decoration: none; border-bottom: 2px solid var(--acc); padding-bottom: 3px; }
.tlink.dark { color: var(--ink); }

/* ---------- história (palco fixo + rolagem) ---------- */
.story { position: relative; height: calc(var(--len, 5.3) * 100vh); height: calc(var(--len, 5.3) * 100svh); }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--fg);
  --fg: var(--ink); --fg2: var(--mute); --acc: var(--blue); --fade: rgba(238, 243, 249, .94);
}
.stage[data-s="2"] { --fg: #fff; --fg2: #b9c7d8; --acc: var(--orange); --fade: rgba(14, 24, 40, .94); }
.stage[data-s="3"] { --fade: rgba(222, 235, 249, .94); }
.bgs i { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.bg0 { background: radial-gradient(640px 380px at 70% 54%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%), linear-gradient(180deg, #f6f9fc 0%, #eef3f8 52%, #d6dfe9 74%, #e4eaf1 100%); }
.bg1 { background: #dfe6ee; }
.bg2 { background: radial-gradient(1000px 650px at 68% 45%, #0e3a78 0%, #0a1830 55%, #12151a 100%); }
.bg3 { background: radial-gradient(900px 600px at 68% 45%, #f4f9ff, #cfe1f4 80%); }
.stage[data-s="0"] .bg0, .stage[data-s="1"] .bg1, .stage[data-s="2"] .bg2, .stage[data-s="3"] .bg3 { opacity: 1; }

/* textura de filme: tira o aspecto liso de render digital */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.poster { position: absolute; z-index: 1; width: min(46vw, 660px); right: 6vw; top: 50%; transform: translateY(-50%); animation: bob 6s ease-in-out infinite; transition: opacity .8s; will-change: transform; }
@keyframes bob { 50% { transform: translateY(calc(-50% - 10px)); } }
#gl { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.stage.gl-on #gl { opacity: 1; }
.stage.gl-on .poster { opacity: 0; }
.stage.gl-off .poster { z-index: 2; }

.caps { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.cap { position: absolute; left: var(--gut); top: 50%; width: min(460px, 44vw); transform: translateY(-50%); visibility: hidden; pointer-events: none; }
.cap.on { visibility: visible; pointer-events: auto; }
.kicker { font: 600 .78rem/1 Sora, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 20px; opacity: 0; transform: translateY(8px); transition: opacity .6s .05s, transform .6s .05s; }
.cap h1, .cap h2 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--fg); }
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .09s + .05s); }
.sub { margin-top: 22px; max-width: 38ch; color: var(--fg2); font-size: 1.08rem; opacity: 0; transform: translateY(10px); transition: opacity .7s .3s, transform .7s .3s; }
.cap .btn, .cap .tlink, .hint { opacity: 0; transition: opacity .7s .45s, transform .25s var(--ease); }
.cap .btn { margin-top: 28px; }
.cap .tlink { color: var(--fg); }
.cap.on .ln > span { transform: none; }
.cap.on .kicker, .cap.on .sub { opacity: 1; transform: none; }
.cap.on .btn, .cap.on .tlink, .cap.on .hint { opacity: 1; }
.hint { display: flex; align-items: center; gap: 12px; margin-top: 38px; font: 600 .78rem/1 Sora, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); }
.hint i { width: 1px; height: 34px; background: var(--fg2); transform-origin: top; animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.hud { position: absolute; z-index: 6; left: var(--gut); bottom: 22px; font: 600 .78rem/1 Sora, sans-serif; letter-spacing: .12em; color: var(--fg2); text-transform: uppercase; }
.hud b { color: var(--fg); font-weight: 800; }
.hud span { margin-left: 10px; }

.lbls { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.lbl { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0; opacity: 0; will-change: transform, opacity; }
.lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 145, 76, .28); flex: none; }
.lbl span { margin-left: 34px; position: relative; font: 600 .72rem/1 Sora, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(6, 12, 24, .9), 0 0 12px rgba(6, 12, 24, .8); }
.lbl span::before { content: ""; position: absolute; left: -30px; top: 50%; width: 26px; height: 1px; background: rgba(255, 255, 255, .7); }
.lbl.flip { flex-direction: row-reverse; }
@media (max-width: 820px) { .lbl span { font-size: .6rem; margin-left: 28px; } .lbl span::before { left: -24px; width: 20px; } .lbl.flip span { margin-right: 28px; } .lbl.flip span::before { right: -24px; } }
.lbl.flip span { margin-left: 0; margin-right: 34px; }
.lbl.flip span::before { left: auto; right: -30px; }

/* ---------- seções claras ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
section:not(.story) h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.rv .ln > span { transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .09s); }
.rv.in .ln > span { transform: none; }
.rv-p { opacity: 0; transform: translateY(12px); transition: opacity .8s .25s, transform .8s .25s; }
.rv-p.in { opacity: 1; transform: none; }

.rating { padding: clamp(90px, 14vw, 180px) 0; background: var(--ice); }
.rating-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 90px); align-items: center; }
.big-num { font-size: clamp(7rem, 22vw, 17rem); line-height: .82; font-weight: 800; letter-spacing: -.06em; color: var(--blue); font-variant-numeric: tabular-nums; }
.gauge { display: flex; gap: 6px; margin: 22px 0 18px; }
.gauge i { width: 44px; height: 6px; border-radius: 3px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s var(--ease); }
.rating.in .gauge i, .rv.in ~ .gauge i { transform: none; }
.gauge i:nth-child(2) { transition-delay: .08s; } .gauge i:nth-child(3) { transition-delay: .16s; }
.gauge i:nth-child(4) { transition-delay: .24s; } .gauge i:nth-child(5) { transition-delay: .32s; }
.rating .rv-p { color: var(--mute); max-width: 36ch; }

.faq { padding: clamp(80px, 12vw, 150px) 0; background: #fff; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.faq dl > div { padding: 24px 0; border-top: 1px solid var(--line); }
.faq dl > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font: 800 1.15rem/1.3 Sora, sans-serif; letter-spacing: -.015em; margin-bottom: 8px; }
.faq dd { color: var(--mute); max-width: 52ch; }

.where { padding: clamp(80px, 12vw, 150px) 0; background: var(--ice); }
.where-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 600 .75rem/1.6 Sora, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.facts a { text-decoration: none; border-bottom: 1px solid var(--blue); }
.map { border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1.05; background: #dfe6ee; box-shadow: 0 30px 70px rgba(18, 21, 26, .16); }
.map iframe { width: 100%; height: 100%; border: 0; }

.cta { position: relative; overflow: hidden; padding: clamp(100px, 16vw, 200px) 0; background: var(--ink); color: #fff; }
.cta .wrap { position: relative; z-index: 1; }
.flake { position: absolute; right: -8vw; top: 50%; width: min(70vw, 760px); transform: translateY(-50%); opacity: .08; pointer-events: none; }
.cta h2 { font-size: clamp(2.4rem, 6.6vw, 6rem); max-width: 14ch; }
.cta em { color: var(--orange); }
.cta .rv-p { margin: 28px 0 38px; color: #b9c7d8; max-width: 42ch; }

.foot { display: flex; align-items: center; gap: 14px; padding: 26px var(--gut) 96px; background: var(--ink); color: #b9c7d8; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot img { border-radius: 50%; }

.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 75; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
  opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- celular: palco em cima, texto em área fixa embaixo ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .poster { width: 84vw; right: 8vw; top: 26%; }
  .cap {
    left: 0; right: 0; width: auto; top: auto; bottom: 0; transform: none; padding: 70px var(--gut) calc(6svh + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, var(--fade) 34%);
  }
  .cap h1, .cap h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .kicker { margin-bottom: 14px; }
  .sub { margin-top: 14px; font-size: 1rem; }
  .cap .btn { margin-top: 20px; }
  .hint { display: none; }
  .hud { top: 74px; bottom: auto; left: auto; right: var(--gut); }
  .rating-grid, .faq-grid, .where-grid { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .map { aspect-ratio: 1 / 1; }
}
@media (hover: none) { .btn::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .poster, .hint i { animation: none; }
  .ln > span, .kicker, .sub, .cap .btn, .cap .tlink, .hint, .rv-p { transition: none; transform: none; opacity: 1; }
  .bgs i, #gl { transition: none; }
}
