/* ==========================================================================
   Site público — as cores e a fonte vêm do /admin (variáveis em :root)
   ========================================================================== */
:root {
  --text: #1c2b27;
  --muted: #5d6b67;
  --line: rgba(15, 42, 36, .1);
  --surface: #ffffff;
  --primary-soft: color-mix(in srgb, var(--primary) 10%, white);
  --primary-strong: color-mix(in srgb, var(--primary) 82%, black);
  --shadow-sm: 0 1px 2px rgba(15, 42, 36, .06), 0 2px 8px rgba(15, 42, 36, .05);
  --shadow-lg: 0 24px 60px -24px rgba(15, 42, 36, .35), 0 4px 16px rgba(15, 42, 36, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--dark); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.demo-notice {
  background: #fff4d6; color: #6b4b00; text-align: center;
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-bottom: 1px solid #f3dc9c;
}

/* ── Botões ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: var(--secondary); color: var(--on-secondary); }
.btn-secondary:hover { filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--dark); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--dark) 30%, transparent); background: rgba(255, 255, 255, .6); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Cabeçalho ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 42, 36, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.brand img { height: 40px; width: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { white-space: nowrap; font-weight: 800; font-size: 19px; color: var(--dark); letter-spacing: -.02em; }
.main-nav { display: none; gap: 28px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--dark); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 16%, transparent), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 12px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px;
}
.hero h1 { font-size: clamp(1.8rem, 5.4vw, 2.75rem); font-weight: 700; line-height: 1.14; letter-spacing: -.025em; margin-bottom: .55em; text-wrap: balance; }
.lead { font-size: clamp(1.02rem, 2.2vw, 1.14rem); line-height: 1.65; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 24px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--text); }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; }

.hero-visual { position: relative; display: grid; place-items: center; padding: 12px 8px 28px; }
.hero-visual.has-image { padding: 28px 16px 40px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-visual.has-image::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .28)); pointer-events: none; }
.hero-visual .mock-card { position: relative; z-index: 1; }
.hero-visual .mock-chip { z-index: 2; }
.mock-card {
  width: min(400px, 100%); padding: 26px; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mock-label { font-weight: 700; color: var(--dark); font-size: 15px; }
.mock-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--secondary) 22%, white); color: color-mix(in srgb, var(--secondary) 35%, black); }
.mock-amount-label { margin: 0; font-size: 13px; color: var(--muted); }
.mock-amount { margin: 2px 0 16px; font-size: 34px; font-weight: 800; color: var(--dark); letter-spacing: -.03em; }
.mock-progress { height: 8px; border-radius: 99px; background: var(--primary-soft); overflow: hidden; margin-bottom: 20px; }
.mock-progress span { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--secondary))); animation: grow 1.6s var(--ease) both .3s; }
@keyframes grow { from { width: 8%; } }
.mock-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.mock-steps li { display: flex; align-items: center; gap: 10px; }
.mock-steps svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.mock-steps .done { color: var(--dark); }
.mock-steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.mock-steps .current .dot { border-color: var(--primary); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 11px var(--primary); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 11px color-mix(in srgb, var(--primary) 40%, white); } }
.mock-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--dark);
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-lg);
}
.mock-chip svg { width: 18px; height: 18px; color: var(--primary); }
.mock-chip-a { left: 0; top: 0; }
.mock-chip-b { right: 0; bottom: 0; background: var(--dark); color: #fff; }

/* ── Faixa de fatos ─────────────────────────────────────────────────── */
.facts { padding-bottom: 12px; }
.facts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.fact { background: var(--surface); padding: 18px 20px; }
.fact-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.fact strong { display: block; margin-top: 2px; font-size: 16px; color: var(--dark); line-height: 1.3; }

/* ── Seções ─────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.cards-grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px 24px 24px 84px; background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step-number {
  position: absolute; left: 24px; top: 24px; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 17px;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Condições e taxas ──────────────────────────────────────────────── */
.rates-grid { display: grid; gap: 12px; margin: 0 0 20px; }
.rate { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); border-top: 4px solid var(--primary); }
.rate dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rate dd { margin: 6px 0 0; font-size: 18px; font-weight: 800; color: var(--dark); line-height: 1.35; }
.conditions { display: grid; gap: 24px; padding: 26px; margin-bottom: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.conditions h3 { font-size: 17px; }
.conditions p { color: var(--muted); margin: 0; }
.conditions .check-list li { font-weight: 500; }
.term-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.term-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.term-list li:last-child { border-bottom: 0; }
.term-list span { color: var(--muted); }
.term-list strong { color: var(--dark); white-space: nowrap; }
.examples-title { font-size: 20px; margin-bottom: 14px; }
.examples-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.examples-table thead { display: none; }
.examples-table tr { display: block; margin-bottom: 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.examples-table th[scope="row"] { display: block; text-align: left; font-size: 16px; color: var(--primary); padding-bottom: 8px; }
.examples-table td { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px dashed var(--line); }
.examples-table td::before { content: attr(data-label); color: var(--muted); font-weight: 500; }
.examples-table td { font-weight: 700; color: var(--dark); text-align: right; }
.disclaimer { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 72em; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 52px 18px 20px; font-weight: 700; color: var(--dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ── CTA final ──────────────────────────────────────────────────────── */
.cta-band { padding: 64px 0; background: var(--dark); color: #fff; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 17px; }

/* ── Rodapé ─────────────────────────────────────────────────────────── */
.site-footer { padding: 56px 0 32px; background: color-mix(in srgb, var(--dark) 94%, black); color: rgba(255, 255, 255, .72); font-size: 14.5px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand p { max-width: 30em; }
.footer-title { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-legal p { margin-bottom: 10px; }

.whatsapp-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ── Páginas internas ───────────────────────────────────────────────── */
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; }
.page-error { padding: 96px 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 85%, white); }
.prose ul { padding-left: 1.2em; }

/* ── Animações discretas de entrada ─────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Refinamento para celulares (não afeta tablet/desktop) ────────── */
@media (max-width: 639px) {
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 12px; min-height: 62px; }
  .header-inner .btn-sm { flex: none; min-height: 40px; padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }

  .hero { padding: 28px 0 44px; }
  .hero h1 { font-size: clamp(1.5rem, 7.2vw, 1.8rem); line-height: 1.18; }
  .lead { font-size: 1rem; }
  .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .check-list li { font-size: 15px; }
  .mock-card { padding: 22px 20px; }
  .mock-amount { font-size: 28px; }
  .mock-chip { font-size: 12px; padding: 8px 12px; }

  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 14px 16px; }
  .fact:first-child { grid-column: 1 / -1; }
  .fact:last-child { grid-column: 1 / -1; }
  .mock-label { font-size: 14px; }
  .mock-badge { white-space: nowrap; }
  .mock-top { gap: 10px; }
  .fact strong { font-size: 15px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(1.35rem, 6vw, 1.6rem); }
  .section-head p { font-size: 15.5px; }
  .card { padding: 20px; }
  .card-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .card h3, .step h3 { font-size: 16.5px; }
  .card p, .step p { font-size: 14.5px; }
  .step { padding: 20px 20px 20px 72px; }
  .step-number { left: 20px; top: 20px; width: 38px; height: 38px; font-size: 16px; }

  .rate { padding: 16px 18px; }
  .rate dt { font-size: 12px; }
  .rate dd { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
  .conditions { padding: 20px 18px; gap: 22px; }
  .conditions h3 { font-size: 16px; margin-bottom: 8px; }
  .conditions p, .conditions .check-list li { font-size: 14.5px; }
  .term-list li { font-size: 14px; }

  .examples-title { font-size: 18px; }
  .examples-table tr { padding: 14px 16px; }
  .examples-table th[scope="row"] { font-size: 15px; }
  .examples-table td { gap: 12px; padding: 8px 0; font-size: 14px; line-height: 1.4; }
  .examples-table td::before { flex: none; max-width: 45%; text-align: left; }
  .examples-table .td-value { min-width: 0; text-align: right; }
  .disclaimer { font-size: 13px; }

  .faq-item summary { padding: 16px 44px 16px 16px; font-size: 15px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14.5px; }
  .cta-band { padding: 48px 0; }
  .cta-band h2 { font-size: 1.4rem; }
  .cta-band p { font-size: 15.5px; }
  .page h1 { font-size: 1.6rem; }

  /* WhatsApp menor e rodapé com folga para o botão não cobrir o final da página */
  .whatsapp-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  .site-footer { padding-bottom: 84px; }
}

/* Telas bem estreitas (≈320–360px): botão do cabeçalho quebra em 2 linhas de forma equilibrada */
@media (max-width: 374px) {
  .header-inner .brand-name { font-size: 16px; }
  .header-inner .brand-mark { width: 28px; height: 28px; }
  .header-inner .btn-sm { max-width: 104px; min-height: 42px; padding: 5px 12px; font-size: 12.5px; line-height: 1.2; text-align: center; white-space: normal; }
  .fact strong { font-size: 14.5px; }
}

/* ── Telas maiores ──────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .rates-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero-visual { padding: 32px; }
  .section { padding: 96px 0; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .rates-grid { grid-template-columns: repeat(4, 1fr); }
  .conditions { grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 32px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 28px; }
  .step-number { position: static; margin-bottom: 18px; }
  .cta-inner { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .examples { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .examples-table thead { display: table-header-group; }
  .examples-table tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .examples-table th, .examples-table td { display: table-cell; padding: 16px 18px; text-align: left; border-top: 1px solid var(--line); }
  .examples-table thead th { border-top: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--primary-soft); }
  .examples-table td::before { content: none; }
  .examples-table td { font-weight: 600; }
  .examples-table th[scope="row"] { padding-bottom: 16px; }
}
