/* Blog do MoneyMio (10/11/2026). Mesmas cores do site; texto feito para ler no celular. */
:root {
  --bg: #050807;
  --bg-2: #0c1311;
  --card: #111a17;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f6f4;
  --muted: rgba(243, 246, 244, 0.68);
  --faint: rgba(243, 246, 244, 0.45);
  --mint: #5ad6ba;
  --mint-2: #8ce8d2;
  --cta: #defdd4;
  --ink: #0d1411;
  --zap: #25d366;
  --radius: 18px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Onest", "Outfit", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.estreito { width: min(720px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 40; background: rgba(5, 8, 7, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topo .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.topo-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font); font-weight: 600; font-size: 17px; }
.topo-logo img { width: 34px; }
.topo-logo span { color: var(--faint); font-weight: 400; }
.topo nav { display: flex; gap: 20px; margin-left: 12px; font-size: 14px; font-weight: 500; }
.topo nav a { text-decoration: none; color: var(--muted); }
.topo nav a:hover { color: var(--mint); }
.topo .btn { margin-left: auto; }
@media (max-width: 760px) { .topo nav { display: none; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 600 15px/1.2 var(--font-ui); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-zap { background: var(--cta); color: var(--ink); }
.btn-zap:hover { background: #fff; }
.btn-zap svg { width: 18px; height: 18px; color: #128c3a; flex: none; }
.btn-grande { min-height: 52px; padding: 14px 24px; font-size: 16px; width: 100%; max-width: 380px; }
.topo .btn { min-height: 38px; padding: 8px 14px; font-size: 14px; }

/* Migalhas */
.migalhas { font-size: 13px; color: var(--faint); margin: 22px 0 0; }
.migalhas ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.migalhas li + li::before { content: "›"; margin-right: 6px; }
.migalhas a { text-decoration: none; color: var(--muted); }
.migalhas a:hover { color: var(--mint); }

/* Home do blog */
.capa { padding: 44px 0 28px; }
.capa h1 { font-family: var(--font); font-weight: 500; font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -1.4px; margin: 0 0 14px; max-width: 760px; }
.capa h1 b { color: var(--mint); font-weight: 600; }
.capa p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.chip:hover, .chip[aria-current="page"] { border-color: var(--mint); color: var(--text); }
.secao { padding: 26px 0 10px; }
.secao h2 { font-family: var(--font); font-weight: 500; font-size: 24px; letter-spacing: -.5px; margin: 0 0 16px; }
.grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cartao { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.cartao:hover { border-color: rgba(90, 214, 186, .55); transform: translateY(-2px); }
.cartao .cat { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--mint); }
.cartao h3 { margin: 0; font-family: var(--font); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -.3px; }
.cartao p { margin: 0; color: var(--muted); font-size: 15px; }
.cartao .meta { margin-top: auto; font-size: 13px; color: var(--faint); }
.cartao.destaque { background: linear-gradient(140deg, #123029, #0d1714 60%); }
.cartao.destaque h3 { font-size: 24px; }
@media (min-width: 900px) { .cartao.destaque { grid-column: span 2; } }
.tag-calc { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(90, 214, 186, .14); color: var(--mint-2); margin-left: 6px; vertical-align: 1px; }

/* Post */
.post-topo { padding: 18px 0 8px; }
.post-topo .cat { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--mint); text-decoration: none; margin: 18px 0 10px; }
.post-topo h1 { font-family: var(--font); font-weight: 500; font-size: clamp(30px, 5.4vw, 46px); line-height: 1.12; letter-spacing: -1.2px; margin: 0 0 14px; }
.post-topo .linha-fina { font-size: 18px; color: var(--muted); margin: 0 0 16px; }
.assinatura { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--faint); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.assinatura b { color: var(--muted); font-weight: 600; }

.sumario { margin: 24px 0 8px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; }
.sumario summary { cursor: pointer; font-weight: 600; list-style: none; }
.sumario summary::-webkit-details-marker { display: none; }
.sumario summary::after { content: " +"; color: var(--mint); }
.sumario[open] summary::after { content: " −"; }
.sumario ol { margin: 10px 0 0; padding-left: 20px; }
.sumario li { margin: 6px 0; }
.sumario a { color: var(--muted); text-decoration: none; }
.sumario a:hover { color: var(--mint); }

.texto { font-size: 18px; line-height: 1.72; padding: 8px 0 20px; }
.texto > * + * { margin-top: 1.05em; }
.texto p, .texto ul, .texto ol { margin-bottom: 0; }
.texto h2 { font-family: var(--font); font-weight: 500; font-size: clamp(25px, 4vw, 30px); line-height: 1.2; letter-spacing: -.6px; margin: 1.9em 0 0; scroll-margin-top: 80px; }
.texto h3 { font-family: var(--font); font-weight: 600; font-size: 21px; line-height: 1.3; margin: 1.5em 0 0; scroll-margin-top: 80px; }
.texto a { color: var(--mint-2); text-underline-offset: 3px; }
.texto a.btn { color: var(--ink); text-decoration: none; }
.texto strong { color: #fff; font-weight: 600; }
.texto ul, .texto ol { padding-left: 1.3em; }
.texto li + li { margin-top: .4em; }
.texto blockquote { margin-left: 0; margin-right: 0; padding: 14px 18px; border-left: 3px solid var(--mint); background: var(--bg-2); border-radius: 0 12px 12px 0; color: var(--muted); }
.texto blockquote p { margin: 0; }
.tabela { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.texto table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.texto th, .texto td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.texto th { background: var(--bg-2); font-weight: 600; color: var(--muted); }
.texto tr:last-child td { border-bottom: 0; }
.texto td.num, .texto th.num { text-align: right; white-space: nowrap; }

/* Chamada do Mio no meio do texto */
.mio-meio { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #103a30, #0f1c18 70%); border: 1px solid rgba(90, 214, 186, .35); font-size: 16px; line-height: 1.5; }
.mio-meio .bolha { width: 44px; height: 44px; border-radius: 50%; background: var(--zap); display: grid; place-items: center; color: #fff; }
.mio-meio .bolha svg { width: 24px; height: 24px; }
.mio-meio p { margin: 0; }
.mio-meio p b { display: block; color: #fff; font-size: 17px; margin-bottom: 2px; }
.mio-meio .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) { .mio-meio { grid-template-columns: auto 1fr auto; } .mio-meio .btn { grid-column: auto; } }

/* Exemplo de conversa (como funciona) */
.conversa { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: #0b141a; border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.conversa .eu, .conversa .mio { max-width: 85%; padding: 9px 12px; border-radius: 12px; }
.conversa .eu { align-self: flex-end; background: #144d37; border-top-right-radius: 4px; }
.conversa .mio { align-self: flex-start; background: #1f2c33; border-top-left-radius: 4px; }
.conversa .quem { display: block; font-size: 12px; color: var(--faint); margin-bottom: 2px; }

/* Calculadoras */
.calc { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(90, 214, 186, .3); font-size: 16px; line-height: 1.5; }
.calc h3 { margin: 0 0 4px !important; font-size: 21px; }
.calc .ajuda { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.calc .campos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.calc label small { font-weight: 400; color: var(--faint); }
.calc input, .calc select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: #070b0a; color: var(--text); font: 500 17px/1.2 var(--font-ui); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--mint); }
.calc .resultado { margin-top: 18px; padding: 18px; border-radius: 14px; background: #08110e; border: 1px solid var(--line); }
.calc .resultado[hidden] { display: none; }
.calc .grande { font-family: var(--font); font-size: clamp(30px, 7vw, 40px); font-weight: 600; letter-spacing: -1px; color: var(--mint); line-height: 1.1; }
.calc .grande.neg { color: #ff8f7a; }
.calc .linhas { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.calc .linhas li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.calc .linhas li:last-child { border-bottom: 0; padding-bottom: 0; }
.calc .linhas span:last-child { font-weight: 600; white-space: nowrap; }
.calc .barra { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #1c2522; margin-top: 14px; }
.calc .barra i { display: block; height: 100%; }
.calc .legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.calc .legenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }
.calc .nota { font-size: 13px; color: var(--faint); margin: 14px 0 0; }
.calc .depois { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc .depois p { margin: 0 0 12px; }

/* FAQ */
.faq { margin-top: 1.9em; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; line-height: 1.4; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { color: var(--muted); padding-top: 8px; font-size: 17px; }
.faq details > div > * + * { margin-top: .8em; }
.faq details > div p { margin-bottom: 0; }

/* Caixa do fim */
.mio-fim { margin: 34px 0 10px; padding: 28px 22px; border-radius: 24px; text-align: center; background: radial-gradient(ellipse 80% 90% at 50% 0%, #1d5345 0%, #0d1714 70%); border: 1px solid rgba(90, 214, 186, .35); }
.mio-fim h2 { font-family: var(--font); font-weight: 500; font-size: clamp(25px, 5vw, 32px); line-height: 1.15; letter-spacing: -.7px; margin: 0 0 10px; }
.mio-fim p { color: var(--muted); margin: 0 auto 20px; max-width: 470px; font-size: 16px; }
.mio-fim .passos { display: grid; gap: 8px; max-width: 420px; margin: 0 auto 22px; padding: 0; list-style: none; text-align: left; font-size: 15px; }
.mio-fim .passos li { display: flex; gap: 10px; align-items: baseline; }
.mio-fim .passos b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(90, 214, 186, .18); color: var(--mint-2); display: grid; place-items: center; font-size: 13px; }
.mio-fim small { display: block; margin-top: 12px; color: var(--faint); font-size: 13px; }

.revisao { font-size: 14px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
.relacionados { padding: 20px 0 40px; }
.relacionados h2 { font-family: var(--font); font-weight: 500; font-size: 22px; margin: 0 0 14px; }

/* Rodapé */
.rodape { border-top: 1px solid var(--line); padding: 28px 0 90px; margin-top: 30px; font-size: 14px; color: var(--faint); }
.rodape .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.rodape a { color: var(--muted); text-decoration: none; }
.rodape a:hover { color: var(--mint); }
.rodape small { flex-basis: 100%; margin-top: 8px; }

/* Botão fixo no celular, só depois de rolar */
.zap-fixo { position: fixed; left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: none; transform: translateY(140%); transition: transform .3s ease; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.zap-fixo.aparece { transform: none; }
@media (max-width: 760px) { .zap-fixo { display: flex; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
