/* ============================================================
   eKarts · Landing de pacotes de festa
   Tema: pista de corrida (dark + neon), verde=aberta, vermelho=fechada
   ============================================================ */

:root {
  --bg:        #08080c;
  --bg-2:      #0d0d13;
  --surface:   #14141c;
  --surface-2: #1b1b26;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);

  --text:      #f4f4f7;
  --muted:     #a2a2b0;
  --faint:     #8b8b98;

  --brand:     #C80000;   /* vermelho eKarts (site principal) */
  --brand-ink: #e2231a;   /* vermelho mais vivo p/ realces em fundo escuro */
  --electric:  #3a5bff;   /* azul eKarts (acento em fundo escuro) */
  --gold:      #F2EE0C;   /* amarelo eKarts */
  --aberta:    #2ee66b;   /* verde casa aberta */
  --desconto:  var(--aberta); /* linhas de desconto do checkout */
  --fechada:   #ff3b3b;   /* vermelho casa fechada */

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px rgba(0,0,0,.55);
  --maxw:      1120px;

  --font-display: 'Racing Sans One', 'Chakra Petch', system-ui, sans-serif;
  --font-cond:    'Chakra Petch', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;
}

/* ---------- TEMA CLARO (toggle) ---------- */
:root[data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #eef1f5;
  --surface:   #ffffff;
  --surface-2: #eef1f5;
  --line:      rgba(0,0,0,.10);
  --line-2:    rgba(0,0,0,.15);
  --text:      #23262B;
  --muted:     #57606b;
  --faint:     #79818d;
  --aberta:    #16a34a;
  --fechada:   #dc2626;
  /* #16a34a no claro fica em 3,3:1 sobre branco; texto de valor pede 4,5:1. */
  --desconto:  #15803d;
}
:root[data-theme="light"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(200,0,0,.06), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(58,91,255,.05), transparent 55%),
    var(--bg);
}
:root[data-theme="light"] body::before {
  opacity: .75;
  background-image:
    linear-gradient(45deg, rgba(95,105,125,.055) 25%, transparent 25%, transparent 75%, rgba(95,105,125,.055) 75%),
    linear-gradient(45deg, rgba(95,105,125,.055) 25%, transparent 25%, transparent 75%, rgba(95,105,125,.055) 75%);
}
:root[data-theme="light"] .selbar { background: rgba(255,255,255,.9); }
:root[data-theme="light"] .section-head__kicker,
:root[data-theme="light"] .spec-bonus,
:root[data-theme="light"] .placeholder__badge { color: #b07a00; }

* { box-sizing: border-box; margin: 0; padding: 0; }

/* garante que o atributo [hidden] vença regras de display (flex/grid) */
[hidden] { display: none !important; }

/* foco visível de teclado (WCAG 2.4.7): todos os controles custom */
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; border-radius: 6px; }
.chip:focus-visible, .toggle__opt:focus-visible, .btn:focus-visible,
.tier:focus-visible, .topbar__cta:focus-visible, .brand:focus-visible,
a:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(200,0,0,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(58,91,255,.08), transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle carbon / checker texture overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.015) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.015) 75%),
    linear-gradient(45deg, rgba(255,255,255,.015) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.015) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  pointer-events: none; z-index: 0; opacity: .5;
}

section, header, main, footer, .selbar { position: relative; z-index: 1; }

h1,h2,h3 { line-height: 1.05; letter-spacing: .5px; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ---------------- TOP BAR ---------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px clamp(16px, 4vw, 40px);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__logo--light { display: none; }
:root[data-theme="light"] .brand__logo--dark { display: none; }
:root[data-theme="light"] .brand__logo--light { display: block; }
.brand__bolt { color: var(--gold); filter: drop-shadow(0 0 8px rgba(255,206,58,.6)); }
.brand__name { color: var(--brand); text-shadow: 0 0 16px rgba(200,0,0,.45); }
.brand__flag { font-size: 20px; }
.topbar__cta {
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text);
  transition: .2s; white-space: nowrap;
}
.topbar__cta:hover { border-color: var(--electric); color: var(--electric); box-shadow: 0 0 20px rgba(58,91,255,.25); }
.topbar__right { display: inline-flex; align-items: center; gap: 12px; }
.theme-toggle {
  flex: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(127,127,140,.12);
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .2s;
}
.theme-toggle:hover { border-color: var(--electric); }

/* ---------------- STEPPER ---------------- */
.stepper { max-width: var(--maxw); margin: 8px auto 0; padding: 0 clamp(16px,4vw,40px); }
.stepper ol { display: flex; gap: 10px; list-style: none; flex-wrap: wrap; }
.stepper__item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-cond); font-weight: 600; font-size: 14px;
  color: var(--faint); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  text-transform: uppercase; letter-spacing: .5px;
}
.stepper__item span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800;
}
.stepper__item.is-current { color: var(--text); border-color: var(--brand); }
.stepper__item.is-current span { background: var(--brand); color: #fff; }
.stepper__item.is-done { color: var(--aberta); border-color: rgba(46,230,107,.35); }
.stepper__item.is-done span { background: rgba(46,230,107,.18); color: var(--aberta); }

/* ---------------- HERO ---------------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(36px,7vw,84px) clamp(16px,4vw,40px) clamp(20px,4vw,48px); overflow: hidden; }
.hero__speedlines {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(58,91,255,.05) 60px 61px),
    repeating-linear-gradient(115deg, transparent 0 140px, rgba(200,0,0,.05) 140px 141px);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.hero__eyebrow {
  display: inline-block; font-family: var(--font-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px;
  color: var(--electric); padding: 6px 14px; border: 1px solid rgba(58,91,255,.3);
  border-radius: 999px; background: rgba(58,91,255,.06); margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 50px);
  text-transform: uppercase; letter-spacing: 1px; line-height: .96;
  max-width: 15ch;
}
.hero__title .hl { color: var(--brand); text-shadow: 0 0 28px rgba(200,0,0,.5); }
.hero__sub { color: var(--muted); font-size: clamp(16px,2.2vw,20px); max-width: 56ch; margin-top: 22px; }
.hero__sub strong { color: var(--text); }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.hero__note { color: var(--faint); font-size: 13px; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-cond); font-weight: 700; font-size: 16px; letter-spacing: .5px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: .2s transform, .2s box-shadow, .2s background; text-transform: uppercase;
}
.btn--primary { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; box-shadow: 0 10px 30px rgba(200,0,0,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(200,0,0,.5); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--electric); color: var(--electric); }
.btn--back { font-size: 13px; padding: 9px 16px; margin-bottom: 18px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--whatsapp { background: linear-gradient(135deg, #6b7280, #4b5563); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.btn--whatsapp .wa-ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* bloco do CTA de WhatsApp na etapa de pagamento */
.wa-cta { margin-top: 22px; }
.wa-cta .btn--whatsapp { width: 100%; }
/* Bloqueado ate nome/telefone/e-mail preenchidos. pointer-events fica ativo de
   proposito: o clique ainda dispara o aviso e foca o campo que falta. */
.btn--whatsapp.is-disabled { opacity: .5; filter: grayscale(.35); cursor: not-allowed; }
.btn--whatsapp.is-disabled:hover { transform: none; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.wa-gate-hint { color: var(--fechada, #d33); font-size: 13px; margin-top: 10px; text-align: center; font-weight: 600; }
.wa-note { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------------- SECTION HEAD ---------------- */
.section-head { text-align: center; max-width: 720px; margin: clamp(40px,7vw,80px) auto clamp(24px,4vw,40px); padding: 0 clamp(16px,4vw,40px); }
.section-head--left { text-align: left; margin-left: 0; }
.section-head__kicker { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--gold); }
.section-head__kicker em { color: var(--brand); }
.section-head__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(30px,5vw,52px); margin-top: 10px; }
.section-head__desc { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------------- CONFIG CONTROLS ---------------- */
.config { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px,4vw,40px) 20px; }
.control { margin-bottom: 34px; }
.control__label, .control__label--tiers { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.control__num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-family: var(--font-display); color: var(--electric); font-size: 18px;
}
.control__label h3 { font-family: var(--font-cond); font-size: 22px; text-transform: uppercase; letter-spacing: .5px; }
.control__label p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.control__hint { margin-top: 12px; font-size: 14px; color: var(--gold); display: flex; gap: 8px; align-items: center;
  background: rgba(255,206,58,.08); border: 1px solid rgba(255,206,58,.25); padding: 10px 14px; border-radius: 10px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-cond); font-weight: 700; font-size: 17px; letter-spacing: .5px;
  padding: 12px 22px; border-radius: 12px; cursor: pointer; transition: .18s;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
}
.chip:hover { border-color: var(--electric); color: var(--text); }
.chip[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(200,0,0,.35); }

/* toggle */
.toggle { display: inline-flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.toggle__opt {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-cond); font-weight: 700; font-size: 16px; letter-spacing: .5px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); transition: .18s;
}
.toggle__opt:hover { color: var(--text); }
.toggle__opt--aberta.is-active  { background: rgba(46,230,107,.14); color: var(--aberta); border-color: rgba(46,230,107,.4); }
.toggle__opt--fechada.is-active { background: rgba(255,59,59,.14); color: var(--fechada); border-color: rgba(255,59,59,.4); }
.toggle__opt:disabled { opacity: .35; cursor: not-allowed; }

.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot--aberta  { background: var(--aberta);  box-shadow: 0 0 10px rgba(46,230,107,.7); }
.dot--fechada { background: var(--fechada); box-shadow: 0 0 10px rgba(255,59,59,.7); }
.txt-fechada { color: var(--fechada); }

/* ---------------- TIER CARDS ---------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier {
  display: flex; flex-direction: column; text-align: left;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: .22s; position: relative;
}
.tier:hover:not(.tier--off) { border-color: var(--electric); transform: translateY(-3px); box-shadow: var(--shadow); }
.tier.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(200,0,0,.5), var(--shadow); }
.tier--off { opacity: .55; cursor: not-allowed; }

.tier__badge {
  position: absolute; top: 14px; right: -30px; transform: rotate(38deg);
  background: var(--gold); color: #1a1400; font-family: var(--font-cond); font-weight: 700;
  font-size: 11px; letter-spacing: 1px; padding: 4px 40px; text-transform: uppercase;
}
.tier__head { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.tier__name { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; letter-spacing: .5px; }
.tier__tag { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tier__sched { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 5px; }
.tier__sched li { font-size: 16px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.tier__sched li::before { content: "▹"; color: var(--electric); }
.tier__meta { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.tier__meta span { font-family: var(--font-cond); font-size: 13px; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }

.tier__price { padding: 20px 22px 8px; }
.tier__price-type { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.tier__price-type.aberta  { color: var(--aberta); }
.tier__price-type.fechada { color: var(--fechada); }
.tier__price-value { font-family: var(--font-display); font-size: 46px; line-height: 1; margin-top: 6px; }
.tier__price-value small { font-size: 20px; color: var(--muted); margin-right: 4px; }
.tier__price-bonus { margin-top: 8px; font-size: 13px; color: var(--gold); font-weight: 600; }
.tier__unavailable { padding: 20px 22px; }
.tier__unavailable > strong { display: block; font-family: var(--font-cond); text-transform: uppercase; color: var(--faint); font-size: 15px; }
.tier__unavailable span { color: var(--muted); font-size: 13.5px; }

/* specs = "detalhes padrão" (duração + adultos) ao lado do preço */
.tier__specs { display: flex; flex-direction: column; gap: 6px; padding: 0 22px 18px; }
.tier__specs span { font-family: var(--font-cond); font-size: 15px; color: var(--muted); }
.spec-bonus { color: var(--gold); font-weight: 700; font-style: normal; }

.tier__toggle { margin: auto 0 0; width: 100%; padding: 13px 22px; border: none; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); display: flex; align-items: center; justify-content: space-between; color: var(--electric); font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; cursor: pointer; }
.tier__toggle:hover { background: rgba(58,91,255,.06); }
.tier__chev { transition: .25s; }
.tier.is-open .tier__chev { transform: rotate(180deg); }

/* colapsado: visibility:hidden tira o botão interno da ordem de tabulação/AT */
.tier__details { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility .3s; }
.tier.is-open .tier__details { max-height: 620px; visibility: visible; }
.tier__details-inner { padding: 4px 22px 22px; }
.tier__details h4 { font-family: var(--font-cond); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; color: var(--muted); margin: 12px 0 8px; }
.tier__list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tier__list li { font-size: 14px; display: flex; gap: 9px; align-items: flex-start; color: var(--text); }
.tier__list li .ic { flex: none; }
.tier__select { width: 100%; margin-top: 18px; }

/* desktop: iguala a altura dos horários pra alinhar preço e detalhes nos 3 cards */
@media (min-width: 601px) { .tier__sched { min-height: 76px; } }

/* ---------------- INCLUÍDO ---------------- */
.included { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px,4vw,40px); }
.included__grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.included__grid--tight { grid-template-columns: repeat(2,1fr); }
.included__grid li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; padding: 4px 0; }
.included__grid li .ic { flex: none; font-size: 20px; line-height: 1.4; }
.included__fechada {
  margin-top: 34px; padding: 26px clamp(18px,3vw,32px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,59,59,.08), rgba(255,59,59,.02));
  border: 1px solid rgba(255,59,59,.28);
}
.included__fechada h3 { font-family: var(--font-cond); text-transform: uppercase; font-size: 20px; letter-spacing: .5px; margin-bottom: 16px; }

/* ---------------- FINE PRINT ---------------- */
.fineprint { max-width: var(--maxw); margin: clamp(40px,6vw,70px) auto 40px; padding: 0 clamp(16px,4vw,40px); }
.fineprint h3 { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1px; font-size: 18px; color: var(--muted); margin-bottom: 14px; }
.fineprint ul { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 30px; }
.fineprint li { font-size: 13.5px; color: var(--faint); display: flex; gap: 9px; align-items: flex-start; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.fineprint li::before { content: "•"; color: var(--brand); }

/* ---------------- STICKY SELECTION BAR ---------------- */
.selbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto 14px; width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 16px;
  background: rgba(20,20,28,.86); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.9,.3,1);
}
.selbar.is-visible { transform: translateY(0); }
.selbar__info { display: flex; flex-direction: column; }
.selbar__label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--faint); font-weight: 700; }
.selbar__value { font-family: var(--font-cond); font-weight: 600; font-size: 16px; color: var(--text); }
.selbar__price { margin-left: auto; text-align: right; }
.selbar__price-value { font-family: var(--font-display); font-size: 30px; }
.selbar #selbar-continue { flex: none; }

/* ---------------- CHECKOUT (V2 STEPS) ---------------- */
.checkout { max-width: var(--maxw); margin: 20px auto 60px; padding: 0 clamp(16px,4vw,40px); display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.checkout__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(28px,4vw,44px); margin-bottom: 18px; }
.placeholder {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: clamp(28px,5vw,54px);
  text-align: center; background: rgba(255,255,255,.02);
}
.placeholder__badge { display: inline-block; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--gold); border: 1px solid rgba(255,206,58,.35); background: rgba(255,206,58,.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.placeholder__lead { font-family: var(--font-cond); font-size: 22px; color: var(--text); }
.placeholder__note { color: var(--muted); font-size: 15px; margin: 12px auto 24px; max-width: 46ch; }

.checkout__summary { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; position: sticky; top: 20px; }
.summary__title { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary__row span:first-child { color: var(--muted); }
.summary__row span:last-child { font-weight: 600; text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.summary__total .lbl { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: 14px; }
.summary__total .val { font-family: var(--font-display); font-size: 38px; }
.summary__tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; }
.summary__tag.aberta  { color: var(--aberta);  background: rgba(46,230,107,.14); }
.summary__tag.fechada { color: var(--fechada); background: rgba(255,59,59,.14); }

/* ---------------- STEP VISIBILITY ---------------- */
.step { display: none; }
.step--active { display: block; }
.step:not([hidden]).step--active { display: block; }

/* ---------------- FOOTER ---------------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(16px,4vw,40px) 120px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.footer strong { color: var(--text); }
.footer__fine { font-size: 12px; color: var(--faint); margin-top: 6px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .tier.is-open .tier__details { max-height: 720px; }
  .checkout { grid-template-columns: 1fr; }
  /* empilhado (tablet/mobile): calendario/pagamento em cima, resumo embaixo */
  .checkout__summary { position: static; }
  .included__grid, .fineprint ul { grid-template-columns: 1fr; }
  .selbar { flex-wrap: wrap; }
  .selbar__price { margin-left: 0; }
  .selbar #selbar-continue { width: 100%; }
  /* reserva espaço para a selbar empilhada (~180px) não cobrir o rodapé/condições */
  .footer { padding-bottom: 210px; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(30px, 9vw, 42px); }
  .toggle { width: 100%; }
  .toggle__opt { flex: 1; justify-content: center; }
  /* topbar não estoura em ~360px */
  .brand { font-size: 24px; }
  .topbar__cta { padding: 8px 12px; font-size: 13px; }
  .tier__badge { font-size: 10px; padding: 4px 34px; }
}

/* ===== MOBILE: sem hero, Passo 1 com respiro confortavel ===== */
@media (max-width: 600px) {
  .hero { display: none; }
  .topbar__cta { display: none; }
  .brand__logo { height: 38px; }              /* mobile vai direto do stepper pro configurador */

  .config { padding-bottom: 18px; }
  .config .section-head { margin: 20px auto 18px; }
  .config .section-head__kicker,
  .config .section-head__desc { display: none; }
  .config .section-head__title { font-size: 29px; }

  .control { margin-bottom: 22px; }
  .control__label, .control__label--tiers { gap: 11px; margin-bottom: 13px; }
  .control__num { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
  .control__label h3 { font-size: 18px; }
  .control__label p { font-size: 13px; line-height: 1.5; margin-top: 5px; }

  /* 5 opções numa linha só */
  .chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .chip { padding: 14px 2px; font-size: 13.5px; text-align: center; white-space: nowrap; letter-spacing: 0; border-radius: 11px; }

  /* toggle Aberta / Exclusiva ocupa a largura toda */
  .toggle { width: 100%; }
  .toggle__opt { flex: 1; justify-content: center; padding: 13px 6px; font-size: 14px; gap: 7px; }

  /* cards: detalhes padrão à direita, "+ Detalhes" expande pra baixo */
  .tiers { gap: 13px; }
  .tier { border-radius: 14px; }
  .tier__top { display: flex; align-items: stretch; }
  .tier__head { flex: 1 1 auto; min-width: 0; padding: 15px 12px 15px 14px; border-bottom: none; border-right: 1px solid var(--line); }
  .tier__name { font-size: 22px; }
  .tier__tag { display: none; }
  .tier__sched { margin-top: 10px; gap: 6px; }
  .tier__sched li { font-size: 14px; line-height: 1.4; }
  .tier__aside { flex: 0 0 40%; max-width: 162px; display: flex; flex-direction: column; justify-content: center; padding: 13px 12px; }
  .tier__price { padding: 0; }
  .tier__price-type { font-size: 10.5px; }
  .tier__price-value { font-size: 28px; }
  .tier__price-value small { font-size: 13px; margin-right: 2px; }
  .tier__price-bonus { font-size: 10.5px; margin-top: 5px; }
  .tier__specs { flex-direction: column; gap: 5px; padding: 11px 0 0; }
  .tier__specs span { font-size: 13.5px; }
  .tier__unavailable { padding: 0; }
  .tier__unavailable > strong { font-size: 13px; }
  .tier__unavailable span { font-size: 11.5px; }
  .tier__toggle { padding: 13px 14px; font-size: 12px; }
  .tier__details-inner { padding: 10px 14px 20px; }
  .tier.is-open .tier__details { max-height: 1400px; }

  /* badge vira etiqueta de canto à esquerda (não cobre o preço, que fica à direita) */
  .tier__badge { top: 0; left: 0; right: auto; transform: none; border-radius: 0 0 10px 0; padding: 3px 11px; font-size: 9.5px; letter-spacing: .5px; }
  .tier--badged .tier__head { padding-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   V2 - CALENDARIO DE HORARIOS (etapa Data) + PAGAMENTO (etapa Pagamento)
   Injetados por checkout-v2.js dentro de #calendar-mount e #payment-mount.
   Usa so os tokens do topo, entao segue os dois temas automaticamente.
   ============================================================ */

/* dourado legivel nos dois temas: no escuro o proprio --gold; no claro um ambar
   escuro, porque amarelo puro sobre branco fica ilegivel. */
:root { --gold-ink: var(--gold); }
:root[data-theme="light"] { --gold-ink: #9a7400; }

/* ---------- mensagens e loading comuns ---------- */
.cal-msg { color: var(--muted); font-size: 15px; line-height: 1.5; padding: 8px 2px; }
.cal-msg b { color: var(--text); }
.cal-msg--err { color: var(--fechada); }
/* Nota do fim de semana: fica abaixo dos horarios, discreta, sem competir com
   os cartoes de slot. O link e o unico ponto de destaque. */
.cal-msg--wa { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.cal-msg--wa a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Aviso de recesso escolar, abaixo dos cards de pacote (JS mostra na epoca) */
.season-notice {
  margin: 20px 0 0; padding: 14px 18px;
  border: 1px solid var(--line-2); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(242,238,12,.08), rgba(242,238,12,.03));
  color: var(--muted); font-size: 15px; line-height: 1.55;
}
.season-notice strong { color: var(--text); }
.season-notice b { color: var(--gold); }
.cal-loading { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; padding: 18px 2px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none; display: inline-block;
  border: 2px solid var(--line-2); border-top-color: var(--electric); animation: ek-spin .8s linear infinite;
}
@keyframes ek-spin { to { transform: rotate(360deg); } }

/* ---------- calendario ---------- */
.cal { display: flex; flex-direction: column; gap: 16px; }
.cal__hint {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  background: rgba(58,91,255,.06); border: 1px solid rgba(58,91,255,.22);
  padding: 12px 15px; border-radius: var(--radius-sm);
}
.cal__hint b { color: var(--text); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal__month { font-family: var(--font-cond); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .5px; }
.cal__nav {
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  font-size: 24px; line-height: 1; display: grid; place-items: center; transition: .18s;
}
.cal__nav:hover:not(:disabled) { border-color: var(--electric); color: var(--electric); }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dows span {
  text-align: center; font-family: var(--font-cond); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px; color: var(--faint); padding-bottom: 2px;
}
.cal__day {
  aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 10px;
  font-family: var(--font-cond); font-weight: 600; font-size: 16px; color: var(--muted);
  border: 1px solid transparent; user-select: none;
}
.cal__day--blank { border: 0; }
.cal__day[data-date] { cursor: pointer; background: var(--surface); border-color: var(--line); transition: .15s; }
.cal__day[data-date]:hover { border-color: var(--electric); color: var(--text); transform: translateY(-1px); }
.cal__day.is-fit { color: var(--text); border-color: rgba(58,91,255,.35); box-shadow: inset 0 -3px 0 rgba(58,91,255,.5); }
.cal__day.is-today { outline: 2px dashed var(--line-2); outline-offset: 1px; }
.cal__day.is-sel { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(200,0,0,.4); }
.cal__day.is-past { opacity: .28; }
.cal__day:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }

/* ---------- lista de horarios de um dia ---------- */
.cal__slots { border-top: 1px solid var(--line); padding-top: 14px; min-height: 60px; }
.cal-slots__head { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .5px; font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slots--taken { margin-top: 12px; }
.slot {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 16px; min-width: 140px; transition: .16s; color: var(--text);
}
.slot:hover { border-color: var(--electric); transform: translateY(-2px); box-shadow: var(--shadow); }
.slot__time { font-family: var(--font-cond); font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.slot__dur { font-size: 12px; color: var(--muted); }
.slot__price { font-family: var(--font-display); font-size: 22px; margin-top: 4px; }
.slot__down { font-size: 12px; color: var(--gold-ink); font-weight: 600; }
.slot--off { cursor: not-allowed; opacity: .45; }
.slot--off:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.slot--off .slot__time { text-decoration: line-through; }

/* ---------- pagamento ---------- */
.pay { display: flex; flex-direction: column; gap: 18px; }
.pay__recap { display: flex; flex-direction: column; gap: 3px; padding-bottom: 4px; }
.pay__recap-date { font-family: var(--font-cond); font-weight: 700; font-size: 18px; color: var(--text); }
.pay__recap-pkg { font-size: 14px; color: var(--muted); }
.pay__amount {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 20px;
}
.pay__amount-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; }
.pay__amount-row .lbl { color: var(--muted); font-size: 14.5px; }
.pay__amount-row .val { font-family: var(--font-cond); font-weight: 700; font-size: 18px; }
.pay__desconto .lbl, .pay__desconto .val { color: var(--desconto); }
.pay__amount-row.pay__desconto { gap: 12px; }
.pay__desconto .val { white-space: nowrap; }
.summary__row.summary__desconto span:last-child { white-space: nowrap; }
.summary__row.summary__desconto span, .summary__row.summary__desconto span:first-child { color: var(--desconto); }
.pay__entrada { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.pay__entrada .lbl { color: var(--text); }
.pay__entrada .val { font-family: var(--font-display); font-size: 30px; color: var(--gold-ink); }
.pay__rest { color: var(--faint); font-size: 13px; margin-top: 6px; }

.pay__form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-cond); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.field label b { color: var(--brand-ink); }
.field small { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 400; }
.field input, .field select {
  font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%; transition: .16s; -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 3px rgba(58,91,255,.18); }
.field input::placeholder { color: var(--faint); }

/* Aniversariante: nome + nascimento alimentam a conta da Área do Piloto. */
.pay__conta-nota { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 2px 0 -4px; }
.field__err { color: var(--fechada); font-size: 13px; line-height: 1.4; margin: 0; }
.field input.is-err, .field input.is-err:focus { border-color: var(--fechada); }
.field input.is-err:focus { box-shadow: 0 0 0 3px rgba(255,59,59,.18); }

.pay__method { border: 0; padding: 0; margin: 2px 0; display: flex; flex-direction: column; gap: 8px; }
.pay__method legend { font-family: var(--font-cond); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.pay__opt {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 13px 16px; transition: .16s;
}
.pay__opt:hover { border-color: var(--electric); }
.pay__opt.is-active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pay__opt input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.pay__opt-body { display: flex; flex-direction: column; }
.pay__opt-body b { font-family: var(--font-cond); font-size: 16px; }
.pay__opt-body small { color: var(--muted); font-size: 13px; }

.pay__err { color: var(--fechada); font-size: 14px; background: rgba(255,59,59,.08); border: 1px solid rgba(255,59,59,.3); border-radius: var(--radius-sm); padding: 11px 14px; }
.pay__err .btn { margin-top: 8px; }
.btn--sm { font-size: 12px; padding: 8px 14px; }
.pay__submit { width: 100%; margin-top: 4px; }
/* botao de pagar = acao principal, em verde (chama a atencao no lugar do WhatsApp) */
.btn--primary.pay__submit, #card-link.btn--primary { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 30px rgba(22,163,74,.35); }
.btn--primary.pay__submit:hover, #card-link.btn--primary:hover { box-shadow: 0 16px 40px rgba(22,163,74,.5); }
.pay__secure { text-align: center; color: var(--faint); font-size: 12.5px; }

/* ---------- PIX / cartao ---------- */
.pay__h { font-family: var(--font-cond); font-weight: 700; font-size: clamp(20px,3vw,26px); text-transform: uppercase; letter-spacing: .5px; }
.pay__lead { color: var(--muted); font-size: 15px; line-height: 1.55; }
.pay__lead b { color: var(--text); }
.pix { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.pix__qr { width: 210px; height: 210px; border-radius: var(--radius-sm); background: #fff; padding: 8px; flex: none; }
.pix__side { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.pix__lead { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pix__copy { display: flex; gap: 8px; }
.pix__copy input { flex: 1; min-width: 0; font-family: var(--font-body); font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 12px; }
.pix__copy .btn { flex: none; padding: 11px 18px; }
.pay-timer { font-family: var(--font-cond); font-weight: 700; font-size: 15px; color: var(--gold-ink); letter-spacing: .5px; }
.pay-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.pay--card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pay--card .btn--primary { align-self: stretch; text-align: center; }

/* ---------- confirmado / expirado ---------- */
.pay--done, .pay--expired { align-items: flex-start; }
.done__badge { display: inline-block; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: var(--aberta); background: rgba(46,230,107,.14); border: 1px solid rgba(46,230,107,.4); padding: 7px 16px; border-radius: 999px; }
.done__box { align-self: stretch; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 18px; }
.done__box .summary__row:last-child { border-bottom: 0; }

@media (max-width: 600px) {
  .cal__day { font-size: 14px; border-radius: 8px; }
  .cal__grid { gap: 4px; }
  .slot { flex: 1 1 100%; }
  .pix__qr { margin: 0 auto; }
}

/* sentinela da autocorrecao de cache: as paginas conferem esta regra */
#ek-css-guard{position:fixed;visibility:hidden}
