/* Interface provisória (etapa 2, ramo isolado). Identidade definitiva depende do proprietário. */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #efece5; --line: #e1ddd3; --text: #1d2228; --muted: #5f6873;
  --accent: #1f6f5c; --accent-ink: #ffffff; --accent-soft: #dcefe8; --ana: #f2e9dc; --you: #e4eef8;
  --ok: #1f7a4d; --mid: #9a6a12; --low: #b2492b; --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 6px 20px rgba(20, 24, 28, .06);
  --radius: 18px; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b; --surface: #1a2027; --surface-2: #222a33; --line: #2c3540; --text: #eef1f4; --muted: #a3adb8;
    --accent: #4fc0a0; --accent-ink: #0d1a16; --accent-soft: #1d3a33; --ana: #2b2620; --you: #1c2a38;
    --ok: #5fcf93; --mid: #e3b552; --low: #f08a6c; --shadow: none;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.app { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 18px calc(env(safe-area-inset-bottom) + 24px); min-height: 100dvh; }
.view { display: flex; flex-direction: column; gap: 14px; animation: in .18s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
h1, h2, h3 { margin: 0; line-height: 1.25; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin-top: 10px; }
p { margin: 0; }

.demo-banner { position: sticky; top: 0; z-index: 5; background: #7a4b00; color: #fff; font-size: .78rem; text-align: center; padding: calc(env(safe-area-inset-top) + 4px) 8px 4px; letter-spacing: .02em; }

/* início */
.brand { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.logo img { display: block; border-radius: 10px; }
.brand-name { font-weight: 700; }
.tag { margin-left: auto; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.hero { font-size: clamp(1.7rem, 7vw, 2.2rem); letter-spacing: -.01em; margin-top: 18px; }
.hero em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.02rem; }
.how { list-style: none; counter-reset: p; padding: 0; margin: 6px 0; display: grid; gap: 10px; }
.how li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.how li::before { content: counter(p); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.how b { font-weight: 650; } .how span { color: var(--muted); font-size: .9rem; }
.fine { color: var(--muted); font-size: .8rem; } .center { text-align: center; }

/* botões */
.btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; padding: 13px 18px; font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.block { width: 100%; } .btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .icon-btn:focus-visible, .mic:focus-visible, .chip:has(input:focus-visible), .seg label:has(input:focus-visible), .link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon-btn { appearance: none; border: 0; background: var(--surface-2); color: var(--text); width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.link { appearance: none; background: none; border: 0; color: var(--accent); font: inherit; font-size: .88rem; font-weight: 600; padding: 6px 0 0; cursor: pointer; }

/* barra */
.bar { display: flex; align-items: center; gap: 12px; min-height: 44px; }

/* configuração */
.group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.group legend { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-size: .95rem; cursor: pointer; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .seg.three { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; gap: 2px; height: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 12px; cursor: pointer; }
.seg small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.seg input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.field { display: grid; gap: 6px; margin-top: 4px; } .field span { font-size: .85rem; color: var(--muted); }
input[type=text] { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(env(safe-area-inset-bottom) + 4px); background: linear-gradient(transparent, var(--bg) 30%); display: grid; gap: 6px; }

/* termo */
.bullets { padding-left: 18px; margin: 0; display: grid; gap: 6px; font-size: .94rem; }
.check { display: flex; gap: 10px; align-items: flex-start; } .check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }

/* entrevista */
.talk { min-height: calc(100dvh - 36px); }
.progress { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.step { font-size: .82rem; color: var(--muted); min-width: 52px; text-align: right; }
.stage { display: grid; justify-items: center; gap: 6px; margin-top: 4px; }
.avatar-wrap { border-radius: 50%; padding: 5px; background: var(--surface-2); transition: box-shadow .2s; }
.avatar { width: 136px; height: 136px; display: block; }
.avatar .bg { fill: #cfe3dc; } .avatar .face { fill: #e9bb94; } .avatar .hair { fill: #3a2a22; } .avatar .eye { fill: #232323; }
.avatar .brow { fill: none; stroke: #3a2a22; stroke-width: 2.5; stroke-linecap: round; }
.avatar .mouth { fill: #8a3434; } .avatar .body { fill: #1f6f5c; } .avatar .collar { fill: none; stroke: #f6f4ef; stroke-width: 4; stroke-linejoin: round; }
.avatar-wrap.talking { box-shadow: 0 0 0 4px var(--accent-soft); }
.avatar-wrap.talking .mouth { animation: talk .2s infinite alternate; }
.avatar-wrap.listening { box-shadow: 0 0 0 4px #b9d7f2; }
.avatar-wrap.thinking .avatar { animation: think 1.2s ease-in-out infinite; }
@keyframes talk { from { ry: 2px; } to { ry: 8px; } }
@keyframes think { 50% { transform: translateY(-3px); } }
.who { color: var(--muted); font-size: .9rem; } .state { color: var(--accent); font-weight: 600; }
.bubble { border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; }
.bubble.ana { background: var(--ana); border-top-left-radius: 6px; }
.bubble.you { background: var(--you); border-top-right-radius: 6px; margin-left: 24px; }
.bubble .lbl { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bubble.ana p { font-size: 1.12rem; line-height: 1.45; } .bubble.you p { font-style: italic; }
.aviso { color: var(--low); font-size: .9rem; min-height: 1px; }
.dock { margin-top: auto; position: sticky; bottom: 0; display: grid; justify-items: center; gap: 8px; padding: 14px 0 calc(env(safe-area-inset-bottom) + 6px); background: linear-gradient(transparent, var(--bg) 26%); }
.mic { --lvl: 0; position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(31, 111, 92, .35); }
.mic svg { width: 34px; height: 34px; fill: currentColor; position: relative; }
.mic .ico-send { display: none; }
.mic.rec { background: #c2412b; box-shadow: 0 6px 18px rgba(194, 65, 43, .35); }
.mic.rec .ico-mic { display: none; } .mic.rec .ico-send { display: block; }
.mic .ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid currentColor; opacity: 0; transform: scale(calc(1 + var(--lvl) * .35)); transition: transform .08s; pointer-events: none; color: #c2412b; }
.mic.rec .ring { opacity: .45; }
.mic:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; }
.hint { color: var(--muted); font-size: .88rem; text-align: center; min-height: 2.6em; max-width: 34ch; }

/* resultado */
.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.dial { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.dial b { font-size: 1.7rem; line-height: 1; } .dial small { color: var(--muted); font-size: .75rem; }
.sub { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.plano { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plano li { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.plano b { font-size: .95rem; } .plano span { font-size: .93rem; }
.comp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; margin-bottom: 8px; }
.comp header { display: flex; justify-content: space-between; font-weight: 650; }
.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--ok); }
.meter.mid i { background: var(--mid); } .meter.low i { background: var(--low); }
.score { color: var(--ok); } .score.mid { color: var(--mid); } .score.low { color: var(--low); }
.quote { color: var(--muted); font-size: .9rem; font-style: italic; }
.better { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; margin-bottom: 8px; font-size: .95rem; }
.better .o { color: var(--muted); } .better .m { font-weight: 550; }
.actions { display: grid; gap: 8px; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Visual "EUA" para comparação (ideia do proprietário, decisão do GPT de 01/12): azul-marinho, branco e vermelho pontual,
   sem bandeira nem promessa de visto/emprego. Ativado por ?tema=eua. */
:root[data-tema="eua"] {
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #e8edf5; --line: #d5dce8; --text: #0f1b33; --muted: #536079;
  --accent: #1b3a6b; --accent-ink: #ffffff; --accent-soft: #e3eaf6; --ana: #eef2f9; --you: #fbecee; --red: #b8222f;
}
@media (prefers-color-scheme: dark) {
  :root[data-tema="eua"] {
    --bg: #0b1426; --surface: #12203b; --surface-2: #1a2b4c; --line: #263a60; --text: #eef2fa; --muted: #a8b4cc;
    --accent: #7ea6e6; --accent-ink: #0b1426; --accent-soft: #1b2f55; --ana: #172848; --you: #3a1c24; --red: #ff6b75;
  }
}
:root[data-tema="eua"] .hero em { color: var(--red); }
:root[data-tema="eua"] .how li::before { background: var(--accent-soft); color: var(--red); }
:root[data-tema="eua"] .brand { border-bottom: 3px solid var(--red); padding-bottom: 10px; }
:root[data-tema="eua"] .avatar .bg { fill: #dfe7f4; }
:root[data-tema="eua"] .avatar .body { fill: #1b3a6b; }
:root[data-tema="eua"] .dial { background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--red) calc(var(--p) * 1%), var(--surface-2) 0); }
:root[data-tema="eua"] .mic { box-shadow: 0 6px 18px rgba(27, 58, 107, .35); }

/* links de comparação (só desenvolvimento) */
.dev-switch { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; }
.dev-switch a { color: var(--accent); text-decoration: none; cursor: pointer; }
.dev-switch a[aria-current] { font-weight: 700; text-decoration: underline; }
.dev-switch .sep { opacity: .5; }

/* opinião ao fim (links gratuitos) */
.opiniao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; margin-top: 8px; }
.estrelas { display: flex; gap: 6px; }
.estrelas button { appearance: none; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.estrelas button.on { color: #d9a441; }
.opiniao textarea { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; font-size: 16px; resize: vertical; }

/* IdiomaPro: login e conta (02/12/2026) */
.login-form { display: grid; gap: 10px; margin: 12px 0; }
.login-form input[type=email], .login-form input[type=text] { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
#login-codigo { letter-spacing: .3em; text-align: center; font-size: 22px; }
.conta { margin-top: 18px; font-size: .85rem; color: var(--muted, #667); text-align: center; line-height: 1.8; }
.plano { text-align: center; font-weight: 600; }

/* IdiomaPro: página de vendas e assinatura (02/12/2026) */
.vendas { margin-top: 22px; display: grid; gap: 10px; }
.vendas h2 { margin: 14px 0 4px; font-size: 1.15rem; }
.precos { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .precos { grid-template-columns: 1fr; } }
.preco { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); display: grid; gap: 4px; }
.preco b { font-size: 1.15rem; }
.preco span { font-size: .88rem; color: var(--muted, #667); }
.preco.destaque { border-color: var(--accent, #1d3a6e); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #1d3a6e) 25%, transparent); }
.faq { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.faq li { display: grid; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.faq li span { color: var(--muted, #667); font-size: .92rem; }
.assinar { display: grid; gap: 8px; margin: 8px 0; }
