/* Valor da Marcha · versão 2. Noite azul, Fraunces nos títulos, Inter no texto. */

:root {
  --noite: #071021;
  --noite-2: #0c1a33;
  --noite-3: #13264a;
  --linha: rgba(173, 196, 235, .16);
  --texto: #c9d6ec;
  --texto-2: #93a5c4;
  --branco: #f2f6fd;
  --azul: #3b82f6;
  --azul-hover: #2f6fe0;
  --azul-claro: #93c5fd;
  --ui-bg: #ffffff;
  --ui-ink: #0f1b33;
  --ui-text: #33415c;
  --ui-muted: #5d6b85;
  --ui-line: #e1e7f0;
  --ui-soft: #f4f7fc;
  --serif: Fraunces, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: #2a3d63 var(--noite); accent-color: var(--azul); caret-color: var(--azul-claro); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--noite); color: var(--texto); font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 16px; top: -60px; background: #1d4ed8; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 30; }
.pular:focus { top: 12px; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--branco); letter-spacing: -0.02em; text-wrap: balance; font-optical-sizing: auto; }
.largura { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.botao { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, transform .15s; }
.botao:hover { background: #1d4ed8; }
.botao:active { transform: scale(.98); }
.botao-p { height: 38px; padding: 0 16px; font-size: 14px; }
.botao-g { height: 52px; padding: 0 26px; font-size: 16px; }
.link { color: var(--branco); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(242, 246, 253, .35); transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: currentColor; }

/* Topo */
.topo { position: absolute; inset: 0 0 auto; z-index: 10; }
.topo-in { display: flex; align-items: center; gap: 36px; height: 76px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--branco); text-decoration: none; white-space: nowrap; }
.marca svg { width: 28px; height: 28px; }
.topo nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.topo nav a { text-decoration: none; color: var(--branco); }
.topo nav a:hover { color: var(--branco); }

/* Hero: texto à esquerda, o cavalo olhando para ele */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(100svh, 880px); }
.hero-texto { align-self: center; padding: 140px 56px 96px max(28px, calc((100vw - 1240px) / 2 + 28px)); }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); line-height: 1.02; max-width: 12ch; }
.hero-apoio { margin-top: 28px; font-size: 19px; line-height: 1.55; max-width: 34em; color: var(--texto); }
.hero-acoes { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-foto { position: relative; overflow: hidden; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
.hero-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--noite) 0%, rgba(7, 16, 33, 0) 28%), linear-gradient(180deg, rgba(7, 16, 33, .78) 0%, rgba(7, 16, 33, 0) 22%); }

/* Estação */
.estacao { padding: 128px 0; background: var(--noite-2); }
.estacao h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.08; max-width: 18ch; }
.apoio { margin-top: 18px; font-size: 18px; color: var(--texto-2); max-width: 40em; }
.etapas { margin-top: 64px; display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.etapas-lista { display: grid; gap: 4px; counter-reset: etapa; }
.etapas-lista button {
  counter-increment: etapa;
  display: grid; grid-template-columns: 36px 1fr; column-gap: 8px; text-align: left;
  background: transparent; border: 0; border-radius: 12px; padding: 16px 18px; cursor: pointer;
  transition: background-color .2s;
}
.etapas-lista button::before { content: counter(etapa); grid-row: span 2; font-family: var(--serif); font-size: 22px; line-height: 1.1; color: var(--texto-2); transition: color .2s; }
.etapas-lista button:hover { background: rgba(255, 255, 255, .04); }
.etapas-lista button[aria-selected="true"] { background: var(--noite-3); }
.etapas-lista button[aria-selected="true"]::before { color: var(--azul-claro); }
.e-t { font-weight: 600; color: var(--branco); font-size: 17px; }
.e-s { font-size: 14px; color: var(--texto-2); line-height: 1.45; }
.etapas-palco { min-height: 440px; }

/* Telas do app: réplica em ../app-ui.css */
.etapa-painel { animation: entra .45s cubic-bezier(.16, 1, .3, 1); }
.etapa-painel .vm-janela { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -20px rgba(0, 0, 0, .6); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

/* Frase */
.frase { padding: 136px 0; }
.frase p { font-family: var(--serif); font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--texto-2); max-width: 24ch; text-wrap: balance; }
.frase span { color: var(--branco); }

/* O haras */
.haras { padding: 0 0 136px; }
.haras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.haras-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; border-radius: 16px; }
.haras h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.08; }
.lista { margin-top: 36px; }
.lista > div { padding: 20px 0; border-top: 1px solid var(--linha); }
.lista dt { font-weight: 600; color: var(--branco); font-size: 17px; }
.lista dd { margin-top: 4px; color: var(--texto); }

/* Perguntas */
.perguntas { padding: 128px 0; background: var(--noite-2); }
.perg-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.perguntas h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.08; }
.perg details { border-top: 1px solid var(--linha); }
.perg details:last-child { border-bottom: 1px solid var(--linha); }
.perg summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; color: var(--branco); font-size: 17px; }
.perg summary::-webkit-details-marker { display: none; }
.perg summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--azul-claro); border-bottom: 2px solid var(--azul-claro); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.perg details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.perg summary:hover { color: #fff; }
.perg details p { padding: 0 40px 22px 0; color: var(--texto); max-width: 60ch; }

/* Final */
.final { padding: 128px 0; background: #1d4ed8; color: #eaf1ff; }
.final-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.final h2 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 1.04; }
.final p { font-size: 18px; max-width: 30em; }
.final .botao { margin-top: 28px; background: #fff; color: #0b1730; }
.final .botao:hover { background: #e8efff; }

/* Rodapé */
.rodape { padding: 48px 0 40px; font-size: 14px; color: var(--texto-2); }
.rodape-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.marca-txt { color: var(--branco); font-weight: 500; }
.rodape ul { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--branco); }
.aviso { background: #fde68a; color: #422006; padding: 4px 10px; border-radius: 6px; font-weight: 500; }
.legal { margin-top: 28px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.legal a { text-decoration: underline; color: var(--texto); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .etapa-painel { animation: none; }
}

@media (max-width: 1024px) {
  .topo nav { display: none; }
  .topo-in .botao-p { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-foto { order: -1; height: 56vw; max-height: 520px; }
  .hero-foto::after { background: linear-gradient(0deg, var(--noite) 0%, rgba(7, 16, 33, 0) 35%), linear-gradient(180deg, rgba(7, 16, 33, .7) 0%, rgba(7, 16, 33, 0) 30%); }
  .hero-texto { padding: 8px 28px 96px; }
  .hero h1 { max-width: 14ch; }
  .etapas { grid-template-columns: 1fr; gap: 24px; }
  .etapas-lista { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .etapas-lista button { scroll-snap-align: start; }
  .haras-grid, .perg-grid, .final-in { grid-template-columns: 1fr; gap: 40px; }
  .haras-foto img { aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  .largura { padding: 0 16px; }
  .marca { font-size: 15px; }
  .botao-p { padding: 0 12px; font-size: 13px; }
  .hero-foto { height: 72vw; }
  .hero-texto { padding: 0 16px 72px; }
  .hero-apoio { font-size: 17px; }
  .hero-acoes { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-acoes .link { text-align: center; }
  .estacao, .perguntas, .final { padding: 88px 0; }
  .frase { padding: 96px 0; }
  .haras { padding-bottom: 96px; }
  .etapas { margin-top: 40px; }
  .etapas-lista { grid-auto-columns: 74%; }
  .e-s { font-size: 13px; }
  .final .botao { width: 100%; }
  .legal { flex-direction: column; }
}
