/* Quiz de consulta — design system V3.
   Mobile first. Tipografia: títulos em serifa editorial (fontes do sistema, nenhuma chamada externa)
   + texto em sans. 5 tipos de tela: capa, pergunta, fala da Dra. Bruna, contato, resultado. */

/* Fraunces (SIL Open Font License) servida localmente: nenhuma chamada a serviço externo. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* cor */
  --bg: #f6f1ea;
  --bg-2: #efe7dc;
  --surface: #fffdfa;
  --ink: #1d2622;
  --ink-2: #3a4540;
  --muted: #5f6a64;
  --line: #e4dbcf;
  --line-2: #d6cbbd;
  --brand: #2e5c4d;
  --brand-deep: #21453a;
  --brand-soft: #e7efe9;
  --brand-tint: #f1f5f2;
  --clay: #b0674a;
  --clay-soft: rgba(176, 103, 74, .16);
  --danger: #a33a2c;
  /* tipo */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(29px, 4vw + 14px, 50px);
  --t-voice: clamp(26px, 3.2vw + 14px, 38px);
  --t-title: clamp(23px, 2.6vw + 13px, 32px);
  --t-sub: clamp(15.5px, 4.1vw, 17px);
  --t-option: 16.5px;
  --t-eyebrow: 12px;
  --t-small: 13px;
  /* forma */
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --tap: 54px;
  --shadow-sm: 0 1px 2px rgba(29, 38, 34, .05);
  --shadow: 0 1px 2px rgba(29, 38, 34, .04), 0 8px 24px -12px rgba(29, 38, 34, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--sans);
  background: radial-gradient(120% 60% at 100% 0%, #fbf6ef 0%, var(--bg) 55%) fixed, var(--bg);
  min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
.app { max-width: 540px; margin: 0 auto; padding: 14px 20px calc(28px + env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 720px) { .app { padding-top: 48px; } }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }
h1:focus, h2:focus { outline: none; }

/* ---------- tipos de texto ---------- */
.eyebrow { font: 600 var(--t-eyebrow)/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
.display { font: 500 var(--t-display)/1.14 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.title { font: 500 var(--t-title)/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.voice { font: 500 var(--t-voice)/1.18 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.sub { font-size: var(--t-sub); line-height: 1.55; color: var(--muted); margin-top: 12px; text-wrap: pretty; }
.fine { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
/* destaque cirúrgico: marca-texto suave, nunca a frase inteira */
.em { font-style: normal; color: var(--brand-deep); background: linear-gradient(transparent 60%, var(--clay-soft) 60%); padding: 0 .06em; border-radius: 2px; }
.sub .em { color: var(--ink-2); font-weight: 600; background: none; padding: 0; }

/* ---------- assinatura da Dra. Bruna ---------- */
.sig { display: flex; align-items: center; gap: 12px; }
.mono { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #f7f1e8; font: 500 16px/1 var(--serif); letter-spacing: .04em; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2); overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: cover; }
.sig .who { font: 600 14.5px/1.2 var(--sans); color: var(--ink); }
.sig .role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- topo: voltar + progresso ---------- */
.top { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 18px; }
.back { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.back:hover { border-color: var(--line-2); }
.back:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.back svg { width: 18px; height: 18px; }
.progress { flex: 1; display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.count:empty { display: none; }
.bar > i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .45s var(--ease); }
.count { flex: none; font: 600 13.5px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* ---------- entrada das telas ---------- */
.screen { animation: enter .32s var(--ease) both; display: flex; flex-direction: column; flex: 1; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- pergunta ---------- */
.q-head { margin-bottom: 22px; }
.options { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: var(--tap);
  padding: 14px 16px; background: var(--surface); border: 1.5px solid #cfc3b3; border-radius: var(--r);
  font: 500 var(--t-option)/1.35 var(--sans); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, background .16s, transform .12s var(--ease), box-shadow .16s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .opt:hover { border-color: var(--line-2); box-shadow: var(--shadow); } }
.opt:active { transform: scale(.985); }
.opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt .ind { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #9a8f80; display: grid; place-items: center; transition: background .16s, border-color .16s; }
.opt[role="checkbox"] .ind { border-radius: 7px; }
.opt .ind svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .16s, transform .2s var(--ease); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt[aria-pressed="true"] .txt, .opt[aria-checked="true"] .txt { font-weight: 600; }
.opt[aria-pressed="true"] .ind svg, .opt[aria-checked="true"] .ind svg { animation: pop .26s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.opt[aria-pressed="true"] .ind, .opt[aria-checked="true"] .ind { background: var(--brand); border-color: var(--brand); }
.opt[aria-pressed="true"] .ind svg, .opt[aria-checked="true"] .ind svg { opacity: 1; transform: none; }
.opt .txt { flex: 1; }

/* ---------- campos ---------- */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font: 600 13.5px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 8px; }
.input {
  width: 100%; min-height: var(--tap); padding: 13px 16px; font: 500 17px/1.3 var(--sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #7d766c; font-weight: 400; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 96px; resize: vertical; font-size: 16px; }
.field.city { margin-top: 18px; }
.err { color: var(--danger); font-size: 14px; margin: -4px 0 12px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 8px 0 14px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.consent a { color: var(--brand); text-underline-offset: 2px; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.secure svg { width: 15px; height: 15px; flex: none; color: var(--brand); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--tap);
  padding: 15px 20px; border-radius: 999px; border: 0; font: 600 17px/1 var(--sans); letter-spacing: .005em;
  cursor: pointer; text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease), background .16s, box-shadow .16s, opacity .16s;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--brand); color: #fbf7f1; box-shadow: 0 10px 24px -14px rgba(33, 69, 58, .8); }
@media (hover: hover) { .btn.primary:hover { background: var(--brand-deep); } }
.btn.primary:disabled { opacity: 1; background: #d9d0c4; color: var(--ink-2); cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--brand-deep); border: 1.5px solid var(--brand); }
.btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }
.btn.loading { pointer-events: none; opacity: .8; }
.actions { margin-top: auto; padding-top: 22px; }
.sticky { position: sticky; bottom: 0; margin-top: auto; padding: 24px 0 calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 55%, rgba(246, 241, 234, 0)); }
.options { padding-bottom: 12px; }

/* ---------- capa ---------- */
.cover { padding-top: 6px; }
.cover .sig { margin-bottom: 30px; }
.cover .sub { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 13.5px/1 var(--sans); color: var(--ink-2); }
.chips svg { width: 15px; height: 15px; color: var(--brand); }
.cover .fine { margin-top: 18px; }

/* ---------- fala da Dra. Bruna (interlúdio) ---------- */
.voice-card {
  position: relative; margin-top: 8px; padding: 28px 24px 26px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fbf7f1 0%, var(--brand-tint) 100%); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.voice-card .sig { margin-bottom: 22px; }
.voice-card .lead-in { font: italic 500 18px/1.3 var(--serif); color: var(--brand); margin-bottom: 10px; }
.voice-card .sub { margin-top: 14px; }
/* sem faixa decorativa: parecia uma 2ª barra de progresso */
.voice-card::after { display: none; }
.voice-card-legacy::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--brand) 0 40%, var(--clay) 40% 60%, transparent 60%); opacity: .55; }

/* ---------- processamento ---------- */
.processing { justify-content: center; align-items: center; text-align: center; padding: 60px 0; }
.processing .mono { width: 64px; height: 64px; font-size: 22px; margin-bottom: 22px; animation: breathe 1.6s var(--ease) infinite; }
.processing .title { font-size: clamp(21px, 5.6vw, 26px); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- resultado ---------- */
.result .sig { margin-bottom: 24px; }
.quote { margin: 20px 0 6px; padding: 4px 0 4px 18px; border-left: 3px solid var(--clay); font: 400 clamp(17px, 4.6vw, 19px)/1.5 var(--serif); color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin: 20px 0 0; box-shadow: var(--shadow); }
.card h3 { font: 600 var(--t-eyebrow)/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 34px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font: 700 12px/22px var(--sans); text-align: center; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 25px; bottom: 4px; width: 1px; background: var(--line-2); }
.format { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.format svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); border-radius: var(--r); padding: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 20px; }
.notice svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }
.offer { background: linear-gradient(160deg, #fbf4ee 0%, #f6ebe2 100%); border-color: #ead8c9; }
.offer .kicker { font: 600 var(--t-eyebrow)/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #9a5539; margin-bottom: 8px; }
.offer .name { font: 500 21px/1.25 var(--serif); margin-bottom: 8px; }
.offer p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 16px; }
.proto { display: inline-flex; align-self: center; gap: 6px; margin: 22px auto 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.proto b { color: var(--ink); letter-spacing: .06em; }
.result .fine { margin-top: 14px; text-align: center; }
.stack { display: grid; gap: 10px; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .screen, .processing .mono { animation: none; }
  .bar > i, .opt, .opt .ind svg, .btn { transition: none; }
}

/* ---------- página de privacidade ---------- */
.legal .card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px; }
.legal .card h3 { margin-top: 6px; }
.legal-foot { margin-top: 18px; }

/* ---------- ajustes da revisão visual ---------- */
.sig .who, .sig .role { display: block; }
.cover { animation: none; } /* capa pinta na hora para quem chega do Instagram */
/* dentro de texto de apoio o destaque é só peso, sem marca-texto: um único marca-texto por tela */
.timeline .em, .format .em, .notice .em, .offer .em, .quote .em { background: none; padding: 0; font-weight: 600; color: var(--ink); }

.interlude .voice-card { margin-block: auto; }
.cover .actions { margin-top: 36px; padding-top: 0; }
.result .fine { text-align: left; }
.timeline .em, .notice .em { white-space: nowrap; }

/* ---------- variações de resposta (menos "pilha de cartões") ---------- */
/* tiles: 2 escolhas grandes lado a lado, com ícone (modalidade) */
.options.tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
.options.tiles .opt { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 150px; padding: 18px 16px; gap: 18px; }
.options.tiles .opt .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.options.tiles .opt .ico svg { width: 22px; height: 22px; }
.options.tiles .opt .ind { position: absolute; top: 14px; right: 14px; }
.options.tiles .opt .txt { font-size: 15px; line-height: 1.4; color: var(--muted); }
.options.tiles .opt .txt b { display: block; font: 500 20px/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
/* intensity: medidor de 4 níveis ao lado (impacto) */
.options.intensity .opt .meter { flex: none; display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.options.intensity .opt .meter i { width: 5px; border-radius: 2px; background: var(--line-2); }
.options.intensity .opt .meter i:nth-child(1) { height: 6px; } .options.intensity .opt .meter i:nth-child(2) { height: 10px; }
.options.intensity .opt .meter i:nth-child(3) { height: 14px; } .options.intensity .opt .meter i:nth-child(4) { height: 18px; }
.options.intensity .opt .meter i.on { background: var(--clay); }
/* grid: respostas curtas em 2 colunas, sem indicador (tempo, gênero) */
.options.grid { grid-template-columns: 1fr 1fr; }
.options.grid .opt { justify-content: center; text-align: center; min-height: 60px; padding: 12px 10px; }
.options.grid .opt .ind { display: none; }
.options.grid .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .app { max-width: 600px; min-height: auto; padding-top: 9vh; }
  .screen { flex: none; }
  .actions, .sticky { margin-top: 32px; position: static; background: none; padding-bottom: 0; }
  .sub { max-width: 34em; }
}
/* a Fraunces local tem um peso só (encorpado): ótima em título, pesada em parágrafo. Citação do resultado em sans. */
.quote { font: 400 clamp(16.5px, 4.3vw, 18px)/1.6 var(--sans); color: var(--ink-2); }

/* ---------- revisão visual, rodada 2 ---------- */
.display, .title, .voice { font-weight: 460; }
.display { letter-spacing: -.018em; }
.voice-card .lead-in { font: 500 17px/1.3 var(--serif); font-style: normal; color: var(--clay); } /* sem itálico sintetizado */
.em { padding: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.options.tiles .opt .txt b, .offer .name { font-weight: 500; }
/* múltipla escolha: o botão vai para o fim da lista, nunca cobre uma opção */
.screen:has(.opt[role="checkbox"]) .sticky { position: static; margin-top: 16px; background: none; padding-top: 8px; }
.options.grid .opt { border-color: #a59a8a; }
@media (min-width: 720px) { .app { padding-top: 12vh; } }

/* ================= LAYOUT CENTRALIZADO (pedido do cliente) ================= */
.screen { text-align: center; align-items: stretch; }
.eyebrow, .display, .title, .voice, .sub, .fine { text-align: center; margin-left: auto; margin-right: auto; }
.sub { max-width: 32em; }
/* assinatura: monograma em cima, nome embaixo */
.sig { flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
.cover .sig, .result .sig { margin-bottom: 26px; }
.chips { justify-content: center; }
.q-head { text-align: center; }
/* opções: texto centralizado; indicador fica discreto à esquerda sem deslocar o texto */
.opt { justify-content: center; text-align: center; padding-left: 48px; padding-right: 48px; }
.opt .ind { position: absolute; left: 16px; top: 50%; margin-top: -11px; }
.opt .txt { flex: none; }
.options.intensity .opt .meter { position: absolute; right: 16px; top: 50%; margin-top: -9px; }
.options.grid .opt { padding-left: 10px; padding-right: 10px; }
.options.tiles .opt { align-items: center; text-align: center; padding: 18px 12px; justify-content: center; }
.options.tiles .opt .ind { left: auto; right: 12px; top: 12px; margin-top: 0; }
.options.tiles .opt .txt { flex: none; }
/* campos */
.field > span { text-align: center; }
.input { text-align: center; }
textarea.input { text-align: center; }
.err { text-align: center; }
.secure, .consent { justify-content: center; }
.consent { text-align: left; max-width: 30em; margin-left: auto; margin-right: auto; }
/* fala da Dra. Bruna */
.voice-card { text-align: center; }
.voice-card .sig { margin-bottom: 18px; }
/* resultado: citação sem barra lateral, com fio curto em cima */
.quote { border-left: 0; padding: 18px 0 0; text-align: center; position: relative; }
.quote::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 3px; margin-left: -20px; border-radius: 3px; background: var(--clay); }
.card { text-align: center; }
.timeline li { padding: 0 0 18px; text-align: center; }
.timeline li::before { position: static; display: block; margin: 0 auto 8px; }
.timeline li:not(:last-child)::after { display: none; }
.format, .notice { justify-content: center; text-align: center; }
.offer { text-align: center; }
.result .fine { text-align: center; }
.proto { align-self: center; }
.processing { text-align: center; }
.opt .txt, .options.tiles .opt .txt { flex: 0 1 auto; min-width: 0; }
/* tela de contato (e-mail + WhatsApp + consentimento): botão no fluxo, nunca cobrindo a caixa de consentimento */
.screen:has(input[name="ok"]) .sticky { position: static; margin-top: 12px; background: none; padding-top: 8px; }
.consent { flex-direction: column; align-items: center; text-align: center; gap: 10px; }

/* ---------- tela de preparo (~5s) ---------- */
.loading .load-wrap { margin-block: auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 0 40px; }
.loading .mono { width: 64px; height: 64px; font-size: 22px; margin-bottom: 22px; animation: breathe 1.6s var(--ease) infinite; }
.load-bar { width: 100%; max-width: 360px; height: 8px; margin: 26px auto 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #4f8a74); }
.load-pct { font: 600 13.5px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.load-steps { list-style: none; margin: 24px auto 0; padding: 0; display: grid; gap: 10px; }
.load-steps li { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; color: #9d968c; transition: color .3s; }
.load-steps li svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--line); color: #fff; transition: background .3s; }
.load-steps li.on { color: var(--ink-2); }
.load-steps li.on svg { background: var(--brand); }

/* ================= PÁGINA FINAL V4 (conversão pós-quiz) =================
   Sistema de cor com função:
   - verde da marca = AÇÃO e processo (botões, ícones da linha do tempo e dos pilares);
   - argila = O CONTEXTO DA PESSOA (marca-texto do título, ícones do "por que", fios divisores);
   - negrito em texto corrido = informação operacional (número, "não substitui").
   Mesmo sistema do quiz (Fraunces + sans, raios 16/22, 54px de toque), com um "momento" maior no fechamento. */
.rp { padding-bottom: 8px; }
.rp-hero { text-align: center; }
.rp-sig { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 26px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.rp-sig .mono { width: 36px; height: 36px; font-size: 13px; box-shadow: none; }
.rp-sig .who { display: block; font: 600 13.5px/1.2 var(--sans); color: var(--ink); }
.rp-sig .role { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.rp .display { font-size: clamp(28px, 3.6vw + 15px, 46px); }
.rp-lead { font: 400 clamp(16.5px, 4.3vw, 18px)/1.6 var(--sans); color: var(--ink-2); max-width: 30em; margin: 16px auto 0; text-wrap: pretty; }
.rp-cta { margin: 24px auto 0; max-width: 420px; }
.btn.wa svg { width: 22px; height: 22px; flex: none; }
.rp-micro { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 10px auto 0; max-width: 26em; text-wrap: pretty; }
.rp-preview { display: inline-block; margin-top: 10px; padding: 5px 10px; border: 1px dashed var(--clay); border-radius: 8px; font-size: 12px; color: #8a4a31; }
.rp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.rp-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 13px/1 var(--sans); color: var(--ink-2); }
.rp-chips svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
/* sem WhatsApp da clínica: aviso visual (não um número perdido no parágrafo) */
.rp-wait { margin: 24px auto 0; max-width: 420px; padding: 20px 18px; border-radius: var(--r-lg); background: var(--brand-soft); border: 1px solid #d3e2d8; }
.rp-wait-ico { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--surface); color: var(--brand); }
.rp-wait-ico svg { width: 24px; height: 24px; }
.rp-wait-t { font: 500 19px/1.25 var(--serif); color: var(--ink); margin-bottom: 6px; }
.rp-wait p:last-child { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.rp-wait .em, .rp-close .em.op { background: none; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* seções: título serifado com fio argila curto em cima (ritmo) */
.rp-sec { margin-top: 48px; }
.rp-h { position: relative; padding-top: 18px; margin-bottom: 18px; font: 460 clamp(22px, 2vw + 15px, 28px)/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); text-align: center; text-wrap: balance; }
.rp-h::before { content: ""; position: absolute; top: 0; left: 50%; width: 32px; height: 3px; margin-left: -16px; border-radius: 3px; background: var(--clay); opacity: .8; }

/* por que começar pela consulta: o contexto da pessoa (argila) */
.why { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.why li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 18px 20px; text-align: center; }
.why li + li { border-top: 1px solid var(--line); }
.why-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 50%; background: var(--clay-soft); color: #93502f; }
.why-ico svg { width: 20px; height: 20px; }
.why b { font: 600 16.5px/1.35 var(--sans); color: var(--ink); }
.why li > span:last-child { font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 26em; }

/* método: 3 pilares */
.rp-method { padding: 26px 20px 24px; border-radius: var(--r-lg); background: linear-gradient(165deg, #fbf8f3 0%, var(--brand-tint) 100%); border: 1px solid var(--line); }
.rp-method .rp-h { margin-bottom: 20px; }
.pillars { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pillars li { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 14px/1.2 var(--sans); color: var(--ink); }
.pillar-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); color: var(--brand); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pillar-ico svg { width: 26px; height: 26px; }
.rp-method p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 30em; margin: 0 auto; text-wrap: pretty; }

/* como fica daqui pra frente: passos com ícone, número, título e microcopy, ligados por fio */
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 30px; text-align: center; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: 7px; height: 16px; border-left: 2px dotted var(--line-2); }
.flow-ico { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--surface); color: var(--brand); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flow-ico svg { width: 24px; height: 24px; }
.flow-ico i { position: absolute; top: -4px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fbf7f1; font: 700 11.5px/22px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.flow b { font: 500 19px/1.3 var(--serif); color: var(--ink); }
.flow li > span:last-child { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 25em; }
.flow .em, .why .em, .rp-method .em, .rp-lead .em { background: none; padding: 0; font-weight: 600; color: var(--ink); }


/* fechamento: mesmo botão, momento visual maior (fundo da marca) */
.rp-close { margin-top: 48px; padding: 32px 22px 28px; border-radius: 26px; text-align: center; color: #eef3ef;
  background: radial-gradient(120% 80% at 50% 0%, #34685a 0%, var(--brand-deep) 70%); box-shadow: 0 24px 48px -28px rgba(33, 69, 58, .9); }
.rp-close-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fbf7f1; }
.rp-close-ico svg { width: 26px; height: 26px; }
.rp-close .title { color: #fbf7f1; }
.rp-close .title .em { color: #fff; background: linear-gradient(transparent 62%, rgba(214, 150, 120, .55) 62%); }
.rp-close-t { font-size: 16px; line-height: 1.6; color: #d8e4dc; max-width: 28em; margin: 12px auto 22px; }
.rp-close .btn.primary { background: #fbf7f1; color: var(--brand-deep); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); max-width: 420px; margin: 0 auto; }
@media (hover: hover) { .rp-close .btn.primary:hover { background: #fff; } }
.rp-close .btn:focus-visible { outline-color: #f0c2ab; }
.rp-close .rp-micro { color: #c4d4ca; }
.rp-close .rp-close-t .em { background: none; color: #fff; font-weight: 700; white-space: nowrap; }
.rp-cvv { margin-top: 26px; }
.rp .proto { margin-top: 26px; }

/* barra fixa (só celular): entra depois do botão do topo sair da tela, some no fechamento */
.rp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 241, 234, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .32s var(--ease); }
.rp-sticky.on { transform: none; }
.rp-sticky .btn { max-width: 480px; margin: 0 auto; display: flex; min-height: 52px; }
.app.has-sticky { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) {
  .rp-sticky { display: none; }
  .app.has-sticky { padding-bottom: 48px; }
  .rp-sec, .rp-close { margin-top: 56px; }
  .rp-method { padding: 32px 36px 28px; }
  .rp-close { padding: 40px 48px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-sticky { transition: none; }
}
/* botão do fechamento numa linha a partir de 360px */
.rp-close { padding-left: 16px; padding-right: 16px; }
.rp-close .btn.primary, .rp-cta .btn.primary { padding-left: 14px; padding-right: 14px; }
@media (max-width: 350px) { .btn.wa { font-size: 15.5px; gap: 8px; } }
/* revisão do crítico visual (rodada 1) */
.rp .card.offer { margin-top: 48px; }
.app.has-sticky .rp a { scroll-margin-bottom: 110px; }
.rp-close .title .em { background: linear-gradient(transparent 82%, rgba(240, 194, 171, .55) 82%); }
.flow li:not(:last-child)::after { bottom: 4px; height: 22px; border-left: 2px dotted #b3a58f; }
.rp-method { background: var(--surface); box-shadow: var(--shadow-sm); }
.app.has-sticky { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .rp .card.offer { margin-top: 56px; } }
.why li > span:last-child, .flow li > span:last-child, .rp-method p { text-wrap: balance; }

/* ---------- quem é a Dra. Bruna (último bloco do resultado) ---------- */
.rp-about { text-align: center; }
.about-photo { display: block; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; margin: 0 auto 24px; object-fit: cover; object-position: 50% 12%;
  height: auto; border-radius: 26px; box-shadow: 0 24px 48px -30px rgba(29, 38, 34, .55), 0 0 0 1px var(--line); background: #3b3d3f; }
.rp-about .eyebrow { margin-bottom: 8px; }
.rp-about .about-name { padding-top: 0; margin-bottom: 4px; }
.rp-about .about-name::before { display: none; }
.about-role { font: 500 16px/1.4 var(--sans); color: var(--ink-2); }
.about-creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 22px; padding: 0; list-style: none; }
.about-creds li { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--brand-deep); }
.about-text { max-width: 32em; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--line); }
.about-text p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.about-text p + p { margin-top: 14px; }
.about-text .em { background: none; padding: 0; font-weight: 600; color: var(--ink); }
@media (min-width: 720px) { .about-photo { max-width: 340px; } }

/* ================= V5: PALETA OFICIAL DA DRA. BRUNA + DENSIDADE ("achei que ficou um pouco grande") =================
   Paleta enviada pela Dra. Bruna, com ajuste medido de acessibilidade (WCAG AA) onde a cor original não passa:
   CARAMELO #AB6E29 ............ decoração: barra de progresso, ícones, bordas de seleção, marca da assinatura (3,9:1: não serve para texto pequeno)
   CARAMELO ESCURO #8F5A1F ..... TÍTULOS e BOTÃO (mesma família do caramelo; 5,4:1 no fundo, texto branco no botão 5,75:1)
   MARROM ESCURO #7A4E1A ....... textos secundários/eyebrows (o rgba .64 da paleta dá 3,05:1: ilegível em 12–15px; aqui é o mesmo marrom, sólido)
   CREME #F8EFE5 → #FAF7F4 ..... degradê do fundo
   MARFIM #F8F2EB .............. fundos de seção
   PÊSSEGO #F2D2AE ............. destaques (marca-texto, selecionado)
   CINZA #333333 ............... texto geral (11,8:1)
   BRANCO ...................... cards, opções e campos */
:root {
  --bg: #FAF7F4;
  --bg-2: #F8EFE5;
  --surface: #FFFFFF;
  --section: #F8F2EB;
  --ink: #333333;
  --ink-2: #4A3F36;
  --muted: #6B5A4A;
  --line: #EADCCB;
  --line-2: #D9C3A6;
  --brand: #8F5A1F;          /* caramelo escuro: texto/botão */
  --brand-deep: #7A4E1A;     /* marrom: secundário, hover */
  --brand-soft: #FBEBD9;     /* pêssego claro: selecionado */
  --brand-tint: #F8F2EB;
  --caramel: #AB6E29;        /* caramelo original: decoração */
  --peach: #F2D2AE;
  --clay: #AB6E29;
  --clay-soft: rgba(242, 210, 174, .75);
  --danger: #B3261E;
  --focus: #8F5A1F;
  --shadow-sm: 0 1px 2px rgba(110, 69, 19, .06);
  --shadow: 0 1px 2px rgba(110, 69, 19, .05), 0 10px 24px -14px rgba(110, 69, 19, .22);
  /* escala tipográfica mais compacta: título da pergunta domina, mas sem "gritar" */
  --t-display: clamp(26px, 2.6vw + 16px, 40px);
  --t-voice: clamp(22px, 1.8vw + 16px, 30px);
  --t-title: clamp(21px, 1.2vw + 16px, 26px);
  --t-sub: 15px;
  --t-option: 16px;
  --t-small: 13px;
  --tap: 50px;
}
body { background: linear-gradient(180deg, #F8EFE5 0%, #FAF7F4 55%) fixed, #FAF7F4; color: var(--ink); }
.eyebrow { color: var(--brand-deep); margin-bottom: 8px; }
.display, .title, .voice { color: var(--brand); }
.sub { color: var(--muted); margin-top: 8px; }
.em { color: inherit; background: linear-gradient(transparent 58%, var(--peach) 58%); }
.sub .em { color: var(--ink); }
/* topo e progresso */
.top { margin-bottom: 12px; min-height: 44px; }
.bar > i { background: var(--caramel); }
.bar { background: #EFE3D4; }
/* pergunta: menos altura por opção e menos respiro morto */
.q-head { margin-bottom: 14px; }
.options { gap: 8px; }
.opt { min-height: var(--tap); padding: 11px 44px; font-size: var(--t-option); border: 1.5px solid #E3CFB5; border-radius: 14px; }
.opt .ind { border-color: #A58157; width: 20px; height: 20px; margin-top: -10px; left: 14px; }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--caramel); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--caramel); }
.opt[aria-pressed="true"] .ind, .opt[aria-checked="true"] .ind { background: var(--caramel); border-color: var(--caramel); }
@media (hover: hover) { .opt:hover { border-color: #D9B98F; } }
.opt:focus-visible, .back:focus-visible, .faq summary:focus-visible { outline-color: var(--focus); }
.options.grid .opt { min-height: 52px; border-color: #D9C3A6; }
.options.tiles .opt { min-height: 112px; padding: 14px 10px; gap: 10px; }
.options.tiles .opt .ico { width: 36px; height: 36px; background: var(--brand-soft); color: var(--caramel); }
.options.tiles .opt .txt b { font-size: 18px; color: var(--brand); }
.options.intensity .opt .meter i.on { background: var(--caramel); }
/* botões: caramelo escuro (texto branco 5,75:1) */
.btn { min-height: var(--tap); padding: 13px 18px; font-size: 16.5px; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -14px rgba(110, 69, 19, .75); }
@media (hover: hover) { .btn.primary:hover { background: var(--brand-deep); } }
.btn.primary:disabled { background: #E6D8C6; color: #6B5A4A; }
.btn.ghost { color: var(--brand); border-color: var(--caramel); }
.btn:focus-visible { outline-color: var(--caramel); }
.sticky { padding-top: 16px; background: linear-gradient(to top, #FAF7F4 60%, rgba(250, 247, 244, 0)); }
/* campos */
.input { border-color: #E3CFB5; }
.input:focus { border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(242, 210, 174, .6); }
.consent input { accent-color: var(--caramel); }
.consent a, .secure svg { color: var(--brand); }
/* assinatura */
.mono { background: var(--caramel); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line-2); }
/* capa */
.cover .sig { margin-bottom: 20px; }
.chips { margin: 18px 0 6px; }
.chips li { padding: 7px 11px; font-size: 13px; }
.chips svg { color: var(--caramel); }
.cover .actions { margin-top: 26px; }
/* fala da Dra. Bruna: uma frase, sem pergunta embaixo */
.voice-card { padding: 22px 20px; background: linear-gradient(160deg, #FFFFFF 0%, var(--section) 100%); border-color: var(--line); }
.voice-card .sig { margin-bottom: 14px; }
.voice-card .lead-in { font-size: 16px; color: var(--brand-deep); margin-bottom: 6px; }
/* preparo */
.load-bar i { background: linear-gradient(90deg, var(--caramel), #C98B45); }
.load-steps li.on svg { background: var(--caramel); }
/* resultado */
.rp-chips svg, .pillar-ico, .flow-ico { color: var(--caramel); }
.why-ico { background: #F8E3CC; color: var(--brand-deep); }
.rp-method { background: var(--section); }
.flow-ico i { background: var(--caramel); box-shadow: 0 0 0 2px var(--bg); }
.rp-h::before { background: var(--caramel); }
.rp-wait { background: var(--brand-soft); border-color: #EFD6B8; }
.rp-wait-ico { color: var(--brand); }
.rp-close { background: radial-gradient(120% 80% at 50% 0%, #9A6427 0%, #6E4513 72%); box-shadow: 0 24px 48px -28px rgba(110, 69, 19, .9); color: #FBF3E9; }
.rp-close .title { color: #FFFFFF; }
.rp-close .title .em { background: linear-gradient(transparent 82%, rgba(242, 210, 174, .7) 82%); color: #FFFFFF; }
.rp-close-t { color: #F6E7D6; }
.rp-close .rp-micro { color: #F2D9BF; }
.rp-close .btn.primary { background: #FFFFFF; color: var(--brand-deep); }
.rp-close .btn:focus-visible { outline-color: var(--peach); }
.about-creds li { color: var(--brand-deep); }
.rp-sticky { background: rgba(250, 247, 244, .94); }
.offer { background: linear-gradient(160deg, #FFFFFF 0%, var(--section) 100%); border-color: var(--line); }
.offer .kicker { color: var(--brand-deep); }
.rp .display { font-size: clamp(26px, 2.6vw + 16px, 40px); }
@media (min-width: 720px) { .app { padding-top: 8vh; } }
/* V5, rodada 2 do crítico visual: secundário no marrom da paleta, contrastes, densidade da múltipla escolha */
:root { --muted: #7E5A36; }
.display { color: var(--caramel); }                  /* >= 26px = texto grande: 3,9:1 passa (AA large) */
.rp-h { color: var(--brand); }
.rp-preview { color: var(--brand-deep); border-color: var(--caramel); }
.load-steps li { color: var(--muted); }
.load-steps li svg { background: #E3CFB5; }
.load-steps li.on { color: var(--ink); font-weight: 500; }
.flow-ico i { background: var(--brand); color: #fff; }
.input::placeholder { color: #857058; }
.rp-close { background: radial-gradient(120% 80% at 50% 0%, #8F5A1F 0%, #5E3A10 72%); }
.rp-close .rp-micro, .rp-close-t { color: #F6E7D6; }
.screen:has(.opt[role="checkbox"]) .q-head { margin-bottom: 10px; }
.screen:has(.opt[role="checkbox"]) .options { gap: 6px; padding-bottom: 4px; }
.screen:has(.opt[role="checkbox"]) .opt { min-height: 46px; padding: 8px 36px 8px 40px; line-height: 1.25; }
.screen:has(.opt[role="checkbox"]) .opt .ind { left: 12px; }
.screen:has(.opt[role="checkbox"]) .sticky { margin-top: 8px; padding-top: 4px; }
@media (max-width: 340px) {
  .opt { font-size: 15px; padding-left: 38px; padding-right: 30px; }
  .opt .ind { left: 12px; }
  .top { margin-bottom: 8px; }
  .q-head .sub { margin-top: 4px; }
}
@media (max-height: 680px) {
  .field { margin-bottom: 10px; }
  .field > span { margin-bottom: 4px; }
  .secure { margin: 0 0 4px; }
  .consent { margin: 4px auto 8px; gap: 6px; }
}
@media (min-width: 720px) {
  :root { --t-sub: 16px; --t-option: 16.5px; }
  .about-text p, .rp-lead { font-size: 16.5px; }
}
/* destaque no título grande: caramelo escuro sobre o pêssego (4,0:1); folga do contato em telas baixas */
.display .em { color: var(--brand); }
@media (max-height: 680px) { .screen:has(input[name="ok"]) .q-head { margin-bottom: 8px; } .screen:has(input[name="ok"]) .sub { line-height: 1.45; } }
.secure { display: block; } .secure svg { display: inline; vertical-align: -2px; margin-right: 4px; }

/* ================= V5.1: destaque dos títulos (feedback: "destaque torto, meio feio") =================
   Em vez do bloco de marca-texto, um traço curvo fino "à caneta" sob a palavra, no caramelo da paleta.
   A espessura do traço não deforma com o tamanho da palavra (vector-effect). Quebrou a linha? Cada pedaço ganha o seu traço. */
.display .em, .title .em, .voice .em, .rp-h .em {
  color: var(--brand);
  padding: 0 .02em .14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5 C 48 3.5, 118 3, 197 6.5' fill='none' stroke='%23AB6E29' stroke-opacity='.7' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat left bottom / 100% .32em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* no bloco escuro do fechamento: traço pêssego, palavra branca */
.rp-close .title .em {
  color: #FFFFFF;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8.5 C 48 3.5, 118 3, 197 6.5' fill='none' stroke='%23F2D2AE' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat left bottom / 100% .32em;
}
/* o destaque nunca quebra de linha: um traço inteiro sob a expressão (pedaço curto parecia rabisco) */
.display .em, .title .em, .voice .em, .rp-h .em { white-space: nowrap; }
