/* Marca Oliveira (site original): marinho #172e54, azul #26427b, dourado #e6c26b, creme #fefaed */
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Bold.otf") format("opentype"); font-weight: 700 800; font-display: swap; }
:root {
  --ink: #172e54;
  --muted: #3d5277;
  --bg: #fefaed;
  --card: #ffffff;
  --brand: #172e54;
  --brand-2: #26427b;
  --navy: #172e54;
  --navy-2: #26427b;
  --who-line: #172e54;   /* borda/seta dos botões "para quem" */
  --who-link: #26427b;   /* "Prefiro falar com uma pessoa" */
  --on-navy: #ffffff;
  --on-navy-muted: #d8dfee;
  --accent: #e6c26b;
  --accent-soft: #fbf1d6;
  --accent-ink: #7d5c12;
  --gold-grad: linear-gradient(180deg, #edd28e 0%, #e6c26b 45%, #c9a95e 100%);
  --on-gold: #172e54;
  --line: #e8e1cc;
  --line-strong: #8a8f9c;
  --bubble-bot: #eef2f8;
  --bubble-me: #172e54;
  --ok: #1f8a4c;
  --on-brand: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 46, 84, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f1e8; --muted: #c3cbe0; --bg: #0e1a30; --card: #172e54; --brand: #e6c26b; --brand-2: #edd28e;
    --navy: #0b1527; --navy-2: #1f3969; --accent-soft: #22314f; --accent-ink: #e6c26b; --line: #2a3f66;
    --line-strong: #7083a8; --bubble-bot: #1f3969; --bubble-me: #2c4a85; --on-brand: #172e54;
    --who-line: #e6c26b; --who-link: #edd28e;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --ink: #f4f1e8; --muted: #c3cbe0; --bg: #0e1a30; --card: #172e54; --brand: #e6c26b; --brand-2: #edd28e;
  --navy: #0b1527; --navy-2: #1f3969; --accent-soft: #22314f; --accent-ink: #e6c26b; --line: #2a3f66;
  --line-strong: #7083a8; --bubble-bot: #1f3969; --bubble-me: #2c4a85; --on-brand: #172e54;
  --who-line: #e6c26b; --who-link: #edd28e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 19px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); }
h1, h2 { font-family: "Inter", system-ui, sans-serif; font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1rem; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt small { color: var(--muted); font-size: .8rem; }
.btn-small { white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--bg); display: grid; place-items: center; font-family: "Source Serif 4", serif; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--on-brand); border: 0; border-radius: 12px; padding: 12px 18px;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-decoration: none; cursor: pointer; min-height: 48px;
}
@media (hover: hover) { .btn:hover { background: var(--brand-2); } }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-big { font-size: 1.1rem; padding: 16px 24px; min-height: 56px; }
.btn-small { padding: 8px 14px; min-height: 44px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: #1f8a4c; color: #fff; }
@media (hover: hover) { .btn-wa:hover { background: #18703d; } }

.hero { padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent-ink); font-weight: 700; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { padding-left: 32px; position: relative; margin: 8px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.fine { font-size: .85rem; color: var(--muted); }

.chat-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: min(680px, 82vh); height: min(680px, 82dvh); overflow: hidden; scroll-margin-top: 80px; }
.chat-head { position: relative; display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head small { display: block; color: var(--muted); font-size: .8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--bg); display: grid; place-items: center; font-family: "Source Serif 4", serif; font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-intro { margin: auto 0; text-align: center; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop .18s ease-out; }
.msg.bot { background: var(--bubble-bot); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--bubble-me); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg b { font-weight: 700; }
.opts { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.opt { text-align: left; background: var(--card); color: var(--ink); border: 2px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1.3; cursor: pointer; min-height: 52px; }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 1rem; margin-top: 2px; }
.opt:focus-visible { border-color: var(--brand); outline: none; }
@media (hover: hover) { .opt:hover { border-color: var(--brand); } }
.opt { position: relative; padding-right: 40px; }
.opt::after { content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--brand); }  /* seta centrada: com descrição, o float caía numa linha extra */
.opts.used { display: none; }  /* a resposta já aparece no balão; opções velhas confundem */
.typing { align-self: flex-start; color: var(--muted); font-size: .9rem; padding: 4px 8px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--brand); }
@keyframes pop { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-warm { background: var(--accent-soft); }
.section-lead { color: var(--muted); max-width: 760px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.chips li { border: 1px solid var(--line); background: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--bg); font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.steps span { color: var(--muted); }
.two { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.two p { max-width: 640px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: .9rem; z-index: 20; }
.cookie[hidden], [hidden] { display: none !important; }
.cookie p { margin: 0; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  section { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .chat-card { height: 80vh; height: calc(100dvh - 80px); }
  .chat-card:not(.on) { display: none; }  /* celular: uma entrada só (os botões 'para quem?') */
  .steps ol { grid-template-columns: 1fr; }
  .two { flex-direction: column; align-items: flex-start; }
  .cookie { top: 10px; bottom: auto; padding: 10px 12px; font-size: .85rem; }  /* no topo: não cobre o campo do chat */
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

/* --- pergunta inicial no topo --- */
.who { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0 8px; box-shadow: var(--shadow); }
.who-q { font-weight: 700; font-size: 1.15rem; margin: 0 0 10px; }
.who-btn { display: block; width: 100%; text-align: left; margin: 8px 0 0; padding: 14px 16px; min-height: 56px; border-radius: 12px; border: 2px solid var(--brand); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.who-btn::after { content: "→"; float: right; color: var(--brand); }
.who-btn:focus-visible { background: var(--brand); color: var(--on-brand); outline: none; }
.who-btn:focus-visible::after { color: var(--on-brand); }
@media (hover: hover) { .who-btn:hover { background: var(--brand); color: var(--on-brand); } .who-btn:hover::after { color: var(--on-brand); } }
.who-human { display: block; width: 100%; margin: 12px 0 0; min-height: 44px; background: none; border: 0; color: var(--brand); font: inherit; font-size: 1.05rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
/* --- chat: progresso e saídas --- */
.chat-title { flex: 1; min-width: 0; }
.chat-title strong { display: block; white-space: normal; }
.chat-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.human-btn { min-height: 44px; border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 5px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.chat-tools { display: flex; justify-content: space-between; gap: 8px; padding: 0 12px 10px; }
.chat-tools button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 1rem; text-decoration: underline; cursor: pointer; padding: 6px 0; min-height: 44px; }
.msg a { color: inherit; text-decoration: underline; }
/* --- bloco de confiança --- */
.trust { background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.trust-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.trust-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 44px; position: relative; }
.trust-list li::before { content: "✓"; position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
@media (max-width: 860px) {
  h1 { font-size: 1.85rem; }
  .hero { padding-top: 24px; }
  .lead { font-size: 1.05rem; }
}
.resume-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 15; max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--brand); color: var(--on-brand); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: var(--shadow); font-weight: 700; }
.resume-bar .btn { background: var(--accent); color: #17252a; }
/* --- páginas de conteúdo --- */
.article { max-width: 760px; padding-top: 24px; padding-bottom: 48px; }
.article h2 { margin-top: 1.6em; font-size: 1.45rem; }
.article li { margin: .35em 0; }
.cta-box { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 24px 0; }
.cta-box p { margin-top: 0; }
.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: none; }
.byline p { margin: 0; line-height: 1.35; font-size: .95rem; color: var(--ink); }
.byline span { color: var(--muted); font-size: .85rem; }
.guides { padding-left: 1.1em; }
.guides li { margin: .7em 0; }
.guides .fine { font-size: 1rem; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 44px; display: flex; align-items: center; text-decoration: underline; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.quote blockquote { margin: 0 0 10px; font-size: 1.05rem; }
.quote figcaption { font-weight: 700; color: var(--brand); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.who-safe { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.steps ol { grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 18px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.fit h2 { font-size: 1.35rem; }
.fit ul { padding-left: 1.1em; margin: 0; }
.fit li { margin: .45em 0; }
.fit-yes { border-top: 5px solid var(--ok); }
.fit-no { border-top: 5px solid var(--accent); }
@media (max-width: 1000px) { .steps ol { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .two-cols { grid-template-columns: 1fr; } }

/* ===================== Marca Oliveira (03/10, conselho + site original) ===================== */
.top { background: var(--navy); border-bottom: 0; }
.top-in { height: 72px; }
.logo { display: block; height: 52px; width: auto; }
.brand-tag { color: var(--accent); font-weight: 700; font-size: .9rem; border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; }
.btn { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 4px 14px rgba(201, 169, 94, .35); }
@media (hover: hover) { .btn:hover { background: var(--accent); } }
.btn:focus-visible { outline-color: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line-strong); box-shadow: none; }
.btn-wa { background: #1f8a4c; color: #fff; box-shadow: none; }
.btn-share { min-height: 52px; margin-top: 4px; } /* enviar o site a alguém (fim do chat) */
.top .btn-small { min-height: 44px; }
/* topo marinho, como o site original */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); padding-bottom: 48px; }
.hero h1 em { color: var(--accent); background: none; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { color: var(--on-navy-muted); }
.hero .checks li::before { background: var(--accent); color: var(--navy); }
.hero .who, .hero .chat-card { color: var(--ink); }
.hero .who { border: 0; }
.who-btn { border-color: var(--who-line); background: var(--card); }
.who-btn::after { color: var(--who-line); }
@media (hover: hover) { .who-btn:hover { background: var(--navy); color: #fff; } .who-btn:hover::after { color: var(--accent); } }
.who-btn:focus-visible { background: var(--navy); color: #fff; }
.who-human { color: var(--who-link); }  /* no escuro, marinho sobre marinho sumia (contraste 1.2) */
.avatar { background: var(--navy); overflow: hidden; }
.avatar img { width: 32px; height: auto; }
.progress span { background: var(--accent); }
.msg.me { background: var(--bubble-me); color: #fff; }
/* seções */
.trust { background: var(--navy); color: var(--on-navy); border: 0; }
.trust h2 { color: #fff; }
.trust .fine { color: var(--on-navy-muted); }
.trust a { color: var(--accent); }
.trust-list li { color: var(--ink); border: 0; }
.trust-list li::before { background: var(--accent); color: var(--navy); }
.trust-list a { color: var(--brand); }
.band { background: var(--card); }
.band-warm { background: var(--navy-2); color: var(--on-navy); border: 0; }
.band-warm p { color: var(--on-navy-muted); }
.chips li { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.steps li::before { background: var(--gold-grad); color: var(--navy); }
.fit-no { border-top-color: var(--accent); }
.quote { border-left: 4px solid var(--accent); }
.quote figcaption { color: var(--ink); }
.faq summary { color: var(--ink); }
.cta-box { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); }
.resume-bar { background: var(--navy); color: #fff; }
.resume-bar .btn { background: var(--gold-grad); color: var(--navy); }
/* rodapé marinho */
.foot { background: var(--navy); color: var(--on-navy); border-top: 0; }
.foot .fine { color: var(--on-navy-muted); }
.foot a { color: var(--accent); }
@media (max-width: 860px) { .logo { height: 46px; } }
.person { display: flex; align-items: center; gap: 14px; margin: 4px 0 4px; }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); flex: none; }
.person p { margin: 0; line-height: 1.3; }
.person strong { display: block; color: #fff; }
.person span { color: var(--on-navy-muted); font-size: 1rem; }
.hero .fine { color: var(--on-navy-muted); }
.hero .fine a { color: var(--accent); }
.hero .chat-card .fine, .hero .who .fine { color: var(--muted); }
.hero .chat-card .fine a, .hero .who .fine a { color: var(--brand); }
/* ===== Conselho UX 55+ (03/10): leitura e toque no celular ===== */
.fine { font-size: .92rem; }                       /* .85rem ficava pequeno para 55+ */
.byline span { font-size: .92rem; }
.article nav.fine a, .article > p.fine a { display: inline-block; padding: 12px 4px; min-width: 44px; } /* alvo de toque ≥ 44px */
.article nav.fine { line-height: 1.4; }
.guides a, .sources a { display: block; padding: 10px 0; } /* bloco: marcador alinha com a 1ª linha; alvo ≥ 44px */
.guides a + br { display: none; }  /* link em bloco já quebra a linha */
.faq summary { min-height: 44px; padding: 4px 0; }
.cta-mid { margin: 32px 0; }
.cta-box .btn-big { width: 100%; }
@media (max-width: 860px) {
  .hero-copy > .btn-big { width: 100%; }             /* botão principal ocupa a largura toda no celular */
}
/* fim do chat: aviso de segurança em destaque e explicação do compartilhar */
.msg.msg-safe { background: var(--accent-soft); color: var(--ink); border-left: 5px solid var(--accent); border-bottom-left-radius: 16px; font-weight: 700; }
.share-hint { margin: -2px 4px 4px; font-size: .95rem; color: var(--muted); text-align: center; }
/* .btn:hover (dourado) vencia o verde do WhatsApp: texto branco sobre dourado = contraste reprovado */
@media (hover: hover) { .btn.btn-wa:hover { background: #18703d; color: #fff; } .btn.btn-ghost:hover { background: var(--accent-soft); } }
.faq .cta-box { margin-top: 28px; }
.faq .cta-box p { color: var(--ink); margin: 0 0 14px; }
.chat-title small { white-space: normal; overflow: visible; }  /* não cortar "pré-análise gr…" ao lado de "Falar com pessoa" */
/* ===== Segmento "já tem a isenção" (estudo tamanho do mercado, 03/10): anos antes do pedido ===== */
.already-card { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.already-card .eyebrow { color: var(--accent-ink); }
.already-card .section-lead { color: var(--ink); }
.already-q { font-weight: 700; margin: 18px 0 6px; }
.already-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.already-list li { padding-left: 32px; position: relative; }
.already-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.already-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
@media (max-width: 860px) {
  .already-card { padding: 18px 16px; }
  .already-cta .btn { width: 100%; }
}
