/* =========================================================
   RABISKI — Landing de vendas
   Paleta e tipografia derivadas da própria plataforma.
   ========================================================= */

:root {
  /* Cores em HSL para permitir hsl(var(--x) / .5) sem variável extra */
  --background: 40 33% 97%;
  --surface: 0 0% 100%;
  --foreground: 196 92% 10%;   /* #022532 — azul exato do logotipo */
  --card: 40 30% 98%;
  --primary: 258 82% 62%;
  --primary-strong: 258 74% 52%;
  --primary-foreground: 0 0% 100%;
  --accent: 335 82% 66%;
  --secondary: 258 60% 96%;
  --muted-foreground: 200 14% 42%;
  --destructive: 0 72% 51%;
  --border: 258 22% 91%;

  /* Cores de apoio dos mockups (espelham os cards da plataforma) */
  --mint: 162 60% 84%;
  --sky: 213 90% 88%;
  --lilac: 258 90% 91%;
  --peach: 25 95% 88%;
  --lemon: 45 95% 82%;
  --rose: 340 90% 91%;

  --header-h: 68px;   /* altura do cabecalho fixo */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(36, 28, 61, .04), 0 1px 3px rgba(36, 28, 61, .06);
  --shadow-md: 0 4px 12px rgba(36, 28, 61, .06), 0 2px 4px rgba(36, 28, 61, .04);
  --shadow-lg: 0 20px 40px -12px rgba(36, 28, 61, .14);
  --shadow-primary: 0 10px 24px -8px hsl(var(--primary) / .55);

  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  overflow-x: hidden; /* trava de segurança contra overflow de mockup animado */
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: hsl(var(--primary-strong)); }
s { color: hsl(var(--muted-foreground)); text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: hsl(var(--primary)); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 48rem; }
.section { padding: 6rem 0; }
.section-alt { background: hsl(var(--card)); border-block: 1px solid hsl(var(--border)); }
.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section-sub { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; margin: 0; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .8125rem;
  letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--primary-strong));
  margin: 0 0 .5rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .875rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: hsl(var(--primary-strong)); transform: translateY(-2px); }
.btn-ghost { background: hsl(var(--surface)); color: hsl(var(--foreground)); border-color: hsl(var(--border)); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: hsl(var(--primary)); transform: translateY(-2px); }
.btn-sm { padding: .625rem 1.125rem; font-size: .9375rem; }
.btn-lg { padding: 1.0625rem 2rem; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: hsl(var(--background) / .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: hsl(var(--foreground)); text-decoration: none; }
.logo img { width: 140px; height: auto; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  font-size: .9375rem; font-weight: 500; color: hsl(var(--foreground));
  text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { background: hsl(var(--secondary)); color: hsl(var(--primary-strong)); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; flex: none;
  align-items: center; justify-content: center;
  background: hsl(var(--surface)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; }
.nav-toggle-bars span {
  display: block; height: 2px; background: hsl(var(--foreground)); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(60rem 32rem at 12% -10%, hsl(var(--lilac) / .85), transparent 60%),
    radial-gradient(48rem 28rem at 96% 4%, hsl(var(--rose) / .55), transparent 62%),
    hsl(var(--background));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.grad {
  background: linear-gradient(100deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.hero-reassure { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.hero-reassure li { display: flex; align-items: center; gap: .4rem; }
.hero-reassure li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: hsl(var(--mint)); box-shadow: inset 0 0 0 2px hsl(var(--surface));
}

/* ---------- Janela de app (base de todos os mockups) ---------- */
.app-window {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.app-bar {
  display: flex; align-items: center; gap: .375rem;
  padding: .625rem .875rem;
  background: hsl(var(--card)); border-bottom: 1px solid hsl(var(--border));
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-r { background: #FF6058; } .dot-y { background: #FFBD2E; } .dot-g { background: #29CE42; }
.app-bar-title {
  margin-left: .5rem; font-size: .75rem; font-weight: 600;
  color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-body { padding: 1rem; }
.app-window.mini .app-body { padding: .875rem; }

/* Hero: a personagem fica no fundo e o dashboard flutua na frente dela */
.hero-mock { position: relative; }
.hero-art {
  width: 100%; max-width: 34rem; margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(2, 37, 50, .14));
  animation: flutua 6s ease-in-out infinite;
}
/* Sobe e desce de leve, so para a cena nao ficar parada. 10px em 6s e
   percepitvel sem virar distracao. */
@keyframes flutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
}
.hero-mock .app-window {
  /* Encostado no canto inferior direito e um pouco para fora: cobre so a barra
     da toga, deixando o rosto e a folha com o 1000 livres. */
  position: absolute; right: -1.25rem; bottom: -2.25rem; z-index: 2;
  width: min(18.5rem, 58%);
}
.hero-mock .app-body { padding: .75rem; }
.hero-mock .kpi { padding: .5rem .5rem; }
.hero-mock .kpi-label { font-size: .625rem; letter-spacing: -.01em; }
.hero-mock .kpi-value { font-size: 1.125rem; }
.hero-mock .chart-card { padding: .625rem; }
.hero-mock .chart-wrap { height: 118px; }

/* KPIs do hero */
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; margin-bottom: .875rem; }
.kpi { min-width: 0; padding: .75rem; border-radius: var(--radius); }
.kpi-a { background: hsl(var(--sky) / .55); }
.kpi-b { background: hsl(var(--mint) / .5); }
.kpi-c { background: hsl(var(--rose) / .5); }
.kpi-label { display: block; font-size: .6875rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.kpi-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-card { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: .875rem; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; font-size: .8125rem; font-weight: 600; }
.chart-tag { padding: .125rem .5rem; border-radius: 999px; background: hsl(var(--mint) / .6); font-size: .75rem; font-variant-numeric: tabular-nums; }
/* Altura fixa: Chart.js redimensiona sozinho e sem isso o layout pula */
.chart-wrap { position: relative; height: 170px; }
.chart-wrap.tall { height: 210px; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* ---------- Faixa de números ---------- */
.stats-band { padding: 3rem 0; background: hsl(var(--surface)); border-block: 1px solid hsl(var(--border)); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.stat { min-width: 0; }
.stat strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600; color: hsl(var(--primary-strong));
}
.stat span { font-size: .9375rem; color: hsl(var(--muted-foreground)); }
.disclaimer { margin: 1.5rem 0 0; text-align: center; font-size: .8125rem; color: hsl(var(--muted-foreground)); }

/* ---------- Cards ---------- */
.card {
  background: hsl(var(--surface)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card p { margin: 0; color: hsl(var(--muted-foreground)); }
/* Ilustracao do topo dos cards de dor */
.card-art {
  width: 100%; height: 190px; object-fit: contain; object-position: center bottom;
  margin: -.5rem auto 1.25rem;
}
.card-pain { padding-top: 1.5rem; }

/* ---------- Solução ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.solution-card { display: flex; flex-direction: column; gap: 1.25rem; }
.solution-copy h3 { margin-bottom: .375rem; }
.step-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 26px; margin-bottom: .625rem;
  background: hsl(var(--secondary)); color: hsl(var(--primary-strong));
  border-radius: 999px; font-family: var(--font-display); font-size: .8125rem; font-weight: 600;
}
.solution-card .app-window { margin-top: auto; }

/* Mockup: lista de aulas */
.lesson-list li {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .625rem; border-radius: .5rem; font-size: .8125rem;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .4s ease, transform .4s ease, background-color .3s ease;
}
.lesson-list li.is-in { opacity: 1; transform: none; }
.lesson-list li.is-active { background: hsl(var(--secondary)); }
.lesson-ico { color: hsl(var(--primary)); font-size: .625rem; }
.lesson-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-time { color: hsl(var(--muted-foreground)); font-size: .75rem; font-variant-numeric: tabular-nums; }
.lesson-progress { height: 6px; margin-top: .625rem; background: hsl(var(--secondary)); border-radius: 999px; overflow: hidden; }
.lesson-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent))); border-radius: 999px; transition: width .8s ease; }

/* Mockup: propostas */
.search-box {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border: 1px solid hsl(var(--border)); border-radius: .625rem;
  font-size: .8125rem; color: hsl(var(--muted-foreground)); background: hsl(var(--card));
}
.search-ico { font-size: 1rem; }
.search-text { min-height: 1.2em; display: inline-flex; align-items: center; color: hsl(var(--foreground)); }
.search-text.is-typing::after {
  content: ""; width: 1px; height: .9rem; margin-left: 1px;
  background: hsl(var(--primary)); animation: caret .8s step-end infinite;
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: .375rem; margin: .625rem 0; }
.chip {
  padding: .25rem .625rem; border-radius: 999px; font-size: .6875rem; font-weight: 600;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground));
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.chip.is-on { background: hsl(var(--foreground)); border-color: hsl(var(--foreground)); color: #fff; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; height: 128px; overflow: hidden; }
.theme-card {
  min-width: 0; padding: .5rem; border-radius: .625rem; font-size: .6875rem; line-height: 1.35;
  opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease;
}
.theme-card.is-in { opacity: 1; transform: none; }
.theme-card b { display: block; font-weight: 600; margin-bottom: .25rem; font-size: .625rem; color: hsl(var(--muted-foreground)); }

/* Mockup: correção */
.essay {
  font-size: .75rem; line-height: 1.7; color: hsl(var(--foreground));
  height: 118px; overflow: hidden; padding-right: .25rem;
}
.essay p { margin: 0 0 .4rem; }
.mk { border-radius: 3px; padding: 0 2px; background: transparent; transition: background-color .5s ease, box-shadow .5s ease; }
.mk.on.mk-1 { background: hsl(var(--rose) / .85); box-shadow: 0 1px 0 #E11D48 inset; }
.mk.on.mk-2 { background: hsl(var(--mint) / .85); }
.mk.on.mk-3 { background: hsl(var(--lemon) / .85); }
.comp-list { margin-top: .75rem; display: grid; gap: .3rem; }
.comp-list li { display: grid; grid-template-columns: 6.5rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .6875rem; }
.comp-name { color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: hsl(var(--secondary)); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: hsl(var(--primary)); border-radius: 999px; transition: width .9s ease; }
.comp-list b { text-align: right; font-variant-numeric: tabular-nums; font-size: .75rem; }
.essay-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .75rem; padding: .5rem .75rem; border-radius: .625rem;
  background: hsl(var(--secondary)); font-size: .75rem; font-weight: 600;
}
.essay-total strong { font-family: var(--font-display); font-size: 1.25rem; color: hsl(var(--primary-strong)); font-variant-numeric: tabular-nums; }

/* ---------- Zig-zag ---------- */
.zigzag { display: grid; gap: 4rem; }
.zz-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
.zz-reverse .zz-text { order: 2; }
.zz-text p { color: hsl(var(--muted-foreground)); }
.check-list { display: grid; gap: .5rem; margin-top: 1.25rem; }
.check-list li { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; }
.check-list li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; margin-top: .2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--mint)); color: #0F766E; border-radius: 50%; font-size: .6875rem; font-weight: 700;
}

/* Mockup: ranking */
.level-row { display: flex; align-items: center; gap: .75rem; padding: .625rem; background: hsl(var(--card)); border-radius: .75rem; }
.level-ico { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--surface)); border-radius: .625rem; box-shadow: var(--shadow-sm); }
.level-info { flex: 1; min-width: 0; }
.level-info strong { display: block; font-size: .8125rem; font-family: var(--font-display); }
.level-info small { color: hsl(var(--muted-foreground)); font-weight: 400; }
.level-bar { height: 6px; margin-top: .3rem; background: hsl(var(--secondary)); border-radius: 999px; overflow: hidden; }
.level-bar span { display: block; height: 100%; width: 0; background: hsl(var(--lemon)); border-radius: 999px; transition: width 1s ease; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .5rem; margin: 1rem 0; }
.pod { position: relative; padding: .625rem .25rem; border-radius: .75rem .75rem .25rem .25rem; text-align: center; font-size: .6875rem; }
.pod-av {
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 50%; background: hsl(var(--surface)); font-family: var(--font-display); font-weight: 600; margin-bottom: .25rem;
}
.pod-n { display: block; font-weight: 600; }
.pod-p { display: block; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.pod-1 { background: hsl(var(--lemon) / .8); padding-top: 1.5rem; }
.pod-2 { background: hsl(var(--lilac) / .8); }
.pod-3 { background: hsl(var(--peach) / .8); }
.pod-crown { position: absolute; top: .25rem; left: 50%; transform: translateX(-50%); font-size: .875rem; }
/* Altura fixa obrigatória: os itens entram por JS e sem isso o card pula */
.feed { height: 104px; overflow: hidden; display: grid; align-content: start; gap: .375rem; }
.feed-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .625rem; border-radius: .5rem; background: hsl(var(--card));
  font-size: .6875rem; border: 1px solid hsl(var(--border));
  opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .4s ease;
}
.feed-item.is-in { opacity: 1; transform: none; }
.feed-emoji { font-size: .875rem; }
.feed-pts { margin-left: auto; font-weight: 700; color: hsl(var(--primary-strong)); font-variant-numeric: tabular-nums; }

/* Mockup: calendário */
.cal-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; }
.cal-col { min-width: 0; }
.cal-month { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 3px; }
.cal-week span { text-align: center; font-size: .625rem; color: hsl(var(--muted-foreground)); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
  border-radius: .3rem; font-size: .625rem; color: hsl(var(--muted-foreground));
  background: hsl(var(--card)); transition: background-color .4s ease, color .4s ease, transform .4s ease;
}
.cal-day.is-event { color: hsl(var(--foreground)); font-weight: 700; transform: scale(1.06); }
.cal-day.ev-live { background: hsl(var(--rose)); }
.cal-day.ev-sim { background: hsl(var(--sky)); }
.cal-day.ev-aula { background: hsl(var(--mint)); }
.cal-side { min-width: 0; }
.cal-side-title { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; color: hsl(var(--muted-foreground)); }
.cal-events { height: 150px; overflow: hidden; display: grid; align-content: start; gap: .375rem; }
.cal-event {
  padding: .5rem .625rem; border-radius: .5rem; font-size: .6875rem; line-height: 1.35;
  border-left: 3px solid hsl(var(--primary)); background: hsl(var(--card));
  opacity: 0; transform: translateX(8px); transition: opacity .4s ease, transform .4s ease;
}
.cal-event.is-in { opacity: 1; transform: none; }
.cal-event b { display: block; }
.cal-event span { color: hsl(var(--muted-foreground)); }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 3.5rem; min-width: 0; }
.step-num {
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: hsl(var(--primary)); color: #fff;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  box-shadow: var(--shadow-primary);
}
.step h3 { font-size: 1.125rem; }
.step p { margin: 0; color: hsl(var(--muted-foreground)); }


/* ---------- Oferta ---------- */
.offer-card {
  position: relative; padding: 2.75rem 2.5rem; text-align: center;
  background: hsl(var(--surface)); border: 2px solid hsl(var(--primary) / .35);
  border-radius: 1.5rem; box-shadow: var(--shadow-lg);
}
.offer-tag {
  display: inline-block; margin: 0 0 .75rem; padding: .3rem .875rem;
  background: hsl(var(--accent)); color: #fff; border-radius: 999px;
  font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.offer-name { font-size: 1.375rem; margin-bottom: 1.25rem; }
.offer-from { margin: 0; font-size: .9375rem; color: hsl(var(--muted-foreground)); }
.offer-price { margin: .125rem 0 0; font-family: var(--font-display); line-height: 1.05; }
.offer-price .offer-x { font-size: 1.25rem; color: hsl(var(--muted-foreground)); }
.offer-price strong { font-size: clamp(2.75rem, 8vw, 3.75rem); font-weight: 700; color: hsl(var(--primary-strong)); }
.offer-cash { margin: .25rem 0 1.75rem; color: hsl(var(--muted-foreground)); }
.offer-list { display: grid; gap: .625rem; margin-bottom: 1.75rem; text-align: left; }
.offer-list li { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; }
.offer-list li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; margin-top: .2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--mint)); color: #0F766E; border-radius: 50%; font-size: .6875rem; font-weight: 700;
}
.offer-guarantee { margin: 1rem 0 0; font-size: .875rem; color: hsl(var(--muted-foreground)); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; }
.faq-h { margin: 0; font-size: 1rem; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 56px; padding: 1rem 1.25rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: inherit;
}
.faq-q:hover { color: hsl(var(--primary-strong)); }
.faq-ico { position: relative; flex: none; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 2px;
  background: hsl(var(--primary)); border-radius: 2px; transition: transform .25s ease;
}
.faq-ico::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-ico::after { transform: rotate(0deg); }
.faq-a { padding: 0 1.25rem 1.25rem; }
.faq-a p { margin: 0; color: hsl(var(--muted-foreground)); font-size: .9375rem; }
.faq-cta { margin-top: 2.5rem; text-align: center; }
.faq-cta p { margin-bottom: .75rem; color: hsl(var(--muted-foreground)); }

/* ---------- Footer ---------- */
.site-footer { padding: 4rem 0 2rem; background: hsl(var(--foreground)); color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; }
.footer-logo { width: 160px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 26rem; font-size: .9375rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: rgba(255, 255, 255, .08); color: #fff;
  transition: background-color .2s ease;
}
.socials a:hover { background: hsl(var(--primary)); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.footer-col { display: flex; flex-direction: column; }
.footer-title { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .25rem; }
.footer-col a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .9375rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; }
.footer-bottom p { margin: 0 0 .25rem; }
.footer-legal { color: rgba(255, 255, 255, .5); }

/* ---------- Consentimento ---------- */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  background: hsl(var(--surface)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: consent-in .3s ease;
}
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.consent-inner {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem;
}
.consent-text { flex: 1; min-width: 16rem; }
.consent-text strong { font-family: var(--font-display); }
.consent-text p { margin: .25rem 0 0; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.consent-actions { display: flex; gap: .5rem; margin-left: auto; }

.noscript-warn {
  margin: 0; padding: 1rem 1.25rem; text-align: center;
  background: hsl(var(--lemon)); font-size: .875rem;
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lead { max-width: none; }
  .zz-row { gap: 2rem; }
}

@media (max-width: 820px) {
  /* Entre tablet e celular o card encolhe mas continua sobreposto */
  .hero-mock .app-window { width: min(17rem, 62%); right: -.5rem; bottom: -1.5rem; }
  .hero-art { max-width: 26rem; }
}

@media (max-width: 640px) {
  /* No telefone o card sobreposto ficaria ilegivel e taparia a camiseta e a
     folha com o 1000, que sao o ponto da imagem. Fica so a personagem. */
  .hero-mock .app-window { display: none; }
  .hero-art { max-width: 21rem; }
}

@media (max-width: 900px) {
  .section { padding: 4.5rem 0; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem;
    background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 48px; padding: 0 .75rem; }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .solution-grid, .steps { grid-template-columns: 1fr; }
  .grid-3, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zz-row, .zz-reverse .zz-text { grid-template-columns: 1fr; order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .stat span { font-size: .875rem; }
}

@media (max-width: 640px) {
  .header-cta { padding: .625rem .875rem; font-size: .875rem; }
  .card-art { height: 160px; }
  .grid-3, .stats { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .offer-card { padding: 1.75rem 1.25rem; }
  .card { padding: 1.375rem; }
  .cal-body { grid-template-columns: 1fr; }
  .cal-events { height: 116px; }
  .consent-inner { padding: 1rem; }
  .consent-text { min-width: 0; } /* sem isso o banner estoura em 320px */
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .consent { left: .5rem; right: .5rem; bottom: .5rem; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-c { grid-column: span 2; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 148px; }
  .comp-list li { grid-template-columns: 5.25rem 1fr 1.75rem; }
  .hero-ctas .btn { width: 100%; }
}

/* =========================================================
   Paginas legais (/politica-privacidade e /termos-de-uso)
   ========================================================= */
.legal h1 { margin-bottom: .5rem; }
.legal h2 {
  font-size: 1.375rem; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid hsl(var(--border));
}
.legal p { color: hsl(var(--foreground)); }
.legal .lead { font-size: .9375rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.legal-list { display: grid; gap: .625rem; margin: 0 0 1rem; }
.legal-list li { display: flex; gap: .625rem; align-items: flex-start; }
.legal-list li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: .65rem;
  background: hsl(var(--primary)); border-radius: 50%;
}

.error-page { padding: 7rem 0; }

/* =========================================================
   Depoimentos — carrossel infinito de uma linha so
   ========================================================= */
.carousel { position: relative; }

.carousel-track {
  display: flex; gap: 1rem;
  overflow-x: auto; overflow-y: hidden;
  /* Respiro nas pontas para o cartao nao colar na borda da tela */
  padding: .5rem max(1.25rem, calc((100% - 80rem) / 2 + 1.25rem)) 1.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;              /* a barra some: quem navega usa swipe ou as setas */
  list-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: -3px; border-radius: var(--radius); }
/* Enquanto o dedo/mouse arrasta, o snap atrapalha o loop infinito */
.carousel-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }

/* Cartao de depoimento: so o espaco do video */
.testi {
  flex: 0 0 clamp(13.5rem, 62vw, 16.5rem);
  aspect-ratio: 4 / 5;
  min-width: 0; overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.testi-play {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.testi-play[disabled] { cursor: default; }
.testi-thumb {
  position: absolute; inset: 0; display: block;
  /* Sem capa ainda: gradiente da marca. Troque por background-image no HTML. */
  background:
    radial-gradient(20rem 16rem at 30% 22%, hsl(var(--lilac)), transparent 70%),
    linear-gradient(150deg, hsl(var(--primary) / .92), hsl(var(--accent) / .88));
  background-size: cover; background-position: center;
}
.testi-play-ico {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .94); color: hsl(var(--primary-strong));
  box-shadow: var(--shadow-md); padding-left: 4px;
  transition: transform .2s ease;
}
.testi-play:hover .testi-play-ico { transform: translate(-50%, -50%) scale(1.08); }
.testi-play[disabled] .testi-play-ico { opacity: .55; }
.testi-frame { position: relative; width: 100%; height: 100%; background: #000; }
.testi-frame iframe, .testi-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Setas — acima do carrossel, para nao taparem a foto e o nome do aluno */
.carousel-controls { display: flex; justify-content: flex-end; gap: .5rem; margin: -1.5rem 0 1rem; }
.carousel-nav {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--surface)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: 50%;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.carousel-nav:hover { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); transform: scale(1.06); }

/* Degrade nas pontas: deixa claro que a lista continua para os lados. */
.carousel::before, .carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4rem; z-index: 2;
  pointer-events: none;
}
.carousel::before { left: 0; background: linear-gradient(90deg, hsl(var(--card)), transparent); }
.carousel::after { right: 0; background: linear-gradient(270deg, hsl(var(--card)), transparent); }

@media (max-width: 640px) {
  /* No celular o swipe e o gesto natural; as setas viram peso morto. */
  .carousel-controls { display: none; }
  .carousel::before, .carousel::after { width: 1.5rem; }
}

/* Modal do video */
.video-modal {
  width: min(56rem, 92vw); padding: 0; border: 0; background: transparent;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(2, 37, 50, .78); }
.video-modal-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.video-modal-frame iframe, .video-modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -3.25rem; right: 0; z-index: 2;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--surface)); color: hsl(var(--foreground));
  border: 0; border-radius: 50%; cursor: pointer;
}
@media (max-width: 640px) {
  .video-modal-close { top: -3rem; right: 50%; transform: translateX(50%); }
}

/* =========================================================
   Garantia
   ========================================================= */
.guarantee { background: hsl(var(--card)); border-block: 1px solid hsl(var(--border)); }
.guarantee-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: center;
  max-width: 60rem; margin: 0 auto; padding: 2.5rem;
  background: hsl(var(--surface)); border: 1px solid hsl(var(--border));
  border-radius: 1.5rem; box-shadow: var(--shadow-lg);
}
.guarantee-seal { width: 180px; height: auto; flex: none; }
.guarantee-copy { min-width: 0; } /* sem isso o texto estoura a coluna em 320px */
.guarantee-copy h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
.guarantee-copy > p { margin: 0; font-size: 1.0625rem; color: hsl(var(--muted-foreground)); }

@media (max-width: 900px) {
  .guarantee-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.5rem; padding: 2rem 1.5rem; }
}
@media (max-width: 640px) {
  .guarantee-seal { width: 140px; }
}

/* =========================================================
   Benefícios: baú que abre enquanto os cards se empilham
   ========================================================= */
.benefits {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(258 78% 55%));
  color: #fff;
  padding: 0;
  border-block: 0;
}
/* A "pista": altura extra que dá espaço de rolagem para a animação acontecer.
   O JavaScript ajusta esse valor conforme a quantidade de cards. */
.benefits-track { height: 320vh; }
.benefits-sticky {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  /* O cabecalho tambem e fixo: sem esta folga ele cobre o titulo da secao */
  padding-top: var(--header-h);
  box-sizing: border-box;
}
.benefits-inner { width: 100%; padding-block: 3rem; }

.benefits-head { text-align: center; margin-bottom: 2.5rem; }
.benefits-head h2 { color: #fff; margin-bottom: .5rem; }
.eyebrow-claro { color: hsl(var(--lemon)); }
.benefits-progresso {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.benefits-cols {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.5rem; align-items: center;
}

/* ---- Baú ---- */
.chest-wrap { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.chest { width: min(27rem, 100%); height: auto; overflow: visible; }
.chest [data-chest-cover] { transition: transform .45s cubic-bezier(.34, 1.3, .5, 1); }
.chest [data-chest-treasure],
.chest [data-chest-glow],
.chest [data-chest-sparks],
.chest [data-chest-lock] { transition: opacity .45s ease, transform .45s ease; }
.chest-legenda {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  color: rgba(255, 255, 255, .8); transition: color .3s ease;
}

/* ---- Linha de progressão + pilha de cards ----
   Os cards são posicionados por JS (translateY + opacidade). Nada muda de
   altura: a descrição fica sempre visível e o card seguinte simplesmente
   cobre a parte de baixo do anterior, deixando só o título à mostra. */
.perks-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; }
.perks-rail { position: relative; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.perks-rail-fill {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-radius: 3px; background: hsl(var(--lemon));
  transition: height .35s ease;
}
.perks-marca {
  position: absolute; left: 50%; width: 13px; height: 13px; margin-left: -6.5px;
  border-radius: 50%; background: hsl(258 40% 42%);
  box-shadow: 0 0 0 3px hsl(258 62% 55%);
  transition: background-color .35s ease, transform .35s ease;
}
.perks-marca.is-on { background: hsl(var(--lemon)); transform: scale(1.15); }

.perks { position: relative; height: 30rem; list-style: none; margin: 0; padding: 0; }
.perk {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 1.25rem 1.5rem;
  /* Fundo opaco de proposito: com cartao translucido, a descricao do cartao de
     baixo aparecia por transparencia e a pilha virava um borrao de texto. */
  background: hsl(258 58% 48%);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px -14px rgba(2, 37, 50, .55);
  will-change: transform, opacity;
}
.perk h3 { font-size: 1.0625rem; color: #fff; margin: 0; }
.perk p {
  margin: .375rem 0 0; font-size: .9375rem; line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}
/* O card da vez so muda de cor, nunca de tamanho */
.perk.is-aberto {
  background: hsl(258 62% 56%);
  border-color: rgba(255, 255, 255, .45);
}

@media (max-width: 900px) {
  .benefits-cols { grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
  .chest { width: min(15rem, 68%); }
  .benefits-head { margin-bottom: 1.5rem; }
  .perks-wrap { width: 100%; }
  .perks { height: 26rem; }
}
@media (max-width: 640px) {
  /* O conteudo precisa caber numa tela de celular, senao o bloco sticky
     escorrega em vez de ficar parado enquanto a animacao acontece. */
  .benefits-inner { padding-block: 1.25rem; }
  .benefits-head { margin-bottom: 1rem; }
  .chest { width: min(11rem, 54%); }
  .chest-legenda { font-size: .8125rem; }
  .perks { height: 23rem; }
  .perks-wrap { gap: .875rem; }
  .perk { padding: .875rem 1.125rem; }
  .perk h3 { font-size: .9375rem; }
  .perk p { font-size: .875rem; }
}

/* Sem animação: tudo aberto, cards em grade normal, nada de pista de rolagem */
@media (prefers-reduced-motion: reduce) {
  .benefits-track { height: auto; }
  .benefits-sticky { position: static; min-height: 0; }
  .perks { position: static; height: auto; display: grid; gap: .75rem; }
  .perk { position: static; transform: none !important; opacity: 1 !important; }
  .perks-rail { display: none; }
}

/* =========================================================
   Oferta em duas colunas
   ========================================================= */
.offer-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem; align-items: center;
}
/* Só o título na esquerda, em corpo grande: é o que equilibra o peso do card */
.offer-pitch h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin: 0; }

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .offer-pitch { text-align: center; }
}
