/* Clash Charts — landing (Visual 2.0)
   Mesmas cores do app (lib/ui/design/tokens.dart, tema escuro): faixa preta, folha grafite, cards #1A1A1D,
   dourado como única cor de marca, azul só para o rival. Nunito no texto e Lilita One só nos números. */

:root {
  --band: #000000;
  --sheet: #121214;
  --card: #1A1A1D;
  --card-hi: #26262A;
  --line: #2C2C31;
  --text: #F0F0F2;
  --dim: #9FA1AA;
  --faint: #6C6E77;
  --gold: #F5B82E;
  --on-gold: #111114;
  --gold-soft: rgba(245, 184, 46, .16);
  --rival: #6AAAFF;
  --win: #5CC98B;
  --loss: #F07067;
  --radius: 22px;
  --wrap: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--band);
  color: var(--text);
  font: 500 16px/1.6 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9em; background: var(--card-hi); padding: .1em .4em; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; font-size: 16px; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #FFC94F; transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #46464E; background: var(--card-hi); }

/* Botões das lojas */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row-center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 22px 0 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.store:hover { transform: translateY(-2px); border-color: #4A4A52; background: var(--card-hi); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 600; color: var(--dim); }
.store b { font-size: 18px; font-weight: 800; }
/* A loja do aparelho do visitante vem primeiro e em dourado. */
.store.is-mine { background: var(--gold); color: var(--on-gold); border-color: var(--gold); order: -1; }
.store.is-mine small { color: rgba(17, 17, 20, .7); }
.store.is-mine:hover { background: #FFC94F; }

/* ---------- Topo fixo ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0, 0, 0, .78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--dim); font-weight: 700; font-size: 15px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--dim); font-weight: 800; font-size: 14px; }
.lang-btn:hover, .lang.open .lang-btn { color: var(--text); background: var(--card); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--dim); }
.lang-menu button:hover { background: var(--card-hi); color: var(--text); }
.lang-menu button.active { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 480px at 74% 42%, rgba(245, 184, 46, .13), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: 14px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: inherit; opacity: 0; animation: ping 1.8s infinite; }
.live-dot.red { background: var(--loss); color: var(--loss); }
.pill .live-dot { color: var(--gold); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em;
}
.hl { color: var(--gold); }
.hero-for { margin-top: 18px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; color: var(--dim); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; }
.rotator { position: relative; display: inline-grid; color: var(--text); overflow: hidden; padding-bottom: 6px; margin-bottom: -6px; }
.rotator > span { position: relative; grid-area: 1 / 1; justify-self: start; opacity: 0; transform: translateY(1em); transition: opacity .45s var(--ease), transform .45s var(--ease); white-space: nowrap; }
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-1em); }
.rotator > span::after { content: ''; position: absolute; left: 0; right: .3em; bottom: -4px; height: 3px; border-radius: 3px; background: var(--gold); }
.hero-sub { margin-top: 18px; max-width: 560px; color: var(--dim); font-size: 18px; line-height: 1.6; }
.hero-copy .store-row { margin-top: 30px; }
.hero-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--dim); font-weight: 700; font-size: 14px; }
.hero-more:hover { color: var(--gold); }

/* Busca pela tag */
.tag-search { margin-top: 28px; max-width: 560px; }
.tag-label { font-weight: 800; font-size: 14px; color: var(--dim); margin-bottom: 10px; }
.tag-row { display: flex; gap: 8px; align-items: stretch; }
.tag-kind { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px; flex: none; }
.kind-btn { padding: 0 14px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--dim); transition: .2s; }
.kind-btn.active { background: var(--card-hi); color: var(--text); }
.tag-field { position: relative; flex: 1; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 4px 4px 14px; transition: border-color .2s; min-width: 0; }
.tag-field:focus-within { border-color: var(--gold); }
.tag-hash { color: var(--gold); font-weight: 900; margin-right: 6px; }
.tag-input { flex: 1; min-width: 0; height: 44px; background: transparent; border: 0; outline: 0; color: var(--text); font: 800 16px 'Nunito', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.tag-input::placeholder { color: var(--faint); text-transform: none; letter-spacing: 0; font-weight: 600; }
.tag-go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: var(--on-gold); font-weight: 800; transition: .2s; }
.tag-go:hover { background: #FFC94F; }
.tag-go-wide { width: auto; padding: 0 18px; }
.tag-hint { margin-top: 10px; font-size: 13px; color: var(--faint); }
.tag-hint.is-error { color: var(--loss); font-weight: 700; }

.trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--dim); }
.trust svg { color: var(--win); }

/* Aparelhos (mesma proporção do vídeo: nada é cortado) */
.dev { position: relative; display: block; background: #1C1C20; box-shadow: inset 0 0 0 1px #34343B, 0 40px 80px -20px rgba(0, 0, 0, .7); }
.dev .screen { display: block; overflow: hidden; background: #000; width: 100%; }
.dev .screen video, .dev .screen img { width: 100%; height: 100%; object-fit: cover; }
.dev-phone { padding: 7px; border-radius: 42px; }
.dev-phone .screen { aspect-ratio: 540 / 1100; border-radius: 35px; }
.dev-tablet { padding: 12px; border-radius: 30px; }
.dev-tablet .screen { aspect-ratio: 1280 / 930; border-radius: 18px; }
.zoomable { cursor: zoom-in; }

.hero-stage { position: relative; height: 640px; }
.hero-phones { position: absolute; inset: 0; perspective: 1400px; }
.hero-phones .dev { position: absolute; top: 50%; left: 50%; }
.hero-front { width: 290px; transform: translate(-50%, -50%) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); z-index: 3; transition: transform .4s var(--ease); }
.hero-back { width: 236px; opacity: .55; filter: saturate(.8); z-index: 1; }
.hero-back-l { transform: translate(-112%, -46%) rotate(-8deg); animation: floatL 7s ease-in-out infinite; }
.hero-back-r { transform: translate(12%, -54%) rotate(8deg); animation: floatR 8s ease-in-out infinite; }
@keyframes floatL { 50% { transform: translate(-112%, -49%) rotate(-7deg); } }
@keyframes floatR { 50% { transform: translate(12%, -51%) rotate(7deg); } }

.chip {
  position: absolute; z-index: 4; padding: 14px 16px; border-radius: 18px;
  background: rgba(26, 26, 29, .92); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  animation: bob 6s ease-in-out infinite;
}
.chip-label { display: block; font-size: 13px; font-weight: 700; color: var(--dim); }
.chip .num { font-size: 34px; line-height: 1.1; }
.num-gold { color: var(--gold); }
.chip-row { display: flex; align-items: baseline; gap: 10px; }
.chip-up { color: var(--win); font-weight: 800; font-size: 13px; }
.chip-bar { display: block; margin-top: 8px; width: 150px; height: 6px; border-radius: 6px; background: var(--card-hi); overflow: hidden; }
.chip-bar i { display: block; height: 100%; width: var(--w); background: var(--win); border-radius: 6px; transform-origin: left; animation: grow 1.6s .6s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.chip-a { left: 0; top: 16%; }
.chip-b { right: 2%; top: 30%; animation-delay: -2s; text-align: center; min-width: 108px; }
.chip-c { left: 6%; bottom: 13%; animation-delay: -4s; }
.chip-live { display: inline-flex; align-items: center; gap: 8px; color: var(--loss); font-weight: 800; font-size: 13px; }
.chip-score { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--dim); }
.chip-score .num { font-size: 30px; color: var(--gold); }
.chip-score .num.rival { color: var(--rival); }
.chip-score svg { color: var(--faint); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Faixa corrida */
.marquee { position: relative; margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li { display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; font-weight: 800; font-size: 17px; color: var(--dim); white-space: nowrap; }
.marquee-list li::after { content: '★'; color: var(--gold); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: 112px 0; position: relative; }
.sheet { background: var(--sheet); border-radius: 36px 36px 0 0; }
.sheet::before { content: ''; position: absolute; top: 12px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: #3A3A40; }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow { color: var(--gold); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.sec-title, .hero-title, .final-title, .tour-body h3 { text-wrap: balance; }
.sec-title { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; }
.sec-sub { margin-top: 16px; color: var(--dim); font-size: 18px; }

.card { background: var(--card); border-radius: var(--radius); }
.ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); flex: none; }
.tag-new { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 800; }
.tag-soft { display: inline-block; vertical-align: middle; padding: 2px 9px; border-radius: 999px; background: var(--card-hi); color: var(--dim); font-size: 12px; font-weight: 800; margin-left: 4px; }

/* ---------- Tour ---------- */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: 0 auto 48px; }
.persona {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1.5px solid transparent;
  transition: border-color .25s, background-color .25s, transform .2s var(--ease);
}
.persona:hover { background: var(--card-hi); }
.persona[aria-selected="true"] { border-color: var(--gold); background: var(--card-hi); }
.persona-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--card-hi); color: var(--dim); flex: none; transition: .25s; }
.persona[aria-selected="true"] .persona-ic { background: var(--gold); color: var(--on-gold); }
.persona-txt { display: flex; flex-direction: column; line-height: 1.3; }
.persona-txt b { font-size: 17px; font-weight: 900; }
.persona-txt small { font-size: 13.5px; color: var(--dim); font-weight: 600; }

.tour { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.tour-stage {
  position: sticky; top: calc(var(--nav-h) + 24px);
  height: 680px; border-radius: 32px;
  background: radial-gradient(420px 360px at 50% 55%, rgba(245, 184, 46, .10), transparent 70%), var(--band);
  display: grid; place-items: center; overflow: hidden;
}
.stage-dev { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: scale(.96) translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s; }
.tour-stage[data-device="phone"] .stage-dev[data-for="phone"],
.tour-stage[data-device="tablet"] .stage-dev[data-for="tablet"],
.tour-stage[data-device="pdf"] .stage-dev[data-for="pdf"] { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s; }
.tour-stage.swapping .stage-dev { opacity: 0 !important; transform: scale(.97) !important; }
.tour-stage .dev-phone { width: 300px; }
.tour-stage .dev-tablet { width: calc(100% - 48px); max-width: 640px; }
.stage-hint { position: absolute; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--faint); pointer-events: none; }
.tour-stage[data-device="pdf"] .stage-hint { display: none; }

/* PDF: as páginas passam uma por cima da outra */
.pdf-stack { position: relative; width: 340px; aspect-ratio: 800 / 1131; }
.pdf-stack img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); background: #fff; }
.pdf-stack img:nth-child(1) { transform: rotate(7deg) translate(36px, 10px); opacity: .55; }
.pdf-stack img:nth-child(2) { transform: rotate(-5deg) translate(-30px, 6px); opacity: .75; }
.pdf-stack.play img:nth-child(3) { animation: pdfTop 9s var(--ease) infinite; }
.pdf-stack.play img:nth-child(2) { animation: pdfMid 9s var(--ease) infinite; }
@keyframes pdfTop { 0%, 28% { transform: none; opacity: 1; } 36%, 62% { transform: translate(120%, -6%) rotate(14deg); opacity: 0; } 72%, 100% { transform: none; opacity: 1; } }
@keyframes pdfMid { 0%, 28% { transform: rotate(-5deg) translate(-30px, 6px); opacity: .75; } 36%, 62% { transform: none; opacity: 1; } 72%, 100% { transform: rotate(-5deg) translate(-30px, 6px); opacity: .75; } }

.tour-list { counter-reset: none; }
.tour-item { position: relative; border-bottom: 1px solid var(--line); }
.tour-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px 0; text-align: left; }
.tour-n { font-family: 'Lilita One', sans-serif; color: var(--faint); font-size: 18px; width: 26px; transition: color .25s; }
.tour-name { font-size: 20px; font-weight: 800; color: var(--dim); transition: color .25s; }
.tour-chev { margin-left: auto; color: var(--faint); transition: transform .3s var(--ease); }
.tour-head:hover .tour-name { color: var(--text); }
.tour-item.active .tour-n { color: var(--gold); }
.tour-item.active .tour-name { color: var(--text); }
.tour-item.active .tour-chev { transform: rotate(180deg); color: var(--gold); }
.tour-body h3, .tour-body p, .tour-body ul { padding-left: 40px; }
.tour-body { display: block; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.tour-item.active .tour-body { max-height: 520px; }
.tour-body h3 { font-size: 24px; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.tour-body p { margin-top: 10px; color: var(--dim); }
.ticks { margin: 14px 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--dim); font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B82E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ticks strong { color: var(--text); font-weight: 800; }
.tour-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tour-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Em qualquer tela ---------- */
.screens { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); font-weight: 800; font-size: 15px; }
.platforms svg { color: var(--gold); }
.screens-media { position: relative; padding: 0 0 60px 0; }
.screens-media .dev-tablet { width: 100%; }
.screens-phone { position: absolute !important; width: 31%; right: -3%; bottom: 0; }

/* ---------- Vantagens ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv { padding: 28px 24px; }
.adv h3, .more h3, .step h3, .duo-card h3, .dl h3, .qr h3 { font-size: 20px; font-weight: 900; letter-spacing: -.01em; margin-top: 18px; }
.adv p, .more p, .step p, .duo-card p, .dl p, .qr p { margin-top: 8px; color: var(--dim); font-size: 15.5px; }
.duo { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.duo-card { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 28px; }
.duo-card h3 { margin-top: 0; }
.dev-sm { width: 170px; padding: 5px; border-radius: 28px; }
.dev-sm .screen { border-radius: 23px; }

/* ---------- Mais recursos ---------- */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more { padding: 28px 24px; transition: transform .25s var(--ease), background-color .25s; }
.more:hover { transform: translateY(-4px); background: var(--card-hi); }

/* ---------- Como começar ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.step { padding: 28px 24px; }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 400 22px 'Lilita One', sans-serif; }
.start-search { margin: 40px auto 0; max-width: 640px; }
.start-search .tag-hint { text-align: center; }

/* ---------- Baixar ---------- */
.dl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.dl-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: start; }
.dl { grid-column: span 2; }
.dl[data-os="android"], .dl[data-os="ios"] { grid-column: span 3; }
.dl { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border: 1.5px solid transparent; }
.dl h3 { margin-top: 16px; }
.dl > p { flex: 1; }
.dl .btn { margin-top: 18px; }
.dl-note { margin-top: 12px !important; font-size: 13px !important; color: var(--faint) !important; flex: none !important; }
.dl.is-recommended { border-color: var(--gold); }
.dl.is-recommended .btn { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.dl-badge { position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 800; }
.qr { padding: 26px 24px; text-align: center; position: sticky; top: calc(var(--nav-h) + 24px); }
.qr img { width: 168px; height: 168px; margin: 0 auto; border-radius: 16px; background: #fff; padding: 8px; }
.dl-verify { margin-top: 28px; text-align: center; color: var(--faint); font-size: 14px; }
.dl-verify a { color: var(--dim); text-decoration: underline; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 48px; }
.about-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.about-avatar { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font: 400 52px 'Lilita One', sans-serif; margin-bottom: 10px; }
.about-name { font-size: 20px; font-weight: 900; }
.about-role { color: var(--dim); font-size: 14px; }
.about-links { display: flex; gap: 8px; margin-top: 14px; }
.about-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card-hi); font-weight: 800; font-size: 14px; }
.about-links a:hover { color: var(--gold); }
.about-copy .sec-title, .hero-title, .final-title, .tour-body h3 { text-wrap: balance; }
.sec-title { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.about-copy p { color: var(--dim); margin-top: 12px; }
.about-copy .eyebrow { margin-top: 0; color: var(--gold); }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.about-stats li { background: var(--card-hi); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.about-stats .num { font-size: 26px; color: var(--gold); }
.about-stats span { font-size: 13px; color: var(--dim); font-weight: 700; }

/* ---------- Dúvidas ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 18px; transition: background-color .2s; }
.faq details[open] { background: var(--card-hi); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { margin-left: auto; flex: none; color: var(--faint); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--gold); }
.faq-a { padding: 0 22px 22px; color: var(--dim); }
.faq-a strong { color: var(--text); }
.faq-a a { color: var(--gold); text-decoration: underline; }

/* ---------- Chamada final ---------- */
.final { padding: 120px 0 128px; background: radial-gradient(640px 360px at 50% 30%, rgba(245, 184, 46, .14), transparent 70%), var(--band); text-align: center; border-top: 1px solid var(--line); }
.final-icon { margin: 0 auto 28px; border-radius: 18px; }
.final-title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; font-weight: 900; letter-spacing: -.035em; max-width: 860px; margin: 0 auto; }
.final-sub { margin: 18px auto 36px; color: var(--dim); font-size: 18px; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 120px; }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer-links a { color: var(--dim); font-weight: 700; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-made, .footer-legal { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }
.footer-made a { color: var(--dim); text-decoration: underline; }

/* ---------- Barra fixa do celular ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: rgba(26, 26, 29, .94); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta img { border-radius: 10px; }
.sticky-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-txt b { font-weight: 900; }
.sticky-txt small { color: var(--dim); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { margin-left: auto; }
body.past-hero:not(.at-download) .sticky-cta { transform: none; }

/* ---------- Vídeo ampliado ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox-inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lightbox video { max-height: calc(100vh - 120px); max-width: min(100%, 1200px); border-radius: 18px; background: #000; }
.lightbox video.is-phone { width: auto; height: calc(100vh - 120px); max-height: 1100px; }
.lightbox-caption { margin-top: 14px; color: var(--dim); font-weight: 700; }
.lightbox-close { position: absolute; top: -8px; right: -8px; transform: translate(50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--card-hi); font-size: 26px; line-height: 1; z-index: 2; }
.lightbox-close:hover { background: var(--gold); color: var(--on-gold); }

/* ---------- Entrada dos blocos ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-for { justify-content: center; }
  .hero-sub, .tag-search { margin-left: auto; margin-right: auto; }
  .hero-copy .store-row, .trust { justify-content: center; }
  .tag-label { text-align: center; }
  .hero-stage { height: 600px; margin-top: 8px; }
  .tour { grid-template-columns: 1fr; gap: 28px; }
  .tour-stage { position: relative; top: 0; height: 600px; }
  .screens { grid-template-columns: 1fr; }
  .screens-copy { text-align: center; }
  .platforms { justify-content: center; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-layout { grid-template-columns: 1fr; }
  .qr { position: static; display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: center; text-align: left; }
  .qr h3 { margin-top: 0; }
  .about { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .wrap { padding: 0 16px; }
  .nav-web { display: none; }
  .nav-row { gap: 8px; }
  .nav-actions { gap: 4px; }
  .nav .brand { gap: 8px; }
  .nav .brand img { width: 32px; height: 32px; }
  .nav .brand span { font-size: 16px; }
  .nav .btn-gold svg { display: none; }
  .lang-btn { padding: 0 8px; }
  .lang-btn svg { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero-title { margin-top: 18px; }
  .hero-sub { font-size: 16.5px; }
  .store-row { gap: 10px; }
  .hero-copy .store-row .store { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 0 14px; }
  .hero-copy .store-row .store-web { flex-basis: 100%; }
  .store b { font-size: 16px; }
  .tag-row { flex-direction: column; }
  .tag-kind { align-self: center; }
  .kind-btn { padding: 8px 16px; }
  .hero-stage { height: 520px; }
  .hero-front { width: 232px; }
  .hero-back { width: 188px; }
  .chip { padding: 10px 12px; border-radius: 14px; }
  .chip .num { font-size: 26px; }
  .chip-bar { width: 110px; }
  .chip-a { left: -4px; top: 10%; }
  .chip-b { right: -4px; top: 36%; min-width: 84px; }
  .chip-c { left: -4px; bottom: 8%; }
  .chip-score .num { font-size: 24px; }
  .marquee { margin-top: 32px; }
  .section { padding: 80px 0; }
  .sheet { border-radius: 28px 28px 0 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-sub { font-size: 16.5px; }
  .personas { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
  .persona { flex-direction: column; text-align: center; padding: 14px 8px; gap: 10px; }
  .persona-txt small { display: none; }
  .persona-txt b { font-size: 14.5px; }
  .tour-stage { height: 500px; border-radius: 24px; }
  .tour-stage .dev-phone { width: 230px; }
  .tour-stage .dev-tablet { width: calc(100% - 24px); padding: 8px; border-radius: 20px; }
  .tour-stage .dev-tablet .screen { border-radius: 12px; }
  .pdf-stack { width: 250px; }
  .stage-hint { display: none; }
  .tour-name { font-size: 18px; }
  .tour-body h3, .tour-body p, .tour-body ul { padding-left: 0; }
  .tour-body h3 { font-size: 21px; }
  .tour-cta .btn { flex: 1 1 100%; }
  .screens-phone { width: 34%; right: 0; }
  .adv-grid, .more-grid, .steps, .duo, .dl-grid { grid-template-columns: 1fr; }
  .duo-card { grid-template-columns: 120px 1fr; gap: 18px; padding: 20px; }
  .dev-sm { width: 120px; border-radius: 22px; padding: 4px; }
  .dev-sm .screen { border-radius: 18px; }
  .qr { display: none; }
  .about { padding: 28px 20px; gap: 28px; }
  .about-stats { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; padding: 18px; }
  .faq-a { padding: 0 18px 18px; }
  .final { padding: 88px 0 96px; }
  .final .store-row .store { flex: 1 1 100%; justify-content: center; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .sticky-cta { display: flex; }
}

@media (max-width: 370px) {
  .nav .brand span { display: none; }
}

/* Computador: o código QR só faz sentido fora do celular (o JS marca o sistema no body). */
body[data-os="android"] .qr, body[data-os="ios"] .qr { display: none; }
body[data-os="android"] .dl-layout, body[data-os="ios"] .dl-layout { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
