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

html {
  scroll-behavior: auto;
  overflow-x: clip;
  max-width: 100%;
}

body.home-editorial {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  line-height: 1.55;
}

body.home-editorial::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.home-shell {
  position: relative;
  z-index: 3;
  padding-left: var(--rail-w);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Rail lateral — paginação editorial */
.scroll-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-right: 1px solid var(--border);
  background: rgba(230, 220, 195, 0.72);
  backdrop-filter: blur(12px);
}

.scroll-rail a {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(45, 41, 38, 0.38);
  padding: 4px 0;
  transition: color 200ms ease;
}

.scroll-rail a::after {
  content: '';
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 220ms ease;
  transform: translateY(-50%);
}

.scroll-rail a.is-active {
  color: var(--ink);
}

.scroll-rail a.is-active::after {
  width: 28px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 240ms ease, box-shadow 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(230, 220, 195, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
}

.brand-issue {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.site-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 180ms ease;
}

.site-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream-soft);
}

.btn-primary:hover {
  background: #1f1c19;
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(45, 41, 38, 0.04);
}

.btn-gold {
  background: var(--gold);
  color: var(--cream-soft);
}

.btn-gold:hover {
  background: #95805f;
}

.btn-lg { padding: 15px 28px; font-size: 14px; }
.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Seções */
.home-section {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 72px) 96px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 14ch;
}

/* Seções 02+ — título em largura total (quebra em telas estreitas) */
.home-section--light .section-title {
  max-width: none;
  width: 100%;
  line-height: 1.12;
  font-size: clamp(22px, 4.8vw, 58px);
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .home-section--light .section-title {
    line-height: 1.04;
  }
}

.home-section--light .section-title--compact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: none;
}

@media (max-width: 767px) {
  .home-section--light .section-title {
    font-size: clamp(22px, 6.8vw, 32px);
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
}

.section-lead {
  max-width: 56ch;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 32px;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(140px, 0.42fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  overflow: hidden;
}

.hero-copy,
.hero-visual,
.hero-scroll-row {
  position: relative;
  z-index: 2;
}

/* Overlay 3D — tamanho/posição controlados via JS por seção */
.home-three-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  max-width: none;
  margin: 0;
  transform: none;
  pointer-events: none;
  z-index: 6;
  opacity: 0.78;
  overflow: hidden;
  contain: layout paint;
  will-change: top, left, width, height, opacity;
}

.home-three-stage-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(90, 143, 98, 0.22) 0%,
    rgba(139, 105, 20, 0.14) 42%,
    transparent 72%
  );
  filter: blur(10px);
  opacity: 0.72;
  transition:
    background 0.6s ease,
    opacity 0.5s ease,
    filter 0.5s ease;
  animation: wave-glow-pulse 4.8s ease-in-out infinite;
}

@keyframes wave-glow-pulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.03);
    opacity: 0.92;
  }
}

.home-three-stage[data-tier='xl'] .home-three-stage-glow {
  filter: blur(14px);
  opacity: 0.92;
}

.home-three-stage[data-tier='lg'] .home-three-stage-glow {
  filter: blur(12px);
  opacity: 0.86;
}

.home-three-stage[data-tier='md'] .home-three-stage-glow {
  filter: blur(10px);
  opacity: 0.8;
}

.home-three-stage[data-tier='sm'] .home-three-stage-glow,
.home-three-stage[data-tier='xs'] .home-three-stage-glow {
  filter: blur(7px);
  opacity: 0.78;
}

@media (prefers-reduced-motion: reduce) {
  .home-three-stage-glow {
    animation: none;
  }
}

#three-canvas-host {
  position: absolute;
  inset: -12%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

#three-canvas-host canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

html.home-3d-ready #three-canvas-host {
  opacity: 1;
}

html.home-3d-loading .home-three-stage-glow {
  opacity: 0.76;
}

body[data-three-section='questions'] .home-three-stage-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(107, 143, 113, 0.44) 0%,
    rgba(139, 175, 120, 0.26) 42%,
    rgba(228, 255, 74, 0.1) 56%,
    transparent 74%
  );
  opacity: 0.92;
}

body[data-three-section='questions'] .home-three-stage[data-tier='xs'] .home-three-stage-glow {
  filter: blur(9px);
  opacity: 0.94;
}

body[data-three-section='features'] .home-three-stage-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(90, 143, 98, 0.34) 0%,
    rgba(160, 120, 74, 0.2) 45%,
    transparent 72%
  );
  opacity: 0.9;
}

body[data-three-section='news'] .home-three-stage-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(74, 107, 82, 0.26) 0%,
    rgba(107, 78, 61, 0.16) 46%,
    transparent 72%
  );
}

body[data-three-section='plans'] .home-three-stage-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(111, 175, 120, 0.48) 0%,
    rgba(139, 105, 20, 0.28) 38%,
    rgba(228, 255, 74, 0.1) 52%,
    transparent 76%
  );
  opacity: 1;
  filter: blur(14px);
}

body[data-three-section='faq'] .home-three-stage-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(90, 143, 98, 0.44) 0%,
    rgba(74, 107, 82, 0.26) 40%,
    rgba(228, 255, 74, 0.08) 54%,
    transparent 76%
  );
  opacity: 1;
  filter: blur(14px);
}

body[data-three-section='plans'] .home-three-stage,
body[data-three-section='faq'] .home-three-stage {
  opacity: 1;
}

body[data-three-section='plans'] .home-three-stage[data-tier='xl'],
body[data-three-section='faq'] .home-three-stage[data-tier='xl'] {
  opacity: 1;
}

body[data-three-section='hero'] .home-three-stage-glow {
  border-radius: 0;
  background: radial-gradient(
    ellipse 96% 78% at 50% 50%,
    rgba(90, 143, 98, 0.16) 0%,
    rgba(228, 255, 74, 0.08) 42%,
    transparent 76%
  );
}

body[data-three-section='enem'] .home-three-stage {
  opacity: 0.96;
}

body[data-three-section='enem'] .home-three-stage-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(228, 255, 74, 0.52) 0%,
    rgba(45, 212, 240, 0.34) 38%,
    rgba(26, 26, 26, 0.12) 55%,
    transparent 76%
  );
  opacity: 1;
  filter: blur(6px);
}

body[data-three-section='enem'] .home-three-stage[data-tier='xl'] .home-three-stage-glow {
  filter: blur(10px);
  opacity: 1;
}

.scroll-down-btn--inline {
  position: relative;
  left: auto;
  bottom: auto;
}

.hero-scroll-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(12px, 3vh, 28px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-kicker::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding-right: clamp(2.4em, 11vw, 4em);
  padding-bottom: clamp(0.28em, 1.6vw, 0.55em);
}

.hero-display {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-script {
  position: absolute;
  left: calc(100% - 0.18em);
  right: auto;
  bottom: -0.02em;
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(34px, 5.6vw, 88px);
  font-weight: 400;
  color: var(--gold);
  transform: rotate(-5deg) translate(0.14em, 0.22em);
  transform-origin: left bottom;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.hero-lead {
  max-width: 48ch;
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.step-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(240, 234, 216, 0.55);
}

.step-index {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0;
}

.step-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(240, 234, 216, 0.55);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card span {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Marcador de posição da animação 3D por seção */
.section-three-slot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: stretch;
  pointer-events: none;
  z-index: 1;
  justify-self: end;
  flex-shrink: 0;
}

[data-three-anchor='hero'].section-three-slot {
  width: clamp(140px, 20vw, 280px);
  height: clamp(140px, 20vw, 280px);
  min-height: 0;
}

[data-three-anchor='questions'].section-three-slot {
  width: clamp(92px, 14vw, 124px);
  height: clamp(92px, 14vw, 124px);
}

[data-three-anchor='features'].section-three-slot {
  width: clamp(240px, 31vw, 380px);
  height: clamp(240px, 31vw, 380px);
  min-height: clamp(240px, 31vw, 380px);
}

[data-three-anchor='news'].section-three-slot {
  width: clamp(200px, 26vw, 300px);
  height: clamp(200px, 26vw, 300px);
}

[data-three-anchor='plans'].section-three-slot {
  width: clamp(220px, 28vw, 340px);
  height: clamp(220px, 28vw, 340px);
}

[data-three-anchor='faq'].section-three-slot {
  width: clamp(180px, 24vw, 280px);
  height: clamp(180px, 24vw, 280px);
}

.section-three-shadow {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 50%;
  border: none;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.section-three-slot.is-three-active .section-three-shadow {
  opacity: 0;
  transform: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Âncora 3D em tela cheia — planos e FAQ */
.section-three-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.plans-section [data-three-anchor='plans'].section-three-slot,
.faq-section [data-three-anchor='faq'].section-three-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  justify-self: auto;
}

.plans-section-backdrop::before,
.faq-section-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.plans-section-backdrop::before {
  background: radial-gradient(
    ellipse 85% 70% at 72% 42%,
    rgba(45, 212, 240, 0.07) 0%,
    rgba(228, 255, 74, 0.05) 38%,
    transparent 72%
  );
}

.faq-section-backdrop::before {
  background: radial-gradient(
    ellipse 80% 68% at 28% 48%,
    rgba(45, 212, 240, 0.06) 0%,
    rgba(228, 255, 74, 0.05) 40%,
    transparent 72%
  );
}

.scroll-down-btn {
  position: absolute;
  left: 0;
  bottom: 12%;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(240, 234, 216, 0.72);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 200ms ease, border-color 200ms ease;
}

.scroll-down-btn:hover {
  transform: translateY(3px);
  border-color: var(--ink);
}

.scroll-down-btn svg {
  width: 18px;
  height: 18px;
}

.hero-scroll-row .scroll-down-btn {
  position: relative;
  left: auto;
  bottom: auto;
  margin: 0;
}

/* Banco de questões */
.questions-section {
  min-height: auto;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 72px;
  background: linear-gradient(180deg, transparent, rgba(221, 211, 188, 0.45));
  position: relative;
}

.questions-top {
  position: relative;
  margin-bottom: 18px;
  padding-right: clamp(96px, 12vw, 132px);
}

.questions-top .section-title--compact {
  margin-bottom: 0;
}

.questions-visual {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

.questions-top [data-three-anchor='questions'].section-three-slot {
  position: absolute;
  top: 0;
  right: 0;
}

.questions-section .section-title--compact {
  margin-bottom: 0;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 12px;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.question-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(240, 234, 216, 0.62);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.question-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.question-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.question-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.question-link {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.questions-cta-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Funcionalidades */
.features-section {
  min-height: auto;
  padding-bottom: clamp(72px, 10vh, 96px);
  position: relative;
}

.features-section .section-label {
  color: var(--hero-blue);
}

.features-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.5vh, 24px);
  position: relative;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.features-intro {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding-right: clamp(96px, 12vw, 140px);
  box-sizing: border-box;
}

.features-visual {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.features-header [data-three-anchor='features'].section-three-slot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(148px, 16vw, 228px);
  height: clamp(148px, 16vw, 228px);
  min-height: auto;
}

.features-intro .section-title {
  margin-bottom: 12px;
}

.features-intro .section-lead {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
}

.feature-panel {
  height: auto;
  padding: clamp(22px, 3vh, 30px) clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--olive-border);
  border-radius: calc(var(--radius) + 4px);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 16px);
  box-sizing: border-box;
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.feature-panel:hover {
  border-color: var(--olive);
  background: rgba(255, 252, 245, 0.6);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-panel-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.8vw, 22px);
}

.feature-index {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--olive);
}

.feature-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.18;
}

.feature-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.6vw, 15px);
  line-height: 1.55;
}

.feature-panel p strong {
  color: var(--ink);
  font-weight: 700;
}

.feature-panel ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  flex-shrink: 0;
}

.feature-panel li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(13px, 1.5vw, 14.5px);
  line-height: 1.42;
  color: var(--ink-soft);
}

.feature-panel li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.36em;
  width: 7px;
  height: 10px;
  background: var(--hero-blue);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.features-hint {
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Notícias */
.news-section {
  background: var(--cream-deep);
  position: relative;
}

.news-header {
  position: relative;
  margin-bottom: 36px;
  padding-right: clamp(96px, 12vw, 140px);
  box-sizing: border-box;
}

.news-intro {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
}

.news-intro .section-lead {
  margin-bottom: 0;
}

.news-visual {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

.news-visual-bg {
  display: none;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(240, 234, 216, 0.8);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.news-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.news-featured h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.08;
}

.news-excerpt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.news-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.news-meta .sep {
  width: 1px;
  height: 2em;
  background: var(--border-strong);
}

.news-card-sm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(240, 234, 216, 0.65);
  transition: transform 200ms ease, border-color 200ms ease;
}

.news-card-sm:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.news-card-sm h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.news-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Planos */
.plans-section {
  position: relative;
  overflow: hidden;
}

.plans-header {
  margin-bottom: 36px;
  position: relative;
}

.plans-intro {
  position: relative;
  max-width: none;
  width: 100%;
}

.plans-intro .section-lead {
  margin-bottom: 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 36px) clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(245, 240, 230, 0.34);
  border-radius: 28px;
  background: rgba(30, 30, 30, 0.92);
  color: var(--hero-text);
}

.pricing-card.featured {
  border-color: transparent;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.plan-tag {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-lime);
}

.pricing-card.featured .plan-tag {
  color: #1899bd;
}

.pricing-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-name-short {
  display: none;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-block small {
  font-size: 14px;
  opacity: 0.8;
}

.price-original {
  display: inline-flex;
  width: fit-content;
  color: var(--neon-cyan);
  font-size: 14px;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.pricing-card.featured .price-original {
  color: #1899bd;
}

.price-block strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.pricing-card ul {
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.pricing-card li {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.82);
}

.pricing-card.featured li {
  color: var(--ink-soft);
}

.plan-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.plan-cta--lime {
  background: var(--neon-lime);
  color: #1a1a1a;
}

.plan-cta--cyan {
  background: #6ccbe8;
  color: #123240;
}

.plan-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}


/* Planos — variante dark (referência) */
.plans-section--dark {
  background: var(--hero-bg);
  color: var(--hero-text);
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.plans-section--dark .section-label {
  color: var(--neon-cyan);
}

.plans-section--dark .section-title {
  max-width: none;
  width: 100%;
  color: var(--hero-text);
  line-height: 1.04;
  font-size: clamp(30px, 4.8vw, 58px);
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.plans-section--dark .section-lead {
  color: var(--neon-cyan);
}

.plans-deco {
  position: absolute;
  top: 34%;
  right: clamp(-140px, -6vw, -40px);
  width: clamp(280px, 30vw, 520px);
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1080px) {
  .plans-deco {
    display: none;
  }
}

/* Planos — tablet e mobile */
@media (max-width: 1080px) {
  .home-three-stage {
    max-width: none;
  }

  .features-header,
  .news-header,
  .plans-header,
  .faq-header,
  .questions-top {
    position: relative;
  }

  .features-header [data-three-anchor='features'].section-three-slot,
  .news-header [data-three-anchor='news'].section-three-slot {
    position: absolute;
    top: 0;
    right: 0;
    transform: none;
    min-height: auto;
    justify-self: auto;
  }

  .features-visual {
    top: 0;
    right: 0;
    transform: none;
  }

  .questions-top {
    padding-right: clamp(88px, 22vw, 120px);
  }

  .questions-top [data-three-anchor='questions'].section-three-slot {
    position: absolute;
    top: 0;
    right: 0;
  }

  .plans-section.home-section {
    min-height: auto;
    padding-bottom: clamp(72px, 12vh, 96px);
  }

  .news-header,
  .faq-header {
    grid-template-columns: 1fr;
    position: relative;
  }

  .news-intro,
  .faq-intro {
    max-width: none;
  }

  .plans-header {
    margin-bottom: clamp(24px, 5vw, 32px);
    position: relative;
  }

  .plans-intro {
    max-width: none;
  }

  .plans-intro .section-title {
    max-width: none;
    line-height: 1.02;
    margin-bottom: 14px;
  }

  .plans-intro .section-lead {
    font-size: clamp(15px, 3.4vw, 17px);
    line-height: 1.55;
    max-width: 42ch;
  }

  .plans-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 3vw, 18px);
    max-width: min(100%, 540px);
    margin-inline: auto;
  }

  .pricing-card {
    gap: 14px;
    padding: clamp(22px, 4.5vw, 28px) clamp(20px, 4vw, 26px);
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  }

  .pricing-card h3 {
    font-size: clamp(24px, 5.5vw, 28px);
  }

  .price-block strong {
    font-size: clamp(30px, 6.8vw, 34px);
  }

  .pricing-card li {
    font-size: clamp(14px, 3.2vw, 15px);
    line-height: 1.5;
  }

  .pricing-card .plan-cta {
    min-height: 48px;
    font-size: clamp(13px, 3.2vw, 14px);
  }
}

@media (max-width: 900px) {
  .pricing-card--mentoria {
    display: none;
  }
}

@media (max-width: 767px) {
  .plans-intro {
    padding-right: 0;
  }

  .plans-intro .section-title {
    font-size: clamp(26px, 8.2vw, 34px);
  }

  .plans-intro .section-lead {
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
  }

  .plans-grid {
    max-width: none;
    gap: 12px;
  }

  .pricing-card {
    padding: 20px 18px;
    border-radius: calc(var(--radius) - 2px);
  }

  .plan-tag {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .pricing-card h3 {
    font-size: clamp(22px, 6.4vw, 26px);
  }

  .price-block {
    gap: 6px;
  }

  .price-block small {
    font-size: 11px;
    line-height: 1.35;
  }

  .price-block strong {
    font-size: clamp(26px, 7.4vw, 30px);
  }

  .pricing-card ul {
    gap: 8px;
  }

  .pricing-card li {
    font-size: 14px;
    line-height: 1.48;
  }

  .pricing-card.featured {
    box-shadow: 0 10px 32px rgba(45, 41, 38, 0.14);
  }
}

/* FAQ + CTA */
.faq-section {
  position: relative;
  overflow: hidden;
}

.faq-header {
  margin-bottom: 28px;
}

.faq-intro .section-title {
  margin-bottom: 0;
}

.faq-intro {
  width: 100%;
  max-width: none;
}


/* FAQ — variante dark (referência) */
.faq-section--dark {
  background: var(--hero-bg);
  color: var(--hero-text);
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.faq-section--dark .section-label {
  color: rgba(245, 240, 230, 0.72);
}

.faq-section--dark .section-title {
  max-width: none;
  width: 100%;
  color: var(--hero-text);
  line-height: 1.04;
  font-size: clamp(30px, 4.8vw, 58px);
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  margin-bottom: 14px;
}

.faq-section--dark .section-lead {
  color: var(--neon-cyan);
  margin-bottom: 0;
}

.faq-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
}

.faq-item {
  border: 1px solid rgba(228, 255, 74, 0.6);
  border-radius: 18px;
  background: rgba(30, 30, 30, 0.85);
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--neon-lime);
  background: rgba(35, 36, 30, 0.9);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px clamp(18px, 3vw, 26px);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--neon-lime);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 0;
  padding: 0 clamp(18px, 3vw, 26px) 20px;
  color: rgba(228, 255, 74, 0.82);
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 1.65;
  max-width: 90ch;
}

.cta-band {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 7vw, 72px);
  padding: clamp(28px, 4.5vw, 46px) clamp(22px, 4.5vw, 52px);
  border: 1px solid rgba(45, 212, 240, 0.65);
  border-radius: 22px;
  background: rgba(30, 30, 30, 0.85);
  color: var(--hero-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--neon-cyan);
}

.cta-band p {
  margin: 0;
  max-width: 58ch;
  color: rgba(245, 240, 230, 0.82);
}

.cta-band-btn {
  margin-top: 0;
  min-width: 220px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cta-band-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Footer */
.site-footer {
  padding: 48px clamp(20px, 5vw, 72px) 64px;
  border-top: 1px solid var(--border);
}

/* Footer — dark (referência) */
.site-footer--dark {
  position: relative;
  z-index: 8;
  padding: clamp(44px, 6vw, 68px) clamp(20px, 5vw, 72px) 36px;
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  background: var(--hero-bg);
  color: var(--hero-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.footer-col-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-lime);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-footer--dark .brand-text strong {
  color: var(--neon-lime);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.14em;
}

.footer-col {
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  align-content: start;
}

.footer-col a {
  color: rgba(245, 240, 230, 0.8);
  transition: color 140ms ease;
}

.footer-col a:hover {
  color: var(--neon-lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(28px, 5vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(245, 240, 230, 0.1);
}

.footer-company {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.72);
}

.footer-company-name {
  font-weight: 700;
  color: rgba(245, 240, 230, 0.92);
}

.footer-company-sep {
  color: rgba(245, 240, 230, 0.35);
}

.footer-company-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(245, 240, 230, 0.86);
  font-variant-numeric: tabular-nums;
  transition: color 140ms ease;
}

.footer-company-wa svg {
  flex-shrink: 0;
  color: #25d366;
}

.footer-company-wa:hover {
  color: var(--neon-lime);
}

.footer-copy {
  margin: 0;
  /* respiro para o balão flutuante do chat (canto inferior direito) */
  padding-right: 84px;
  font-size: 14px;
  text-align: right;
  color: var(--neon-lime);
}

/* Tablet: logo em cima, links em 2 colunas */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(26px, 5vw, 40px);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile: 1 coluna */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-company {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-company-sep {
    display: none;
  }

  .footer-copy {
    text-align: left;
    padding-right: 0;
  }
}


/* Header + menu — tablet e mobile */
@media (max-width: 1080px) {
  :root {
    --rail-w: 0px;
  }

  .scroll-rail {
    display: none;
  }

  .site-header {
    left: 0;
    padding-inline: clamp(18px, 4.5vw, 32px);
  }

  .home-shell {
    padding-left: 0;
  }

  .home-section {
    padding-inline: clamp(22px, 5vw, 44px);
  }

  .site-footer {
    padding-inline: clamp(22px, 5vw, 44px);
  }

  .header-tools {
    margin-left: auto;
    gap: 10px;
  }

  .header-tools .btn-primary {
    padding: 10px 16px;
    font-size: 12px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px clamp(18px, 4.5vw, 32px) 24px;
    background: rgba(236, 228, 205, 0.99);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms ease, opacity 240ms ease;
    z-index: 49;
  }

  .site-nav a {
    display: block;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-sm) + 2px);
    transition:
      background 180ms ease,
      border-color 180ms ease,
      color 180ms ease,
      transform 120ms ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(45, 41, 38, 0.08);
    border-color: var(--border);
    color: var(--ink);
  }

  .site-nav a:active {
    background: rgba(45, 41, 38, 0.13);
    transform: scale(0.992);
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Responsivo — tablet */
@media (max-width: 1080px) and (min-width: 768px) {
  [data-three-anchor='hero'].section-three-slot {
    width: clamp(120px, 18vw, 220px);
    height: clamp(120px, 18vw, 220px);
    min-height: 0;
  }

  [data-three-anchor='features'].section-three-slot {
    width: clamp(200px, 28vw, 300px);
    height: clamp(200px, 28vw, 300px);
    min-height: clamp(200px, 28vw, 300px);
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-featured {
    grid-row: auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .hero-steps {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .step-card {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 8px 8px 8px 6px;
  }

  .step-card strong {
    font-size: 13px;
  }

  .hero-title-wrap {
    padding-right: clamp(2.2em, 14vw, 3.4em);
    padding-bottom: 0.38em;
  }

  .hero-script {
    font-size: clamp(30px, 5.2vw, 64px);
    transform: rotate(-5deg) translate(0.1em, 0.26em);
  }

}

/* Responsivo — mobile */
@media (max-width: 767px) {
  #three-canvas-host {
    inset: -6%;
  }

  .features-section {
    padding-bottom: 48px;
  }

  .features-intro {
    max-width: none;
    padding-right: 0;
  }

  .home-three-stage[data-tier='xl'] {
    opacity: 0.58;
  }

  .home-three-stage[data-tier='lg'],
  .home-three-stage[data-tier='md'] {
    opacity: 0.48;
  }

  .home-three-stage[data-tier='xs'] {
    opacity: 0.82;
  }

  .site-header {
    padding-inline: clamp(16px, 5vw, 24px);
  }

  .home-section {
    padding-inline: clamp(18px, 5.5vw, 28px);
  }

  .site-footer {
    padding-inline: clamp(18px, 5.5vw, 28px);
  }

  .site-nav {
    padding-inline: clamp(16px, 5vw, 24px);
  }

  .header-tools {
    gap: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-visual {
    position: absolute;
    right: clamp(14px, 5vw, 24px);
    top: calc(var(--header-h) + clamp(20px, 4vh, 48px));
    width: clamp(128px, 34vw, 196px);
    height: clamp(128px, 34vw, 196px);
    min-height: 0;
  }

  .hero-title-wrap {
    padding-right: clamp(2.2em, 15vw, 3.2em);
    padding-bottom: 0.38em;
  }

  .hero-script {
    font-size: clamp(32px, 11vw, 52px);
    transform: rotate(-5deg) translate(0.12em, 0.22em);
  }

  .features-header,
  .news-header,
  .plans-header,
  .faq-header {
    grid-template-columns: 1fr;
  }

  [data-three-anchor='features'].section-three-slot {
    width: clamp(108px, 24vw, 152px);
    height: clamp(108px, 24vw, 152px);
  }

  [data-three-anchor='news'].section-three-slot {
    width: clamp(96px, 22vw, 140px);
    height: clamp(96px, 22vw, 140px);
  }

  .questions-top {
    padding-right: 0;
  }

  .questions-title-row {
    flex-wrap: wrap;
    align-items: center;
  }

  .questions-top [data-three-anchor='questions'].section-three-slot {
    width: clamp(72px, 18vw, 96px);
    height: clamp(72px, 18vw, 96px);
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-featured {
    grid-row: auto;
  }

  .plan-name-full {
    display: none;
  }

  .plan-name-short {
    display: block;
  }

  .hero-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .step-card {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 8px 6px;
    gap: 6px;
  }

  .step-index {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .step-card strong {
    font-size: clamp(11px, 3.2vw, 13px);
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .questions-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    flex-basis: min(84vw, 340px);
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =============================================================================
   Home híbrida — hero dark + seções cream (vestibular + ENEM)
   ============================================================================= */

body.home-hybrid {
  background: var(--cream);
}

body.home-hybrid::before {
  opacity: 0.04;
}

.home-section--light {
  background: var(--cream);
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.home-section.hero--dark {
  background: var(--hero-bg);
  color: var(--hero-text);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: clamp(16px, 3vh, 28px);
  overflow: hidden;
}

.hero--dark .hero-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.hero--dark .hero-scroll-row {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: clamp(12px, 2vh, 20px);
}

/* Hero — oculto até GSAP assumir (evita flick antes da entrada) */
html.hero-intro-pending #hero .hero-kicker,
html.hero-intro-pending #hero .hero-headline,
html.hero-intro-pending #hero .hero-lead,
html.hero-intro-pending #hero .hero-cta-row,
html.hero-intro-pending #hero .hero-steps,
html.hero-intro-pending #hero .hero-scroll-row {
  opacity: 0;
  visibility: hidden;
}

html.hero-intro-ready #hero .hero-kicker,
html.hero-intro-ready #hero .hero-headline,
html.hero-intro-ready #hero .hero-lead,
html.hero-intro-ready #hero .hero-cta-row,
html.hero-intro-ready #hero .hero-steps,
html.hero-intro-ready #hero .hero-scroll-row {
  visibility: visible;
}

/* Hero dark — 70% copy no fluxo · 30% animação absolute (não desloca texto) */
@media (min-width: 768px) {
  .hero--dark {
    display: flex;
    flex-direction: column;
  }

  .hero--dark .hero-copy {
    position: relative;
    z-index: 2;
    width: 70%;
    max-width: 70%;
    padding-right: clamp(12px, 2vw, 24px);
    justify-content: center;
  }

  .hero--dark .hero-headline,
  .hero--dark .hero-lead {
    max-width: 100%;
  }

  .hero--dark .hero-visual {
    position: absolute;
    inset: calc(var(--header-h) + 12px) 0 calc(clamp(16px, 3vh, 28px) + 68px) 0;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
  }

  .hero--dark [data-three-anchor='hero'].section-three-slot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-height: 0;
  }

  .hero--dark .hero-scroll-row {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
    margin-top: auto;
    padding-top: clamp(12px, 2vh, 20px);
    justify-content: center;
  }
}

.section-divider {
  height: 80px;
  margin-top: -1px;
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--cream) 100%);
}

/* Rail dark sobre hero */
.scroll-rail--dark {
  background: rgba(26, 26, 26, 0.82);
  border-right-color: rgba(255, 255, 255, 0.08);
}

.scroll-rail--dark a {
  color: rgba(245, 240, 230, 0.35);
}

.scroll-rail--dark a.is-active {
  color: var(--neon-lime);
}

.scroll-rail--dark a.is-active::after {
  background: var(--neon-lime);
}

/* Header sobre hero */
.site-header--hero:not(.site-header--light):not(.is-scrolled) .brand-mark {
  border-color: rgba(228, 255, 74, 0.42);
  color: var(--neon-lime);
}

.site-header--hero:not(.site-header--light):not(.is-scrolled) .brand-text strong {
  color: var(--neon-lime);
}

.site-header--hero:not(.site-header--light):not(.is-scrolled) .site-nav a {
  color: var(--hero-text);
}

.site-header--hero:not(.site-header--light):not(.is-scrolled) .brand-issue {
  color: var(--neon-cyan);
}

.site-header--hero:not(.site-header--light):not(.is-scrolled) .menu-toggle span {
  background: var(--hero-text);
}

.site-header.is-scrolled,
.site-header--light {
  background: rgba(240, 234, 216, 0.92) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.site-header.is-scrolled .brand-mark,
.site-header--light .brand-mark {
  border-color: rgba(107, 143, 113, 0.45);
  color: var(--sage);
}

.site-header.is-scrolled .brand-text strong,
.site-header--light .brand-text strong {
  color: var(--sage);
}

.site-header.is-scrolled .site-nav a,
.site-header--light .site-nav a {
  color: var(--ink-soft);
}

.site-header.is-scrolled .menu-toggle span,
.site-header--light .menu-toggle span {
  background: var(--ink);
}

/* Hero dark typography */
.hero--dark .hero-kicker {
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.hero--dark .hero-headline {
  margin-bottom: 16px;
}

.hero--dark .hero-kicker::before {
  background: var(--neon-lime);
}

.hero-headline {
  margin: 0 0 24px;
  max-width: min(100%, 22ch);
}

.hero--dark .hero-headline {
  max-width: min(100%, 26ch);
}

.hero--dark .hero-display {
  font-size: clamp(40px, 7.5vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--hero-text);
}

.hero--dark .hero-lead {
  color: var(--hero-muted);
  max-width: 54ch;
}

.hero--dark .hero-lead strong {
  color: var(--neon-lime);
}

.hero--dark .hero-steps {
  position: relative;
  z-index: 3;
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
}

.hero--dark .step-card {
  border-color: rgba(228, 255, 74, 0.28);
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 1;
  visibility: visible;
}

.hero--dark .step-index {
  border-color: rgba(228, 255, 74, 0.4);
  color: var(--neon-lime);
}

.hero--dark .step-card strong {
  color: var(--hero-text);
}

.hero--dark .scroll-down-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hero-text);
}

/* Botões neon */
.btn-neon {
  background: var(--neon-lime);
  color: #1a1a1a;
  font-weight: 800;
}

.btn-neon:hover {
  background: #d4f040;
  box-shadow: 0 0 32px rgba(228, 255, 74, 0.35);
}

.btn-hero-outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--hero-text);
  background: transparent;
}

.btn-hero-outline:hover {
  border-color: var(--neon-cyan);
  background: rgba(45, 212, 240, 0.08);
}

.btn-cyan {
  background: var(--neon-cyan);
  color: #0a1628;
  font-weight: 800;
}

.btn-cyan:hover {
  box-shadow: 0 0 28px rgba(45, 212, 240, 0.35);
}

.home-three-stage-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(228, 255, 74, 0.18) 0%,
    rgba(45, 212, 240, 0.12) 42%,
    transparent 72%
  ) !important;
}

/* Exam tracks */
.exam-tracks-section {
  min-height: min(100vh, 920px);
  padding-top: 48px;
  padding-bottom: 72px;
}

.exam-tracks-head {
  position: relative;
  margin-bottom: 28px;
  padding-right: clamp(80px, 12vw, 120px);
  box-sizing: border-box;
}

.exam-tracks-head-copy {
  width: 100%;
  max-width: none;
}

.exam-tracks-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(72px, 10vw, 108px);
  height: clamp(72px, 10vw, 108px);
  pointer-events: none;
}

[data-three-anchor='exam-tracks'].section-three-slot {
  width: clamp(72px, 10vw, 108px);
  height: clamp(72px, 10vw, 108px);
}

.exam-marquee {
  overflow: hidden;
  margin-bottom: 24px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.exam-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: exam-marquee 36s linear infinite;
}

.exam-marquee-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.exam-marquee:hover .exam-marquee-track {
  animation-play-state: paused;
}

.exam-marquee-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cream-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.exam-marquee-chip.is-soon {
  opacity: 0.55;
  border-style: dashed;
}

.exam-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.exam-track-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-soft);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.exam-track-card--soon {
  position: relative;
  overflow: hidden;
  border-style: dashed;
  background: rgba(240, 234, 216, 0.45);
  cursor: default;
  pointer-events: none;
}

.exam-track-card--soon strong,
.exam-track-card--soon > span:not(.exam-track-card__ribbon) {
  opacity: 0.78;
}

.exam-track-card__ribbon {
  position: absolute;
  top: 16px;
  right: -36px;
  z-index: 2;
  width: 140px;
  padding: 6px 0;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(45, 41, 38, 0.92), rgba(74, 67, 60, 0.88));
  color: var(--neon-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 12px rgba(45, 41, 38, 0.18);
  pointer-events: none;
  opacity: 1;
}

.exam-track-card:hover {
  border-color: var(--hero-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.exam-track-card strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.exam-track-card > span:not(.exam-track-card__ribbon) {
  font-size: 13px;
  color: var(--ink-muted);
}

@keyframes exam-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .exam-marquee-track {
    animation: none;
  }
}

.section-title--compact .section-badge {
  display: inline-flex;
  margin: 0 0 0 10px;
  flex-shrink: 0;
}

/* Badge ENEM na seção questões */
.section-badge {
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 10px;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a1628;
  background: var(--neon-cyan-dim);
  border: 1px solid rgba(45, 212, 240, 0.35);
  border-radius: 999px;
}

.questions-section {
  min-height: auto;
}

/* Trilha ENEM — faixa editorial inspirada no layout da campanha */
.enem-hub-section {
  position: relative;
  min-height: min(100vh, 900px);
  padding: clamp(42px, 6vh, 72px) clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  background: #087fbd;
  overflow: hidden;
}

.enem-hub-card {
  position: relative;
  width: min(100%, 1540px);
  min-height: clamp(540px, 72vh, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  background: #087fbd;
  overflow: hidden;
  isolation: isolate;
}

.enem-hub-content {
  position: relative;
  z-index: 4;
  align-self: center;
  padding: clamp(34px, 5.5vw, 86px) clamp(24px, 4.8vw, 76px);
}

.enem-hub-content .section-title {
  max-width: 10.4ch;
  margin-bottom: clamp(22px, 3vh, 34px);
  color: #f6eee4;
  font-size: clamp(42px, 5.1vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.enem-hub-content .section-lead {
  max-width: 43ch;
  margin-bottom: clamp(22px, 3vh, 34px);
  color: #e7ff48;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.38;
}

.enem-hub-content .section-label {
  margin-bottom: clamp(18px, 2.5vh, 28px);
  color: #e7ff48;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.enem-hub-bullets {
  margin: 0 0 clamp(28px, 4vh, 44px);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
}

.enem-hub-bullets li {
  color: #e7ff48;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.22;
}

.enem-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.enem-hub-actions .btn {
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.enem-hub-primary {
  color: #252b22;
  background: #e7ff20;
  border: 1px solid #e7ff20;
}

.enem-hub-primary:hover {
  color: #11150d;
  background: #f0ff70;
  border-color: #f0ff70;
}

.enem-hub-secondary {
  color: #e7ff48;
  background: transparent;
  border: 1px solid rgba(231, 255, 72, 0.78);
}

.enem-hub-secondary:hover {
  color: #087fbd;
  background: #e7ff48;
  border-color: #e7ff48;
}

.enem-hub-visual {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: clamp(540px, 72vh, 760px);
  margin: 0;
  overflow: hidden;
}

.enem-hub-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 49% 48%;
  transform: scale(1.045);
}

.enem-hub-photo-wedge {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 34%;
  background: #087fbd;
  clip-path: polygon(0 0, 78% 0, 24% 50%, 82% 100%, 0 100%);
  pointer-events: none;
  z-index: 2;
}

.enem-hub-photo-frame {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: clamp(300px, 31vw, 470px);
  height: clamp(460px, 49vw, 700px);
  display: block;
  overflow: visible;
  color: #087fbd;
  fill: currentColor;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (max-width: 820px) {
  .enem-hub-section {
    min-height: auto;
    padding: 0;
  }

  .enem-hub-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .enem-hub-content {
    padding: clamp(44px, 9vw, 72px) clamp(24px, 8vw, 60px) clamp(44px, 9vw, 64px);
  }

  .enem-hub-content .section-title {
    max-width: 12ch;
    font-size: clamp(38px, 9.5vw, 64px);
  }

  /* Tela pequena: sem a imagem — só as informações, mais compacto */
  .enem-hub-visual {
    display: none;
  }

  .exam-tracks-head {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .exam-tracks-visual {
    display: none;
  }

  .questions-top,
  .features-intro,
  .news-header,
  .plans-intro {
    padding-right: 0;
  }

  .section-title--compact .section-badge {
    display: inline-flex;
    margin: 0 0 0 8px;
    width: auto;
  }

  .hero--dark .hero-display {
    font-size: clamp(34px, 9vw, 52px);
  }
}

@media (max-width: 767px) {
  .home-three-stage {
    display: none !important;
  }

  .exam-marquee-track {
    animation: exam-marquee 32s linear infinite;
  }

  .section-three-slot:not(.exam-tracks-visual) {
    display: none;
  }
}

@media (max-width: 520px) {
  .enem-hub-content {
    padding: 48px 22px 36px;
  }

  .enem-hub-content .section-title {
    font-size: clamp(36px, 11.5vw, 52px);
    line-height: 1.02;
  }

  .enem-hub-content .section-lead {
    font-size: 16px;
  }

  .enem-hub-actions {
    flex-direction: column;
  }

  .enem-hub-actions .btn {
    width: 100%;
  }


}

body.home-no-motion .home-three-stage {
  display: none !important;
}

/* ── Banner "Reta Final ENEM" no hero ─────────────────────────────────── */
.hero-banner-reta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: -14px 0 32px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 255, 61, 0.45);
  background: linear-gradient(120deg, rgba(200, 255, 61, 0.14), rgba(111, 227, 168, 0.1));
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-banner-reta:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 255, 61, 0.9);
  box-shadow: 0 10px 30px rgba(200, 255, 61, 0.15);
}
.hero-banner-reta__tag {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b0b0b;
  background: linear-gradient(120deg, #c8ff3d, #6fe3a8);
  padding: 5px 9px;
  border-radius: 999px;
}
.hero-banner-reta__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-banner-reta__body strong { font-size: 0.98rem; line-height: 1.2; }
.hero-banner-reta__body span { font-size: 0.82rem; line-height: 1.35; opacity: 0.8; }
.hero-banner-reta__arrow { flex: 0 0 auto; font-size: 1.2rem; font-weight: 700; color: #c8ff3d; }
@media (max-width: 640px) {
  .hero-banner-reta { border-radius: 18px; align-items: flex-start; }
  .hero-banner-reta__tag { margin-top: 2px; }
}

/* Menu mobile — painel sempre claro com texto escuro, independente do estado do
   header. Sobre o hero, os links herdavam a cor clara do hero e ficavam "brancos"
   em cima do painel bege. */
@media (max-width: 1080px) {
  .site-header .site-nav,
  .site-header--hero:not(.site-header--light):not(.is-scrolled) .site-nav {
    background: rgba(240, 234, 216, 0.99);
    border-bottom: 1px solid rgba(45, 41, 38, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  .site-header .site-nav a,
  .site-header--hero:not(.site-header--light):not(.is-scrolled) .site-nav a,
  .site-header.is-scrolled .site-nav a,
  .site-header--light .site-nav a {
    color: var(--ink);
  }

  .site-header .site-nav a:hover,
  .site-header .site-nav a:focus-visible,
  .site-header--hero:not(.site-header--light):not(.is-scrolled) .site-nav a:hover,
  .site-header--hero:not(.site-header--light):not(.is-scrolled) .site-nav a:focus-visible {
    background: rgba(45, 41, 38, 0.08);
    border-color: var(--border);
    color: var(--ink);
  }
}
