/* Controle-se — landing dinâmica (spec 84).
   Tokens, fontes, botões e rodapé vêm de site.css. Aqui só a home.
   Estados: sem classe = estático (sem JS); html.js = JS ligado; html.motion = animações por rolagem. */

.landing {
  --gutter: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glow: #FFB224;
  overflow-x: clip;
  background: var(--canvas);
}
@media (min-width: 768px) { .landing { --gutter: 40px; } }
.landing main { overflow-x: clip; }

.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; }

/* ---------- Navegação de vidro ---------- */
.l-nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 400ms, border-color 400ms, backdrop-filter 400ms; border-bottom: 1px solid transparent; }
.l-nav-inner { max-width: 1280px; margin: 0 auto; height: 60px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.l-nav.is-solid { background: rgba(12, 12, 10, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(244, 241, 232, 0.08); }
.l-nav-links { display: none; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-muted); }
.l-nav-links a { text-decoration: none; transition: color 200ms; }
.l-nav-links a:hover { color: var(--ink); }
@media (min-width: 820px) { .l-nav-links { display: flex; } }
.l-nav .l-nav-cta { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Telefone ---------- */
.l-phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(150deg, #34332d 0%, #141412 22%, #0a0a09 60%, #26251f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 0 0 calc(var(--w) * 0.012) #050504,
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 50px 100px -30px rgba(0, 0, 0, 0.9);
  transform-style: preserve-3d;
}
.l-phone::after { /* ilha */
  content: ""; position: absolute; z-index: 3; left: 50%; top: calc(var(--w) * 0.058);
  width: calc(var(--w) * 0.3); height: calc(var(--w) * 0.085); transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.l-screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * 0.13); aspect-ratio: 780 / 1688; background: #0C0C0A; }
.l-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-screen::after { /* reflexo do vidro */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%);
}

.l-glow {
  position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), transparent 72%);
  filter: blur(30px); opacity: 0.55; transition: background 900ms var(--ease-out);
}

/* ---------- Hero ---------- */
.l-hero { position: relative; padding: 112px var(--gutter) 64px; text-align: center; }
.l-hero-copy { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.l-hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.4rem, 13.5vw, 10.5rem);
  line-height: 0.9; letter-spacing: -0.035em;
  max-width: 9.5ch; margin: 0 auto;
  text-wrap: balance;
}
.l-hero-lede { margin: 24px auto 0; max-width: 30ch; color: var(--ink-muted); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.45; }
.l-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.l-hero-device { position: relative; display: flex; justify-content: center; margin-top: 56px; perspective: 1400px; }
.l-phone--hero { --w: min(330px, 74vw); }
.l-scroll-cue { display: none; }

/* ---------- Manifesto ---------- */
.l-manifesto { padding: 120px var(--gutter); display: grid; place-items: center; }
.l-manifesto-text {
  margin: 0; max-width: 21ch;
  font-family: var(--serif); font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
.l-manifesto-text .word { display: inline-block; }

/* ---------- Tour ---------- */
.l-tour { position: relative; }
.l-tour-stage {
  max-width: 1200px; margin: 0 auto; padding: 72px var(--gutter);
  display: grid; gap: 40px; justify-items: center;
}
.l-tour-device { position: relative; display: flex; justify-content: center; perspective: 1600px; }
.l-phone--tour { --w: min(280px, 66vw); }
.l-phone--tour .l-screen img { opacity: 0; transform: scale(1.04); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out); }
.l-phone--tour .l-screen img.is-active { opacity: 1; transform: none; }
html:not(.js) .l-phone--tour .l-screen img:first-child { opacity: 1; transform: none; }

.l-tour-copy { width: 100%; max-width: 520px; }
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.l-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.l-step p { margin: 16px 0 0; color: var(--ink-muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; max-width: 38ch; }

/* Com JS: os passos ocupam a mesma célula e só o ativo aparece */
.js .l-steps { gap: 0; }
.js .l-step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); pointer-events: none; }
.js .l-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.js .l-step.is-past { transform: translateY(-18px); }

.l-rail { display: none; }
.js .l-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 32px; }
.l-rail button {
  appearance: none; background: none; border: 0; padding: 10px 0 0; margin: 0; cursor: pointer;
  color: var(--ink-muted); font: 500 12px/1.2 var(--sans); text-align: left; min-width: 0;
}
.l-rail i { display: block; height: 3px; border-radius: 3px; background: var(--hair-strong); overflow: hidden; position: relative; }
.l-rail i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.l-rail button[aria-selected="true"] { color: var(--ink); }
.l-rail button[aria-selected="true"] i::after { background: var(--accent); }
.l-rail span { display: block; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .l-rail span { display: none; }
  .l-rail button { padding: 14px 0; }
}
html:not(.motion) .l-rail button[aria-selected="true"] i::after { transform: scaleX(1); }

@media (min-width: 900px) {
  .l-tour-stage { grid-template-columns: 1fr auto; gap: 96px; align-items: center; justify-items: stretch; }
  .l-tour-device { order: 2; }
  .l-tour-copy { order: 1; }
  .l-phone--tour { --w: min(330px, 40svh); }
}

/* ---------- Privacidade ---------- */
.l-privacy { position: relative; }
.l-band { padding: 96px var(--gutter) 0; overflow: hidden; }
.l-band-line {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 9rem); line-height: 0.95; letter-spacing: -0.03em;
}
.l-band-line span { display: block; }
.l-band-line .is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.l-privacy-body { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 120px; }
.l-privacy-lede { margin: 0; max-width: 40ch; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-muted); }
.l-privacy-list { margin: 56px 0 0; padding: 0; list-style: none; display: grid; gap: 36px; }
.l-privacy-list li { border-top: 1px solid var(--hair-strong); padding-top: 24px; }
.l-privacy-list h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.01em; }
.l-privacy-list p { margin: 0; color: var(--ink-muted); max-width: 40ch; }
@media (min-width: 900px) { .l-privacy-list { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- E mais ---------- */
.l-more { max-width: 1200px; margin: 0 auto; padding: 120px var(--gutter); border-top: 1px solid var(--hair); }
.l-section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; max-width: 14ch; }
.l-more-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair-strong); }
.l-more-grid li { padding: 24px 0; border-bottom: 1px solid var(--hair); }
.l-more-grid h3 { font-size: 17px; letter-spacing: -0.01em; }
.l-more-grid p { margin: 6px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 1.5; max-width: 36ch; }
@media (min-width: 640px) { .l-more-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .l-more-grid { grid-template-columns: repeat(3, 1fr); column-gap: 56px; } .l-more-grid li { padding: 28px 0; } }

/* ---------- Chamada final ---------- */
.l-final { position: relative; padding: 120px var(--gutter) 128px; text-align: center; overflow: hidden; }
.l-final::before { /* halo açafrão atrás do Selo */
  content: ""; position: absolute; left: 50%; top: 150px; width: 640px; height: 640px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 178, 36, 0.20), transparent 70%); pointer-events: none;
}
.l-coin-wrap { position: relative; width: clamp(120px, 22vw, 180px); margin: 0 auto; perspective: 900px; }
.l-coin { width: 100%; border-radius: 50%; filter: drop-shadow(0 30px 50px rgba(255, 178, 36, 0.25)); }
.l-final-title { position: relative; margin: 48px auto 0; max-width: 11ch; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 10vw, 8rem); line-height: 0.92; letter-spacing: -0.03em; text-wrap: balance; }
.l-final-lede { position: relative; margin: 24px auto 0; max-width: 34ch; color: var(--ink-muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.l-final-actions { position: relative; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.l-final-note { position: relative; margin: 24px 0 0; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 520px) { .l-final-actions .btn-store { width: 100%; max-width: 320px; } }

.landing .site-footer .wrap { max-width: 1200px; padding: 0 var(--gutter); }

/* =========================================================
   Movimento (html.motion só existe sem "reduzir movimento")
   ========================================================= */
.motion .l-hero { height: 100vh; height: 100svh; min-height: 560px; padding-top: 0; padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.motion .l-hero-copy { padding-top: clamp(96px, 16svh, 150px); }
.motion .l-hero-device { margin-top: clamp(40px, 7svh, 72px); }
.motion .l-phone--hero { --w: min(340px, 72vw, 38svh); }
@media (max-width: 699px) { .motion .l-phone--hero { --w: min(300px, 70vw, 34svh); } }
.motion .l-band-line { width: max-content; }
.motion .l-scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; margin: 0;
  font-size: 12px; color: var(--ink-muted);
}
.motion .l-scroll-cue span { width: 1px; height: 36px; background: linear-gradient(var(--ink-muted), transparent); animation: cue 2.2s var(--ease-out) infinite; transform-origin: top; }
@media (max-width: 699px) { .motion .l-scroll-cue { display: none; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Antes da entrada (GSAP revela) */
.motion:not(.is-ready) .l-hero-title,
.motion:not(.is-ready) .l-hero-lede,
.motion:not(.is-ready) .l-hero-actions,
.motion:not(.is-ready) .l-hero-device { opacity: 0; }

.motion .l-manifesto { min-height: 100svh; }
.motion .l-tour-stage { height: 100vh; height: 100svh; padding-top: 76px; padding-bottom: 24px; align-content: center; }
@media (max-width: 899px) {
  .motion .l-tour-stage { grid-template-rows: auto auto; gap: 28px; align-content: center; }
  .motion .l-phone--tour { --w: min(240px, 60vw, 25svh); }
  .motion .l-tour-copy { text-align: left; }
  .motion .l-step h3 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .motion .l-step p { margin-top: 10px; font-size: 15.5px; }
  .motion .l-rail { margin-top: 20px; }
}
.motion .l-band { height: 100vh; height: 100svh; padding: 0; display: flex; align-items: center; }
.motion .l-band-line { white-space: nowrap; font-size: clamp(5rem, 19vw, 17rem); padding: 0 var(--gutter); will-change: transform; }
.motion .l-band-line span { display: inline; margin-right: 0.28em; }

@media (prefers-reduced-motion: reduce) {
  .l-phone--tour .l-screen img, .js .l-step, .l-glow { transition: none; }
}
