/* Fontes hospedadas no proprio site (todas com licenca SIL Open Font License) */
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
/* Fontes de titulo que cada evento pode escolher: Playfair Display, Anton e Caveat */
@font-face { font-family: "IM Classica"; src: url("/assets/fonts/classica.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Impacto"; src: url("/assets/fonts/impacto.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Manuscrita"; src: url("/assets/fonts/manuscrita.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --paper: #f7f3f4;
  --surface: #ffffff;
  --ink: #241516;
  --muted: #6c5b5b;
  --line: #ebdfdf;
  --line-strong: #d8c7c7;
  --brand: #831617;
  --on-brand: #ffffff;
  /* tons da cor ja calculados (common.js e lib/shell.mjs): funcionam tambem sem color-mix */
  --brand-soft: var(--t-soft, #f3e8e8);
  --brand-deep: var(--t-deep, #661112);
  --sun: #ffc93c;
  --ok: #087251;
  --ok-soft: #e3f6ee;
  --warn: #a6510b;
  --warn-soft: #fff1dc;
  --danger: #c8261b;
  --danger-soft: #fde8e6;
  --wait: #5b3fd1;
  --wait-soft: #ece8ff;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(36, 21, 22, 0.06), 0 8px 24px -12px rgba(36, 21, 22, 0.2);
  --display: "Unbounded", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* titulo do evento: cada evento pode trocar a fonte */
  --ev-font: var(--display);
  --ev-peso: 700;
  --ev-espaco: -0.03em;
  --ev-escala: 1;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--t-foco, #bb7f7f); outline-offset: 2px; border-radius: 6px; }
#app:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
[hidden] { display: none !important; }

/* ===== Botoes ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 0.975rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn-soft:hover:not(:disabled) { background: var(--t-col-line, #e9d5d5); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover:not(:disabled) { background: #065b41; }
.btn-wa { background: #117a43; color: #fff; }
.btn-wa:hover { background: #0d6236; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* links soltos que o dedo precisa acertar: area de toque de 44px sem mudar o desenho */
.link-btn.alvo { min-height: 44px; padding: 10px 2px; }
::placeholder { color: var(--muted); opacity: 0.85; }
::selection { background: var(--t-col-line, #e9d5d5); color: #241516; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 650; text-decoration: none; }
.pular:focus { top: 12px; }

/* ===== Chips de status ===== */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 650; background: var(--brand-soft); color: var(--brand-deep); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.aberto, .chip.confirmada, .chip.pago, .chip.publicado { background: var(--ok-soft); color: var(--ok); }
.chip.isento { background: #eceef4; color: #474d66; }
.chip.ultimas { background: #fff4cc; color: #7a5300; }
.chip.espera { background: var(--wait-soft); color: var(--wait); }
.chip.pendente, .chip.aguardando, .chip.embreve, .chip.rascunho { background: var(--warn-soft); color: var(--warn); }
.chip.em_analise { background: #e5f0ff; color: #1d58c4; }
.chip.esgotado, .chip.encerrado, .chip.realizado, .chip.cancelada { background: #eceef4; color: #474d66; }

/* ===== Campos ===== */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .label { font-weight: 650; font-size: 0.9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field .help { color: var(--muted); font-size: 0.85rem; }
.field .err { color: var(--danger); font-size: 0.85rem; font-weight: 600; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.field > label.check { font-weight: 450; font-size: 0.975rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice { cursor: pointer; }
.choice span { display: inline-flex; min-height: 42px; align-items: center; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.choice input:focus-visible + span { outline: 3px solid var(--t-foco, #bb7f7f); outline-offset: 2px; }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .full { grid-column: 1 / -1; } }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.alert { padding: 14px 16px; border-radius: var(--r); background: var(--brand-soft); color: var(--ink); }
.alert.error { background: var(--danger-soft); color: #7d1810; }
.alert.ok { background: var(--ok-soft); color: #05543a; }
.alert.warn { background: var(--warn-soft); color: #6b3305; }
.alert.ok, .alert.prazo-pagar { display: flex; gap: 10px; align-items: flex-start; }
.alert.ok svg, .alert.prazo-pagar svg { flex: none; margin-top: 2px; }
.alert.prazo-pagar { background: var(--warn-soft); color: #6b3305; }
.center { text-align: center; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* aviso rapido: sempre escuro com texto branco, inclusive nas paginas de tema escuro */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  background: #241516; color: #fff; padding: 12px 18px; border-radius: 18px; font-weight: 600; text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 12px 30px -10px rgba(0, 0, 0, 0.45); outline: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; max-width: min(520px, calc(100% - 32px));
}
body.com-barra .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===================================================================
   SITE PUBLICO
   =================================================================== */
.topbar { padding: 18px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .brand { min-width: 0; }
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img, .brand-mark { flex: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 1.05rem; }
.topnav { flex: none; }
.topnav > a { white-space: nowrap; font-weight: 650; text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 0.925rem; }
.topnav > a:hover { border-color: var(--ink); }

.hero { padding: 40px 0 36px; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: 20px; }
.hero-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 7.2vw, 4.6rem);
  letter-spacing: -0.03em; line-height: 1; max-width: 14ch; text-wrap: balance;
}
.hero-sub { margin-top: 18px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46ch; }

.sec-title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin: 8px 0 18px; }

/* Ingresso (cartao de evento) */
.tickets { display: grid; gap: 16px; }
.tk {
  --notch: 14px;
  position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tk:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(36, 21, 22, 0.06), 0 16px 32px -14px rgba(36, 21, 22, 0.28); }
.tk-stub {
  position: relative; background: var(--brand); color: var(--on-brand); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 18px 8px; text-align: center; line-height: 1;
}
.tk-stub::before, .tk-stub::after {
  content: ""; position: absolute; right: calc(var(--notch) / -2); width: var(--notch); height: var(--notch);
  border-radius: 50%; background: var(--paper); z-index: 2;
}
.tk-stub::before { top: calc(var(--notch) / -2); }
.tk-stub::after { bottom: calc(var(--notch) / -2); }
.tk-day { font-family: var(--display); font-weight: 700; font-size: 2.1rem; letter-spacing: -0.03em; }
.tk-mon { font-family: var(--display); font-size: 0.85rem; font-weight: 500; margin-top: 6px; }
.tk-wd { font-size: 0.8rem; opacity: 0.8; margin-top: 6px; }
.tk-body { padding: 18px 20px 18px 22px; border-left: 2px dashed var(--line-strong); display: grid; gap: 8px; align-content: center; }
.tk-body h3 { overflow-wrap: anywhere; font-family: var(--ev-font); font-size: calc(1.15rem * var(--ev-escala)); font-weight: var(--ev-peso); letter-spacing: var(--ev-espaco); }
.tk-sub { color: var(--muted); }
.tk-meta { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.9rem; }
.tk-meta li { display: inline-flex; gap: 6px; align-items: center; }
.tk-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 4px; }
.tk-price { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.tk-price small { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.tk.is-past { opacity: 0.6; }
.tk.is-past .tk-stub { background: #8a90a8; }
@media (min-width: 760px) {
  .tk { grid-template-columns: 120px minmax(0, 1fr); }
  .tk-day { font-size: 2.6rem; }
  .tk-body { padding: 22px 28px; }
}
.past-list { margin-top: 36px; }
.past-list summary { cursor: pointer; font-weight: 650; color: var(--muted); margin-bottom: 14px; }

.empty { text-align: left; padding: 36px 28px; }
.empty h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }

/* Pagina do evento */
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; text-decoration: none; color: var(--muted); margin: 4px 0 18px; }
.back:hover { color: var(--ink); }
.ev-cover { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: var(--r-lg); background: var(--brand-soft); }
@media (max-width: 480px) { .brand { font-size: 0.9rem; } .topnav > a { padding: 7px 12px; font-size: 0.85rem; } .tk-day { font-size: 1.8rem; } .tk-body { padding: 16px; } }
/* no celular a descricao vem antes do preco (a barra fixa ja deixa a inscricao a um toque) */
.ev-grid { display: grid; gap: 28px; padding-bottom: 64px; grid-template-areas: "head" "body" "panel" "faq"; }
.ev-head { grid-area: head; }
.ev-body { grid-area: body; }
/* perguntas frequentes do evento (opcionais): no celular ficam no fim, depois do preco;
   no computador ficam embaixo da descricao, com o preco fixo ao lado */
.ev-faq { grid-area: faq; min-width: 0; }
.ev-faq .sec-title { margin: 0 0 14px; }
.ev-faq .resposta.prose { font-size: 1rem; }
.ev-panel { grid-area: panel; }
.ev-head .facts { margin: 0; }
@media (min-width: 900px) {
  .ev-grid { grid-template-columns: 1fr 360px; grid-template-rows: auto auto 1fr; grid-template-areas: "head panel" "body panel" "faq panel"; column-gap: 48px; row-gap: 24px; }
  .ev-faq { padding-top: 12px; }
  .ev-panel { position: sticky; top: 20px; align-self: start; }
}
.ev-title { font-family: var(--ev-font); font-weight: var(--ev-peso); font-size: calc(clamp(1.9rem, 5.4vw, 3.4rem) * var(--ev-escala)); letter-spacing: var(--ev-espaco); line-height: 1.05; text-wrap: balance; }
.ev-sub { font-size: 1.15rem; color: var(--muted); margin-top: 10px; }
.facts { display: grid; gap: 14px; margin: 28px 0; padding: 0; }
.facts > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.fact-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd small { font-weight: 400; color: var(--muted); display: block; }
.prose { max-width: 66ch; font-size: 1.04rem; }
.prose > * + * { margin-top: 0.9em; }
.prose ul { padding-left: 1.2em; }
.prose h2, .prose h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin-top: 1.4em; }

.panel { padding: 24px; display: grid; gap: 16px; }
.price-big { font-family: var(--display); font-weight: 700; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; }
.price-big small { display: block; font-family: var(--body); font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.lotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.925rem; }
.lotes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--paper); }
.lotes li.is-past { color: var(--muted); text-decoration: line-through; background: transparent; }
.lotes li.is-now { background: var(--brand-soft); font-weight: 650; }
.meter { height: 10px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.meter.hot > span { background: linear-gradient(90deg, var(--brand), #ff8a3c); }
.panel .divider { height: 0; border-top: 2px dashed var(--line); margin: 2px -24px; position: relative; }
.panel-note { font-size: 0.9rem; color: var(--muted); }

/* Formulario */
.form-page { padding-bottom: 72px; max-width: 760px; }
.form-head { margin-bottom: 22px; }
.form-head .eyebrow-ev { color: var(--muted); font-weight: 600; }
.form-head h1 { font-family: var(--ev-font); font-size: calc(clamp(1.6rem, 4.5vw, 2.2rem) * var(--ev-escala)); font-weight: var(--ev-peso); letter-spacing: var(--ev-espaco); margin-top: 4px; }
.steps { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 8px; counter-reset: s; }
.steps li { flex: 1; display: grid; gap: 8px; font-size: 0.85rem; font-weight: 650; color: var(--muted); }
.steps li::before { content: ""; height: 5px; border-radius: 99px; background: var(--line); }
.steps li.is-done::before, .steps li.is-active::before { background: var(--brand); }
.steps li.is-active { color: var(--ink); }
.form-card { padding: clamp(20px, 4vw, 32px); }
.form-section + .form-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section > h2 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.form-section > .muted { margin-bottom: 16px; }
.form-section > h2 + .grid-2, .form-section > h2 + .stack { margin-top: 16px; }
.stack { display: grid; gap: 18px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap-reverse; }
.form-nav .btn { flex: 1 1 160px; }
@media (min-width: 640px) { .form-nav .btn { flex: 0 0 auto; } }
.terms-box { max-height: 220px; overflow: auto; padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); font-size: 0.925rem; white-space: pre-wrap; }
.summary { display: grid; gap: 2px; margin: 0; }
.summary > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; word-break: break-word; }
.price-box { display: grid; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--paper); }
.price-row { display: flex; justify-content: space-between; gap: 12px; }
.price-row.total { font-family: var(--display); font-weight: 600; font-size: 1.15rem; padding-top: 8px; border-top: 1px dashed var(--line-strong); margin-top: 4px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pagina da inscricao (ingresso) */
.reg-page { max-width: 820px; padding-bottom: 72px; display: grid; gap: 22px; }
.banner { padding: 24px; border-radius: var(--r-lg); display: grid; gap: 6px; color: #241516; } /* fundos sempre claros: texto escuro, inclusive no tema escuro */
.banner h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -0.02em; }
.banner p { max-width: 62ch; }
.banner.pendente { background: var(--warn-soft); }
.banner.analise { background: #e5f0ff; }
.banner.confirmada { background: var(--ok-soft); }
.banner.espera { background: var(--wait-soft); }
.banner.cancelada { background: #eceef4; }

.ticket {
  --notch: 22px;
  display: grid; grid-template-columns: 1fr; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.ticket-main { padding: 26px 26px 22px; display: grid; gap: 18px; position: relative; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ticket-org { font-size: 0.85rem; font-weight: 650; color: var(--muted); }
.ticket-ev { font-family: var(--ev-font); font-weight: var(--ev-peso); font-size: calc(clamp(1.3rem, 4vw, 1.7rem) * var(--ev-escala)); letter-spacing: var(--ev-espaco); line-height: 1.1; margin-top: 4px; }
.ticket-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 20px; margin: 0; }
.ticket-data dt { font-size: 0.8rem; color: var(--muted); }
.ticket-data dd { margin: 2px 0 0; font-weight: 650; }
.ticket-code { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.04em; }
.ticket-stub {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 24px;
  border-top: 2px dashed var(--line-strong); background: var(--surface); text-align: center;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; top: calc(var(--notch) / -2); width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--paper);
}
.ticket-stub::before { left: calc(var(--notch) / -2); }
.ticket-stub::after { right: calc(var(--notch) / -2); }
.qr { width: 170px; aspect-ratio: 1; background: #fff; border-radius: 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.ticket-band { height: 10px; background: var(--brand); }
@media (min-width: 700px) {
  .ticket { grid-template-columns: 1fr 240px; }
  .ticket-band { grid-column: 1 / -1; }
  .ticket-stub { border-top: 0; border-left: 2px dashed var(--line-strong); }
  .ticket-stub::before { top: calc(var(--notch) / -2); left: calc(var(--notch) / -2); }
  .ticket-stub::after { top: auto; bottom: calc(var(--notch) / -2); right: auto; left: calc(var(--notch) / -2); }
}
.stub-note { font-size: 0.85rem; color: var(--muted); max-width: 22ch; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pay { padding: clamp(20px, 4vw, 30px); display: grid; gap: 20px; }
.pay h2 { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.pay-grid { display: grid; gap: 22px; }
@media (min-width: 680px) { .pay-grid { grid-template-columns: 220px 1fr; align-items: start; } }
.pix-qr-box { display: grid; gap: 8px; justify-items: start; }
.pix-qr-box p { max-width: 28ch; }
/* no celular, quem paga usa o copia e cola no proprio aparelho: o QR code vai para baixo, menor */
@media (max-width: 679px) { .pay-grid .stack { order: -1; } .pix-qr { max-width: 180px; } }
.pix-qr { width: 100%; max-width: 220px; aspect-ratio: 1; padding: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); }
.pay-amount { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.pix-code { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--paper); resize: none; height: 78px; word-break: break-all; }
.proof { padding: 18px; border-radius: var(--r); background: var(--paper); display: grid; gap: 12px; }
.proof h3 { font-size: 1rem; }
.file-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.file-pick { position: relative; }
.file-name { flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lookup { max-width: 520px; padding-bottom: 72px; display: grid; gap: 22px; }
.lookup h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.2rem); letter-spacing: -0.02em; }
.saved { display: grid; gap: 10px; }
.saved a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; text-decoration: none; color: var(--ink); }
.saved strong { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.925rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--muted); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.foot-links a:hover { color: var(--ink); }

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

@media print {
  body { background: #fff; }
  .topbar, .site-footer, .reg-actions, .pay, .banner, .back, .no-print, .toast { display: none !important; }
  .reg-page { display: block; }
  .ticket { box-shadow: none; border: 1.5px solid #999; break-inside: avoid; grid-template-columns: 1fr 240px; }
  .ticket-stub { border-top: 0; border-left: 2px dashed #999; }
  .ticket-stub::before, .ticket-stub::after { display: none; }
  .ticket-band { grid-column: 1 / -1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Pagina inicial da plataforma ===== */
.landing { padding: 32px 0 72px; }
.land-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .land-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.land-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 6.4vw, 4.2rem); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.land-copy { display: grid; gap: 22px; }
.land-copy .hero-sub { margin-top: 0; }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.land-art { display: grid; place-items: center; }
.land-ticket { transform: rotate(-2.5deg); width: min(520px, 100%); box-shadow: 0 2px 4px rgba(36, 21, 22, 0.06), 0 40px 60px -30px rgba(36, 21, 22, 0.4); }
.land-ticket .qr { width: 140px; }
.land-steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; counter-reset: passo; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 760px) { .land-steps { grid-template-columns: repeat(3, 1fr); } }
.land-steps li { counter-increment: passo; padding: 24px 26px; display: grid; gap: 6px; align-content: start; position: relative; }
/* picote entre os passos, como o canhoto do ingresso */
.land-steps li + li { border-top: 2px dashed var(--line-strong); }
@media (min-width: 760px) { .land-steps li + li { border-top: 0; border-left: 2px dashed var(--line-strong); } }
.land-steps li::before { content: counter(passo); font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--brand); line-height: 1; margin-bottom: 6px; }
.land-steps strong { font-size: 1.05rem; }
.land-steps span { color: var(--muted); }
.brand-mark .ic { width: 22px; height: 22px; }
.land-ticket { grid-template-columns: 1fr; }
@media (min-width: 700px) { .land-ticket { grid-template-columns: minmax(0, 1fr) 190px; } }
.land-ticket .ticket-data { grid-template-columns: 1fr 1fr; }
.land-ticket .qr { width: 130px; }
@media (max-width: 640px) { .land-ticket { transform: rotate(-1.2deg); } }
.field.has-err .input, .field.has-err input:not([type="checkbox"]):not([type="radio"]), .field.has-err select, .field.has-err textarea { border-color: var(--danger) !important; }

/* ===== Modo de teste, pagamento pelo Mercado Pago e textos legais ===== */
.faixa-teste { display: flex; gap: 10px; align-items: flex-start; background: #fff4cc; color: #6b4a00; border: 1.5px dashed #e0b84a; border-radius: var(--r); padding: 12px 16px; margin: 0 0 18px; font-size: 0.95rem; }
.faixa-teste .ic { margin-top: 3px; flex: none; }
.pay-mp { gap: 16px; }
.btn-pagar { min-height: 56px; font-size: 1.05rem; }
.site-footer .feito-com { margin-top: 18px; font-size: 0.8rem; color: var(--muted); justify-content: flex-start; gap: 0 22px; }
.feito-com a { color: var(--muted); display: inline-block; padding: 12px 0; }
.legal { max-width: 760px; padding: 24px 0 72px; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .prose { margin-top: 24px; }

/* ===================================================================
   IDENTIDADE DE CADA EVENTO
   Cor, fundo e fonte do titulo vem do proprio evento (classes no body
   ou no cartao). A contagem regressiva repete o recorte do ingresso.
   =================================================================== */
.fonte-classica { --ev-font: "IM Classica", Georgia, "Times New Roman", serif; --ev-peso: 700; --ev-espaco: -0.01em; --ev-escala: 1.04; }
.fonte-impacto { --ev-font: "IM Impacto", Impact, "Arial Narrow", sans-serif; --ev-peso: 400; --ev-espaco: 0.01em; --ev-escala: 1.14; }
.fonte-manuscrita { --ev-font: "IM Manuscrita", "Segoe Script", cursive; --ev-peso: 700; --ev-espaco: 0; --ev-escala: 1.36; }

/* identidade do evento: tons calculados a partir da cor (sem color-mix, para celulares antigos) */
body.com-tema.tema-claro { --paper: var(--t-claro-paper, #f1e8e8); }
body.tema-colorido { --paper: var(--t-col-paper, #ebdada); --line: var(--t-col-line, #e9d5d5); }
body.tema-escuro {
  color-scheme: dark;
  --paper: var(--t-esc-paper, #290f11);
  --surface: var(--t-esc-surface, #271719);
  --ink: #f6f0f2;
  --muted: #c3b4ba;
  --line: var(--t-esc-line, #3d2325);
  --line-strong: var(--t-esc-line-strong, #563437);
  --brand-soft: var(--t-esc-soft, #3a1718);
  --brand-deep: var(--t-esc-deep, #cda2a2);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
}
body.tema-escuro .alert:not(.warn):not(.error):not(.ok) { color: var(--ink); }
/* tema escuro: texto de erro, barra de vagas e destaques continuam legiveis */
body.tema-escuro { --danger: #ff8a80; }
body.tema-escuro .field .err { color: #ffb4ab; }
body.tema-escuro .meter { background: rgba(246, 240, 242, 0.16); }
body.tema-escuro .meter > span { background: var(--brand-deep); }
body.tema-escuro .chip { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
body.tema-escuro .tk.is-past .tk-stub { background: #5d5860; }

.ev-hero { display: grid; gap: 22px; margin-bottom: 30px; }
.ev-hero-txt { display: grid; gap: 10px; justify-items: start; }
.ev-logo { max-height: 96px; max-width: min(280px, 70%); object-fit: contain; margin-bottom: 6px; }
.ev-sub { margin-top: 2px; }
/* fundo colorido: o topo do evento vira um cartaz na cor do evento */
body.tema-colorido .ev-hero { background: var(--brand); color: var(--on-brand); padding: clamp(14px, 3vw, 22px); border-radius: calc(var(--r-lg) + 6px); }
body.tema-colorido .ev-hero .ev-cover { background: var(--t-col-capa, #923233); }
body.tema-colorido .ev-hero-txt { padding: 6px clamp(4px, 2vw, 14px) 0; }
body.tema-colorido .ev-sub { color: var(--t-col-sub, #e6d0d1); }

/* contagem regressiva */
.contagem {
  --notch: 18px;
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(14px, 4vw, 34px);
  padding: 16px clamp(18px, 4vw, 30px); border-radius: var(--r-lg); background: var(--brand); color: var(--on-brand);
}
.contagem::before, .contagem::after {
  content: ""; position: absolute; top: 50%; width: var(--notch); height: var(--notch); margin-top: calc(var(--notch) / -2);
  border-radius: 50%; background: var(--paper);
}
.contagem::before { left: calc(var(--notch) / -2); }
.contagem::after { right: calc(var(--notch) / -2); }
.contagem-rot { font-weight: 650; display: inline-flex; gap: 8px; align-items: center; margin-right: auto; }
.contagem .unid { display: grid; justify-items: center; line-height: 1; min-width: 3ch; }
.contagem .unid b { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.contagem .unid small { font-size: 0.8rem; margin-top: 6px; opacity: 0.85; }
.contagem.agora { justify-content: center; }
.contagem.agora .contagem-rot { margin: 0; }
body.tema-colorido .ev-hero .contagem { background: var(--surface); color: var(--ink); }
body.tema-colorido .ev-hero .contagem::before, body.tema-colorido .ev-hero .contagem::after { background: var(--brand); }
@media (max-width: 420px) { .contagem-rot { width: 100%; } .contagem::before, .contagem::after { display: none; } }
.contagem-curta { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; color: var(--brand-deep); }
.tk-falta { color: var(--brand-deep); font-weight: 600; }

/* opcoes de inscricao (com ou sem camiseta) */
.opcoes { display: grid; gap: 10px; }
@media (min-width: 640px) { .opcoes { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.opcao { position: relative; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--surface); }
.opcao b { font-weight: 650; }
.opcao small { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--brand-deep); }
.opcao input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); background: var(--brand-soft); }
.opcao input:focus-visible + span { outline: 3px solid var(--t-foco, #bb7f7f); outline-offset: 2px; }
.field.has-err .opcao span { border-color: var(--danger); }
.opcoes-preco li { background: var(--brand-soft); }
.opcoes-preco li span:last-child { font-weight: 650; }

/* ===================================================================
   PARTICIPANTE: pagar primeiro, ingresso que nasce no pagamento
   =================================================================== */
.pay-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pay-topo .pay-amount { font-size: clamp(1.6rem, 6vw, 2rem); }
.passos-pix { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 0.95rem; }
.passos-pix li::marker { font-family: var(--display); font-weight: 700; color: var(--brand-deep); }

/* ingresso antes da vaga garantida: mesmo desenho, sem QR code */
.pre-ingresso .ticket-stub { background: var(--paper); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.pre-ingresso .ticket-band { background: var(--line-strong); background: color-mix(in srgb, var(--brand) 45%, var(--line-strong)); }
.stub-cadeado { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line-strong); color: var(--muted); }
.stub-cadeado .ic { width: 26px; height: 26px; }
.ticket.anulado { opacity: 0.72; }
.ticket.anulado .ticket-band { background: #8a90a8; }
.ticket.anulado .ticket-code { text-decoration: line-through; text-decoration-thickness: 2px; }

/* o momento em que o pagamento confirma: a faixa corre e o QR code se revela */
.ticket.nasceu .ticket-band { transform-origin: left center; animation: faixa-nasce 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ticket.nasceu .qr { animation: qr-nasce 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes faixa-nasce { from { transform: scaleX(0); } }
@keyframes qr-nasce { from { clip-path: circle(0% at 50% 50%); transform: scale(0.94); filter: blur(6px); } to { clip-path: circle(75% at 50% 50%); } }

/* barra fixa no rodape do celular (inscrever-se / pagar) */
.barra-fixa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 28px -18px rgba(36, 21, 22, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}
.barra-fixa .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barra-fixa .btn { flex: 0 1 auto; min-width: 0; }
.barra-fixa.escondida { transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden; }
.bf-txt { display: grid; line-height: 1.2; min-width: 0; }
.bf-txt b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.bf-txt small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.com-barra .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .barra-fixa { display: none; } body.com-barra .site-footer { padding-bottom: 40px; } body.com-barra .toast { bottom: 24px; } }

/* contato da equipe onde a duvida aparece */
.ajuda { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.ajuda > span { flex: 1 1 100%; display: block; }
.ajuda > .ic { display: none; }
.ajuda a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 650; color: var(--brand-deep); text-decoration: none; }
.ajuda a:hover { text-decoration: underline; }
.fechado { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 12px; border-radius: 999px; background: var(--paper); color: var(--muted); font-weight: 650; text-align: center; }

/* termo: mostra o comeco e abre no proprio lugar */
.termo { position: relative; max-height: 7.8em; overflow: hidden; padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); font-size: 0.925rem; white-space: pre-wrap; }
.termo:not(.aberto)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3em; background: linear-gradient(transparent, var(--paper)); }
.termo.aberto { max-height: none; }
.termo-mais { justify-self: start; min-height: 44px; }

/* dados da ultima inscricao neste aparelho */
.perfil-salvo { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--r); background: var(--brand-soft); }
.perfil-salvo > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--brand-deep); }
.perfil-acoes { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.perfil-acoes .link-btn { min-height: 44px; }
.resumo-email { padding: 14px 16px !important; margin-bottom: 8px; border-radius: var(--r); background: var(--brand-soft); border-bottom: 0 !important; grid-template-columns: 1fr !important; gap: 2px !important; }
.resumo-email dt { color: var(--brand-deep) !important; font-weight: 650; display: flex; gap: 6px; align-items: center; }
.re-email { display: block; font-size: 1.1rem; font-weight: 700; }
.re-nota { display: block; color: var(--muted); font-weight: 400; font-size: 0.875rem; margin-top: 2px; }
.field .help.sugestao { color: var(--ink); background: var(--warn-soft); padding: 8px 12px; border-radius: var(--r-sm); }
body.tema-escuro .field .help.sugestao { color: #5c2c04; }

.saved a { gap: 12px; }
.saved-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.saved .chip { flex: none; }
.acoes-vazio { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nao-achou h1 { font-family: var(--display); font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.nao-achou > .small { margin-top: 16px; }

/* contagem longe do evento: so os dias, menor */
.contagem.compacta { padding-block: 12px; justify-content: flex-start; gap: 10px; }
.contagem.compacta .contagem-rot { width: auto; margin-right: 0; }
.contagem.compacta .unid { display: inline-flex; align-items: baseline; gap: 8px; }
.contagem.compacta .unid b { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.contagem.compacta .unid small { margin: 0; font-size: 1rem; opacity: 1; }
@media (max-width: 560px) {
  .contagem { padding: 12px 16px; gap: 8px 16px; }
  .contagem .unid b { font-size: 1.5rem; }
  .ev-hero { gap: 16px; margin-bottom: 22px; }
}
@media print { .barra-fixa, .ajuda, .pular { display: none !important; } }

/* v2.3: ajustes de layout no celular */
.etapa-atual { display: none; }
@media (max-width: 639px) {
  .steps { margin-bottom: 8px; }
  .steps .etapa-nome { display: none; }
  .etapa-atual { display: block; margin: 0 0 18px; font-weight: 650; font-size: 0.95rem; }
  /* opcoes de inscricao em lista compacta, preco a direita */
  .opcoes { gap: 8px; }
  .opcao span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
  .opcao small { white-space: nowrap; }
  /* fatos do evento mais juntos */
  .facts { gap: 10px; }
  .facts > div { grid-template-columns: 32px 1fr; gap: 12px; }
  .fact-ic { width: 32px; height: 32px; border-radius: 10px; }
  .ev-grid { gap: 22px; }
}

/* ===================================================================
   MENU DO TOPO (paginas da plataforma)
   No computador fica aberto; no celular vira o botao Menu, com um painel por cima da pagina.
   =================================================================== */
.topbar { position: relative; z-index: 20; }
.topnav.plataforma { flex: 1; display: flex; justify-content: flex-end; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
.menu-btn .ic { width: 20px; height: 20px; }
.menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.menu-site { display: none; }
.menu-site.aberto { display: grid; gap: 2px; position: absolute; left: 12px; right: 12px; top: calc(100% - 6px); padding: 10px; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 2px 6px rgba(36, 21, 22, 0.08), 0 24px 48px -20px rgba(36, 21, 22, 0.45); animation: menu-abre 0.18s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes menu-abre { from { opacity: 0; transform: translateY(-6px); } }
.menu-link, .menu-entrar { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 650; white-space: nowrap; }
.menu-link:hover, .menu-entrar:hover { background: var(--paper); }
.menu-link[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }
.menu-acoes { display: grid; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.menu-cta { white-space: nowrap; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .menu-site, .menu-site.aberto { display: flex; align-items: center; gap: 2px; position: static; padding: 0; background: none; box-shadow: none; animation: none; }
  .menu-link, .menu-entrar { min-height: 42px; padding: 0 14px; border-radius: 999px; font-size: 0.95rem; }
  .menu-link:hover, .menu-entrar:hover { background: var(--surface); }
  .menu-acoes { display: flex; align-items: center; gap: 6px; margin: 0 0 0 10px; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .menu-cta { min-height: 44px; }
}

/* ===== Paginas da plataforma: funcionalidades e pagina inicial ===== */
.pagina-site { padding: 12px 0 72px; }
.site-hero { display: grid; gap: 20px; justify-items: start; padding: 20px 0 36px; }
.site-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5.4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.site-hero .hero-sub { margin-top: 0; }
.indice-site { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip-site { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.chip-site:hover { border-color: var(--ink); }
.recurso, .land-destaques { display: grid; gap: 18px 56px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.recurso:focus { outline: none; }
@media (min-width: 900px) {
  .recurso, .land-destaques { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .recurso-cab { position: sticky; top: 24px; align-self: start; }
}
.recurso-cab { display: grid; gap: 10px; justify-items: start; }
.recurso-cab h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.recurso-cab p { color: var(--muted); font-size: 1.05rem; max-width: 40ch; }
.recurso-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
@media (min-width: 700px) { .recurso-lista { grid-template-columns: 1fr 1fr; } }
.recurso-lista li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.recurso-lista li > .ic { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.recurso-lista strong { display: block; font-weight: 700; margin-bottom: 3px; }
.recurso-lista span { color: var(--muted); line-height: 1.55; }
.link-seta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; color: var(--brand-deep); text-decoration: none; }
.link-seta .ic { width: 18px; height: 18px; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.link-seta:hover .ic { transform: translateX(3px); }
.land-destaques { margin-top: 56px; }
.land-ajuda { margin-top: 12px; padding-top: 44px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.land-ajuda h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: -0.025em; }
.faixa-final { margin-top: 24px; display: grid; gap: 14px; justify-items: start; padding: clamp(28px, 5vw, 48px); border-radius: calc(var(--r-lg) + 6px); background: var(--ink); color: #fff; }
.faixa-final h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.1; }
.faixa-final p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.faixa-final .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.faixa-final .btn-ghost:hover:not(:disabled) { border-color: #fff; }

/* ===== Central de ajuda ===== */
.ajuda-hero { background: var(--brand); color: var(--on-brand); padding: clamp(36px, 7vw, 64px) 0 clamp(40px, 7vw, 72px); }
.ajuda-hero.menor { padding: 24px 0 36px; }
.ajuda-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.ajuda-hero .back { color: var(--on-brand); opacity: 0.85; margin: 0 0 14px; min-height: 44px; }
.ajuda-hero .back:hover { opacity: 1; color: var(--on-brand); }
.busca-ajuda { position: relative; margin-top: 22px; max-width: 760px; }
.busca-ajuda > .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.busca-ajuda input { width: 100%; min-height: 58px; padding: 0 18px 0 50px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.05rem; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.45); }
.busca-ajuda input::placeholder { color: var(--muted); }
.busca-ajuda input:focus-visible { outline: 3px solid var(--t-foco, #bb7f7f); outline-offset: 3px; }
.ajuda-corpo { padding: 32px 0 72px; }
.ajuda-corpo > * { max-width: 860px; }
.busca-ajuda input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.escolha-publico { display: grid; gap: 14px; }
@media (min-width: 700px) { .escolha-publico { grid-template-columns: 1fr 1fr; } }
.publico { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); border: 1.5px solid transparent; color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.publico:hover { border-color: var(--brand); transform: translateY(-2px); }
.publico > .ic { width: 20px; height: 20px; color: var(--muted); }
.publico-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); }
.publico-ic .ic { width: 26px; height: 26px; }
.publico-txt { display: grid; gap: 4px; }
.publico-txt strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.publico-txt span { color: var(--muted); line-height: 1.45; }
.publico-txt small { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.ajuda-nota { margin-top: 18px; }
.tema-ajuda { padding-top: 32px; scroll-margin-top: 12px; }
.tema-ajuda:focus { outline: none; }
.tema-ajuda h2 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; margin-bottom: 12px; }
.ajuda-corpo .indice-site { margin: 0 0 4px; }
.lista-perguntas { display: grid; gap: 8px; }
.pergunta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: 12px; }
.pergunta summary { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 48px 12px 18px; font-weight: 650; cursor: pointer; list-style: none; position: relative; }
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 1.35rem; color: var(--muted); transition: transform 0.2s; }
.pergunta[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pergunta[open] { border-color: var(--line-strong); }
.resposta { padding: 0 18px 18px; line-height: 1.6; max-width: 70ch; }
.resposta a, .ajuda-fim a, .ajuda-nota a { color: var(--brand-deep); font-weight: 600; }
.etiqueta-ajuda { flex: none; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.ajuda-fim { margin-top: 40px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 8px; }
@media print { .ajuda-hero .busca-ajuda, .indice-site { display: none !important; } .pergunta { break-inside: avoid; } }
