/* Leruma · página de vendas (SITE-2, direção A "papel claro", decisão do dono em 27/10/2026).
   Fundo papel quente, texto e botões em tinta; o roxo da marca fica no logotipo e em detalhes; o azul do "agora"
   (ponto do símbolo) marca o que importa. Sem gradiente roxo, sem brilho. Sem fontes externas e sem estilos inline. */

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --card: #ffffff;
  --ink: #16131f;
  --ink-2: #4a4558;
  --ink-3: #6f6a80;
  --line: rgba(22, 19, 31, 0.1);
  --line-2: rgba(22, 19, 31, 0.2);
  --night: #110f1c;
  --night-2: #1b1828;
  --on-night: #f3f1f8;
  --on-night-2: #b9b4c8;
  --violet: #7c3aed;
  --violet-ink: #5b21b6;
  --lilac: #a78bfa;
  --sky: #0ea5e9;
  --sky-soft: rgba(14, 165, 233, 0.2);
  --radius: 16px;
  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 62px;
  --phone-w: min(310px, 80vw);
  --shadow-device: 0 40px 70px -32px rgba(22, 19, 31, 0.45), 0 12px 24px -12px rgba(22, 19, 31, 0.18);
  --shadow-card: 0 18px 40px -22px rgba(22, 19, 31, 0.35);
  --font-body: "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Aptos Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "Bahnschrift", "Segoe UI Variable Display", "Aptos", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img, picture, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.022em; }

a { color: var(--violet-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Faixa de quem vem do anúncio do TRT-4 (a classe vem do entrada.js, antes de desenhar). Sobe junto com a rolagem. */
.entrada { display: none; background: var(--ink); }
.veio-trt4 .entrada { display: block; }
.entrada a {
  display: block;
  padding: 10px var(--gutter);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.entrada a:hover { color: #fff; }
.entrada strong { display: block; font-weight: 700; }
.entrada span { color: var(--on-night-2); text-decoration: underline; text-underline-offset: 3px; }
.entrada span::after { content: " ↓"; color: var(--sky); }
@media (min-width: 900px) {
  .entrada strong { display: inline; margin-right: 8px; }
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-sm { min-height: 42px; padding: 0 15px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }

/* Tinta sólida com a "sombra deslocada" em tinta: presença sem roxo nem brilho. */
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 3px 0 0 #000; }
.btn-primary:hover { background: #26222f; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 0 #000; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 0 #000; }

.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(22, 19, 31, 0.03); }

.btn-light { background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.5); }
.btn-light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.link-arrow::after { content: "↓"; color: var(--sky); transition: transform 0.18s ease; }
.link-arrow:hover::after { transform: translateY(2px); }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 245, 240, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.menu-open .site-header { background: var(--paper); border-bottom-color: var(--line); }

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 112px; height: auto; }

.nav { display: none; gap: 28px; }
.nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.menu-sheet { border-top: 1px solid var(--line); background: var(--paper); }
.menu-sheet-in { display: grid; padding-block: 8px 20px; }
.menu-sheet-in a {
  display: flex;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.menu-sheet-in a:last-child { border-bottom: 0; }

/* ---------- Textos comuns ---------- */

.eyebrow {
  color: var(--violet-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section { padding-block: 64px; }

.h2 { font-size: clamp(1.65rem, 5.6vw, 2.4rem); line-height: 1.1; font-weight: 750; }
.h2-xl { font-size: clamp(1.9rem, 6.8vw, 3.1rem); line-height: 1.05; font-weight: 750; }
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; max-width: 36em; }

/* Marca-texto azul do "agora" (o ponto do símbolo), no lugar de texto em gradiente. */
.mark-sky {
  background: linear-gradient(transparent 62%, var(--sky-soft) 62%, var(--sky-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Aparelhos (molduras das capturas reais) ---------- */

.device { position: relative; }
.device .screen { position: relative; overflow: hidden; background: #fff; }
.device .screen img, .device .screen video { width: 100%; height: auto; }

.laptop {
  padding: 10px 10px 0;
  border-radius: 18px 18px 6px 6px;
  background: #1f1c29;
  box-shadow: var(--shadow-device);
}
.laptop .screen { border-radius: 8px 8px 0 0; aspect-ratio: 16 / 10; }
.laptop::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -14px;
  height: 14px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#d9d6df, #b9b5c2);
  box-shadow: 0 10px 20px -10px rgba(22, 19, 31, 0.5);
}

/* iPhone: moldura, cantos, ilha e barra de status proporcionais à largura do aparelho (cqw), então nada muda de
   proporção com o zoom do navegador. A barra de status (hora e bateria) segura a ilha: o app começa abaixo dela.
   --bar acompanha a cor do topo da captura; .phone-light é o tema claro do app. */
.phone {
  --bar: #171d3b;
  --bar-ink: #ffffff;
  --bar-icons: url("assets/status-escuro.svg");
  container-type: inline-size;
  border-radius: 15% / 7.1%;
  background: #111015;
  box-shadow: inset 0 0 0 1px #4b4758, inset 0 0 0 2.5px #1c1a22, var(--shadow-device);
}
/* Tela no formato de um iPhone: todos os trechos e capturas recortados igual, a partir do topo. */
.phone .screen img, .phone .screen video { aspect-ratio: 390 / 792; object-fit: cover; object-position: top; }
.phone-light { --bar: #f6f2fa; --bar-ink: #16131f; --bar-icons: url("assets/status-claro.svg"); }
.phone.bar-revisoes { --bar: #182040; }
.phone.bar-cronometro { --bar: #131631; }
.phone .screen {
  margin: 8px;
  margin: 2.6cqw;
  padding-top: 36px;
  padding-top: 13cqw;
  border-radius: 34px;
  border-radius: 12.4cqw;
  background: var(--bar);
}
.phone .screen::before {
  content: "";
  position: absolute;
  top: 6px;
  top: 2.2cqw;
  left: 50%;
  z-index: 3;
  width: 84px;
  width: 30cqw;
  height: 25px;
  height: 8.8cqw;
  border-radius: 999px;
  background: #050407;
  transform: translateX(-50%);
}
.phone .screen::after {
  content: "9:41";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 36px;
  height: 13cqw;
  padding-left: 30px;
  padding-left: 10.5cqw;
  color: var(--bar-ink);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-size: 4.2cqw;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
  background: var(--bar-icons) no-repeat right 7cqw center / 19cqw auto;
}
/* Botões laterais: volume à esquerda, lateral à direita. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #24212c;
}
.phone::before { left: -2px; top: 20%; height: 12%; border-radius: 3px 0 0 3px; background: linear-gradient(#24212c 0 44%, transparent 44% 56%, #24212c 56%); }
.phone::after { right: -2px; top: 24%; height: 9%; border-radius: 0 3px 3px 0; }

/* Recorte real do app flutuando sobre a cena. */
.float img { border-radius: 14px; box-shadow: var(--shadow-card); }

/* ---------- Topo ---------- */

/* Celular: 88px embaixo para as sombras do notebook e do iPhone sumirem dentro da seção (com 60px, cortavam numa reta). */
.hero { padding-block: 20px 88px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; }

.hero-copy { display: grid; gap: 18px; align-content: start; }
.hero h1 { font-size: clamp(2.25rem, 9.4vw, 3.8rem); line-height: 1.02; font-weight: 780; letter-spacing: -0.035em; }
.lede { color: var(--ink-2); font-size: clamp(1rem, 3.4vw, 1.125rem); line-height: 1.6; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 4px; }
.hero-cta .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.hero-note { color: var(--ink-3); font-size: 13.5px; }
.hero-offer { display: grid; gap: 2px; margin-top: -4px; }
.hero-price { color: var(--ink-2); font-size: 15.5px; }
.hero-price strong { color: var(--ink); font-weight: 700; }

.hero-stage { position: relative; padding: 0 0 0 0; }
.hero-stage .laptop { width: 92%; }
.hero-phone { position: absolute; right: 0; bottom: -28px; width: 30%; }
.hero-phone-3d { right: -3%; bottom: -44px; width: 33%; filter: drop-shadow(0 17px 17px rgba(22, 19, 31, 0.32)) drop-shadow(0 4px 6px rgba(22, 19, 31, 0.18)); }
.hero-phone-3d img { width: 100%; height: auto; }
.hero-stage .float-a { position: absolute; left: -3%; bottom: -36px; width: 62%; }

/* ---------- Edital novo (08/11/2026, no lugar da identificação) ---------- */

.edital-novo-grid { display: grid; gap: 36px; }
.edital-novo-head { display: grid; gap: 20px; }
.edital-novo-stage { display: grid; justify-items: center; gap: 14px; }

/* Um vídeo por aparelho (08/11/2026): no computador, a tela dentro do notebook; no celular, dentro do celular. O CSS mostra um só. */
.so-pc { display: none; }
.so-cel { display: block; }
.stage-phone { width: var(--phone-w); }
.stage-laptop { width: 100%; max-width: 940px; }
/* Filme do Edital novo no computador: sem quadro; o fundo do vídeo é o mesmo papel, e as bordas se desfazem no papel. */
.edital-novo-stage video.clip-pc {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}

.phrases { display: grid; counter-reset: frase; border-top: 1px solid var(--line-2); }
.phrases li {
  counter-increment: frase;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 560;
}
.phrases li::before {
  content: counter(frase, decimal-leading-zero);
  color: var(--ink-3);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  padding-top: 2px;
}


/* ---------- Centro de recuperação (08/11/2026): fotos em abas, como o Como funciona ---------- */

.recovery { background: var(--paper-2); }
.recovery-head { display: grid; gap: 16px; max-width: 46em; }
.recovery-stage { position: relative; display: grid; width: 100%; max-width: 940px; margin-inline: auto; }
.recovery-stage .device.laptop { width: 100%; }
.recovery-stage img { display: block; width: 100%; height: auto; }

/* ---------- Como funciona ---------- */

.steps { background: var(--paper-2); }
.stepper { display: grid; gap: 36px; }
.stepper-copy { display: grid; gap: 28px; align-content: start; }
.stepper-list { display: grid; gap: 4px; align-content: start; }

.step { position: relative; border-top: 1px solid var(--line-2); }
.step:last-child { border-bottom: 1px solid var(--line-2); }

.step-trigger {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.step-num {
  font-family: var(--font-num);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.step-text { display: grid; gap: 6px; }
.step-title { font-family: var(--font-display); font-size: 19.5px; line-height: 1.2; font-weight: 720; letter-spacing: -0.015em; }
.step-desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.step.is-active .step-num { color: var(--sky); }

/* Barra de progresso do passo ativo (o site.js controla a duração pelo vídeo). */
.step-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.step-progress span { display: block; width: 0; height: 100%; background: var(--ink); }
.js .step.is-active .step-progress span { width: var(--step-progress, 0%); }

/* Com JavaScript, só o passo ativo mostra o texto; sem ele, os três aparecem. */
.js .step:not(.is-active) .step-desc { display: none; }
.js .step:not(.is-active) .step-title { color: var(--ink-3); }

.stepper-stage { position: relative; display: grid; justify-items: center; gap: 14px; }
.step-media { display: block; }
.js .step-media { grid-row: 1; grid-column: 1; display: grid; justify-items: center; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.js .step-media.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
.step-media video { width: 100%; height: auto; }

.clip-toggle {
  display: none;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.js .clip-toggle { display: inline-flex; align-items: center; }

/* ---------- Recursos ---------- */

.features .wrap { display: grid; gap: 56px; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature-text { display: grid; gap: 10px; max-width: 30em; }
.feature-text h3 { font-size: clamp(1.35rem, 4.6vw, 1.5rem); line-height: 1.15; font-weight: 750; }
.feature-text p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.feature-phone { width: var(--phone-w); justify-self: center; }
.features-toggle { justify-self: center; }
/* Edital com IA: o celular com o vídeo e o "Como é a prova" flutuando por cima, à direita e embaixo. */
.feature-stage { position: relative; justify-self: center; width: var(--phone-w); }
.feature-stage .feature-phone { width: 100%; }
.feature-stage .float-catalogo { position: absolute; right: -8%; bottom: -6%; z-index: 3; width: 92%; } /* 08/11/2026: card do TRT-4 maior (era 74%) */

/* ---------- Pro ---------- */

.pro-grid { display: grid; gap: 48px; align-items: center; }
.pro-text { display: grid; gap: 18px; }
.pro-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.pro-list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 560;
}
.pro-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
}
.fine { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.pro-stage { position: relative; padding-bottom: 28px; }
.pro-laptop { width: 92%; margin-left: auto; }
.pro-stage .float-indice { position: absolute; left: 0; bottom: 0; width: 42%; max-width: 260px; }

/* ---------- Botão redondo com seta (galeria e baralho) ---------- */

.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.round-btn:hover { border-color: var(--ink); }
.round-btn:disabled { opacity: 0.35; cursor: default; border-color: var(--line-2); }
.round-prev::before { content: "←"; }
.round-next::before { content: "→"; }

/* ---------- Demonstração: a semana se reorganizando ---------- */

.demo { border-top: 1px solid var(--line); }
.demo-head { display: grid; gap: 14px; }
.demo-lead { font-family: var(--font-display); font-size: clamp(1.15rem, 3.8vw, 1.4rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.018em; }
.demo-lead span { color: var(--ink-3); }
.demo-grid { display: grid; gap: 24px; }
.demo-copy { display: grid; gap: 28px; align-content: start; }
.demo-stage { display: grid; justify-items: center; gap: 14px; }
.demo-phone { width: var(--phone-w); }
.demo-cta { display: grid; justify-items: center; }
.demo-cta .btn { white-space: normal; text-align: center; line-height: 1.2; }


/* ---------- Na prática: telas do computador e do celular ---------- */

.gallery { background: var(--paper-2); overflow: hidden; }
.gallery-head { display: grid; gap: 14px; margin-bottom: 28px; }
.gallery-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-sub { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 40em; }
.gallery-switch { display: none; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.js .gallery-switch { display: inline-flex; }
.gallery-switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
}
.gallery-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.gallery-set + .gallery-set { margin-top: 24px; }
.js .gallery-set + .gallery-set { margin-top: 0; }
.gallery-track {
  --slide: var(--phone-w);
  display: flex;
  gap: 20px;
  padding: 8px max(var(--gutter), calc((100vw - var(--slide)) / 2)) 56px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--slide)) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -4px; }
.gallery-computador { --slide: min(860px, 86vw); }
.gallery-slide { flex: 0 0 var(--slide); scroll-snap-align: center; }
.gallery-slide figure { display: grid; gap: 30px; }
.gallery-celular .gallery-slide figure { gap: 16px; }
.gallery-slide figcaption { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.gallery-slide figcaption strong { color: var(--ink); }
.gallery-nav { display: none; justify-content: center; gap: 12px; }
.js .gallery-nav { display: flex; }

/* ---------- Quem fez: três cartões empilhados ---------- */

.maker { border-top: 1px solid var(--line); overflow: hidden; }
.maker-grid { display: grid; gap: 32px; }
.maker-head { display: grid; gap: 14px; align-content: start; }
.maker-last { color: var(--ink); font-weight: 650; }

.deck-nav { display: none; align-items: center; gap: 12px; margin-top: 6px; }
.js .deck-nav { display: flex; }
.deck-count { min-width: 3.4em; color: var(--ink-2); font-family: var(--font-num); font-size: 15px; font-weight: 600; text-align: center; }

/* Sem JavaScript, os três em coluna. Com ele, na mesma célula: a altura vem do cartão de texto. */
.deck { display: grid; gap: 20px; width: 100%; max-width: 440px; justify-self: center; }
.js .deck { gap: 0; padding: 0 22px 20px 0; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; }

.deck-card { display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); }
.deck-daniela { border: 1px solid var(--line-2); }
.deck-andre { background: var(--violet-ink); color: #fff; }
.deck-andre a, .deck-andre a:hover { color: #fff; }
.deck-text { gap: 13px; justify-content: center; padding: 26px 24px; border: 1.5px solid var(--ink); background: var(--paper-2); color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* Fundo discreto: papel pontilhado de caderno e o anel com o trilho de pontos do símbolo do Leruma. */
.deck-daniela .deck-photo { background: url("assets/quem-fundo-claro.svg") center bottom / cover no-repeat; }
.deck-andre .deck-photo { background: url("assets/quem-fundo-roxo.svg") center bottom / cover no-repeat; }
.deck-photo { position: relative; aspect-ratio: 800 / 940; }
.deck-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.deck-id { display: grid; gap: 3px; padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.deck-andre .deck-id { border-top-color: rgba(255, 255, 255, 0.22); }
.deck-id h3 { font-size: 20px; line-height: 1.2; font-weight: 750; }
.deck-id a { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; justify-self: start; color: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.deck-id a:hover { text-decoration: underline; }
.ig-icon { flex-shrink: 0; }

.js .deck-card { grid-area: 1 / 1; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.26s ease; }
.js .deck-photo { flex: 1; min-height: 0; aspect-ratio: auto; }
.js .deck-photo img { position: absolute; inset: 0; }
.js .deck-card[data-pos="0"] { z-index: 3; }
.js .deck-card[data-pos="1"] { z-index: 2; transform: translate(11px, 10px) rotate(1.6deg); }
.js .deck-card[data-pos="2"] { z-index: 1; transform: translate(21px, 19px) rotate(3.2deg); }
.js .deck-card.is-dragging { z-index: 4; transition: none; }
.js .deck-card.is-leaving { z-index: 4; transform: translate(-112%, -2%) rotate(-7deg); opacity: 0; }
.js .deck-card.is-leaving-right { z-index: 4; transform: translate(112%, -2%) rotate(7deg); opacity: 0; }
.js .deck-card.is-coming { z-index: 4; transform: translate(-112%, -2%) rotate(-7deg); opacity: 0; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .js .deck-card { transition: none; }
}

/* ---------- Planos ---------- */

.plans { background: var(--paper-2); }
.plans .h2 { margin-bottom: 10px; }
.plans-sub { margin-bottom: 24px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.plans-grid { display: grid; gap: 18px; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--card);
}
.plan-pro { border: 2px solid var(--ink); box-shadow: 5px 5px 0 0 var(--ink); }

.plan-head { display: grid; gap: 4px; }
.plan-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan h3 { font-size: 24px; line-height: 1.1; font-weight: 760; }
.plan-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-for { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

/* a parcela é o número grande; o à vista vem logo abaixo, menor que a parcela e maior que as notas */
.plan-price { display: grid; gap: 4px; }
.price-main { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-count { font-family: var(--font-num); font-size: 20px; font-weight: 650; }
.price-value { font-family: var(--font-num); font-size: 42px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.price-cash { margin-top: 2px; color: var(--ink-2); font-size: 16.5px; }
.price-cash s { color: var(--ink-3); text-decoration-thickness: 1.5px; }
.price-cash strong { color: var(--ink); font-family: var(--font-num); font-size: 22px; font-weight: 700; }
.price-term { color: var(--ink-3); font-size: 14px; }

/* A lista empurra o botão para o fim do cartão: os dois botões ficam na mesma altura no computador. */
.plan-features { display: grid; flex: 1; align-content: start; border-top: 1px solid var(--line); }
.plan-features li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.42;
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features .fine { font-size: 12.5px; }
.plan-all { font-weight: 650; }

.mark { position: relative; width: 18px; height: 18px; margin-top: 1px; }
.mark.tick::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.plans-foot { display: grid; gap: 4px; margin-top: 24px; color: var(--ink-2); font-size: 14px; text-align: center; }
.plans-after { color: var(--ink); font-weight: 600; }

/* ---------- Garantia ---------- */

.guarantee { padding-block: 48px; border-block: 1px solid var(--line); }
.guarantee-in { display: grid; gap: 22px; align-items: center; }
.guarantee-in > div { display: grid; gap: 12px; }
.guarantee-seal {
  display: grid;
  place-items: center;
  align-content: center;
  width: 92px;
  height: 92px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.guarantee-seal span { font-family: var(--font-num); font-size: 34px; letter-spacing: 0; }

/* ---------- Dúvidas ---------- */

.faq-grid { display: grid; gap: 28px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 13px 40px 13px 0;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--ink-2);
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-52%);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq-list details p { padding: 0 40px 18px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- Chamada final ---------- */

.final { padding-block: 80px; background: var(--night); color: var(--on-night); }
.final-in { display: grid; gap: 28px; justify-items: start; }
.final .h2-xl { max-width: 15em; }

/* ---------- Rodapé ---------- */

.site-footer { padding-block: 40px 48px; color: var(--ink-2); font-size: 14.5px; }
.footer-in { display: grid; gap: 28px; }
.footer-brand { display: grid; gap: 10px; justify-items: start; }
.footer-brand img { width: 108px; height: auto; }
.footer-links { display: grid; gap: 8px; justify-items: start; }
.footer-links a { color: var(--ink-2); }
.link-btn { margin: 0 0 14px; padding: 0; border: 0; background: none; color: var(--violet-ink); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { display: grid; gap: 4px; color: var(--ink-3); font-size: 13px; }

/* ---------- Entrada suave ao rolar (só com JavaScript e sem pedido de menos movimento) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .hero-stage .float-a.is-visible,
  .js .pro-stage .float-indice.is-visible,
  .js .feature-stage .float-catalogo.is-visible { animation: boiar 7s ease-in-out 1s infinite; }
  .js .pro-stage .float-indice.is-visible { animation-delay: 1.6s; }
  .js .feature-stage .float-catalogo.is-visible { animation-delay: 2.2s; }
}
@keyframes boiar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- 600 px ---------- */

@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .plan { padding: 26px 26px; }
  .guarantee-in { grid-template-columns: auto 1fr; gap: 32px; }
  .footer-in { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- 900 px: computador ---------- */

@media (min-width: 900px) {
  :root { --gutter: 48px; --header-h: 68px; }
  .nav { display: flex; }
  .header-login { display: inline-flex; }
  .menu-btn, .menu-sheet { display: none !important; }
  .brand img { width: 124px; }
  .btn-sm { min-height: 40px; }

  .section { padding-block: 104px; }
  .prose { font-size: 17px; }

  .hero { padding-block: 36px 96px; }
  .hero-phone-3d { filter: drop-shadow(0 34px 34px rgba(22, 19, 31, 0.32)) drop-shadow(0 8px 12px rgba(22, 19, 31, 0.18)); }
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
  .hero h1 { font-size: clamp(2.7rem, 4.05vw, 3.75rem); }

  .so-pc { display: block; }
  .so-cel { display: none; }
  .stage-laptop.so-pc,
  .stage-phone.so-cel { justify-self: center; }

  .edital-novo-grid { grid-template-columns: 1.1fr 1fr; column-gap: 72px; row-gap: 48px; }
  .edital-novo-head { align-content: start; }
  .phrases { align-self: start; }
  .edital-novo-stage { grid-column: 1 / -1; }

  /* Como funciona: os três passos em colunas (barra de progresso no topo de cada um) e o filme largo embaixo. */
  .stepper { gap: 32px; }
  .stepper .stepper-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .stepper .step:last-child { border-bottom: 0; }
  .stepper .step-trigger { grid-template-columns: 38px 1fr; padding: 18px 0 4px; }
  .js .stepper .step:not(.is-active) .step-desc { display: block; color: var(--ink-3); }
  .recovery .stepper-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .features .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 40px; align-items: start; }
  .feature { gap: 32px; align-items: start; }
  .feature-phone { order: -1; width: min(310px, 100%); }
  .feature-stage { order: -1; width: min(310px, 100%); }
  .features-toggle { grid-column: 1 / -1; justify-self: center; }

  .plan-head { min-height: 82px; align-content: start; }
  .plan { padding: 28px; gap: 18px; }
  .plan-features li { padding-block: 9px; }

  .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); grid-template-areas: "copy stage" "cta stage"; column-gap: 72px; row-gap: 28px; align-items: center; }
  .demo-copy { grid-area: copy; align-self: end; gap: 28px; }
  .demo-stage { grid-area: stage; }
  .demo-cta { grid-area: cta; justify-items: start; align-self: start; }
  .demo-phone { width: min(310px, calc((100svh - var(--header-h) - 80px) / 2.11)); }

  .gallery-head { grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; margin-bottom: 36px; }
  .gallery-sub { grid-column: 1 / -1; }
  .gallery-track { padding-bottom: 40px; }

  .deck-text { padding: 34px 32px; font-size: 16px; }
  .js .deck { min-height: 620px; }

  .pro-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }

  .maker-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }

  .plans { padding-block: 72px 88px; }
  .plans .h2 { text-align: center; margin-bottom: 12px; }
  .plans-sub { margin-bottom: 32px; text-align: center; }
  .plans-grid { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin-inline: auto; align-items: stretch; }

  .guarantee { padding-block: 72px; }
  .guarantee-in { max-width: 900px; }

  .faq-grid { grid-template-columns: 0.6fr 1.4fr; gap: 72px; align-items: start; }

  .final { padding-block: 120px; }
}

/* notebooks baixos: o aparelho dos passos cabe na tela ao ir para "Como funciona" */
@media (min-width: 900px) and (max-height: 940px) {
  .section.steps { padding-top: 40px; }
}

@media (min-width: 1200px) {
  .hero-stage { margin-right: -40px; }
}

@media (min-width: 1360px) {
  .hero-stage { margin-right: -72px; }
}

/* ---------- Termos e Privacidade (LEG-1: termos.html e privacidade.html, gerados de docs/legal) ---------- */
.legal { padding-block: 48px 72px; }
.legal-in { max-width: calc(46rem + var(--gutter) * 2); }
.legal-doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; margin-bottom: 12px; }
.legal-doc h2 { font-size: 1.35rem; line-height: 1.25; margin: 40px 0 12px; }
.legal-doc p, .legal-doc ul { margin: 0 0 14px; color: var(--ink-2); }
.legal-doc ul { padding-left: 1.25em; list-style: disc; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc strong { color: var(--ink); }
.legal-doc a { overflow-wrap: anywhere; }
.legal-doc code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.legal-table { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--paper-2); color: var(--ink); font-weight: 650; }
.legal-table td { min-width: 9em; color: var(--ink-2); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-other { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); }
