/* RESSUSCITA — A Fornalha.
   Topo em brasa (identidade da arte oficial); fluxo de inscrição em papel claro, legível no celular. */
:root {
  --night: #140c09;
  --night-2: #2a140b;
  --linen: #fbf5ee;
  --paper: #ffffff;
  --ink: #1d120d;
  --muted: #6f6158;
  --line: #eadfd3;
  --flame: #c42a06;   /* cor principal — editável no painel */
  --sun: #f7a23e;     /* cor de destaque — editável no painel */
  --ok: #17803d;
  --warn: #9a5b00;
  --err: #b42318;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px;
  --r: 14px;
  --gutter: 20px;
  --max: 640px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--linen); color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.boot { padding: 40vh 0 0; text-align: center; color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: #fff;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter) 0;
  min-height: min(86svh, 820px);
  display: flex; flex-direction: column;
}
.hero::before { /* aurora nascendo no horizonte */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -38%;
  width: 170vmax; height: 120vmax; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--sun) 95%, #fff) 0%, var(--sun) 14%, var(--flame) 32%, color-mix(in srgb, var(--flame) 30%, var(--night)) 52%, transparent 70%);
  animation: dawn 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero::after { /* raios de luz */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -6%; width: 220vmax; height: 220vmax;
  transform: translate(-50%, 50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0deg 2.2deg, transparent 2.2deg 9deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 62%);
          mask: radial-gradient(closest-side, #000 18%, transparent 62%);
  animation: rays 3s ease-out both;
}
@keyframes dawn { from { transform: translate(-50%, 22%); opacity: .2; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes rays { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.hero-top .logo { height: 44px; width: auto; }
.hero-top a { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); text-decoration: none; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.hero-top a:hover { color: #fff; text-decoration: underline; }
.hero-grid { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; display: grid; align-items: center; }
.hero-body { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 4vh 0 16vh; min-width: 0; }
.subtitle { /* fiel à arte: caixa alta bem espaçada acima do nome */
  margin: 0 0 6px; font-weight: 600; text-transform: uppercase; color: #fff;
  font-size: clamp(13px, 3.9vw, 22px); letter-spacing: .34em; padding-left: .34em; line-height: 1.2;
}
.wordmark {
  margin: 0; font-family: var(--display); font-weight: 900; line-height: .84;
  font-size: clamp(64px, 21.5vw, 200px); letter-spacing: .005em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 50px color-mix(in srgb, var(--flame) 45%, transparent);
}
.theme { margin: -2px 0 0; transform: rotate(-2.2deg); }
.theme span {
  display: inline-block; padding: .12em .9em .1em; color: #fff; font-weight: 500; text-transform: uppercase;
  font-size: clamp(22px, 7.4vw, 50px); letter-spacing: .26em; line-height: 1.1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sun) 40%, var(--flame)), var(--flame) 55%, color-mix(in srgb, var(--flame) 75%, #000));
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--flame) 80%, transparent);
}
.when { margin: 22px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6vw, 34px); line-height: 1; text-transform: uppercase; color: #fff; }
.when::after { content: ""; display: block; width: 64px; height: 3px; margin: 10px auto 0; background: var(--flame); }

/* com arte oficial: no celular a arte vem inteira no topo (ela já traz o nome); no computador, arte e chamada lado a lado */
.hero.has-art { padding: 0; min-height: 0; }
.hero.has-art .hero-top { padding: 0 var(--gutter); position: absolute; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0; }
.hero.has-art .hero-top a { background: rgba(20,12,9,.55); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 999px; }
.hero-art { position: relative; margin: 0; }
.hero-art img { width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, var(--night)); }
.hero.has-art .hero-body { padding: 4px var(--gutter) 48px; }
.hero.has-art .brandtext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
  .hero.has-art { padding: 28px var(--gutter) 0; min-height: min(100svh, 940px); }
  .hero.has-art .hero-top { position: relative; top: 0; padding: 0; }
  .hero.has-art .hero-grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 56px; padding: 24px 0 64px; }
  .hero-art { border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06); }
  .hero-art::after { display: none; }
  .hero.has-art .brandtext { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: flex; flex-direction: column; align-items: center; }
  .hero.has-art .hero-body { padding: 0; }
  .hero.has-art .wordmark { font-size: clamp(64px, 7vw, 116px); }
  .hero.has-art .theme span { font-size: clamp(24px, 2.8vw, 40px); }
}

/* ---------------- BOTÕES ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 10px 22px; line-height: 1.2; border-radius: var(--r); border: 0; cursor: pointer;
  font-weight: 800; font-size: 17px; letter-spacing: .02em; text-decoration: none; text-align: center;
  transition: transform .12s ease, filter .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--sun) 80%, transparent); }
.btn-sun:hover { filter: brightness(1.05); }
.btn-ink { background: var(--ink); color: #fff; }
@media (hover: hover) { .btn-ink:hover { background: #3a1f14; } }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #0f7a40; color: #fff; }
.btn-wa:hover { background: #0f7a40; }
.btn-block { width: 100%; }
.btn-xl { min-height: 64px; font-size: clamp(16px, 4.6vw, 19px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.linkish { background: none; border: 0; padding: 8px 0; min-height: 44px; min-width: 44px; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 15px; }

.hero-cta { margin-top: 30px; width: 100%; display: grid; gap: 10px; justify-items: center; }
.hero-cta .btn { min-width: min(320px, 100%); }
.hero-cta small { color: rgba(255,255,255,.8); font-size: 15px; }

/* ---------------- INFORMAÇÕES DO EVENTO ---------------- */
.info { padding: 44px 0 120px; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 32px; }
.facts > div { background: var(--paper); padding: 16px 18px; }
.facts dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; }
.facts a:not(.btn) { color: var(--ink); }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.info h2, .page h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .01em; }
.info h2 { font-size: 34px; margin: 36px 0 12px; }
.prose p { margin: 0 0 14px; }
.schedule { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--sun); }
.schedule li { padding: 10px 0 10px 18px; position: relative; }
.schedule li::before { content: ""; position: absolute; left: -7.5px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--flame); border: 2px solid var(--linen); }
.soon { background: var(--paper); border: 1px dashed #d8ccb8; border-radius: var(--r); padding: 18px; color: var(--muted); }
.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
.foot a { color: var(--muted); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--linen) 88%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .wrap { display: flex; align-items: center; gap: 14px; padding: 0; }
.sticky-cta .price { line-height: 1.2; font-size: 14px; color: var(--muted); }
.sticky-cta .price b { display: block; font-size: 19px; color: var(--ink); }
.sticky-cta .btn { flex: 1; }

/* ---------------- PÁGINAS DO FLUXO ---------------- */
.bar {
  position: sticky; top: 0; z-index: 10; background: var(--night); color: #fff;
  padding: max(10px, env(safe-area-inset-top)) 0 0;
}
.bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.bar .back { width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.bar .back:hover { background: rgba(255,255,255,.1); }
/* barra das etapas */
.bar .brand { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.bar .step { margin-left: auto; font-size: 14px; color: rgba(255,255,255,.75); }
.progress { height: 4px; background: rgba(255,255,255,.12); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--flame), var(--sun)); transition: width .4s ease; }

.page { padding: 26px 0 140px; }
.page h1 { font-size: clamp(38px, 10vw, 52px); margin: 6px 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; }

/* lotes */
.lots { display: grid; gap: 14px; }
.lot {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 20px 20px 20px 24px;
  transition: border-color .15s, transform .15s;
}
.lot::before { content: ""; position: absolute; left: -2px; top: 18px; bottom: 18px; width: 6px; border-radius: 0 6px 6px 0; background: var(--line); }
.lot.available::before { background: linear-gradient(var(--sun), var(--flame)); }
.lot.available:hover { border-color: var(--ink); }
.lot.selected { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 55%, transparent); }
.lot .name { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.lot .price { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; grid-row: span 2; }
.lot .price small { font-size: 20px; font-weight: 800; margin-right: 2px; }
.lot .state { font-size: 15px; color: var(--muted); font-weight: 600; }
.lot.available .state { color: var(--ok); }
.lot.closed, .lot.soon { cursor: not-allowed; background: #f6f1e8; }
.lot.closed .name, .lot.closed .price { color: #a59c8f; }
.lot.closed .price { text-decoration: line-through; text-decoration-thickness: 3px; }
.lot.soon .name, .lot.soon .price { color: #6b6355; }
.tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.tag.closed { background: #d9d1c3; color: #5a5245; }
.tag.soon { background: transparent; border: 1.5px solid #c8bfae; color: #6f6758; }

/* formulário */
fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
legend { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; padding: 0; margin: 0 0 14px; line-height: 1; }
.field { margin: 0 0 16px; }
.field > label, .label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.field .hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.input {
  width: 100%; min-height: 54px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid #d8cfc0; background: var(--paper); font-size: 17px;
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 50%, transparent); }
.field.invalid .input, .field.invalid .chips, .field.invalid .seg, .field.invalid .sigpad { border-color: var(--err); }
.err { color: var(--err); font-size: 14px; font-weight: 600; margin: 6px 0 0; display: none; }
.field.invalid .err { display: block; }
.row { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.row-3 { display: grid; gap: 0 12px; grid-template-columns: 1fr 96px; }
@media (max-width: 380px) { .row { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; font-size: 16px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 1.5px solid transparent; border-radius: var(--r-sm); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid #d8cfc0; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 16px;
}
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 2px solid #b9ae9c; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:checked + span::before { border-color: var(--sun); background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231a1530' stroke-width='2.4'/%3E%3C/svg%3E") center/12px no-repeat; }
.chip input:focus-visible + span { outline: 3px solid var(--flame); outline-offset: 2px; }

.kids { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px; }
.kids .q { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.kids .sub { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1.5px solid transparent; border-radius: var(--r-sm); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 56px; border-radius: var(--r-sm); border: 2px solid #d8cfc0; font-weight: 800; font-size: 18px; background: var(--linen); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--flame); outline-offset: 2px; }
.kids-child { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.kids-child[hidden] { display: none; }
.child { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px 14px 2px; margin: 0 0 12px; background: var(--linen); }
.child-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.child-h .linkish { padding: 4px 8px; margin-right: -8px; color: var(--err); }
#add-child { min-height: 50px; margin-bottom: 4px; }
.kids-fee { display: inline-block; margin: 0 0 14px; font-weight: 700; color: var(--warn); }

/* barra de total (ficha) */
.totalbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper);
  border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(26,21,48,.35);
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
}
.totalbar .wrap { display: flex; align-items: center; gap: 14px; }
.totalbar .t { line-height: 1.15; min-width: 0; }
.totalbar .t span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.totalbar .t b { font-family: var(--display); font-weight: 900; font-size: 30px; }
.totalbar .btn { flex: 1; margin-left: auto; max-width: 340px; }

/* termo + assinatura */
.term { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; max-height: 46svh; overflow: auto; white-space: pre-line; font-size: 15.5px; line-height: 1.6; }
.term:focus { outline: 3px solid color-mix(in srgb, var(--sun) 60%, transparent); }
.sigpad { position: relative; border: 2px dashed #c7bba7; border-radius: var(--r); background: #fff; touch-action: none; overflow: hidden; }
.sigpad canvas { display: block; width: 100%; height: 190px; cursor: crosshair; }
.sigpad .ph { position: absolute; inset: auto 0 46px; text-align: center; color: #7d7364; pointer-events: none; font-size: 15px; }
.sigpad .base { position: absolute; left: 22px; right: 22px; bottom: 40px; border-bottom: 1.5px solid #cfc3ae; pointer-events: none; }
.sigpad.signed .ph { display: none; }
.sig-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 14px; color: var(--muted); }
.privacy { font-size: 15px; color: var(--muted); white-space: pre-line; background: #f6efe3; border-radius: var(--r); padding: 16px; margin: 0 0 10px; }

/* resumo */
.summary { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; }
.summary dl { margin: 0; padding: 6px 20px; }
.summary .r { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f1ebe1; }
.summary .r:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; background: var(--night); color: #fff; padding: 18px 20px; }
.summary .total span { font-weight: 600; }
.summary .total b { font-family: var(--display); font-weight: 900; font-size: 40px; color: var(--sun); line-height: 1; }
.note { font-size: 15px; color: var(--muted); margin: 16px 0; }
.alert { border-radius: var(--r); padding: 14px 16px; margin: 0 0 18px; font-weight: 600; font-size: 15.5px; }
.alert.warn { background: #fff1d6; color: #6b4300; border: 1px solid #f1d39b; }
.alert.err { display: block; background: #fde8e6; color: var(--err); border: 1px solid #f6c3bd; }
.alert.ok { background: #e3f5e8; color: #135c2e; border: 1px solid #b9e2c6; }
.actions { display: grid; gap: 12px; margin-top: 22px; }

/* pagamento */
.paytop { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--night); color: #fff; border-radius: var(--r); padding: 16px 20px; margin: 0 0 18px; }
.paytop .code { font-size: 14px; color: rgba(255,255,255,.75); }
.paytop .code b { display: block; font-size: 17px; color: #fff; letter-spacing: .02em; white-space: nowrap; }
.paytop .amount { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 8.5vw, 38px); color: var(--sun); line-height: 1; white-space: nowrap; }
.opt { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); margin: 0 0 14px; overflow: hidden; }
.opt > button.head {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 0; background: none; cursor: pointer; text-align: left;
}
.opt .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--linen); flex: none; }
.opt .ico svg { width: 26px; height: 26px; }
.opt .ttl { font-weight: 800; font-size: 18px; line-height: 1.2; }
.opt .ttl small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
.opt .chev { margin-left: auto; transition: transform .2s; }
.opt.open { border-color: var(--ink); }
.opt.open .chev { transform: rotate(180deg); }
.opt .body { padding: 0 20px 22px; display: none; }
.opt.open .body { display: block; }
.qr { width: min(260px, 78vw); aspect-ratio: 1; margin: 4px auto 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; }
.qr svg, .qr img { width: 100%; height: 100%; object-fit: contain; }
.kv { display: grid; gap: 2px; margin: 0 0 14px; }
.kv span { font-size: 14px; color: var(--muted); }
.kv b { font-size: 17px; overflow-wrap: anywhere; }
.keybox { display: flex; gap: 8px; align-items: stretch; margin: 0 0 12px; }
.keybox code { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--linen); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; overflow-wrap: anywhere; font-family: var(--body); font-weight: 700; }
.steps { margin: 14px 0 18px; padding: 0 0 0 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 8px 36px; font-size: 15.5px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* inscrição recebida */
.done-hero { text-align: center; padding: 10px 0 8px; }
.done-hero .seal { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, var(--sun), var(--flame)); color: #fff; box-shadow: 0 18px 40px -16px var(--flame); }
.done-hero .seal svg { width: 42px; height: 42px; }
.done-hero h1 { margin-bottom: 4px; }
.codebig { white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 9.5vw, 54px); letter-spacing: .02em; line-height: 1; margin: 6px 0 2px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 999px; margin: 14px 0 0; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status.wait { background: #fff1d6; color: #7a4a00; }
.status.ok { background: #dff3e5; color: #11602d; }
.status.cancel { background: #fde8e6; color: var(--err); }

#toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

dialog { border: 0; border-radius: var(--r); padding: 24px; max-width: min(440px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(20,12,9,.62); }
dialog h2 { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; margin: 0 0 8px; line-height: 1; }

@media (min-width: 900px) {
  :root { --max: 680px; }
  .page { padding-top: 44px; }
}

/* botão fixo de dúvidas pelo WhatsApp */
.fab-wa {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #0f7a40; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); transition: bottom .25s ease, transform .12s ease;
}
.fab-wa svg { width: 26px; height: 26px; }
.fab-wa:hover { background: #0f7a40; }
.fab-wa:active { transform: scale(.97); }
body.has-bar .fab-wa { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 380px) { .fab-wa span { display: none; } .fab-wa { width: 52px; padding: 0; justify-content: center; } }

/* grupos e perguntas personalizadas da ficha */
.group { margin: 26px 0 8px; }
.group-h { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; margin: 0 0 12px; }
.opt-tag { font-weight: 500; color: var(--muted); font-size: .9em; }
.chip.radio span::before { border-radius: 50%; }
.chip.radio input:checked + span::before { background: var(--sun); border-color: var(--sun); box-shadow: inset 0 0 0 3px var(--ink); }
.field .seg { max-width: 360px; }

/* observação do Espaço Kids */
.kids-note { background: #fff1d6; border: 1px solid #f1d39b; color: #5c3a00; border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 14px; font-size: 15px; line-height: 1.45; }

/* local do evento: toque para ver o endereço */
.facts .local { grid-column: 1 / -1; }
.addr summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.addr summary::-webkit-details-marker { display: none; }
.addr-name { font-size: 19px; font-weight: 700; }
.addr-cta { align-self: flex-start; font-size: 14.5px; font-weight: 700; color: var(--flame); background: #fdebe4; border-radius: 999px; padding: 6px 12px; }
.addr[open] .addr-cta { display: none; }
.addr-body { margin-top: 10px; }
.addr-text { margin: 0 0 12px; font-weight: 500; font-size: 16px; color: var(--ink); }
.addr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }

/* botão de dúvidas no cabeçalho das etapas */
.bar-wa {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 10px;
  margin-left: 4px; border-radius: 999px; background: #0f7a40; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px;
}
.bar-wa svg { width: 20px; height: 20px; }
.bar-wa:active { transform: scale(.97); }
.bar .wrap { padding-right: max(var(--gutter), 12px); }
@media (max-width: 400px) { .bar .step { font-size: 12.5px; } .bar .brand { font-size: 21px; } .bar-wa span { display: none; } .bar-wa { width: 44px; height: 44px; padding: 0; justify-content: center; } }

/* esqueci meu código */
.forgot { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); }
.forgot p { margin: 0 0 12px; color: var(--muted); }
#toast { cursor: pointer; pointer-events: auto; }
#toast:not(.show) { pointer-events: none; }

/* B9: valor do pagamento nunca encosta na borda */
.paytop { flex-wrap: wrap; }
.paytop .code, .paytop .amount { min-width: 0; }

/* B1: assinatura digitada */
.typed-sig { margin-top: 4px; }
.typed-sig .input { margin-top: 6px; }
/* B7: no computador, ao lado da arte, as informações práticas */
.hero-facts { display: none; }
@media (min-width: 900px) {
  .hero.has-art .brandtext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero.has-art .hero-facts { display: grid; gap: 14px; margin: 0 0 30px; text-align: left; width: 100%; max-width: 440px; }
  .hero-facts div { border-left: 3px solid var(--flame); padding: 2px 0 2px 16px; }
  .hero-facts dt { font-size: 14px; color: rgba(255,255,255,.7); font-weight: 600; }
  .hero-facts dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: #fff; }
  .hero.has-art .hero-body { align-items: flex-start; text-align: left; }
  .hero.has-art .hero-cta { justify-items: start; }
  .hero.has-art .hero-cta small { display: none; }
}

/* D7: dica do Pix copia e cola */
.pix-hint { font-size: 14.5px; color: var(--muted); margin: 8px 0 12px; }
