/* Raio-X do Bolso — Clean Brazilian Editorial Fintech (Zero AI Slop, iPhone 13 390px First) */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-soft: #eef2ef;
  --ink: #111827;
  --ink-secondary: #4b5563;
  --ink-muted: #6b7280;
  --accent: #0a6847;
  --accent-hover: #075036;
  --accent-tint: #eaf5f0;
  --pix-teal: #1d9a8a;
  --warn-bg: #fff8eb;
  --warn-ink: #8f4a07;
  --danger-bg: #fef2f2;
  --danger-ink: #991b1b;
  --rule: rgba(17, 24, 39, 0.10);
  --rule-strong: rgba(17, 24, 39, 0.22);
  --radius: 8px;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.58;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 247, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 56px;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: -0.02em;
}

.brand-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.header-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

/* Hero */
.hero { padding: 40px 0 32px; border-bottom: 1px solid var(--rule); }
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--accent); margin: 0 0 10px; font-weight: 600;
}

h1 {
  font-family: var(--font-serif); font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.09; letter-spacing: -0.025em; font-weight: 600;
  margin: 0 0 14px; max-width: 19ch;
}

.hero-sub { font-size: 17px; color: var(--ink-secondary); max-width: 60ch; margin: 0 0 22px; }

.aeo-answer {
  background: var(--surface); border-left: 3px solid var(--accent);
  padding: 14px 16px; margin: 0 0 24px; max-width: 66ch;
}
.aeo-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); font-weight: 600; margin-bottom: 5px;
}
.aeo-answer p { margin: 0; font-size: 14px; line-height: 1.55; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 13px; color: var(--ink-secondary);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); color: #ffffff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-whatsapp { background: #ffffff; color: #0f5132; border-color: #a7d7be; }
.btn-whatsapp:hover { background: #edf8f2; }
.btn-block { width: 100%; }

/* Quiz Shell */
.quiz-section { padding: 36px 0 56px; }
.quiz-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.progress-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 13px; color: var(--ink-muted);
}

.progress-track {
  width: 100%; height: 6px; background: var(--surface-soft);
  border-radius: 999px; overflow: hidden; margin-bottom: 24px;
}

.progress-fill {
  height: 100%; background: var(--accent); width: 16.6%;
  transition: width 0.25s ease;
}

.q-title {
  font-family: var(--font-serif); font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2; margin: 0 0 8px;
}

.q-help { font-size: 14px; color: var(--ink-secondary); margin: 0 0 20px; }

.options-stack { display: flex; flex-direction: column; gap: 10px; }

.opt-btn {
  width: 100%; text-align: left; min-height: 56px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 15px; color: var(--ink); font-weight: 500;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.opt-btn:hover, .opt-btn:focus-visible {
  border-color: var(--accent);
  background: var(--accent-tint);
  outline: none;
}

.opt-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent-tint);
  font-weight: 600;
}

.opt-arrow { font-family: var(--font-mono); color: var(--accent); flex-shrink: 0; }

.quiz-nav {
  margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.link-btn {
  background: none; border: none; padding: 8px 4px; color: var(--ink-muted);
  font-size: 14px; cursor: pointer; font-family: var(--font-sans);
}
.link-btn:hover { color: var(--ink); }

/* Result Dashboard */
.hidden { display: none !important; }

.result-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px; align-items: start;
}

.score-header {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 18px;
}

.score-big {
  font-family: var(--font-mono); font-size: 46px; font-weight: 600; line-height: 1;
  color: var(--accent);
}

.profile-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 8px;
}
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag-danger { background: var(--danger-bg); color: var(--danger-ink); }
.tag-ok { background: var(--accent-tint); color: var(--accent); }

.leak-callout {
  background: var(--warn-bg); border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 18px; color: var(--warn-ink); font-size: 14px;
}

.pillar { margin-bottom: 14px; }
.pillar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.pillar-bar { height: 7px; background: var(--surface-soft); border-radius: 999px; overflow: hidden; }
.pillar-bar > span { display: block; height: 100%; background: var(--accent); }

/* Roadmap Preview + Lock */
.roadmap-list { list-style: none; margin: 16px 0 0; padding: 0; }
.roadmap-list li {
  padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14px;
}
.roadmap-list strong { display: block; margin-bottom: 2px; }

.locked-wrap { position: relative; margin-top: 8px; }
.locked-body { filter: blur(4px); opacity: 0.55; user-select: none; pointer-events: none; }
.is-unlocked .locked-body { filter: none; opacity: 1; user-select: auto; pointer-events: auto; }
.is-unlocked .lock-note { display: none; }

.lock-note {
  margin-top: 10px; font-size: 13px; color: var(--ink-secondary);
  background: var(--surface-soft); padding: 10px 12px; border-radius: var(--radius);
}

/* Checkout Panel */
.checkout-panel {
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.checkout-panel h3 {
  font-family: var(--font-serif); font-size: 23px; margin: 0 0 8px; line-height: 1.2;
}

.price-row {
  display: flex; align-items: baseline; gap: 10px; margin: 14px 0 16px;
}
.price-main { font-family: var(--font-mono); font-size: 34px; font-weight: 600; color: var(--ink); }
.price-sub { font-size: 13px; color: var(--ink-muted); }

.check-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; }
.check-list li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Order Bump */
.bump-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-tint); border: 1px dashed var(--accent);
  border-radius: var(--radius); padding: 14px; margin-bottom: 18px; cursor: pointer;
}

.bump-box input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0;
}

.bump-title { font-size: 14px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 3px; }
.bump-desc { font-size: 13px; color: var(--ink-secondary); display: block; line-height: 1.45; }

.pix-meta {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-muted); line-height: 1.5;
}

.recovery-box {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule);
}

.unlocked-actions { display: none; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.is-unlocked .unlocked-actions { display: flex; }

/* FAQ & Footer */
.section { padding: 48px 0; border-top: 1px solid var(--rule); }
h2 { font-family: var(--font-serif); font-size: clamp(24px, 4vw, 32px); margin: 0 0 16px; }
.faq-list details { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 8px 0 0; font-size: 14px; color: var(--ink-secondary); max-width: 68ch; }

.site-footer {
  padding: 32px 0 48px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-muted);
}

@media (max-width: 820px) {
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .hero { padding: 26px 0 22px; }
  .quiz-card, .checkout-panel { padding: 18px; }
  .header-meta { display: none; }
}

@media print {
  .site-header, .hero, #quiz-stage, .checkout-panel, .section, .site-footer, .unlocked-actions { display: none !important; }
  .result-grid { display: block; }
  .locked-body { filter: none !important; opacity: 1 !important; }
}
