*, *::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-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;
}

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

.home-doctor-hex-stage {
  position: fixed;
  right: 56px;
  bottom: 28px;
  width: 299px;
  height: 368px;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  transform: translate3d(calc(100% + 96px), 0, 0);
  transition:
    transform 900ms cubic-bezier(0.18, 0.9, 0.22, 1),
    opacity 420ms ease;
  will-change: transform, opacity;
}

.home-doctor-hex-stage.is-ready.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-doctor-hex-stage canvas {
  display: block;
}

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(111, 175, 120, 0.14) 0%,
    rgba(139, 105, 20, 0.08) 38%,
    transparent 72%
  );
}

.faq-section-backdrop::before {
  background: radial-gradient(
    ellipse 80% 68% at 28% 48%,
    rgba(90, 143, 98, 0.12) 0%,
    rgba(74, 107, 82, 0.07) 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-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(20px, 2.8vh, 28px) clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(240, 234, 216, 0.72);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 14px);
  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(--border-strong);
  background: rgba(255, 252, 245, 0.88);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.feature-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.08;
}

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

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

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

.feature-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.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 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(240, 234, 216, 0.82);
}

.pricing-card.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream-soft);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.plan-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.pricing-card.featured .plan-tag {
  color: var(--gold-light);
}

.pricing-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

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

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

.price-block small {
  font-size: 12px;
  opacity: 0.72;
  letter-spacing: 0.06em;
}

.price-block strong {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

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

.pricing-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.pricing-card.featured li::before {
  color: var(--gold-light);
}

.pricing-card.featured .btn-outline {
  border-color: rgba(240, 234, 216, 0.35);
  color: var(--cream-soft);
  background: transparent;
}

.pricing-card.featured .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cream-soft);
}

.pricing-card:not(.featured) .btn-outline {
  border-color: var(--border-strong);
  color: var(--ink);
  background: rgba(255, 252, 245, 0.94);
}

.pricing-card:not(.featured) .btn-outline:hover {
  background: rgba(45, 41, 38, 0.06);
  border-color: var(--ink);
}

.pricing-card .btn {
  margin-top: auto;
}

/* 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;
    border-width: 2px;
    box-shadow: 0 14px 42px rgba(45, 41, 38, 0.16);
  }

  .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;
    padding-left: 20px;
  }

  .pricing-card .btn {
    min-height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
    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-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(240, 234, 216, 0.82);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
}

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

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.cta-band {
  margin-top: 72px;
  padding: 48px clamp(24px, 5vw, 56px);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(45, 41, 38, 0.96), rgba(74, 67, 60, 0.92));
  color: var(--cream-soft);
  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(28px, 4vw, 40px);
}

.cta-band p {
  margin: 0;
  max-width: 48ch;
  opacity: 0.86;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-copy {
  width: 100%;
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(45, 41, 38, 0.55);
}

/* 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(230, 220, 195, 0.97);
    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;
}

/* ENEM hub — layout tipo hero: 70% conteúdo · 30% animação absolute */
.enem-hub-section {
  position: relative;
  min-height: min(100vh, 880px);
  padding-top: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(48px, 7vh, 72px);
  overflow: hidden;
}

.enem-hub-card {
  position: relative;
  z-index: 2;
  width: 70%;
  max-width: 70%;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid rgba(45, 212, 240, 0.35);
  background: linear-gradient(135deg, rgba(45, 212, 240, 0.08), rgba(228, 255, 74, 0.06));
  overflow: hidden;
  animation: enem-glow 4s ease-in-out infinite;
}

.enem-hub-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(45, 212, 240, 0.15), transparent 60%);
  pointer-events: none;
}

.enem-hub-content {
  position: relative;
  z-index: 1;
}

.enem-hub-content .section-title {
  max-width: none;
  width: 100%;
}

.enem-hub-content .section-lead {
  max-width: 100%;
}

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

.enem-hub-bullets {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.enem-hub-bullets li {
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
}

.enem-hub-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
}

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

.enem-hub-visual {
  position: absolute;
  left: 70%;
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  height: clamp(320px, 44vh, 480px);
  max-height: calc(100% - 32px);
  margin: 0;
  pointer-events: none;
  z-index: 1;
}

.enem-hub-visual::before {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(228, 255, 74, 0.28) 0%,
    rgba(45, 212, 240, 0.18) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

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

@keyframes enem-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(45, 212, 240, 0); }
  50% { box-shadow: 0 0 40px rgba(45, 212, 240, 0.12); }
}

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

  .enem-hub-card {
    width: 100%;
    max-width: 100%;
  }

  .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,
  .home-doctor-hex-stage {
    display: none !important;
  }

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

  .enem-hub-visual {
    display: none;
  }

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

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