/* =========================================================================
   Diagnóstico Implementa IA — Advogados · brBox
   Dark-first premium · ouro herói (#E6B325) · layout uma-pergunta-por-tela
   ========================================================================= */

:root {
  --bg:        #0A0A0A;
  --bg-2:      #0d0d0e;
  --surface:   #141414;
  --surface-2: #1b1b1c;
  --line:      rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.06);

  --gold:      #E6B325;
  --gold-2:    #f3d56e;
  --gold-deep: #b9891a;
  --green:     #1B8E4A;

  --text:      #F5F5F5;
  --muted:     #9A9A9A;
  --muted-2:   #6b6b6b;
  --danger:    #ff6b57;

  --grad-gold: linear-gradient(135deg, #E6B325 0%, #f3d56e 100%);

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---------- Camadas de fundo ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.bg-glow {
  background:
    radial-gradient(58vw 58vw at 82% -8%,  rgba(230,179,37,.16), transparent 60%),
    radial-gradient(46vw 46vw at 6% 108%, rgba(230,179,37,.09), transparent 60%),
    radial-gradient(40vw 40vw at 50% 50%, rgba(27,142,74,.05),  transparent 70%);
  animation: glowDrift 22s var(--ease) infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
}

.bg-grid {
  opacity: .5;
  background-image:
    linear-gradient(115deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(25deg,  var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120vw 100vh at 70% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120vw 100vh at 70% 0%, #000 20%, transparent 78%);
}

.bg-grain {
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Barra de topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 22px clamp(20px, 5vw, 64px);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  user-select: none; line-height: 1;
}
.wordmark .br  { color: var(--text); }
.wordmark .box { color: var(--gold); }

.progress-wrap {
  flex: 1; display: flex; align-items: center; gap: 16px;
}
.progress-track {
  flex: 1; height: 3px; border-radius: 99px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: var(--grad-gold);
  border-radius: 99px;
  box-shadow: 0 0 16px rgba(230,179,37,.55);
  transition: width .6s var(--ease-out);
}
.progress-count {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--muted); white-space: nowrap; min-width: 58px; text-align: right;
}
.progress-count b { color: var(--text); font-weight: 700; }

/* ---------- Palco / slides ---------- */
.stage {
  position: relative; z-index: 10;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  display: flex;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 92px clamp(20px, 5vw, 64px) 92px;
  opacity: 0; visibility: hidden;
  transform: translateY(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .55s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: auto;
}
.slide.is-past { transform: translateY(-26px); }

/* margin:auto num container flex-scroll = centra quando cabe, rola do topo quando não cabe */
.slide-inner {
  width: 100%; max-width: var(--maxw); margin: auto;
}

/* Revelação escalonada dos filhos */
.slide.is-active .reveal {
  opacity: 0; transform: translateY(16px);
  animation: rise .62s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 75ms + 90ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Tipografia de pergunta ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow .num {
  font-weight: 700; color: var(--bg);
  background: var(--grad-gold);
  border-radius: 6px; padding: 3px 7px; font-size: 11px; letter-spacing: .05em;
}
.eyebrow .dash { width: 26px; height: 1px; background: rgba(230,179,37,.5); }

.q-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 8px;
}
.q-help {
  color: var(--muted); font-size: 15px; margin: 14px 0 0; max-width: 46ch;
}

/* ---------- Inputs de texto ---------- */
.field { margin-top: 38px; }
.text-input {
  width: 100%; background: transparent; border: 0;
  border-bottom: 2px solid var(--line);
  color: var(--text);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 3.2vw, 32px);
  padding: 6px 2px 14px; caret-color: var(--gold);
  transition: border-color .3s var(--ease);
}
.text-input::placeholder { color: var(--muted-2); font-weight: 400; -webkit-text-fill-color: var(--muted-2); }
.text-input:focus { outline: none; border-bottom-color: var(--gold); }
.field.has-error .text-input { border-bottom-color: var(--danger); }

/* Telefone */
.phone-row {
  display: flex; align-items: flex-end; gap: 14px;
  border-bottom: 2px solid var(--line);
  transition: border-color .3s var(--ease);
}
.phone-row.focused { border-bottom-color: var(--gold); }
.field.has-error .phone-row { border-bottom-color: var(--danger); }
.dialer {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--text); padding: 6px 4px 14px;
  font-family: var(--font-display); font-size: clamp(20px,3vw,28px); font-weight: 500;
}
.dialer .flag { font-size: 26px; line-height: 1; }
.dialer .caret { color: var(--muted); font-size: 13px; }
.phone-row .text-input { border: 0; padding-left: 0; }
.dialer-menu {
  position: absolute; margin-top: 8px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; min-width: 230px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  display: none;
}
.dialer-menu.open { display: block; animation: pop .18s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.dialer-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: transparent; border: 0; color: var(--text);
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; text-align: left;
}
.dialer-menu button:hover { background: var(--surface-2); }
.dialer-menu .code { color: var(--muted); font-family: var(--font-mono); font-size: 13px; margin-left: auto; }

.field-error {
  display: none; align-items: center; gap: 8px;
  color: var(--danger); font-size: 13.5px; margin-top: 14px;
}
.field.has-error .field-error { display: flex; animation: shake .4s var(--ease); }
@keyframes shake {
  10%,90% { transform: translateX(-1px); }
  30%,70% { transform: translateX(3px); }
  50%     { transform: translateX(-3px); }
}

/* ---------- Opções (single / multi) ---------- */
.options { margin-top: 34px; display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }

.option {
  position: relative; display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px; padding: 17px 18px;
  color: var(--text); font-family: var(--font-body);
  font-size: 16.5px; font-weight: 500;
  transition: transform .18s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), box-shadow .25s var(--ease);
}
.option:hover {
  transform: translateY(-2px);
  border-color: rgba(230,179,37,.55);
  background: var(--surface-2);
}
.option:hover .badge { border-color: var(--gold); color: var(--gold); }

.option .badge {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--muted); transition: all .2s var(--ease);
}
.option .badge i { font-size: 13px; }
.option .opt-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.option .opt-desc { font-size: 12.5px; color: var(--muted); font-weight: 400; }

.option .check {
  margin-left: auto; flex: none; opacity: 0;
  color: var(--gold); font-size: 16px;
  transform: scale(.6); transition: all .2s var(--ease);
}

.option.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(230,179,37,.12), rgba(230,179,37,.05));
  box-shadow: 0 0 0 1px var(--gold), 0 10px 34px rgba(230,179,37,.14);
}
.option.selected .badge { background: var(--grad-gold); color: var(--bg); border-color: transparent; }
.option.selected .check { opacity: 1; transform: scale(1); }

.option.pulse { animation: pulse .4s var(--ease); }
@keyframes pulse { 40% { transform: scale(.985); } }

.multi-hint {
  margin-top: 16px; font-size: 13px; color: var(--muted-2);
  font-family: var(--font-mono); letter-spacing: .04em;
}

/* ---------- Micro-resposta (reação ao que a pessoa respondeu) ----------
   Aparece embaixo das opções e some ao trocar de tela. É o que transforma o
   formulário em conversa e segura quem estava prestes a desistir. */
.feedback {
  display: none; align-items: flex-start; gap: 11px;
  margin-top: 22px; padding: 14px 16px;
  border: 1px solid rgba(230,179,37,.28);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(230,179,37,.10), rgba(230,179,37,.03));
  color: var(--text); font-size: 14.5px; line-height: 1.55;
}
.feedback.show { display: flex; animation: fbIn .34s var(--ease-out); }
.feedback i { color: var(--gold); font-size: 15px; margin-top: 3px; flex-shrink: 0; }
@keyframes fbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Convite de retomada (rascunho no navegador) ----------
   Nasce escondido e só aparece com .show. Não use style inline aqui: o
   helper reveal() do app.js já ocupa o atributo style do elemento. */
.resume { display: none; }
.resume.show {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 30px; padding: 20px 22px;
  border: 1px solid rgba(230,179,37,.30); border-radius: 16px;
  background: linear-gradient(180deg, rgba(230,179,37,.09), rgba(230,179,37,.02));
  max-width: 560px;
}
.resume > i { color: var(--gold); font-size: 17px; margin-top: 3px; flex-shrink: 0; }
.resume-body { display: flex; flex-direction: column; gap: 16px; }
.resume-body > span { color: var(--text); font-size: 15px; line-height: 1.55; }
.resume-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.resume-actions .btn-primary { padding: 12px 22px; font-size: 13px; }

/* ---------- Reforços da tela de agendamento ---------- */
.provas {
  display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 26px;
}
.provas span {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: 13.5px;
}
.provas i { color: var(--gold); font-size: 13px; }

/* ---------- Botões / rodapé de ação ---------- */
.actions {
  margin-top: 34px; display: flex; align-items: center; gap: 18px;
}
.btn {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  letter-spacing: .02em; border: 0; cursor: pointer; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn-primary {
  background: var(--grad-gold); color: #1a1300;
  padding: 15px 26px;
  box-shadow: 0 10px 30px rgba(230,179,37,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(230,179,37,.34); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.4); }
.btn-primary i { transition: transform .2s var(--ease); }
.btn-primary:hover:not(:disabled) i { transform: translateX(3px); }

.enter-hint {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.enter-hint kbd {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 7px; font-family: inherit; font-size: 11px;
  color: var(--muted);
}

/* ---------- Navegação inferior (voltar) ---------- */
.nav-back {
  position: fixed; left: clamp(20px,5vw,64px); bottom: 26px; z-index: 20;
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .04em; padding: 8px 4px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .2s;
}
.nav-back.show { opacity: 1; transform: none; pointer-events: auto; }
.nav-back:hover { color: var(--gold); }

.brand-tag {
  position: fixed; right: clamp(20px,5vw,64px); bottom: 26px; z-index: 20;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--muted-2); text-transform: uppercase;
}
.brand-tag b { color: var(--muted); }

/* ---------- Intro / hero ---------- */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(230,179,37,.3); border-radius: 99px;
  padding: 8px 16px; margin-bottom: 30px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 2.4s var(--ease) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 66px); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 22px;
}
.hero-title .g { color: var(--gold); }
.hero-sub { color: var(--muted); font-size: clamp(15px,2.2vw,18px); line-height: 1.6; max-width: 52ch; margin: 0 0 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 40px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.hero-meta i { color: var(--gold); }

/* ---------- Final / agendamento ---------- */
.cal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  margin-top: 30px;
}
.cal-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: block; }

/* estados do picker (loading / erro) */
.picker-state {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-family: var(--font-mono); font-size: 13.5px;
  padding: 26px 6px; justify-content: center; text-align: center;
}
.picker-state i { color: var(--gold); }
.link-retry {
  background: none; border: 0; color: var(--gold); cursor: pointer;
  font-family: inherit; font-size: 13px; text-decoration: underline; padding: 0;
}

/* erro do agendamento — fora do picker, persiste enquanto os horários recarregam */
.book-error {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid rgba(255,107,107,.45); border-radius: 12px;
  background: rgba(255,107,107,.08);
  color: var(--text); font-size: 14px; line-height: 1.5;
  animation: shake .4s var(--ease);
}
.book-error i { color: #ff6b6b; margin-top: 2px; flex-shrink: 0; }

/* dias — grade responsiva: todos visíveis, quebram em linhas (sem scroll) */
.days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 10px;
}
.day {
  text-align: center; cursor: pointer;
  background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 4px; transition: all .18s var(--ease);
  display: flex; flex-direction: column; align-items: center; color: var(--text);
}
.day:hover { border-color: rgba(230,179,37,.5); transform: translateY(-2px); }
.day .dow { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day .dnum { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 4px 0 2px; }
.day .mon { font-size: 11px; color: var(--muted-2); text-transform: uppercase; }
.day.selected { border-color: var(--gold); background: linear-gradient(180deg, rgba(230,179,37,.14), rgba(230,179,37,.04)); box-shadow: 0 0 0 1px var(--gold); }
.day.selected .dnum { color: var(--gold); }
.day.selected .dow, .day.selected .mon { color: var(--text); }

/* horários */
.slots { display: flex; flex-wrap: wrap; gap: 10px; min-height: 44px; align-items: center; }
/* estado da consulta do dia (consultando / dia sem horário / falhou) —
   ocupa o lugar dos botões sem mudar a altura do card */
.slots-msg {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-family: var(--font-mono); font-size: 13px; line-height: 1.5;
}
.slots-msg i { color: var(--gold); }
.slot {
  cursor: pointer; background: var(--bg-2); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px 18px; color: var(--text);
  font-family: var(--font-mono); font-size: 14px; transition: all .18s var(--ease);
}
.slot:hover { border-color: rgba(230,179,37,.5); transform: translateY(-2px); }
.slot.selected { border-color: var(--gold); background: rgba(230,179,37,.14); color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.meet-link { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.meet-link:hover { text-decoration: underline; }

/* ---------- Calendly (modo alternativo) ---------- */
.cal-embed {
  position: relative; margin-top: 30px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #0d0d0e;
}
.cal-embed-inner { min-height: 690px; }
.cal-embed-inner iframe { border-radius: 18px; }
.cal-wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); font-family: var(--font-mono); font-size: 13px;
  pointer-events: none; text-align: center;
}
.cal-embed.loaded .cal-wait { display: none; }

.cal-warning {
  margin-top: 30px; padding: 22px 24px;
  border: 1px dashed rgba(230,179,37,.55); border-radius: 16px;
  background: rgba(230,179,37,.06); color: var(--text);
  font-size: 14.5px; line-height: 1.7;
}
.cal-warning b { color: var(--gold); }
.cal-warning code {
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  background: rgba(0,0,0,.35); padding: 2px 7px; border-radius: 6px;
}

/* Resumo */
.summary { margin-top: 8px; display: grid; gap: 2px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.summary-row .k { color: var(--muted); }
.summary-row .v { color: var(--text); font-weight: 500; text-align: right; }

/* Tela de sucesso */
.done { text-align: center; }
.done .ring {
  width: 88px; height: 88px; border-radius: 99px; margin: 0 auto 26px;
  display: grid; place-items: center; font-size: 36px; color: var(--bg);
  background: var(--grad-gold); box-shadow: 0 0 0 10px rgba(230,179,37,.12), 0 20px 50px rgba(230,179,37,.3);
  animation: popRing .6s var(--ease-out);
}
@keyframes popRing { from { transform: scale(.4); opacity: 0; } }

/* ---------- Debug (payload) ---------- */
.debug {
  position: fixed; right: 16px; bottom: 64px; z-index: 30;
  width: min(380px, 90vw); max-height: 46vh; overflow: auto;
  background: #0c0c0d; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: #cfcfcf;
  padding: 14px 16px; display: none; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.debug.show { display: block; }
.debug h4 { margin: 0 0 10px; color: var(--gold); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.debug pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.debug-toggle {
  position: fixed; right: 16px; bottom: 22px; z-index: 31;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  font-size: 13px; transition: all .2s var(--ease);
}
.debug-toggle:hover { color: var(--gold); border-color: rgba(230,179,37,.5); }

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  :root { --maxw: 100%; }

  .topbar { padding: 16px 20px; gap: 14px; }
  .wordmark { font-size: 18px; }

  /* rolagem interna do slide: topo abaixo da topbar, base acima do "Voltar" */
  .slide { padding: 78px 20px 96px; }
  .slide-inner { margin-top: 0; }           /* telas altas começam do topo */

  .eyebrow { margin-bottom: 14px; font-size: 11px; }
  .q-title { font-size: clamp(23px, 6.4vw, 30px); line-height: 1.16; }
  .q-help { font-size: 14px; margin-top: 10px; }

  .field { margin-top: 22px; }
  .text-input { font-size: 21px; }
  .dialer { font-size: 19px; }

  .options { margin-top: 20px; gap: 9px; }
  .options.cols-2 { grid-template-columns: 1fr; }
  .option { padding: 14px 14px; font-size: 15.5px; border-radius: 12px; gap: 13px; }
  .option .badge { width: 30px; height: 30px; }

  .actions { margin-top: 24px; flex-wrap: wrap; gap: 12px; }
  .btn-primary { padding: 14px 22px; width: 100%; justify-content: center; }

  .hero-eyebrow { margin-bottom: 22px; padding: 7px 14px; font-size: 10px; }
  .hero-title { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-meta { gap: 12px 18px; margin-bottom: 28px; }

  .cal-card { padding: 16px; }
  .cal-embed { margin-top: 22px; }
  .cal-embed-inner { min-height: 960px; }

  .feedback { margin-top: 16px; padding: 12px 14px; font-size: 14px; }
  .resume { margin-bottom: 22px; padding: 16px 16px; gap: 11px; }
  .resume-body > span { font-size: 14.5px; }
  .resume-actions { gap: 12px; }
  .resume-actions .btn-primary { width: 100%; justify-content: center; }
  .provas { gap: 10px 18px; margin-top: 20px; }
  .provas span { font-size: 13px; }

  .progress-count .of { display: none; }
  .enter-hint { display: none; }
  .brand-tag { display: none; }

  /* botão Voltar mais discreto e sempre acima do conteúdo rolável */
  .nav-back {
    left: 16px; bottom: 16px; padding: 9px 12px;
    background: rgba(20,20,20,.82); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 10px;
  }

  .debug, .debug-toggle { display: none !important; }
}

/* telas curtas (celular deitado / iPhone SE): centraliza menos, ganha espaço */
@media (max-height: 680px) {
  .slide { align-items: flex-start; }
  .slide-inner { margin-top: 0; margin-bottom: auto; }
}

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

.badge {
  --bs-badge-padding-x: 0.4em!important;
}