:root {
  --navy-950: #0a1b30;
  --navy-800: #122b4d;
  --navy-700: #1b3e6e;
  --gold-500: #c0982e;
  --gold-700: #8a6a14; /* dourado mais escuro, só sobre fundo claro */
  --gold-300: #dec172;
  --cream-50: #f8f4ea;
  --cream-100: #f1eada;
  --ink-900: #151b23;
  --slate-500: #5c6b80;
  --red-muted: #8e4a42;
  --line-hair: rgba(21, 27, 35, 0.12);
  --shadow-soft: 0 20px 50px -25px rgba(10, 27, 48, 0.35);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.5;
}
h1,
h2,
h3,
.serif {
  font-family: "Fraunces", serif;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 500;
}
/* dourado mais escuro só sobre fundo claro (melhor leitura) */
.story .eyebrow,
.programs .eyebrow,
.book .eyebrow {
  color: var(--gold-700);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-hair);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}
header.scrolled {
  background: rgba(248, 244, 234, 0.98);
  box-shadow: 0 8px 24px -14px rgba(10, 27, 48, 0.4);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo img {
  height: 40px;
  width: auto;
  max-width: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-800);
}
/* Sublinhado que se desenha */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right; /* ao sair, a linha some pela direita */
  transition: transform 0.3s ease;
}
nav a:hover::after,
nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left; /* ao entrar, ela cresce da esquerda */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: rgba(248, 244, 234, 0.4);
  color: var(--cream-50);
}
.btn-outline-dark {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-nav {
  background: var(--navy-950);
  color: var(--cream-50);
  padding: 10px 20px;
  font-size: 13.5px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}
.btn-nav:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-1px);
}

/* Botão hambúrguer (escondido no desktop) */
#btn-mobile {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--navy-800);
  cursor: pointer;
  position: relative;
  z-index: 1000; /* fica acima do menu aberto, para o X aparecer */
  -webkit-tap-highlight-color: transparent;
}
#btn-mobile:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* Barra de progresso da rolagem */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transform: scaleX(var(--progresso, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--navy-950);
  color: var(--cream-50);
  position: relative;
  overflow: hidden;
  padding: 0; /* anula o padding de 96px que vem de "section" */
}
.hero-inner {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: flex;
  align-items: center;
}
/* Foto de fundo, de ponta a ponta */
.hero-bg {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* mantém o Vitor visível ao cortar nas laterais */
}
/* Degradê à esquerda (texto) + fade embaixo (emenda com o gráfico) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 27, 48, 0) 70%, var(--navy-950) 100%),
    linear-gradient(
      90deg,
      rgba(10, 27, 48, 0.96) 0%,
      rgba(10, 27, 48, 0.88) 28%,
      rgba(10, 27, 48, 0.45) 50%,
      rgba(10, 27, 48, 0) 70%
    );
}
/* Texto: alinhado com a margem do container do site */
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 72px 32px 72px max(32px, calc((100vw - 1120px) / 2 + 32px));
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  margin: 18px 0 22px;
  max-width: 11.5ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-300);
}
.hero p.lead {
  font-size: 17.5px;
  color: #c9d2df;
  max-width: 44ch;
  margin: 0 0 34px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---------- Gráfico ---------- */
.chart-strip {
  background: var(--navy-950);
  border-top: 1px solid rgba(248, 244, 234, 0.12);
  padding: 28px 0 30px;
}
.chart-strip .wrap {
  max-width: 1120px;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-grid line {
  stroke: rgba(248, 244, 234, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.chart-queda {
  fill: none;
  stroke: #c4675b;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}
.chart-subida {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
}
.chart-dot {
  stroke: var(--navy-950);
  stroke-width: 3;
}
.dot-inicio {
  fill: #c4675b;
}
.dot-virada {
  fill: var(--gold-300);
}
.dot-hoje {
  fill: var(--gold-500);
}
.chart-pulse {
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.chart-caption {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #8fa0bc;
  letter-spacing: 0.04em;
}
.chart-caption span:nth-child(2) {
  text-align: center;
}
.chart-caption span:nth-child(3) {
  text-align: right;
}
.chart-caption span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--gold-500);
}
.chart-caption span:nth-child(1)::before {
  background: #c4675b;
}

/* Animação (só ativa quando o JS adiciona a classe .anim) */
.chart-strip.anim .chart-queda,
.chart-strip.anim .chart-subida {
  stroke-dashoffset: 1;
}
.chart-strip.anim .chart-area,
.chart-strip.anim .chart-dot {
  opacity: 0;
}

.chart-strip.anim.is-visible .chart-queda {
  animation: chart-draw 1.4s ease-out forwards;
}
.chart-strip.anim.is-visible .chart-subida {
  animation: chart-draw 1.4s ease-out 1.3s forwards;
}
.chart-strip.anim.is-visible .dot-inicio {
  animation: chart-fade 0.4s ease forwards;
}
.chart-strip.anim.is-visible .dot-virada {
  animation: chart-fade 0.4s ease 1.2s forwards;
}
.chart-strip.anim.is-visible .chart-area {
  animation: chart-fade 1s ease 2s forwards;
}
.chart-strip.anim.is-visible .dot-hoje {
  animation: chart-fade 0.4s ease 2.6s forwards;
}
.chart-strip.anim.is-visible .chart-pulse {
  animation: chart-pulse 2.4s ease-out 2.8s infinite;
}

@keyframes chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes chart-fade {
  to {
    opacity: 1;
  }
}
@keyframes chart-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* ---------- SECTION BASE ---------- */
section {
  padding: 96px 0;
}
/* âncoras não ficam escondidas atrás do menu fixo */
section[id] {
  scroll-margin-top: 80px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  margin: 14px 0 0;
  line-height: 1.15;
}

/* ---------- STORY ---------- */
.story {
  background: var(--cream-50);
}
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
blockquote {
  margin: 0 0 28px;
  padding-left: 22px;
  border-left: 2px solid var(--gold-500);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy-900, #152036);
}
.story-text p {
  font-size: 16px;
  color: #3b4552;
  margin: 0 0 16px;
}
.story-sig {
  margin-top: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- CREDENTIALS ---------- */
.credentials {
  background: var(--navy-950);
  color: var(--cream-50);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(248, 244, 234, 0.14);
  border: 1px solid rgba(248, 244, 234, 0.14);
}
.cred-card {
  background: var(--navy-950);
  padding: 32px 28px;
}
.cred-card .mono {
  font-size: 11.5px;
  color: var(--gold-300);
  display: block;
  margin-bottom: 14px;
}
.cred-card h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.3;
}
.cred-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: #b9c4d6;
}
.cred-card li {
  margin-bottom: 6px;
}

/* ---------- PROGRAMS ---------- */
.programs {
  background: var(--cream-100);
}
.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.prog-card {
  background: var(--cream-50);
  border: 1px solid var(--line-hair);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.prog-card.featured {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-soft);
}
.prog-tag {
  position: absolute;
  top: 0;
  right: 34px;
  transform: translateY(-50%);
  background: var(--gold-500);
  color: var(--navy-950);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  padding: 5px 10px;
  letter-spacing: 0.06em;
}
.prog-card h3 {
  font-size: 23px;
  font-weight: 500;
  margin: 0;
}
.prog-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--slate-500);
}
.prog-card p.desc {
  font-size: 15px;
  color: #3b4552;
  margin: 0;
}
.prog-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 14.5px;
  color: #3b4552;
}
.prog-card ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 9px;
}
.prog-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-500);
}
.prog-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--navy-950);
  color: var(--cream-50);
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.test-card {
  border: 1px solid rgba(248, 244, 234, 0.18);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.test-avatar-foto {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
}
.test-text {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: #c9d2df;
}
.test-autor strong {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--cream-50);
}
.test-autor span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* ---------- BOOK ---------- */
.book {
  background: var(--cream-50);
}
.book-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 56px;
  align-items: center;
}
.book-cover {
  aspect-ratio: 3/4.4;
  border: 1px solid var(--gold-500);
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-copy h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
}
.book-copy .subtitle {
  font-size: 15px;
  color: var(--slate-500);
  margin: 0 0 18px;
  font-style: italic;
}
.book-copy p {
  font-size: 15.5px;
  color: #3b4552;
  max-width: 56ch;
}
.book-temas {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
  color: #3b4552;
}
.book-temas li {
  padding-left: 22px;
  position: relative;
}
.book-temas li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-500);
}
.book-frase {
  margin: 22px 0 0;
  font-size: 19px;
}
.book-frase cite {
  display: block;
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--navy-950);
  color: var(--cream-50);
  text-align: left;
  padding: 110px 0;
  position: relative;
}
.final-cta h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  max-width: 18ch;
  margin: 16px 0 14px;
}
.final-cta p {
  color: #aebad0;
  max-width: 48ch;
  margin: 0 0 32px;
  font-size: 16px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.cta-form {
  background: rgba(248, 244, 234, 0.06);
  border: 1px solid rgba(248, 244, 234, 0.18);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-form h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
}
.cta-form label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 8px;
}
.cta-form input[type="text"],
.cta-form input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 2px;
  border: 1px solid rgba(248, 244, 234, 0.25);
  background: rgba(248, 244, 234, 0.08);
  color: var(--cream-50);
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
}
.cta-form input::placeholder {
  color: #8fa0bc;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--gold-500);
}
.cta-form .cta-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #aebad0;
}
.cta-consent input {
  margin-top: 3px;
  accent-color: var(--gold-500);
}
.cta-form .btn {
  margin-top: 18px;
  justify-content: center;
  width: 100%;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy-950);
  color: #aebad0;
  border-top: 3px solid var(--gold-500);
  padding: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}
/* logo do rodapé */
.footer-brand .brand.brand-logo {
  display: flex;
  width: fit-content;
  margin-bottom: 22px;
}
.footer-brand .brand.brand-logo img {
  height: 40px;
  width: auto;
}
.footer-brand p {
  font-family: "Fraunces", serif;
  font-size: 20px;
  line-height: 1.3;
  color: var(--cream-50);
  margin: 0 0 22px;
  max-width: 22ch;
}
.footer-brand p em {
  color: var(--gold-300);
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248, 244, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-50);
  text-decoration: none;
  font-size: 17px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.footer-social a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}
.footer-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 14.5px;
  color: #aebad0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--gold-300);
}
.footer-bottom {
  border-top: 1px solid rgba(248, 244, 234, 0.12);
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8fa0bc;
}
.footer-bottom a {
  color: var(--gold-300);
  text-decoration: none;
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
  z-index: 40;
}

/* ---------- Abertura ---------- */
.abertura {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--navy-950);
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}
html.com-abertura .abertura {
  display: flex;
}
html.com-abertura body {
  overflow: hidden; /* trava a rolagem enquanto a abertura está na tela */
}
.abertura.saiu {
  opacity: 0;
  visibility: hidden;
}
.abertura-inner {
  text-align: center;
  padding: 0 24px;
}
.abertura-grafico {
  width: min(300px, 70vw);
  height: auto;
  margin-bottom: 22px;
  overflow: visible;
}
.ab-queda,
.ab-subida {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ab-queda {
  stroke: #c4675b;
  stroke-width: 2.5;
  animation: ab-draw 0.9s ease-out 0.2s forwards;
}
.ab-subida {
  stroke: var(--gold-500);
  stroke-width: 3.5;
  animation: ab-draw 0.9s ease-out 1.1s forwards;
}
.abertura-nome {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(26px, 5vw, 38px);
  color: var(--cream-50);
  opacity: 0;
  transform: translateY(10px);
  animation: ab-nome 0.8s ease 0.9s forwards;
}
.abertura-nome em {
  color: var(--gold-300);
  font-weight: 500;
}
@keyframes ab-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ab-nome {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   CELULAR E TABLET (até 860px) — tudo reunido aqui
   ===================================================== */
@media (max-width: 860px) {
  section {
    padding: 64px 0;
  }

  /* Menu / cabeçalho */
  .nav-inner {
    padding: 12px 20px;
  }
  .brand-logo img {
    height: 32px;
  }
  /* sem backdrop-filter no mobile: ele prende o menu "fixed" dentro do header */
  header,
  header.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--cream-50);
  }
  #btn-mobile {
    display: block;
  }
  #btn-mobile.aberto {
    color: var(--cream-50); /* X claro sobre o fundo azul */
  }
  #btn-mobile i {
    transition: transform 0.3s ease;
  }
  #btn-mobile.aberto i {
    transform: rotate(90deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-950);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    visibility: hidden; /* menu fechado fica fora do alcance do teclado */
    transition:
      right 0.3s ease,
      visibility 0s linear 0.3s;
    z-index: 999;
  }
  .nav-links.active {
    right: 0;
    visibility: visible;
    transition:
      right 0.3s ease,
      visibility 0s;
  }
  .nav-links nav ul {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .nav-links nav a {
    color: var(--cream-50);
    font-size: 1.2rem;
  }
  .nav-links nav a.is-active {
    color: var(--gold-300);
  }
  .nav-links .btn-nav {
    background: var(--gold-500);
    color: var(--navy-950);
  }

  /* links entram um a um */
  .nav-links nav li,
  .nav-links .btn-nav {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }
  .nav-links.active nav li,
  .nav-links.active .btn-nav {
    opacity: 1;
    transform: none;
  }
  .nav-links.active nav li:nth-child(1) {
    transition-delay: 0.15s;
  }
  .nav-links.active nav li:nth-child(2) {
    transition-delay: 0.22s;
  }
  .nav-links.active nav li:nth-child(3) {
    transition-delay: 0.29s;
  }
  .nav-links.active nav li:nth-child(4) {
    transition-delay: 0.36s;
  }
  .nav-links.active .btn-nav {
    transition-delay: 0.45s;
  }

  /* Hero: foto em cima, texto embaixo */
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-bg {
    position: relative;
    inset: auto;
    height: 300px;
  }
  .hero-bg img {
    object-position: 72% center;
  }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(10, 27, 48, 0) 55%,
      var(--navy-950) 100%
    );
  }
  .hero-copy {
    padding: 8px 24px 48px;
  }

  /* Gráfico: legendas empilhadas */
  .chart-caption {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 12px;
  }
  .chart-caption span:nth-child(2),
  .chart-caption span:nth-child(3) {
    text-align: left;
  }

  /* Seções em uma coluna */
  .story-grid,
  .book-grid,
  .cred-grid,
  .test-grid,
  .prog-grid {
    grid-template-columns: 1fr;
  }

  /* Contato */
  .final-cta {
    padding: 72px 0;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Rodapé */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-top: 48px;
    padding-bottom: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1; /* marca ocupa a linha inteira em cima */
  }
  .footer-brand .brand.brand-logo img {
    height: 36px;
  }
  .footer-brand p {
    max-width: none;
  }
  .footer-col:last-child {
    grid-column: 1 / -1; /* Contato ocupa a linha inteira embaixo */
  }
  .footer-col a {
    overflow-wrap: anywhere;
  }
  /* créditos empilhados e com folga para o botão do WhatsApp */
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 96px;
  }
}

/* telas bem estreitas: rodapé em uma coluna */
@media (max-width: 420px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  nav a::after,
  .nav-links nav li,
  .nav-links .btn-nav,
  #btn-mobile i {
    transition: none;
  }
}
