@font-face { font-family: Inter; src: url('/web-v1/fonts/inter-400-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/web-v1/fonts/inter-600-latin-ext.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
:root { --wa-green: #075e54; --wa-green-soft: #128c7e; --wa-send: #d9fdd3; --paper: #efeae2; --ink: #111b21; --muted: #667781; --line: #d8dfe2; --white: #fff; --danger: #d63d36; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, system-ui, sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #34b7f1; outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 50; padding: 10px; background: var(--white); }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 max(16px, calc((100vw - 760px) / 2)); background: var(--wa-green); display: flex; align-items: center; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.avatar { display: block; width: 40px; height: 40px; overflow: hidden; border: 2px solid rgb(255 255 255 / 78%); border-radius: 50%; background: #d7e7e5; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; line-height: 1; }
.brand-copy small { color: #d1e6e3; font-size: 11px; }
.shell { width: min(760px, 100%); min-height: calc(100vh - 64px); margin: 0 auto; background: var(--paper); }
.conversation { min-height: calc(100vh - 64px); padding: 16px 16px 26px; display: flex; flex-direction: column; }
.progress-wrap { position: sticky; top: 64px; z-index: 10; margin: -16px -16px 12px; padding: 10px 16px; background: rgb(239 234 226 / 96%); backdrop-filter: blur(8px); }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 600; }
.progress-track { height: 3px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #d7d2cb; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--wa-green-soft); transition: width .25s ease; }
.chat { min-height: 0; display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 4px 0 16px; }
.bubble { position: relative; max-width: min(88%, 550px); padding: 10px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgb(0 0 0 / 12%); font-size: 15px; line-height: 1.45; overflow-wrap: break-word; }
.bubble.assistant { align-self: flex-start; border-top-left-radius: 1px; background: var(--white); }
.bubble.user { align-self: flex-end; border-top-right-radius: 1px; background: var(--wa-send); font-weight: 500; }
.bubble.context { color: #44535a; font-size: 13px; }
.bubble.checkpoint { width: min(100%, 620px); max-width: 100%; border-left: 3px solid var(--wa-green-soft); border-top-left-radius: 0; padding: 18px; }
.checkpoint-kicker { display: block; margin-bottom: 8px; color: var(--wa-green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bubble.checkpoint strong { display: block; font-size: clamp(26px, 6vw, 38px); line-height: 1.05; letter-spacing: -.035em; }
.bubble.checkpoint p { max-width: 58ch; margin: 12px 0 0; color: #44535a; font-size: 15px; line-height: 1.55; }
.bubble::after { content: ''; position: absolute; top: 0; width: 10px; height: 10px; }
.bubble.assistant::after { left: -6px; border-top: 8px solid var(--white); border-left: 8px solid transparent; }
.bubble.user::after { right: -6px; border-top: 8px solid var(--wa-send); border-right: 8px solid transparent; }
.answer-panel { position: sticky; bottom: 0; margin: auto -16px -26px; padding: 10px 16px 16px; background: rgb(239 234 226 / 97%); border-top: 1px solid rgb(0 0 0 / 5%); backdrop-filter: blur(8px); }
.field-label { display: block; margin: 0 0 7px 2px; color: #52626b; font-size: 12px; font-weight: 600; }
.text-input, .text-area { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); outline: 0; padding: 13px 14px; box-shadow: 0 1px 1px rgb(0 0 0 / 5%); }
.text-input { min-height: 48px; }
.text-area { min-height: 92px; resize: vertical; line-height: 1.45; }
.text-input:focus, .text-area:focus { border-color: var(--wa-green-soft); box-shadow: 0 0 0 2px rgb(18 140 126 / 16%); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option-button { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); text-align: left; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.option-button:hover, .option-button[aria-pressed="true"] { border-color: var(--wa-green-soft); background: #e7f7f3; }
.option-button[aria-pressed="true"]::after { content: 'selecionado'; float: right; color: var(--wa-green); font-size: 10px; font-weight: 700; }
.consent-box { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; background: var(--white); color: #44535a; font-size: 13px; line-height: 1.45; }
.consent-box input { width: 18px; height: 18px; margin: 0; accent-color: var(--wa-green-soft); }
.field-error { min-height: 18px; margin: 7px 2px 0; color: var(--danger); font-size: 12px; }
.actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.primary-button, .secondary-button { min-height: 44px; border-radius: 7px; padding: 0 16px; cursor: pointer; font-size: 14px; font-weight: 700; }
.primary-button { border: 1px solid var(--wa-green-soft); background: var(--wa-green-soft); color: var(--white); }
.primary-button:hover { background: var(--wa-green); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.secondary-button { border: 1px solid var(--line); background: var(--white); color: #52626b; }
.result { min-height: calc(100vh - 64px); padding: 34px 18px 52px; background: var(--paper); }
.eyebrow { margin: 0 0 12px; color: var(--wa-green); font-size: 12px; font-weight: 700; }
.result-heading { display: grid; grid-template-columns: 1fr 120px; gap: 18px; align-items: start; }
.result h2 { margin: 0; font-size: clamp(28px, 7vw, 45px); line-height: 1.02; letter-spacing: -.04em; }
#resultSummary { color: #52626b; line-height: 1.55; }
.score-card { padding: 16px; border-radius: 10px; background: var(--white); text-align: center; box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.score-card strong { color: var(--wa-green); font-size: 42px; letter-spacing: -.06em; white-space: nowrap; }
.score-card span, .score-card small { color: var(--muted); font-size: 11px; }
.score-card small { display: block; margin-top: 5px; }
.dimensions, .priority-list { display: grid; gap: 8px; margin: 28px 0; padding: 0; list-style: none; }
.dimension, .priority-list li, .next-step { border-radius: 9px; background: var(--white); box-shadow: 0 1px 2px rgb(0 0 0 / 10%); }
.dimension { padding: 13px; }
.dimension-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.dimension-head span:last-child { color: var(--wa-green); font-weight: 700; white-space: nowrap; }
.meter { height: 5px; overflow: hidden; border-radius: 5px; background: #e6e9e9; }
.meter span { display: block; height: 100%; background: var(--wa-green-soft); }
.priority-section { margin-top: 32px; }
.priority-list li { padding: 15px; color: #52626b; line-height: 1.45; }
.priority-list strong { color: var(--ink); }
.next-step { margin-top: 28px; padding: 18px; }
.next-step h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.1; }
.next-step p { color: #52626b; line-height: 1.5; }
.next-step .primary-button { display: inline-flex; align-items: center; text-decoration: none; }
.footer { padding: 16px; background: #e5dfd6; color: #667781; text-align: center; font-size: 11px; }
@media (max-width: 520px) { .conversation { padding-left: 10px; padding-right: 10px; } .progress-wrap { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; } .answer-panel { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; } .bubble { max-width: 92%; } .option-grid { grid-template-columns: 1fr; } .result-heading { grid-template-columns: 1fr; } .score-card { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Keep long response choices below the current question on phones. */
@media (max-width: 520px) { .answer-panel { position: static; } .bubble { scroll-margin-top: 118px; } }
