/*
 * Funil Grupo Anbar
 * Layout: cartão único centralizado sobre fundo preto Anbar; no celular o cartão vira a própria página.
 * Grade de espaçamento de 4px (--s1…--s8). Escala de tipo fixa (--t-*). Cores do manual da marca.
 */
:root {
  /* cor (manual Anbar: #c1321c, #762414, #581911, #f8d47e, #0c0d0f) */
  --bg: #0c0d0f;
  --card: #131417;
  --surface: #1a1b1f;
  --surface-2: #222328;
  --line: #2a2c31;
  --line-strong: #3a3c42;
  --ink: #f4f4f5;
  --ink-2: #c9cacf;
  --muted: #8d8f96;
  --muted-2: #5f6168;
  --primary: #c1321c;
  --primary-dark: #a12814;
  --primary-rgb: 193, 50, 28;
  --accent: #ec5235;          /* vermelho claro para texto sobre fundo escuro */
  --gold: #f8d47e;
  --logo-bg: #c1321c;
  --ok: #3ccf7a;
  --danger: #ff7a66;

  /* tipo (Base Neue não está no Google Fonts: Archivo expandido é o substituto mais próximo) */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wide: 118%;
  --t-xs: 11px;
  --t-sm: 13px;
  --t-md: 15px;
  --t-lg: 17px;
  --t-title: clamp(22px, 5.6vw, 26px);
  --t-h1: clamp(28px, 7.4vw, 36px);

  /* espaço */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 20px;
  --control: 52px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -260px, rgba(var(--primary-rgb), .22), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
a { color: inherit; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-block: var(--s8) 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s7) var(--s8) var(--s6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.stage { display: flex; flex-direction: column; }

.noscript { text-align: center; padding: var(--s6); color: var(--ink-2); }

/* ---------- topo: progresso + marca ---------- */
.progress { height: 3px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 0 0 var(--s6); }
.progress > i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 3px; transition: width .4s ease; }

.brand { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s7); min-height: 24px; }
.logo { width: 24px; height: 24px; border-radius: 6px; background: var(--logo-bg); flex: none; }
.logo-img { display: block; height: 22px; width: auto; max-width: 180px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: var(--t-md); }

/* ---------- tipografia ---------- */
.eyebrow {
  margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex: none; }
h1, .title {
  margin: 0;
  font-stretch: var(--wide);
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--t-h1); line-height: 1.08; }
.title { font-size: var(--t-title); line-height: 1.16; }
h1 em, .title em { font-style: normal; color: var(--accent); }
.hint { margin: var(--s2) 0 0; font-size: var(--t-sm); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.intro-q { margin: 0 0 var(--s3); font-size: var(--t-md); line-height: 1.55; color: var(--ink-2); max-width: 48ch; }

/* ---------- capa ---------- */
.hero { position: relative; margin: var(--s6) 0 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); aspect-ratio: 2 / 1; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; left: var(--s3); bottom: var(--s3);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(12, 13, 15, .85); color: var(--ink); border-radius: 999px; padding: 5px 12px 5px 6px;
  font-size: var(--t-xs); font-weight: 600;
}
.badge .dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; }
.badge .dot svg { width: 11px; height: 11px; }

.bullets {
  list-style: none; margin: var(--s6) 0 0; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.bullets li {
  display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); align-items: center;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-md); line-height: 1.4; color: var(--ink-2);
}
.bullets .bi {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: rgba(var(--primary-rgb), .14); color: var(--accent);
}
.bullets .bi svg { width: 17px; height: 17px; }

.q-head { margin: 0 0 var(--s5); }
.hero ~ .q-head, .bullets ~ .q-head { margin-top: var(--s8); }

/* ---------- opções do quiz ---------- */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.options.stack { grid-template-columns: 1fr; }
.options li { display: contents; }
.options:not(.stack) li:last-child:nth-child(odd) .opt { grid-column: 1 / -1; }
.opt {
  width: 100%; min-height: 64px;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  font-weight: 600; font-size: var(--t-md); line-height: 1.3; text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.opt:active { transform: scale(.99); }
.opt[aria-pressed="true"] { border-color: var(--primary); background: rgba(var(--primary-rgb), .12); }
.opt .ico {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface-2); color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.opt:hover .ico { color: var(--ink); }
.opt[aria-pressed="true"] .ico { background: var(--primary); color: #fff; }
.opt .ico svg { width: 18px; height: 18px; }

/* ---------- links de navegação ---------- */
.links { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s5); min-height: 24px; }
.linkbtn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: var(--s1) 0;
  font-size: var(--t-sm); font-weight: 500; color: var(--muted);
}
.linkbtn:hover { color: var(--ink); }
.linkbtn svg { width: 14px; height: 14px; }
.linkbtn span { display: inline-flex; }

/* ---------- formulário ---------- */
.form { margin-top: var(--s6); display: grid; gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field > label:not(.consent), .field .lbl { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; height: var(--control); padding: 0 var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 16px; /* 16px evita zoom no iOS */
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .22); }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8f96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
select.input option { background: var(--card); color: var(--ink); }
.phone { display: grid; grid-template-columns: 116px 1fr; gap: var(--s2); }
.err { margin: 0; font-size: var(--t-sm); color: var(--danger); }
.err:empty { display: none; }

.consent {
  display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); align-items: start;
  font-size: var(--t-sm); font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0; flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.consent input:checked {
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--primary);
}
.consent input[aria-invalid="true"] { border-color: var(--danger); }
.consent span { font-weight: 400; }
.consent a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formerr { padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: rgba(255, 122, 102, .1); border: 1px solid rgba(255, 122, 102, .3); color: var(--danger); font-size: var(--t-sm); }
.formerr:empty { display: none; }

/* ---------- botão principal ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 100%; min-height: 56px; padding: 0 var(--s6);
  border: 0; border-radius: var(--r-md);
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: var(--t-lg); letter-spacing: .005em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), .28);
  transition: background-color .15s ease, transform .1s ease, opacity .15s ease, box-shadow .15s ease;
}
.cta:hover { background: var(--primary-dark); }
.cta:active { transform: translateY(1px); }
.cta[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- calendário ---------- */
.cal-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); margin-top: var(--s6); }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.cal-title { font-weight: 600; font-size: var(--t-md); }
.nav { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); background: none; border-radius: 8px; color: var(--ink); }
.nav:hover:not([disabled]) { background: var(--surface-2); }
.nav[disabled] { color: var(--muted-2); border-color: transparent; cursor: default; }
.nav svg { width: 14px; height: 14px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s1); }
.dow span { text-align: center; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--muted); padding-bottom: var(--s2); }
.day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: var(--t-sm); font-weight: 500; font-variant-numeric: tabular-nums;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted-2);
}
.day.avail { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.day.avail:hover { background: var(--line-strong); }
.day.sel { background: var(--primary); color: #fff; }
.day:disabled { cursor: default; }
.day.today:not(.sel) { box-shadow: inset 0 0 0 1px var(--muted); }

.slots-wrap { display: flex; flex-direction: column; min-width: 0; }
.slots-title { font-weight: 600; font-size: var(--t-md); }
.slots-sub { font-size: var(--t-sm); color: var(--muted); margin: 2px 0 var(--s3); }
.slots { display: grid; gap: var(--s2); max-height: 300px; overflow-y: auto; padding: 0 var(--s1) var(--s1) 0; }
.slot {
  height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-weight: 600; font-size: var(--t-md); font-variant-numeric: tabular-nums; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.slot:hover { border-color: var(--line-strong); background: var(--surface-2); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
.slot.skel { border: 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { grid-column: 1 / -1; padding: var(--s6) var(--s2); text-align: center; color: var(--muted); font-size: var(--t-sm); }
.empty .linkbtn { color: var(--ink); text-decoration: underline; font-weight: 600; }

.summary {
  margin-top: var(--s5); padding: var(--s4);
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4);
}
.summary-txt { flex: 1 1 200px; min-width: 0; }
.summary-main { font-weight: 600; font-size: var(--t-md); }
.summary-sub { font-size: var(--t-sm); color: var(--muted); }
.summary .cta { flex: 1 1 100%; }

/* ---------- confirmação ---------- */
.done-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(var(--primary-rgb), .16); color: var(--accent); margin: 0 0 var(--s5); }
.done-ico svg { width: 22px; height: 22px; }
.intro { margin: var(--s3) 0 0; font-size: var(--t-md); line-height: 1.55; color: var(--ink-2); max-width: 48ch; }
.when { margin: var(--s6) 0 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: grid; gap: 2px; }
.when strong { font-size: var(--t-lg); font-weight: 600; }
.when span { font-size: var(--t-sm); color: var(--muted); }
.actions { display: grid; gap: var(--s3); margin-top: var(--s5); }
.cta.wa { background: #25d366; color: #052e16; box-shadow: none; }
.cta.wa:hover { background: #1fbf5b; }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; font-size: var(--t-md); min-height: 52px; }
.cta.ghost:hover { background: var(--surface); }
.steps { margin: var(--s7) 0 0; padding: var(--s5) 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: var(--s3); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); font-size: var(--t-md); color: var(--ink-2); align-items: start; counter-increment: s; line-height: 1.45; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 600; }
.preview { margin: var(--s6) 0 0; padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: rgba(248, 212, 126, .08); border: 1px solid rgba(248, 212, 126, .25); color: var(--gold); font-size: var(--t-sm); }

/* ---------- rodapé do cartão ---------- */
.foot { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; }
.foot:has(> :only-child) { border-top-color: transparent; padding-top: 0; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.proof { margin: 0; font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.privacy { font-size: 12px; color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; }
.privacy:hover { color: var(--muted); }

/* ---------- página de política ---------- */
.prose { max-width: 720px; line-height: 1.65; font-size: var(--t-md); color: var(--ink-2); }
.prose h1 { font-size: 28px; margin-bottom: var(--s3); color: var(--ink); }
.prose h2 { font-size: var(--t-lg); margin: var(--s6) 0 var(--s2); color: var(--ink); font-stretch: var(--wide); }
.prose a { color: var(--accent); }
.prose .note { background: rgba(248, 212, 126, .08); border: 1px solid rgba(248, 212, 126, .25); color: var(--gold); border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-size: var(--t-sm); }

/* ---------- celular: o cartão vira a página ---------- */
@media (max-width: 560px) {
  .page { padding-block: 0 var(--s8); padding-left: 0; padding-right: 0; }
  .card {
    max-width: none; border: 0; border-radius: 0; box-shadow: none; background: transparent;
    padding: var(--s5) max(20px, env(safe-area-inset-right, 0px)) var(--s6) max(20px, env(safe-area-inset-left, 0px));
  }
  .brand { margin-bottom: var(--s6); }
  .options { gap: var(--s2); }
  .opt { min-height: 60px; padding: var(--s3); }
  .cal-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .slots { grid-template-columns: repeat(3, 1fr); max-height: none; overflow: visible; }
  .summary { position: sticky; bottom: max(12px, env(safe-area-inset-bottom, 0px)); background: var(--surface-2); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); }
  .phone { grid-template-columns: 104px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* chip de informação da reunião (duração/formato) */
.meta-chip {
  align-self: flex-start; margin-top: var(--s3);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2);
}
.meta-chip svg { width: 14px; height: 14px; color: var(--accent); }
.cal-grid { align-items: start; }

/* =====================================================================
   Botões com mais destaque + foco no celular
   ===================================================================== */

/* opções do quiz: cartões com mais contraste, seta e estado ativo forte */
.opt {
  min-height: 68px;
  padding: var(--s3) var(--s4) var(--s3) var(--s3);
  background: linear-gradient(180deg, #1f2025, #1a1b1f);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  font-size: var(--t-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 6px 18px rgba(0, 0, 0, .25);
}
.opt .opt-label { flex: 1; min-width: 0; }
.opt .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--primary-rgb), .16); color: var(--accent); }
.opt .ico svg { width: 20px; height: 20px; }
.opt .chev { flex: none; display: grid; place-items: center; width: 20px; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.opt .chev svg { width: 16px; height: 16px; }
.opt:hover { border-color: rgba(var(--primary-rgb), .7); background: linear-gradient(180deg, #24252b, #1e1f24); }
.opt:hover .chev { color: var(--accent); transform: translateX(2px); }
.opt[aria-pressed="true"] {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .28), rgba(var(--primary-rgb), .16));
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18), 0 10px 26px rgba(var(--primary-rgb), .22);
}
.opt[aria-pressed="true"] .ico { background: var(--primary); color: #fff; }
.opt[aria-pressed="true"] .chev { color: #fff; }

/* botão principal: mais alto, gradiente da marca, brilho e seta */
.cta {
  min-height: 60px;
  border-radius: 14px;
  background: linear-gradient(180deg, #d63a21 0%, var(--primary) 55%, #a92915 100%);
  font-size: 18px; font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 12px 32px rgba(var(--primary-rgb), .45);
}
.cta:hover { background: linear-gradient(180deg, #c8341d 0%, #b02c17 55%, #962412 100%); }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta[disabled] { opacity: .45; }
.cta.wa { background: #25d366; box-shadow: 0 12px 32px rgba(37, 211, 102, .25); }
.cta.ghost { background: transparent; box-shadow: none; min-height: 56px; }

/* voltar: alvo de toque de 44px */
.linkbtn.back { min-height: 44px; padding: 0 var(--s3) 0 0; font-size: var(--t-md); }

/* horários e dias: alvos maiores */
.slot { height: 48px; border-width: 1.5px; font-size: var(--t-lg); }

/* ---------- celular ---------- */
@media (max-width: 560px) {
  :root { --t-h1: 28px; --t-title: 23px; }
  .card { padding-top: var(--s4); padding-bottom: 120px; }
  .progress { margin-bottom: var(--s5); height: 4px; }
  .brand { margin-bottom: var(--s5); }
  .logo-img { height: 20px; }
  .eyebrow { margin-bottom: var(--s2); }

  /* capa mais compacta: a primeira pergunta aparece sem rolar */
  .bullets { margin-top: var(--s4); }
  .bullets li { grid-template-columns: 28px 1fr; gap: var(--s3); padding: 10px 0; font-size: 14px; }
  .bullets .bi { width: 28px; height: 28px; border-radius: 7px; }
  .bullets .bi svg { width: 15px; height: 15px; }
  .bullets ~ .q-head, .hero ~ .q-head { margin-top: var(--s6); }
  .q-head { margin-bottom: var(--s4); }

  /* opções sempre em coluna única, largura total */
  .options, .options:not(.stack) { grid-template-columns: 1fr; gap: var(--s3); }
  .opt { min-height: 64px; font-size: var(--t-lg); }

  /* formulário: botão fixo no rodapé da tela */
  .form { gap: var(--s4); }
  .submit-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: var(--s3) max(20px, env(safe-area-inset-right, 0px)) max(var(--s3), env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(12, 13, 15, 0), rgba(12, 13, 15, .92) 30%, var(--bg));
  }
  .links { margin-top: var(--s4); }

  /* calendário: resumo + confirmar fixos no rodapé */
  .summary {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    border-radius: 18px 18px 0 0; border-width: 1px 0 0;
    padding: var(--s4) max(20px, env(safe-area-inset-right, 0px)) max(var(--s4), env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: var(--card);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .6);
  }
  .days { gap: 6px; }
  .day { font-size: var(--t-md); border-radius: 10px; }
  .slots { grid-template-columns: repeat(3, 1fr); gap: var(--s2); }

  .actions { gap: var(--s3); }
  .foot { margin-top: var(--s6); }
}

/* ajustes finos do celular */
@media (max-width: 560px) {
  .card { padding-bottom: 200px; }
  :root { --t-h1: 27px; }
  .bullets li { padding: 8px 0; font-size: 13.5px; line-height: 1.35; }
  .bullets ~ .q-head, .hero ~ .q-head { margin-top: var(--s5); }
  /* duas opções curtas (ex.: Sim/Não) ficam lado a lado */
  .options:not(.stack):has(> li:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
  .options:not(.stack):has(> li:nth-child(2):last-child) .chev { display: none; }
}

/* =====================================================================
   Acabamento: calendário, confirmação, alinhamentos
   ===================================================================== */
.card { transition: max-width .2s ease; }
.card.wide { max-width: 720px; }
.btn-ico, .summary-ico, .when-ico, .step-ico { display: inline-grid; place-items: center; flex: none; }
.btn-ico svg { width: 22px; height: 22px; }

/* --- calendário --- */
.cal-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); align-items: stretch; margin-top: var(--s6); }
.cal { padding: var(--s5); }
.cal-head { margin-bottom: var(--s4); }
.cal-title { font-size: var(--t-lg); font-weight: 600; }
.nav { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); }
.nav[disabled] { opacity: .35; border-color: var(--line); color: var(--ink-2); }
.nav svg { width: 16px; height: 16px; }
.dow, .days { gap: 6px; }
.dow span { font-size: 11px; padding-bottom: var(--s3); }
.day { border-radius: 10px; }
.day.today:not(.sel) { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }
.day.avail.today:not(.sel) { box-shadow: inset 0 0 0 1px var(--muted); color: var(--ink); }
.day.avail:hover { background: var(--line-strong); }

.slots-wrap { position: relative; min-width: 0; min-height: 0; }
.slots-in { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }
.slots-title { font-size: var(--t-lg); line-height: 1.3; }
.slots-sub { margin: 2px 0 var(--s4); }
.slots { flex: 1 1 0; min-height: 0; max-height: none; overflow-y: auto; padding: 0 var(--s2) 0 0; align-content: start; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.slot { height: 46px; font-size: var(--t-md); }
.slot[aria-pressed="true"] { box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35); }

.summary { margin-top: var(--s5); padding: var(--s4) var(--s5); display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: var(--s5); }
.summary-info { display: flex; align-items: center; gap: var(--s3); min-width: 0; flex: 1; }
.summary-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--primary-rgb), .16); color: var(--accent); }
.summary-ico svg { width: 20px; height: 20px; }
.summary-txt { flex: 1; min-width: 0; }
.summary-main { line-height: 1.3; }
.summary .cta { flex: 0 0 auto; width: auto; min-width: 250px; min-height: 52px; font-size: var(--t-md); }

/* --- confirmação --- */
.done-ico { width: 56px; height: 56px; margin-bottom: var(--s5); background: rgba(var(--primary-rgb), .16); box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .07); }
.done-ico svg { width: 26px; height: 26px; }
.when { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s6); padding: var(--s4) var(--s5); }
.when-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--primary-rgb), .16); color: var(--accent); }
.when-ico svg { width: 22px; height: 22px; }
.when-txt { display: grid; gap: 2px; min-width: 0; }
.when-txt strong { font-size: var(--t-lg); line-height: 1.3; }
.when-txt span { font-size: var(--t-sm); color: var(--muted); }
.actions { margin-top: var(--s4); }
.cta { gap: var(--s3); }
.cta.wa { color: #04260f; font-weight: 700; }
.cta.ghost { color: var(--ink); }
.cta.ghost .btn-ico { color: var(--accent); }
.steps { margin-top: var(--s6); padding: var(--s2) 0 0; border-top: 0; gap: 0; }
.steps li { grid-template-columns: 36px 1fr; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: none; }
.step-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); }
.step-ico svg { width: 18px; height: 18px; }

/* --- celular --- */
@media (max-width: 560px) {
  .card.wide { max-width: none; }
  .cal-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .cal { padding: var(--s4); }
  .slots-wrap { position: static; }
  .slots-in { position: static; display: block; }
  .slots { overflow: visible; padding: 0; }
  .summary { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); padding: var(--s4) max(20px, env(safe-area-inset-right, 0px)) max(var(--s4), env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
  .summary .cta { width: 100%; min-width: 0; }
  .summary-ico { width: 36px; height: 36px; }
  .when { padding: var(--s4); gap: var(--s3); }
}
.when .when-ico { color: var(--accent); font-size: inherit; }
.slots { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 24px), transparent); padding-bottom: var(--s4); }
@media (max-width: 560px) { .slots { -webkit-mask-image: none; mask-image: none; padding-bottom: 0; } }
