/* Instituto Repor — Lista de Espera · estilos
   Identidade da página viva: NAVY + TEAL, clínica e premium.
   Plus Jakarta Sans + IBM Plex Mono. Self-contained (sem tokens.css).
   Mobile-first. Breakpoints: 600 · 768 · 1024. */

:root {
  /* type */
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* surfaces */
  --page: #ECF2F3;
  --paper: #FFFFFF;
  --ivory: #F4F8F8;
  --bone-deep: #E1EAEB;

  /* navy ink family */
  --ink: #15273E;
  --ink-soft: #41546C;
  --ink-mute: #74879C;
  --ink-faint: #A2B1BF;

  /* dark sections (navy) */
  --midnight: #112846;
  --midnight-2: #0B1D36;
  --midnight-soft: #34475F;

  /* teal accent (mapeado nos nomes 'gold' p/ reaproveitar regras) */
  --gold: #16A99C;
  --gold-deep: #0C7F75;
  --gold-pale: #BDE6E0;

  /* whatsapp */
  --wa: #1FA463;
  --wa-deep: #16864F;

  /* pain heat */
  --pain-1: #F4C566;
  --pain-2: #E5883A;
  --pain-3: #C5433A;

  /* lines */
  --line: #E0E8EB;
  --line-soft: #EDF2F3;
  --line-strong: #C9D5DA;
  --line-dark: rgba(255,255,255,.13);

  /* radii / shadow */
  --r-sm: 9px; --r-md: 13px; --r-lg: 18px; --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(17,40,70,.06);
  --shadow-2: 0 8px 26px -12px rgba(17,40,70,.20);
  --shadow-3: 0 26px 64px -30px rgba(17,40,70,.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--page);
  line-height: 1.5; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.display-i { font-style: italic; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow img { height: 16px; width: auto; }
.eyebrow.plain::before { content: ""; width: 18px; height: 1px; background: var(--gold-deep); opacity: .55; }
.micro { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 12px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .16s, border-color .16s, color .16s, transform .12s, box-shadow .16s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ic { font-size: 17px; line-height: 0; transition: transform .16s; }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--gold-deep); color: #fff; box-shadow: 0 10px 24px -12px rgba(12,127,117,.7); }
.btn-primary:hover { background: #0a6b63; }
.btn-dark { background: var(--midnight); color: #fff; }
.btn-dark:hover { background: var(--midnight-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(17,40,70,.04); border-color: var(--midnight-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.wa-ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ============================ HEADER ============================ */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(236,242,243,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.hdr-brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.hdr-brand .logo { height: 34px; width: auto; }
.hdr-nav { display: none; }
@media (min-width: 1024px) { .hdr-nav { display: flex; align-items: center; gap: 4px; } }
.hdr-nav a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; transition: background .14s, color .14s; }
.hdr-nav a:hover { background: rgba(17,40,70,.05); color: var(--ink); }
.hdr-nav a.active { color: var(--gold-deep); }
.hdr .btn-wa-top .label-full { display: none; }
@media (min-width: 768px) { .hdr .btn-wa-top .label-full { display: inline; } .hdr .btn-wa-top .label-short { display: none; } }

/* ============================ HERO ============================ */
.hero { padding: 44px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
@media (min-width: 1024px) { .hero { padding: 74px 0 58px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { font-size: clamp(36px, 8vw, 62px); margin: 20px 0 0; color: var(--midnight-2); }
.hero h1 em { color: var(--gold-deep); font-style: italic; }
.hero-sub { margin-top: 20px; font-size: clamp(16px, 2.4vw, 19px); color: var(--ink-soft); max-width: 31em; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-seal { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 10px 16px 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); width: fit-content; }
.hero-seal .mk { width: 38px; height: 38px; border-radius: 10px; background: var(--ivory); display: grid; place-items: center; flex: 0 0 auto; }
.hero-seal .mk img { width: 22px; height: 22px; }
.hero-seal small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.hero-seal small b { color: var(--ink); font-weight: 700; }
.hero-media { position: relative; }
.hero-media .hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: var(--r-xl); box-shadow: var(--shadow-3); }
@media (min-width: 1024px) { .hero-media .hero-photo { aspect-ratio: 5 / 6; } }
.hero-media .badge { position: absolute; left: -10px; bottom: 22px; background: var(--midnight); color: #fff; border-radius: var(--r-lg); padding: 14px 18px; box-shadow: var(--shadow-3); max-width: 232px; }
.hero-media .badge .micro { color: var(--gold-pale); }
.hero-media .badge p { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.12; margin-top: 5px; letter-spacing: -.02em; }

/* ============================ PROOF ============================ */
.proof { padding: 18px 0 8px; }
.proof-head { max-width: 38em; margin-bottom: 30px; }
.proof-head h2 { font-size: clamp(26px, 4.4vw, 38px); color: var(--midnight-2); margin-top: 12px; }
.proof-head p { margin-top: 12px; font-size: 15px; color: var(--ink-mute); }
.proof-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .proof-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 12px; }
.pcard .ic-wrap { width: 42px; height: 42px; border-radius: 12px; background: var(--ivory); display: grid; place-items: center; color: var(--gold-deep); }
.pcard .ic-wrap svg { width: 22px; height: 22px; }
.pcard h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pcard p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; font-weight: 400; }

.numbers { margin-top: 22px; background: var(--midnight); color: #fff; border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr; padding: 6px 0; overflow: hidden; }
@media (min-width: 600px) { .numbers { grid-template-columns: repeat(3, 1fr); } }
.numbers .n { padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; position: relative; }
@media (min-width: 600px) { .numbers .n + .n::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line-dark); } }
@media (max-width: 599px) { .numbers .n + .n { border-top: 1px solid var(--line-dark); } }
.numbers .n b { font-family: var(--display); font-weight: 700; font-size: 33px; line-height: 1; color: var(--gold-pale); letter-spacing: -.02em; }
.numbers .n span { font-size: 12.5px; color: rgba(255,255,255,.7); }

/* ============================ AVISO ============================ */
.aviso { display: flex; gap: 14px; align-items: flex-start; background: #E4F2F0; border: 1px solid #BCDFD9; border-radius: var(--r-lg); padding: 18px 20px; margin: 40px 0 0; }
.aviso .ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-pale); color: #0C6B62; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.aviso p { font-size: 14px; color: #2C5A55; line-height: 1.5; font-weight: 400; }
.aviso p b { color: #134840; font-weight: 700; }

/* ============================ WIZARD ============================ */
.wizard { padding: 24px 0 20px; scroll-margin-top: 80px; }
.wz-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); overflow: hidden; }
.wz-top { padding: 22px 22px 0; }
@media (min-width: 768px) { .wz-top { padding: 28px 34px 0; } }
.wz-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wz-count { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.wz-minute { font-size: 12px; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 6px; }
.wz-minute svg { width: 14px; height: 14px; }
.wz-progress { height: 5px; background: var(--bone-deep); border-radius: 999px; overflow: hidden; }
.wz-progress > i { display: block; height: 100%; width: 12%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.wz-title { font-family: var(--display); font-weight: 700; font-size: clamp(23px, 4vw, 30px); color: var(--midnight-2); margin: 18px 0 2px; letter-spacing: -.02em; }

.wz-body { padding: 18px 22px 8px; min-height: 220px; }
@media (min-width: 768px) { .wz-body { padding: 22px 34px 10px; } }
.fstep { animation: fade .35s ease both; }
.fstep[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fstep-lead { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; max-width: 48em; line-height: 1.55; }
.fstep-lead b { color: var(--ink); font-weight: 700; }
.fstep-flash { margin-bottom: 16px; font-size: 13px; color: var(--pain-3); background: #FBEDEB; border: 1px solid #F0CFC9; border-radius: var(--r-sm); padding: 9px 13px; }

.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 22px; border-top: 1px solid var(--line-soft); margin-top: 8px; }
@media (min-width: 768px) { .wz-foot { padding: 18px 34px 26px; } }
.wz-back { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 8px; background: none; border: 0; color: var(--ink-mute); font: 500 14px var(--sans); cursor: pointer; border-radius: 8px; }
.wz-back:hover:not(:disabled) { color: var(--ink); }
.wz-back:disabled { opacity: 0; pointer-events: none; }

/* ——— selects (atendimento) ——— */
.qgrid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .qgrid { grid-template-columns: 1fr 1fr; } .qgrid .col-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.field > label .req { color: var(--gold-deep); }
.selectwrap { position: relative; }
.selectwrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.selectwrap.is-disabled { opacity: .55; }
select.input, input.input, textarea.input {
  width: 100%; font: 400 15px var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 0 16px; height: 54px;
  outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select.input { padding-right: 40px; cursor: pointer; }
textarea.input { height: auto; min-height: 96px; padding: 13px 16px; line-height: 1.5; resize: vertical; }
input.input::placeholder, textarea.input::placeholder { color: var(--ink-faint); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(22,169,156,.16); }
select.input:invalid { color: var(--ink-faint); }
.field-hint { font-size: 11.5px; color: var(--ink-mute); margin-top: -2px; }

/* ——— question blocks (chips) ——— */
.qblock { padding: 4px 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.qblock:last-child { border-bottom: 0; margin-bottom: 0; }
.qblock > .q { font-size: 15.5px; color: var(--ink); font-weight: 600; line-height: 1.45; margin-bottom: 13px; }
.qblock > .q .qn { font-family: var(--mono); font-size: 12px; color: var(--gold-deep); margin-right: 8px; font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 9px; }
.seg-opt { flex: 1 1 auto; min-width: 110px; justify-content: center; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 11px; font: 500 14px var(--sans); color: var(--ink-soft); cursor: pointer; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; text-align: center; }
.seg-opt:hover { border-color: var(--midnight-soft); color: var(--ink); }
.seg-opt[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: #fff; box-shadow: 0 6px 16px -8px rgba(17,40,70,.5); }
.seg.is-binary .seg-opt { flex: 1 1 0; min-width: 120px; justify-content: center; }
.seg.is-yn .seg-opt[data-val="Sim"][aria-pressed="true"] { background: var(--gold-deep); border-color: var(--gold-deep); }
.seg.is-yn .seg-opt[data-val="Não"][aria-pressed="true"] { background: var(--midnight-soft); border-color: var(--midnight-soft); }

/* ——— body map ——— */
.bodymap { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .bodymap { grid-template-columns: minmax(240px, 320px) 1fr; gap: 28px; align-items: start; } }
.bm-left { display: flex; flex-direction: column; gap: 14px; }
.bm-views { display: inline-flex; gap: 4px; padding: 4px; background: var(--bone-deep); border-radius: 999px; align-self: center; }
.bm-viewtab { height: 36px; padding: 0 18px; border: 0; background: none; border-radius: 999px; font: 600 13px var(--sans); color: var(--ink-mute); cursor: pointer; }
.bm-viewtab[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.bm-stage { position: relative; }
.bm-figure { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 100 / 165; }
.bm-figure[hidden] { display: none; }
.bm-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: #D7E2E3; }
.bm-region { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.bm-dot { width: 100%; min-width: 26px; height: 100%; min-height: 22px; border-radius: 999px; background: rgba(17,40,70,.07); border: 1.5px dashed var(--midnight-soft); transition: all .15s; }
.bm-region:hover .bm-dot { background: rgba(17,40,70,.14); }
.bm-region[data-level="1"] .bm-dot { background: var(--pain-1); border-style: solid; border-color: transparent; }
.bm-region[data-level="2"] .bm-dot { background: var(--pain-2); border-style: solid; border-color: transparent; }
.bm-region[data-level="3"] .bm-dot { background: var(--pain-3); border-style: solid; border-color: transparent; box-shadow: 0 0 0 4px rgba(197,67,58,.18); }
.bm-tip { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: var(--midnight); color: #fff; font-size: 11px; padding: 4px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .14s; z-index: 3; }
.bm-region:hover .bm-tip { opacity: 1; }
.bm-right { display: flex; flex-direction: column; gap: 14px; }
.bm-legend { display: flex; flex-wrap: wrap; gap: 14px; }
.bm-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-mute); }
.bm-legend i { width: 14px; height: 14px; border-radius: 50%; }
.bm-counter { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.bm-selected { display: flex; flex-wrap: wrap; gap: 9px; min-height: 40px; padding: 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); align-content: flex-start; }
.bm-empty { font-size: 13px; color: var(--ink-mute); line-height: 1.5; }
.bm-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink); }
.bm-pill i { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; color: #fff; }
.bm-pill[data-level="1"] i { background: #b8901f; }
.bm-pill[data-level="2"] i { background: var(--pain-2); }
.bm-pill[data-level="3"] i { background: var(--pain-3); }
.bm-hint { font-size: 12.5px; color: var(--ink-mute); }
.bm-hint b { color: var(--ink); font-weight: 700; }

/* ——— optin checkbox ——— */
.optin { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 6px; cursor: pointer; }
.optin input { position: absolute; opacity: 0; width: 0; height: 0; }
.optin .box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--paper); display: grid; place-items: center; transition: all .15s; margin-top: 1px; }
.optin .box svg { width: 14px; height: 14px; opacity: 0; color: #fff; transition: opacity .15s; }
.optin input:checked + .box { background: var(--wa); border-color: var(--wa); }
.optin input:checked + .box svg { opacity: 1; }
.optin input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(31,164,99,.2); }
.optin span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }

.gate-err { font-size: 13px; color: var(--pain-3); background: #FBEDEB; border: 1px solid #F0CFC9; border-radius: var(--r-sm); padding: 10px 13px; margin-bottom: 16px; }
.gate-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-mute); display: flex; gap: 8px; align-items: flex-start; }
.gate-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--gold-deep); }

/* ============================ DONE ============================ */
.done { padding: 30px 0 10px; }
.done[hidden] { display: none; }
.done-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); overflow: hidden; }
.done-hero { padding: 40px 24px 34px; text-align: center; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--ivory) 100%); border-bottom: 1px solid var(--line-soft); }
@media (min-width: 768px) { .done-hero { padding: 52px 40px 40px; } }
.done-check { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-deep); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 12px 28px -10px rgba(12,127,117,.6); }
.done-check svg { width: 32px; height: 32px; }
.done-hero h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 5vw, 40px); color: var(--midnight-2); letter-spacing: -.02em; }
.done-hero p { margin-top: 12px; font-size: 16px; color: var(--ink-soft); max-width: 32em; margin-inline: auto; }
.done-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.done-tag { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 9px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.done-tag .micro { color: var(--ink-mute); }
.done-tag b { font-size: 14px; color: var(--ink); font-weight: 700; }

.convert { padding: 28px 24px; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; background: var(--midnight); color: #fff; }
@media (min-width: 768px) { .convert { grid-template-columns: 1.4fr auto; padding: 32px 40px; gap: 30px; } }
.convert h3 { font-family: var(--display); font-weight: 700; font-size: clamp(23px, 3.5vw, 30px); color: #fff; letter-spacing: -.02em; }
.convert p { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.75); max-width: 40em; }
.convert .eyebrow { color: var(--gold-pale); }
.convert .eyebrow.plain::before { background: var(--gold-pale); }

.analysis { padding: 26px 24px 30px; }
@media (min-width: 768px) { .analysis { padding: 30px 40px 36px; } }
.analysis .eyebrow { margin-bottom: 12px; }
.analysis h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--midnight-2); margin-bottom: 10px; letter-spacing: -.02em; }
.analysis p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 52em; font-weight: 400; }
.analysis .disc { margin-top: 14px; font-size: 12px; color: var(--ink-faint); }

/* ============================ FOOTER ============================ */
.ftr { margin-top: 56px; background: var(--midnight-2); color: rgba(255,255,255,.82); }
.ftr-in { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 40px 0 34px; }
@media (min-width: 768px) { .ftr-in { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } }
.ftr .logo { height: 30px; width: auto; margin-bottom: 14px; }
.ftr p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 30em; font-weight: 400; }
.ftr h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-pale); margin-bottom: 12px; font-weight: 500; }
.ftr a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; padding: 5px 0; }
.ftr a:hover { color: #fff; }
.ftr a svg { width: 16px; height: 16px; opacity: .8; }
.ftr-list { display: flex; flex-direction: column; }
.ftr-bot { border-top: 1px solid var(--line-dark); padding: 16px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ftr-bot small { font-size: 11.5px; color: rgba(255,255,255,.45); }

/* sticky mobile CTA */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(236,242,243,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.mcta .btn { flex: 1 1 0; height: 48px; }
@media (min-width: 768px) { .mcta { display: none; } }
.has-mcta { padding-bottom: 78px; }
@media (min-width: 768px) { .has-mcta { padding-bottom: 0; } }

/* ============================ MAPA DA DOR · pintura real ============================ */
.bm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.bm-tools-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.bm-brush { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.bm-brush button { height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); font: 600 13px var(--sans); color: var(--ink-soft); cursor: pointer; transition: all .14s; }
.bm-brush button:hover { border-color: var(--midnight-soft); }
.bm-brush button[data-level="1"][aria-pressed="true"] { background: var(--pain-1); border-color: var(--pain-1); color: #5a4410; }
.bm-brush button[data-level="2"][aria-pressed="true"] { background: var(--pain-2); border-color: var(--pain-2); color: #fff; }
.bm-brush button[data-level="3"][aria-pressed="true"] { background: var(--pain-3); border-color: var(--pain-3); color: #fff; }
.bm-clear { margin-left: auto; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); font: 500 13px var(--sans); color: var(--ink-mute); cursor: pointer; }
.bm-clear:hover { color: var(--ink); border-color: var(--midnight-soft); }
@media (min-width: 768px) { .bodymap { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.bm-paintcol { display: flex; flex-direction: column; gap: 10px; }
.bm-figwrap { position: relative; width: 100%; max-width: 540px; margin: 0 auto; touch-action: none; }
.bm-figwrap #bodyimg { width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; }
.bm-figwrap #paint { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.bm-sidelabels { position: absolute; top: 4px; left: 0; right: 0; height: 0; pointer-events: none; }
.bm-sidelabels span { position: absolute; transform: translateX(-50%); font: 700 12px var(--sans); color: var(--ink-mute); }
.bm-figviews { display: flex; justify-content: space-around; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

/* escala de gravidade (ACR) — auxílio de cor: neutro → amarelo → laranja → vermelho */
.seg.is-scale .seg-opt:nth-child(1)[aria-pressed="true"] { background: var(--ink-mute); border-color: var(--ink-mute); color: #fff; }
.seg.is-scale .seg-opt:nth-child(2)[aria-pressed="true"] { background: var(--pain-1); border-color: var(--pain-1); color: #5a4410; }
.seg.is-scale .seg-opt:nth-child(3)[aria-pressed="true"] { background: var(--pain-2); border-color: var(--pain-2); color: #fff; }
.seg.is-scale .seg-opt:nth-child(4)[aria-pressed="true"] { background: var(--pain-3); border-color: var(--pain-3); color: #fff; }

/* autocomplete de cidade (IBGE) */
.cidade-ac { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-2); max-height: 244px; overflow: auto; }
.cidade-ac[hidden] { display: none; }
.cidade-opt { padding: 11px 14px; font-size: 14px; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.cidade-opt:hover, .cidade-opt.is-active { background: var(--ivory); }
.cidade-opt span { color: var(--ink-mute); font-size: 12px; align-self: center; }

/* botão final desabilitado (gate sem opt-in) */
.btn-primary:disabled { background: var(--line-strong); color: var(--ink-faint); box-shadow: none; cursor: not-allowed; }
.btn-primary:disabled:hover .ic { transform: none; }

/* resultado educativo (conclusão) */
.res-type { display: inline-block; font: 700 16px var(--sans); letter-spacing: -.01em; color: #fff; background: var(--midnight); padding: 8px 16px; border-radius: 999px; margin-bottom: 16px; }
.res-scores { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.res-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); background: var(--ivory); border: 1px solid var(--line); padding: 8px 13px; border-radius: 10px; }
.res-chip b { font-family: var(--mono); font-size: 14px; color: var(--gold-deep); }
#done-analysis p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
#done-analysis .res-cta { color: var(--ink); font-size: 15.5px; }
#done-analysis .res-disc { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--ink-faint); }

/* resultado clínico — fenótipos (gauges + veredito) estilo lista */
.rxgrid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 640px) { .rxgrid { grid-template-columns: repeat(3, 1fr); } }
.rxcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1); }
.rxh { font-weight: 700; font-size: 16px; color: var(--ink); }
.rxsub { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.rxbig { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; margin: 16px 0 12px; letter-spacing: -.02em; }
.rxbig small { font-size: 16px; font-weight: 600; color: var(--ink-mute); margin-left: 2px; }
.rxbar { height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.rxbar i { display: block; height: 100%; border-radius: 99px; }
.rxband { margin-top: 10px; font-weight: 700; font-size: 13px; }
.rxverdict { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 4px; }
@media (min-width: 640px) { .rxverdict { grid-template-columns: 1fr 1fr; } }
.rxmark { background: var(--midnight); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.rxtype { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--mc, var(--pain-2)); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
.rxlbl { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.rxmark .rxlbl { color: var(--gold-pale); }
.rxtype .rxlbl { color: var(--ink-mute); }
.rxmark b { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; display: block; }
.rxex { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-faint); }
.rxt { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.rxtype p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
