/*
 * Landing page (index.html). Tokens base em styles.css; aqui só os extras da LP.
 * Layout derivado do protótipo "Saldo Sereno — LP v2".
 */

:root {
  --sand: #F1EBE2;          /* selos, painel da vitrine, tiles de ícone */
  --sand-line: #DDD6CA;
  --deep: #1F3D2C;          /* topo, metodologia e rodapé */
  --deep-2: #2E5440;
  --deep-line: #35594A;
  --on-deep: #FFFFFF;
  --on-deep-soft: #C9DCCF;
  --on-deep-faint: #A9C2B2;
  --on-deep-accent: #9FD7B6;
  --dots-bg: #EEF5F0;
  --dots: #C3D8CA;
  --ui-line: #E3E8E2;
  --ui-shadow: 0 8px 24px rgba(31, 61, 44, 0.10);
  --caution-ink: #7A5720;
  --caution-ink-2: #5E4A2A;
  --cta-wave: #9CC4AC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #2A2C26;
    --sand-line: #3A3D35;
    --deep: #14241C;
    --deep-2: #203528;
    --deep-line: #2B4536;
    --dots-bg: #1E2A22;
    --dots: #2E4537;
    --ui-line: #30332C;
    --ui-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --caution-ink: #E3B05A;
    --caution-ink-2: #E3B05A;
    --cta-wave: #3E7C59;
  }
}
:root[data-theme="dark"] {
  --sand: #2A2C26;
  --sand-line: #3A3D35;
  --deep: #14241C;
  --deep-2: #203528;
  --deep-line: #2B4536;
  --dots-bg: #1E2A22;
  --dots: #2E4537;
  --ui-line: #30332C;
  --ui-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --caution-ink: #E3B05A;
  --caution-ink-2: #E3B05A;
  --cta-wave: #3E7C59;
}

.c { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 400; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.h3 { font-size: 24px; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
.lead { max-width: 560px; margin: 20px auto 0; font-size: 17px; line-height: 27px; color: var(--text-secondary); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sand); color: var(--text-primary); font-size: 13px; line-height: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.sec { padding: 112px 0; }
.sec-bg { background: var(--bg); }
.sec-surface { background: var(--surface); }
@media (max-width: 640px) { .sec { padding: 72px 0; } }

/* ---------- Hero (escuro) ---------- */
.hero { background: var(--deep); color: var(--on-deep); padding-bottom: 72px; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 84px; }
.hero .brand { color: var(--on-deep); font-weight: 500; font-size: 20px; }
.hero .brand:hover { color: var(--on-deep); }
.hero-nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.hero-nav a { color: var(--on-deep-soft); text-decoration: none; padding: 12px 0; }
.hero-nav a:hover { color: var(--on-deep); }
@media (max-width: 860px) { .hero-nav { display: none; } }
.hero-end { display: flex; align-items: center; gap: 12px; }
.hero .theme-toggle { background: transparent; border-color: var(--deep-line); color: var(--on-deep-soft); }
@media (max-width: 520px) { .hero-end .btn { display: none; } } /* no celular o CTA grande do topo basta */
.hero-copy { text-align: center; padding-top: 64px; }
.hero-copy .h1 { color: var(--on-deep); max-width: 820px; margin: 0 auto; }
.hero-copy p { max-width: 600px; margin: 24px auto 0; font-size: 18px; line-height: 28px; color: var(--on-deep-soft); }
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--on-deep-faint); }
.cta-pair { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn-light { background: var(--primary-container); color: var(--primary-ink-strong); }
.btn-light:hover { color: var(--primary-ink-strong); filter: brightness(1.04); }
.btn-ghost { border: 1px solid #6E907B; color: var(--on-deep); }
.btn-ghost:hover { color: var(--on-deep); background: rgba(255, 255, 255, 0.06); }
.btn-paper { background: var(--bg); color: var(--text-primary); min-height: 42px; }
.btn-paper:hover { color: var(--text-primary); }
.btn-deep { background: var(--deep); color: var(--on-deep); }
.btn-deep:hover { color: var(--on-deep); filter: brightness(1.15); }
.hero-panels { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hero-panels > * { height: 420px; border-radius: 18px; overflow: hidden; }
.hero-panels img { width: 100%; height: 100%; object-fit: cover; }
.hero-app { background: var(--primary-container); position: relative; display: flex; justify-content: center; align-items: center; }
.hero-app .phone { zoom: 0.64; }
.hero-app .toast { position: absolute; bottom: 28px; left: 20px; z-index: 1; width: 210px; }

/* ---------- Cartões de UI soltos ---------- */
.ui { background: var(--surface); border: 1px solid var(--ui-line); border-radius: 14px; box-shadow: var(--ui-shadow); font-size: 14px; line-height: 20px; color: var(--text-primary); }
.toast { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.toast small { display: block; color: var(--text-secondary); font-size: 12px; }

/* ---------- O problema (faixas rolando) ---------- */
.marquee { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marq { display: flex; gap: 16px; width: max-content; list-style: none; margin: 0; padding: 0; animation: mq 60s linear infinite; }
.marq.r { animation-direction: reverse; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marq { animation: none; } }
.pain { display: flex; align-items: center; gap: 12px; width: 320px; min-height: 72px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--divider); font-size: 15px; line-height: 21px; }
.pain svg { flex: 0 0 22px; color: var(--attention); }

/* ---------- Metodologia ---------- */
.method { background: var(--deep); color: var(--on-deep); }
.method .pill { background: var(--deep-2); color: var(--primary-container); }
.method .pill .dot { background: var(--on-deep-accent); }
.method .h2 { color: var(--on-deep); max-width: 880px; margin: 20px auto 0; font-size: clamp(34px, 4.4vw, 58px); }
.method .lead { max-width: 600px; margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--on-deep-soft); }
.method-cards { margin: 56px auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mcard { border-radius: 20px; padding: 32px; }
.mcard .k { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.mcard .h3 { margin-top: 10px; }
.mcard .calc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; font-size: 15px; }
.mcard .calc strong { font-size: 22px; font-weight: 600; }
.mcard.up { background: var(--primary-container); color: var(--primary-ink); }
.mcard.up .h3, .mcard.up strong { color: var(--primary-ink-strong); }
.mcard.down { background: var(--caution-container); color: var(--caution-ink-2); }
.mcard.down .k { color: var(--caution-ink); }
.mcard.down .h3, .mcard.down strong { color: var(--text-primary); }
.method-note { text-align: center; margin: 24px 0 0; font-size: 13px; color: var(--on-deep-faint); }

/* ---------- Como resolvemos (acordeão + painel) ---------- */
.solve { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.acc { flex: 1 1 420px; min-width: 0; border-top: 1px solid var(--divider); }
.acc details { border-bottom: 1px solid var(--divider); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; font-size: 19px; line-height: 26px; color: var(--text-secondary); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: var(--sand); color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.acc details[open] summary { color: var(--text-primary); }
.acc details[open] summary::after { content: "−"; }
.acc details p { margin: 0 44px 20px 0; font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.viz { flex: 1 1 420px; min-width: 0; min-height: 460px; border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 32px;
  background-color: var(--dots-bg); background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px); background-size: 18px 18px; }
.viz-pane { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 340px; }
.viz-pane[hidden] { display: none; }
.viz .row-ui { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viz .row-ui span { color: var(--text-secondary); }
.viz .row-ui strong { font-size: 20px; font-weight: 600; }
.viz .shift { margin-left: 28px; }
.viz .result { padding: 18px; background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.viz .result .k { font-size: 12px; letter-spacing: 0.04em; font-weight: 600; color: var(--on-deep-accent); }
.viz .result .v { font-size: 30px; line-height: 38px; font-weight: 600; }
.viz .result small { font-size: 13px; color: var(--on-deep-soft); }
.viz .note { font-size: 12px; color: var(--primary-ink); text-align: center; }
.viz .arrow { text-align: center; color: var(--primary); }
.budget { padding: 16px 18px; }
.budget-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.budget-head span:first-child { font-size: 17px; font-weight: 500; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: var(--primary-container); color: var(--primary-ink); }
.tag.off { background: transparent; border: 1px solid var(--divider); color: var(--text-secondary); }
.bar { height: 6px; border-radius: 3px; background: var(--divider); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.muted { color: var(--text-secondary); }

/* ---------- Vitrine (carrossel; lógica em carousel.js) ---------- */
.carousel { max-width: 760px; margin: 56px auto 0; --gap: 20px; }
.carousel-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 24px; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 220px; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.slide .phone { zoom: 0.7; }
.slide figcaption { font-size: 13.5px; line-height: 19px; color: var(--text-secondary); text-align: center; max-width: 220px; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.carousel-controls[hidden] { display: none; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--sand-line); background: var(--surface); color: var(--text-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Celular (réplica simplificada das telas do app; segue o tema) ---------- */
.phone { width: 270px; flex: 0 0 270px; border-radius: 36px; background: var(--phone-frame); padding: 9px; box-shadow: 0 0 0 1px var(--phone-ring), 0 16px 40px rgba(31, 61, 44, 0.18); }
.scr { background: var(--bg); border-radius: 28px; height: 560px; overflow: hidden; font-size: 13px; line-height: 18px; color: var(--text-primary); position: relative; }
.st { display: flex; justify-content: space-between; padding: 10px 18px 0; font-size: 11px; font-weight: 600; }
.p-greet { padding: 14px 16px 0; font-size: 12px; color: var(--text-secondary); }
.p-name { padding: 0 16px; font-size: 15px; font-weight: 600; }
.p-title { padding: 14px 16px 6px; font-size: 18px; font-weight: 600; }
.p-back { display: flex; align-items: center; gap: 6px; padding: 12px 12px 6px; font-size: 16px; font-weight: 600; }
.p-hero { margin: 12px 14px 0; background: var(--primary-container); border-radius: 20px; padding: 16px; }
.p-hero .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--primary-ink); }
.p-hero .v { font-size: 34px; line-height: 42px; font-weight: 700; color: var(--primary-ink-strong); }
.p-hero small { font-size: 11.5px; color: var(--primary-ink); }
.p-body { padding: 14px 16px 0; }
.p-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-secondary); margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.row span:nth-child(2) { flex: 1; }
.row strong { font-weight: 600; }
.ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--primary-container); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; }
.ic.sm { width: 22px; height: 22px; flex-basis: 22px; }
.p-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--divider); font-size: 12.5px; }
.p-tabs span { padding: 8px 0; color: var(--text-secondary); }
.p-tabs .on { color: var(--primary); font-weight: 600; box-shadow: inset 0 -2px 0 var(--primary); }
.p-total { font-size: 28px; line-height: 34px; font-weight: 700; }
.p-kv { font-size: 11.5px; color: var(--text-secondary); }
.p-kv b { color: var(--text-primary); }
.p-btn { height: 42px; border-radius: 14px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; }
.p-btn-text { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; color: var(--text-secondary); }
.p-card { background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 12px; }
.p-new { height: 40px; border: 1px dashed var(--text-faint); border-radius: 14px; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 500; }
.p-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-container); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; }
.p-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 12.5px; }
.p-checks div { display: flex; gap: 8px; align-items: center; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; border-top: 1px solid var(--divider); background: var(--surface); padding: 7px 2px 12px; }
.tabbar span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; line-height: 13px; color: var(--text-secondary); }
.tabbar .on { color: var(--primary); font-weight: 500; }
.fab { position: absolute; right: 14px; bottom: 66px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }

/* ---------- Privacidade (linhas alternadas) ---------- */
.priv { max-width: 1000px; }
.priv-head { text-align: center; padding-bottom: 56px; border-bottom: 1px solid var(--divider); }
.priv-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; padding: 48px 0; border-bottom: 1px solid var(--divider); }
.priv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.priv-row.rev { flex-direction: row-reverse; }
.priv-text { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.priv-text .h3 { margin-top: 40px; }
.priv-text p { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.label-row { display: flex; align-items: center; gap: 14px; }
.label-row span { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-secondary); }
.tile { width: 56px; height: 56px; border-radius: 14px; background: var(--sand); border: 1px solid var(--divider); display: flex; align-items: center; justify-content: center; color: var(--text-primary); }
.rule { border-left: 1px solid var(--sand-line); padding: 2px 0 2px 14px; color: var(--text-secondary); font-size: 15px; line-height: 22px; }
.priv-art { flex: 1 1 360px; max-width: 440px; height: 320px; border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.art-deep { background: var(--deep); }
.art-caution { background: var(--caution-container); }
.art-attention { background: var(--attention-container); }
.art-phone { width: 150px; height: 240px; border-radius: 26px; border: 2px solid #5F8A71; display: flex; align-items: center; justify-content: center; color: var(--on-deep-accent); }
.art-badge { position: absolute; right: 28px; bottom: 32px; padding: 10px 14px; font-size: 13px; }
.asks { width: 280px; padding: 18px; }
.asks .k { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-secondary); }
.asks div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.asks div:last-child { border-bottom: 0; padding-bottom: 0; }
.yes { color: var(--primary); font-weight: 600; }
.no { color: var(--attention); font-weight: 600; }
.menu { width: 280px; padding: 6px 18px; }
.menu div { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.menu div:last-child { border-bottom: 0; }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; margin-top: 56px; }
.letter { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--divider); border-radius: 6px; box-shadow: 0 20px 50px rgba(43, 43, 40, 0.08); padding: 56px; font-size: 16px; line-height: 27px; color: var(--text-secondary); position: relative; z-index: 1; }
.letter p { margin: 0 0 18px; }
.letter p:first-child { color: var(--text-primary); font-size: 18px; line-height: 29px; }
.letter .sign { margin-top: 36px; font-size: 13px; }
@media (max-width: 640px) { .letter { padding: 32px 24px; } }
.float { position: absolute; }
@media (max-width: 1100px) { .float { display: none; } }
.float .k { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--primary-ink); }
.float .v { font-size: 26px; font-weight: 700; color: var(--primary-ink-strong); }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 60px; margin-top: 10px; }
.mini-bars span { flex: 1; background: var(--primary); border-radius: 3px; }
.mini-bars span.over { background: var(--attention); }

/* ---------- Dúvidas ---------- */
.faq { max-width: 760px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--divider); }
.faq-list details { border-bottom: 1px solid var(--divider); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--text-secondary); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0 0 20px; font-size: 15px; line-height: 23px; color: var(--text-secondary); }

/* ---------- CTA + rodapé escuro ---------- */
.cta-wrap { background: linear-gradient(var(--surface) 50%, var(--deep) 50%); }
.cta { background: var(--primary-container); border-radius: 24px; padding: 64px 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; overflow: hidden; }
.cta .h2 { color: var(--primary-ink-strong); max-width: 520px; }
.cta svg { max-width: 100%; }
@media (max-width: 640px) { .cta { padding: 40px 24px; } }
.site-foot { background: var(--deep); color: var(--on-deep-soft); padding: 72px 0 40px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid var(--deep-line); }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--on-deep); font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h2 { font-size: 13px; font-weight: 400; color: var(--on-deep-faint); margin: 0 0 8px; }
.foot-cols a { display: block; color: var(--on-deep-soft); text-decoration: none; font-size: 14px; line-height: 30px; }
.foot-cols a:hover { color: var(--on-deep); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--on-deep-faint); }

/* ---------- Páginas legais: só a barra do topo, sem o hero ---------- */
.hero-slim { padding-bottom: 0; }
