/* ==========================================================================
   SGEscoteiro — Landing
   Direção: "Do fogo de conselho ao painel"
   Verde-noite + papel creme + dourado do brasão. Tipografia editorial.
   Motion: uma entrada no hero, o resto só onde explica algo.
   ========================================================================== */

:root {
  /* Cor */
  --night-950: #06100b;
  --night-900: #0a1711;
  --night-850: #0d1d15;
  --night-800: #12261c;
  --paper: #f2eee3;
  --paper-2: #ebe5d6;
  --paper-line: rgba(14, 26, 20, .12);
  --ink: #0e1a14;
  --ink-2: #4a574f;
  --ink-3: #7b857e;
  --cream: #ece6d6;
  --cream-2: rgba(236, 230, 214, .66);
  --cream-3: rgba(236, 230, 214, .42);
  --dark-line: rgba(236, 230, 214, .1);
  --gold: #c8a24c;
  --gold-soft: #e3cc8f;
  --green: #3fae78;
  --green-soft: rgba(63, 174, 120, .14);
  --ember: #e0803a;
  --wa: #25d366;

  /* Tipografia */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Motion (emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Forma */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --shadow-float:
    0 1px 1px rgba(0, 0, 0, .12),
    0 8px 16px -4px rgba(0, 0, 0, .25),
    0 40px 80px -20px rgba(0, 0, 0, .55);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  background: var(--night-950);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
em { font-style: normal; }
::selection { background: var(--gold); color: var(--night-950); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--cream); color: var(--night-950); font-weight: 500;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: none; }

.container { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Superfícies */
.dark { background: var(--night-950); color: var(--cream); }
.dark.deep { background: var(--night-900); }
.paper { background: var(--paper); color: var(--ink); }
.paper-2 { background: var(--paper-2); }

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain);
  opacity: .07; mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h2 {
  font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
h2 em, .hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.dark h2 em { color: var(--gold-soft); }
.paper h2 em { color: var(--night-800); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.eyebrow span { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.eyebrow span::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .45; }
.dark .eyebrow { color: var(--cream-2); }
.dark .eyebrow span { color: var(--gold); }

.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; margin-top: 22px; text-wrap: pretty; }
.dark .lede { color: var(--cream-2); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap; cursor: pointer; user-select: none;
  touch-action: manipulation;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: .875rem; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-cream { background: var(--cream); color: var(--night-950); }
.btn-line { border-color: rgba(236, 230, 214, .22); color: var(--cream); }
.paper .btn-line { border-color: var(--paper-line); color: var(--ink); }

.btn-ic {
  display: grid; place-items: center;
  width: 28px; height: 28px; margin-right: -12px; border-radius: 50%;
  background: var(--night-950); color: var(--cream);
  overflow: hidden;
}
.btn-ic .ic { width: 15px; height: 15px; transition: transform 300ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn-cream:hover { background: #fff; }
  .btn-line:hover { border-color: rgba(236, 230, 214, .5); }
  .paper .btn-line:hover { border-color: rgba(14, 26, 20, .4); }
  .btn:hover .btn-ic .ic { transform: translateX(2px); }
}

/* --------------------------------------------------------------------------
   Navbar — camada translúcida que flutua sobre o conteúdo
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(var(--wrap) + 24px, 100%); margin-inline: auto;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--cream);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.nav.scrolled .nav-inner {
  background: rgba(8, 18, 13, .72);
  border-color: rgba(236, 230, 214, .08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: auto; }
.brand-text { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.03em; }
.brand-text span { color: var(--gold-soft); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: .9rem; }
.nav-links > a { color: var(--cream-2); transition: color 200ms ease; }
.nav-cta { display: flex; gap: 8px; margin-left: 6px; }
@media (hover: hover) and (pointer: fine) {
  .nav-links > a:hover { color: var(--cream); }
}

.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(236, 230, 214, .08); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px;
  background: var(--cream);
  transition: transform 250ms var(--ease-out);
}
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(128px, 16vh, 176px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(224, 128, 58, .10), transparent 70%),
    radial-gradient(50% 40% at 85% 0%, rgba(63, 174, 120, .08), transparent 70%),
    var(--night-950);
}

.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-2);
  margin-bottom: clamp(28px, 4vh, 44px);
}
.live-dot {
  position: relative; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.hero-title {
  font-size: clamp(3rem, 0.9rem + 8.2vw, 9rem);
  line-height: .92;
  letter-spacing: -0.055em;
  font-weight: 500;
  color: var(--cream);
}
.hero-title .line {
  display: block;
  /* Máscara para as linhas subirem "de dentro": inclui descendentes e itálico */
  clip-path: inset(-0.2em -0.6em -0.08em -0.2em);
  padding-bottom: .04em;
}
.hero-title .line > span { display: block; }
.hero-title em {
  color: var(--gold-soft);
  font-size: 1.08em;
  letter-spacing: -0.035em;
  padding-right: .06em;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-top: clamp(36px, 5vh, 56px);
  padding-bottom: clamp(48px, 7vh, 80px);
}
.hero-description { font-size: 1.125rem; color: var(--cream-2); max-width: 44ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats { display: flex; border-left: 1px solid var(--dark-line); }
.hero-stats li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 4px 28px;
  border-right: 1px solid var(--dark-line);
  min-width: 140px;
}
.hero-stats strong {
  font-family: var(--serif); font-weight: 400;
  font-size: 2.75rem; line-height: 1; letter-spacing: -0.02em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.hero-stats span { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-3); }

/* Palco: a fogueira e o painel que nasce dela */
.stage { position: relative; padding-bottom: clamp(64px, 10vw, 140px); }

.stage-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--night-900);
}
.stage-photo-inner { position: absolute; inset: -8% 0; }
.stage-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 96%;
  filter: saturate(.9) contrast(1.05);
}
.stage-photo::after {
  /* Gradiente com paradas suavizadas: sem borda visível */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(6, 16, 11, .55) 0%,
      rgba(6, 16, 11, .18) 22%,
      rgba(6, 16, 11, 0) 40%,
      rgba(6, 16, 11, .08) 58%,
      rgba(6, 16, 11, .32) 72%,
      rgba(6, 16, 11, .7) 86%,
      rgba(6, 16, 11, .95) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(6, 16, 11, .55) 100%);
}
.stage-photo figcaption {
  position: absolute; left: 28px; top: 24px; z-index: 1;
  display: flex; flex-direction: column; gap: 6px;
  max-width: 30ch;
  font-size: .9375rem; line-height: 1.4; color: var(--cream);
}
.stage-photo figcaption .mono { color: var(--gold-soft); font-size: .6875rem; }

.stage-product {
  position: relative; z-index: 2;
  width: min(1000px, 84%);
  margin: calc(clamp(28px, 4.5vw, 64px) * -1) auto 0;
  perspective: 1600px;
}
.product-frame {
  position: relative;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(236, 230, 214, .10), rgba(236, 230, 214, .03));
  box-shadow:
    inset 0 1px 0 rgba(236, 230, 214, .14),
    var(--shadow-float),
    0 0 120px -20px rgba(224, 128, 58, .22);
  transform-origin: 50% 100%;
}
.product-frame img { width: 100%; height: auto; border-radius: 0 0 12px 12px; }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border-radius: 12px 12px 0 0;
  background: #e7e9ec;
  border-bottom: 1px solid rgba(14, 26, 20, .08);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(14, 26, 20, .18); }
.frame-bar span {
  margin: 0 auto; transform: translateX(-20px);
  font-family: var(--mono); font-size: .6875rem; color: rgba(14, 26, 20, .5);
  padding: 3px 12px; border-radius: 6px; background: rgba(255, 255, 255, .7);
}

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: clamp(96px, 13vw, 176px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(56px, 7vw, 96px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split-head { position: sticky; top: 120px; }
.split-center { align-items: center; }
.split-center .split-head { position: static; }

/* Módulos: índice editorial */
.modules { border-top: 1px solid var(--paper-line); counter-reset: m; }
.mod {
  position: relative;
  display: grid;
  grid-template-columns: 44px 40px minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
  padding: 24px 12px 24px 4px;
  border-bottom: 1px solid var(--paper-line);
}
.mod::before {
  /* Faixa de hover: cresce da esquerda, não pinta o fundo todo de uma vez */
  content: ""; position: absolute; inset: 0 -12px; z-index: -1;
  background: var(--paper-2); border-radius: 12px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.modules { position: relative; isolation: isolate; }
.mod-n { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 5px; }
.mod-ic { color: var(--night-800); align-self: start; padding-top: 2px; }
.mod-ic .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.mod h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.2; }
.mod p { font-size: .9688rem; color: var(--ink-2); line-height: 1.55; padding-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .mod:hover::before { opacity: 1; }
  .mod:hover .mod-n { color: var(--ink); }
}

/* Destaques: capítulos */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--dark-line);
}
.chapter:last-child { padding-bottom: 0; }
.chapter.reverse .chapter-text { order: 2; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold);
}
.tag .ic { width: 15px; height: 15px; }
.chapter h3 {
  font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.75rem);
  line-height: 1.06; letter-spacing: -0.035em;
  margin: 20px 0 18px;
  max-width: 16ch;
}
.chapter-text > p { color: var(--cream-2); max-width: 46ch; margin-bottom: 28px; text-wrap: pretty; }

.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .9688rem; line-height: 1.5; }
.checks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--green); stroke-width: 2; }
.dark .checks li { color: var(--cream); }

/* Painel de mini-UI em vidro */
.panel {
  position: relative;
  display: grid; gap: 10px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(236, 230, 214, .06), rgba(236, 230, 214, .02));
  box-shadow:
    inset 0 1px 0 rgba(236, 230, 214, .1),
    inset 0 0 0 1px rgba(236, 230, 214, .05),
    0 30px 60px -30px rgba(0, 0, 0, .6);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px 10px;
  font-size: .875rem; font-weight: 500;
}
.panel-head .mono { color: var(--cream-3); font-size: .6875rem; }
.metric {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(6, 16, 11, .55);
  box-shadow: inset 0 0 0 1px rgba(236, 230, 214, .06);
}
.metric span { display: block; font-size: .8125rem; color: var(--cream-3); margin-bottom: 4px; }
.metric b { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.metric-xl b { font-family: var(--serif); font-weight: 400; font-size: 2.75rem; line-height: 1.05; letter-spacing: -0.02em; }
.metric-row { display: flex; justify-content: space-between; align-items: center; }
.metric-row span { margin: 0; }
.metric .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.metric .ok .ic { width: 16px; height: 16px; stroke-width: 2.25; }
.metric .warn { color: var(--gold-soft); }

.bar { height: 6px; margin-top: 14px; border-radius: 6px; background: rgba(236, 230, 214, .07); overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #2c8a5d, var(--green));
  transform-origin: 0 50%;
  transform: scaleX(var(--v, 1));
}
.bar-warn i { background: linear-gradient(90deg, var(--ember), var(--gold)); }
.v-86 { --v: .86; }
.v-66 { --v: .66; }
.v-18 { --v: .18; }
/* Com JS: barras começam vazias e enchem uma vez ao entrar na tela (explicação) */
.js [data-bars] .bar i { transform: scaleX(0); transition: transform 1100ms var(--ease-out) 150ms; }
.js [data-bars].in-view .bar i { transform: scaleX(var(--v, 1)); }

.note { display: block; padding: 4px 8px 0; color: var(--cream-3); font-size: .75rem; }

/* Segurança: bento */
.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(236, 230, 214, .05), rgba(236, 230, 214, .015));
  box-shadow: inset 0 1px 0 rgba(236, 230, 214, .08), inset 0 0 0 1px rgba(236, 230, 214, .05);
  overflow: hidden;
}
.tile h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 22px 0 8px; }
.tile p { font-size: .9375rem; color: var(--cream-2); text-wrap: pretty; }
.tile-ic {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--gold-soft);
  background: rgba(200, 162, 76, .08);
  box-shadow: inset 0 0 0 1px rgba(200, 162, 76, .18);
}
.tile-emblem {
  grid-row: span 2;
  align-items: center; justify-content: center;
  min-height: 420px;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(63, 174, 120, .16), transparent 70%),
    linear-gradient(180deg, rgba(236, 230, 214, .04), rgba(236, 230, 214, .01));
}
.tile-emblem img {
  width: min(320px, 80%);
  /* O logo tem fundo escuro sólido: a máscara radial o funde ao bloco */
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.tile-emblem .mono { position: absolute; bottom: 24px; color: var(--cream-3); font-size: .6875rem; }
.bento > .tile:nth-child(4) { grid-column: 2 / span 2; }

.perm, .log { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.perm li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(6, 16, 11, .5);
  font-size: .8125rem; color: var(--cream-2);
}
.perm i {
  position: relative; width: 30px; height: 18px; border-radius: 999px;
  background: rgba(236, 230, 214, .14);
}
.perm i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--cream-2);
}
.perm i.on { background: var(--green); }
.perm i.on::after { left: auto; right: 3px; background: #fff; }
.log li {
  display: flex; gap: 14px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(6, 16, 11, .5);
  font-size: .6875rem; color: var(--cream-3); text-transform: none; letter-spacing: .02em;
}
.log b { font-weight: 500; color: var(--gold-soft); min-width: 88px; }
.backup { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px; color: var(--cream-2) !important; font-size: .6875rem !important; }

/* Como começar: linha do tempo */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--paper-line);
}
.steps li { position: relative; padding-top: 36px; }
.steps li::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--night-800);
}
.step-n {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(4.5rem, 3rem + 4vw, 7.5rem); line-height: .85;
  color: var(--night-800);
  margin-bottom: 28px;
}
.steps h3 { font-size: 1.375rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 32ch; }

/* Plano */
.plan {
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 30px 60px -24px rgba(6, 16, 11, .45);
  overflow: hidden;
}
.plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(200, 162, 76, .14), transparent 60%);
}
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.plan h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.plan-top .mono { color: var(--gold); font-size: .6875rem; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(200, 162, 76, .3); }
.price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(5rem, 3.5rem + 4vw, 7.5rem); line-height: .9; letter-spacing: -0.03em;
  margin: 28px 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--dark-line);
  font-variant-numeric: tabular-nums;
}
.price .cur { font-size: .32em; color: var(--cream-2); align-self: flex-start; margin-top: .35em; letter-spacing: 0; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--cream-2); letter-spacing: 0; }
.plan .checks { margin-bottom: 36px; }

/* FAQ */
.faqs { border-top: 1px solid var(--paper-line); }
.faq { border-bottom: 1px solid var(--paper-line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  position: relative; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--paper-line);
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.faq summary i::before,
.faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px;
  background: var(--ink); border-radius: 2px;
}
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i { transform: rotate(45deg); background: var(--paper-2); }
.faq-body p { padding: 0 56px 28px 0; color: var(--ink-2); max-width: 60ch; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover i { background: var(--paper-2); }
}

/* Abertura com altura animada onde o navegador suporta (progressivo) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete;
  }
  .faq[open]::details-content { block-size: auto; }
}

/* CTA */
.cta {
  position: relative;
  padding: clamp(120px, 16vw, 220px) 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 80%;
  filter: blur(2px) saturate(.9);
  transform: scale(1.04);
}
.cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 45% at 50% 70%, rgba(6, 16, 11, .35), rgba(6, 16, 11, .85) 100%),
    linear-gradient(180deg, var(--night-950) 0%, rgba(6, 16, 11, .6) 30%, rgba(6, 16, 11, .7) 70%, var(--night-950) 100%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2.6rem, 1.2rem + 5vw, 6rem); max-width: 14ch; }
.cta .lede { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* Rodapé */
.footer { position: relative; padding-top: 56px; overflow: hidden; border-top: 1px solid var(--dark-line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .875rem; color: var(--cream-2); }
.footer-links a { transition: color 200ms ease; }
.footer-inner p { font-size: .8125rem; color: var(--cream-3); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--cream); }
}
.footer .wordmark {
  font-weight: 600;
  font-size: clamp(4rem, 17.2vw, 15.5rem);
  line-height: .78;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  margin-top: clamp(40px, 6vw, 80px);
  margin-bottom: -0.1em;
  background: linear-gradient(180deg, rgba(236, 230, 214, .16), rgba(236, 230, 214, 0) 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed; z-index: 60;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 28px -6px rgba(37, 211, 102, .55);
  transition: transform 160ms var(--ease-out);
  touch-action: manipulation;
}
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }
.whatsapp-float:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover { transform: translateY(-2px); }
  .whatsapp-float:hover:active { transform: scale(.94); }
}

/* --------------------------------------------------------------------------
   Motion
   Uma única entrada coreografada no hero (vista uma vez por visita).
   Título = lead, cópia/CTAs = support, foto = decoration. Atrasos não uniformes.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span {
    animation: line-rise 1000ms var(--ease-out) both;
  }
  .hero-title .l-1 > span { animation-delay: 60ms; }
  .hero-title .l-2 > span { animation-delay: 150ms; }
  .hero-title .l-3 > span { animation-delay: 220ms; }

  .enter { animation: soft-rise 800ms var(--ease-out) both; }
  .e-1 { animation-delay: 0ms; }
  .e-2 { animation-delay: 380ms; }
  .e-3 { animation-delay: 460ms; }

  .enter-photo { animation: fade-in 1400ms ease both 200ms; }
  .enter-photo img { animation: settle 2200ms var(--ease-out) both 200ms; }

  .whatsapp-float { animation: pop-in 500ms var(--ease-out) both 1400ms; }

  @keyframes line-rise { from { transform: translateY(108%); } }
  @keyframes soft-rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes settle { from { transform: scale(1.08); } }
  @keyframes pop-in { from { opacity: 0; transform: scale(.9) translateY(6px); } }

  /* Scroll-driven (CSS, roda no compositor). Sem suporte = tudo estático. */
  @supports (animation-timeline: view()) {
    /* O painel "deita" e se assenta enquanto entra: explica que o sistema nasce da rotina */
    .product-frame {
      animation: frame-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    @keyframes frame-settle {
      from { transform: rotateX(22deg) scale(.92) translateY(40px); }
      to { transform: none; }
    }

    /* Parallax suave da foto: decorativo, só transform */
    .stage-photo-inner {
      animation: photo-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes photo-drift {
      from { transform: translateY(-4%); }
      to { transform: translateY(4%); }
    }
  }
}

/* Movimento reduzido: sem deslocamento, só opacidade */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .enter-photo, .hero-title .line > span { animation: fade-in 400ms ease both; }
  .js [data-bars] .bar i { transition: none; }
  @keyframes fade-in { from { opacity: 0; } }
}

/* Transparência reduzida: vidro vira sólido */
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled .nav-inner { background: var(--night-900); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .hero-foot { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { border-left: 0; }
  .hero-stats li:first-child { padding-left: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-emblem { grid-row: auto; grid-column: 1 / -1; min-height: 320px; }
  .bento > .tile:nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px;
    border-radius: 24px;
    background: rgba(8, 18, 13, .94);
    border: 1px solid rgba(236, 230, 214, .08);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    transform-origin: 50% 0;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px) scale(.98);
    /* Saída mais rápida que a entrada */
    transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 220ms ease, transform 220ms var(--ease-out), visibility 0s;
  }
  .nav-links > a { padding: 14px 14px; font-size: 1.0625rem; color: var(--cream); border-radius: 12px; }
  .nav-cta { flex-direction: column; margin: 8px 0 0; }
  .nav-cta .btn { --h: 48px; }
  .nav:not(.scrolled) .nav-inner { background: rgba(8, 18, 13, .0); }
  .nav.menu-open .nav-inner { background: rgba(8, 18, 13, .92); border-color: rgba(236, 230, 214, .08); }

  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .chapter { grid-template-columns: 1fr; }
  .chapter.reverse .chapter-text { order: 0; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--paper-line); padding-left: 28px; gap: 48px; }
  .steps li { padding-top: 0; }
  .steps li::before { top: 8px; left: -32px; }
  .step-n { margin-bottom: 16px; }

  .stage-photo { aspect-ratio: 4 / 3; }
  .stage-product { width: 92%; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding-top: 116px; }
  .hero-title { letter-spacing: -0.05em; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats li { min-width: 0; flex: 1; padding: 4px 14px; }
  .hero-stats strong { font-size: 2.1rem; }
  .stage-photo { aspect-ratio: 4 / 5; border-radius: 20px; }
  .stage-photo img { object-position: 50% 80%; }
  .stage-photo figcaption { left: 20px; top: 18px; right: 20px; font-size: .875rem; }
  .stage-product { width: 100%; margin-top: -56px; }
  .product-frame { padding: 6px; border-radius: 16px; }
  .frame-bar { height: 26px; }
  .frame-bar span { display: none; }

  .mod { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; padding: 22px 0; }
  .mod-n { grid-row: 1; }
  .mod-ic { display: none; }
  .mod h3 { grid-column: 2; font-size: 1.25rem; }
  .mod p { grid-column: 2; }

  .bento { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .metric-xl b { font-size: 2.25rem; }
  .faq summary { font-size: 1.0625rem; padding: 22px 0; }
  .faq-body p { padding-right: 0; }
  .cta-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
