/* Identidade do modelo do cliente (referencias/LP-model-3.html): vermelho profundo,
   dourado e creme, Bricolage Grotesque nos títulos e Inter no corpo. Look único de
   propósito — não segue o esquema claro/escuro do sistema. Pares de contraste
   verificados com bin/contraste e registrados em SPEC.md § Design. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* marca */
  --red-900: #3E0910; --red-800: #5C0D18; --red-700: #8A1122; --red-600: #A8152B; --red-500: #C21B34;
  --gold-500: #F0BC2C; --gold-300: #F7DA8E;
  --cream: #F4E9CC; --white: #FBF4E4; --ink: #2A1509;

  /* papéis — fundo vermelho */
  --bg: var(--red-800);
  --fg: var(--white);              /* 12.56:1 sobre bg */
  --muted: var(--gold-300);        /* 10.08:1 sobre bg, 12.29:1 sobre red-900 */
  --border: rgba(247, 218, 142, .25);
  --accent: var(--gold-500);       /* 7.82:1 sobre bg */
  --accent-fg: var(--red-900);     /* 9.54:1 sobre gold-500 */

  /* papéis — cartão creme (formulário, agenda, sucesso) */
  --surface: var(--cream);
  --surface-fg: var(--ink);        /* 14.36:1 sobre creme */
  --surface-muted: #6b5a3e;        /* 5.50:1 sobre creme */
  --surface-title: var(--red-800); /* 11.39:1 sobre creme */
  --border-forte: var(--red-700);  /* 7.96:1 sobre creme */
  --campo-bg: var(--white);
  --ok: #14633b;                   /* 6.04:1 sobre creme */
  --erro: var(--red-700);          /* 7.96:1 sobre creme */

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.5rem;  --text-2xl: 1.953rem;

  --space-1: .25rem; --space-2: .5rem;  --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem;   --space-12: 3rem;  --space-16: 4rem;

  --radius: 6px;
  --radius-pill: 999px;
  --max: 45rem;      /* 720px, como o modelo */
  --toque: 44px;
}

/* ---------------------------------------------------------------- base */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--text-base)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 var(--space-3); }
h1 { font-size: clamp(2.125rem, 8vw, 3.25rem); line-height: 1.02; }
h2 { font-size: clamp(1.625rem, 6vw, 2.125rem); }
h3 { font-size: var(--text-base); }
p { margin: 0 0 var(--space-4); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.cartao :focus-visible, .campo :focus-visible { outline-color: var(--red-700); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-6); }

/* textura xadrez sutil do KV da marca */
.texture {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.12) 0 2px, transparent 2px 34px);
}

.apoio { color: var(--muted); }
.nota { color: var(--muted); font-size: var(--text-sm); }
.pendente { color: var(--gold-500); font-size: var(--text-sm); }
.cartao .apoio, .cartao .nota { color: var(--surface-muted); }
.cartao .pendente { color: var(--erro); }

.banner-mock {
  background: var(--gold-500);
  color: var(--red-900);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

/* ---------------------------------------------------------------- landing (passo 0) */

.hero-kv { width: 100%; }

.hero {
  position: relative;
  background: radial-gradient(120% 90% at 20% 0%, var(--red-600), var(--red-900) 75%);
  padding: var(--space-8) 0;
  overflow: hidden;
}
.eyebrow {
  display: inline-block;
  background: var(--gold-500);
  color: var(--red-900);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .02em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 0 0 var(--space-4);
}
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero .lead { font-size: 1.0625rem; max-width: 56ch; color: var(--gold-300); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-6) 0 0; }
.pill {
  border: 1px solid rgba(247, 218, 142, .5);
  color: var(--gold-300);
  font-size: .8125rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}

/* entrada única no carregamento, como no modelo — desligada para quem pediu menos movimento */
.rise { opacity: 0; transform: translateY(14px); animation: riseIn .6s ease forwards; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; animation: none; } }

.secao { padding: var(--space-12) 0; }
.tag { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; color: var(--gold-500); margin: 0 0 var(--space-3); }
.secao h2 { color: var(--white); margin-bottom: var(--space-4); }

.dossie {
  background: var(--cream);
  color: var(--ink);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.dossie .tag { color: var(--red-700); }
.dossie h2 { color: var(--red-800); }
.dossie p { max-width: 60ch; }
.villain { font-weight: 700; color: var(--red-700); }

.elements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: var(--space-8); }
@media (min-width: 560px) { .elements { grid-template-columns: repeat(4, 1fr); } }
.seal {
  background: var(--white);
  border: 2px solid var(--red-700);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.seal svg { width: 26px; height: 26px; stroke: var(--red-700); margin-bottom: 6px; }
.seal span { font-family: var(--font-display); font-weight: 700; font-size: .75rem; line-height: 1.15; color: var(--red-800); }

.how-divider { display: flex; align-items: center; justify-content: center; gap: 8px; margin: var(--space-4) 0 var(--space-6); }
.how-divider span { width: 8px; height: 8px; background: var(--gold-500); transform: rotate(45deg); }
.how-divider span:nth-child(2) { width: 11px; height: 11px; }
.how-divider::before, .how-divider::after { content: ""; flex: 1; max-width: 70px; height: 1px; background: rgba(247, 218, 142, .4); }

.steps-list { display: flex; flex-direction: column; gap: var(--space-6); }
.step-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: var(--space-6); border-bottom: 1px solid rgba(247, 218, 142, .2); }
.step-item:last-child { border-bottom: 0; padding-bottom: 0; }
.step-item-num {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-500); color: var(--red-900);
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem;
}
.step-item h3 { color: var(--white); margin-bottom: 5px; }
.step-item p { font-size: .9rem; color: var(--gold-300); margin: 0; }

.format-box { margin-top: var(--space-6); background: var(--red-700); border: 1px solid var(--gold-500); border-radius: 4px; padding: 14px 16px; }
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .875rem; }
.format-grid strong { display: block; font-family: var(--font-display); font-size: 1.1875rem; color: var(--white); }
.format-grid span { color: var(--gold-300); font-size: .84rem; }   /* 7.04:1 sobre red-700 */

.aviso-regra { background: var(--gold-500); color: var(--red-900); }
.aviso-regra h2 { color: var(--red-900); font-size: clamp(1.5rem, 5.5vw, 1.875rem); }
.aviso-regra p { max-width: 58ch; font-weight: 500; }
.stamp {
  display: inline-block;
  border: 2.5px solid var(--red-900);
  color: var(--red-900);
  font-family: var(--font-display); font-weight: 700; font-size: .8125rem;
  padding: 6px 14px; border-radius: 4px;
  transform: rotate(-2deg);
  margin-bottom: var(--space-4);
}

.site-footer { background: var(--red-900); padding: var(--space-8) 0 var(--space-12); text-align: center; }
.site-footer .logos { display: flex; justify-content: center; align-items: center; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-4); }
.site-footer .logos img { height: 38px; width: auto; }
.site-footer p { font-size: .8rem; color: var(--gold-300); margin-bottom: var(--space-2); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--red-900);
  border-top: 2px solid var(--gold-500);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; margin: 0; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* cabeçalho compacto dos passos e da página de reserva */
.app-header { padding: var(--space-4) 0 0; }
.brand { font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; color: var(--gold-500); text-decoration: none; margin: 0; }
.brand-sub { color: var(--gold-300); font-size: var(--text-sm); margin: 0; }

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--toque);
  padding: var(--space-3) var(--space-8);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  background: var(--gold-500);
  color: var(--red-900);
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--red-900);
  transition: transform .12s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-900); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-principal { width: 100%; margin-top: var(--space-4); }
.btn-secundario { background: transparent; color: var(--gold-500); box-shadow: none; }
.cartao .btn-secundario { color: var(--red-700); border-color: var(--red-700); }
.cartao .btn { box-shadow: 0 6px 0 var(--red-800); }
.cartao .btn:active { box-shadow: 0 2px 0 var(--red-800); }
.cartao .btn-secundario { box-shadow: none; }
.btn-pequeno { min-height: 36px; padding: var(--space-1) var(--space-3); font-size: var(--text-sm); }

.voltar {
  display: inline-flex; align-items: center;
  min-height: var(--toque);
  margin: 0 0 var(--space-2) calc(-1 * var(--space-2));
  padding: 0 var(--space-2);
  border: 0; background: none;
  color: var(--gold-300);
  font: inherit; font-weight: 600;
  cursor: pointer;
}

.acoes { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.acoes .btn { flex: 1 1 12rem; margin-top: 0; }

/* ---------------------------------------------------------------- passos (cartão creme) */

.app { padding-top: var(--space-4); padding-bottom: var(--space-12); }
.cartao {
  background: var(--surface);
  color: var(--surface-fg);
  border-radius: 10px;
  padding: var(--space-6) var(--space-4) var(--space-8);
  margin-top: var(--space-4);
}
.cartao .titulo-passo { color: var(--surface-title); font-size: clamp(1.625rem, 6vw, 2.125rem); }
.titulo-passo:focus { outline: none; }
.cartao h3 { color: var(--surface-title); }
.cartao .voltar { color: var(--red-700); }
.bloco { background: var(--white); border: 1px solid var(--border-forte); border-radius: var(--radius); padding: var(--space-4); margin-bottom: var(--space-6); }
.bloco p:last-child { margin-bottom: 0; }
.estado { padding: var(--space-4) 0; }
.estado h3 { font-size: var(--text-xl); }

/* ---------------------------------------------------------------- formulário */

.campo { margin-bottom: var(--space-4); }
.campo label { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"] {
  width: 100%;
  min-height: var(--toque);
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--border-forte);
  border-radius: var(--radius);
  background: var(--campo-bg);
  color: var(--surface-fg);
  font: inherit;
}
.campo input[aria-invalid="true"] { border-color: var(--erro); border-width: 2.5px; }

.campo-aceite { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-3); align-items: start; }
.campo-aceite input { width: 1.5rem; height: 1.5rem; margin: .15rem 0 0; accent-color: var(--red-700); }
.campo-aceite label { font-weight: 400; margin: 0; }
.campo-aceite .erro { grid-column: 1 / -1; }

.erro { color: var(--erro); font-weight: 600; font-size: var(--text-sm); margin: var(--space-1) 0 0; }
.aviso { padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); }
.aviso-erro { background: var(--white); border-left: 4px solid var(--erro); color: var(--surface-fg); }

fieldset.adulto { border: 1.5px solid var(--border-forte); border-radius: var(--radius); padding: var(--space-3) var(--space-4) 0; margin: 0 0 var(--space-4); }
fieldset.adulto legend { font-family: var(--font-display); font-weight: 700; color: var(--surface-title); padding: 0 var(--space-2); }

/* Honeypot: fora da tela, não display:none — robô esperto testa visibilidade. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- agenda */

.agenda { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.sessao {
  display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-3); align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(138, 17, 34, .2);
}
@media (min-width: 480px) { .sessao { grid-template-columns: 5rem 1fr; } }
.sessao-hora { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); font-variant-numeric: tabular-nums; color: var(--surface-title); }
.sessao-salas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.sessao-lotada .sessao-hora { color: var(--surface-muted); }

.sala {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: var(--toque);
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--border-forte);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--surface-fg);
  font: inherit; text-align: left;
  cursor: pointer;
}
.sala:hover:not(:disabled) { background: var(--gold-300); }
.sala-nome { font-weight: 600; }
.sala-vagas { font-size: var(--text-sm); color: var(--ok); font-weight: 600; }
.sala-ultimas .sala-vagas { color: var(--erro); }
.sala-lotada { background: transparent; border-color: rgba(138, 17, 34, .3); border-style: dashed; color: var(--surface-muted); cursor: default; }
.sala-lotada .sala-vagas { color: var(--surface-muted); font-weight: 400; }

/* ---------------------------------------------------------------- ingressos */

.contador {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(138, 17, 34, .2);
}
.contador-rotulo { font-weight: 600; }
.contador-controle { display: flex; align-items: center; gap: var(--space-2); }
.contador-controle output { min-width: 2.5rem; text-align: center; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.btn-passo {
  width: var(--toque); height: var(--toque);
  border: 2px solid var(--red-700); border-radius: 50%;
  background: var(--white); color: var(--red-700);
  font: inherit; font-size: var(--text-xl); line-height: 1;
  cursor: pointer;
}
.btn-passo:disabled { border-color: rgba(138, 17, 34, .3); color: var(--surface-muted); cursor: default; }
#restam { margin-top: var(--space-4); }

/* ---------------------------------------------------------------- sucesso / reserva / minhas */

.codigo {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800;
  letter-spacing: .06em; font-variant-numeric: tabular-nums;
  background: var(--red-800); color: var(--gold-500);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.resumo { font-size: var(--text-lg); font-weight: 600; }
.link-reserva { word-break: break-all; font-size: var(--text-sm); color: var(--red-700); }

.minhas { background: var(--cream); color: var(--ink); }
.minhas .tag { color: var(--red-700); }
.minhas h2 { color: var(--red-800); font-size: var(--text-xl); }
.minhas .apoio { color: var(--surface-muted); }
.lista-reservas { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.lista-reservas li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(138, 17, 34, .2);
}
.lista-reservas li:last-child { border-bottom: 0; }
.codigo-inline { font-family: var(--font-display); font-weight: 800; color: var(--red-800); }
.resumo-inline { color: var(--surface-muted); font-size: var(--text-sm); }
.acoes-inline { display: flex; gap: var(--space-2); align-items: center; }
.minhas .btn-secundario, .acoes-inline .btn-secundario { color: var(--red-700); border-color: var(--red-700); }
