/* Money IQ v3 — light, loud, sticker-like. The opposite of a banking app. */
:root {
  --bg: #FFF6E9;
  --ink: #1B1526;
  --card: #ffffff;
  --muted: #6f6455;
  --accent: #FF4D2E;
  --accent-dark: #E23A1D;
  --sun: #FFC531;
  --mint: #2FA36B;
  --line: #1B1526;
  --radius: 18px;
  --shadow: 4px 4px 0 var(--line);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}
.display, .hero h1, .brand, .diag-label, .score-ring, .teaser-label {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
}
.app { max-width: 480px; margin: 0 auto; padding: 20px 16px 48px; min-height: 100vh; }
.screen { display: none; }
.screen.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* landing */
.brand { font-weight: 800; font-size: 22px; letter-spacing: .3px; }
.brand.small { font-size: 16px; }
.hero { padding: 32px 4px 8px; text-align: center; }
.hero h1 { font-size: 37px; line-height: 1.08; margin: 18px 0 14px; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .hl { background: var(--sun); padding: 0 8px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { color: #4a4238; font-size: 16px; margin-bottom: 22px; }
.cta {
  display: block; width: 100%;
  background: var(--accent); color: #fff; border: 3px solid var(--line); border-radius: var(--radius);
  font-size: 19px; font-weight: 800; padding: 16px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.cta:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--line); background: var(--accent-dark); }
.cta.secondary { background: var(--ink); }
.cta.secondary:active { background: #000; }
.fine { margin-top: 12px; color: var(--muted); font-size: 13px; }
.how { display: flex; gap: 10px; margin: 28px 0; }
.how-item {
  flex: 1; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink);
  box-shadow: 3px 3px 0 var(--line);
}
.how-item span { font-size: 26px; display: block; margin-bottom: 6px; }
footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 34px; }

/* quiz */
.quiz-top { margin: 8px 0 18px; }
.progress-text { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.progress-track { height: 12px; background: #EADFC8; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s ease; width: 0; }
.category-tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); background: var(--sun); border: 2px solid var(--line);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 12px;
  transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--line);
}
.question { font-size: 23px; line-height: 1.3; margin-bottom: 20px; font-weight: 700; letter-spacing: -0.2px; }
.options { display: grid; gap: 12px; }
.option {
  text-align: left; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.option:not(:disabled):active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--line); background: #FFF1DC; }
.option:disabled { cursor: default; }
.option.picked { border-color: var(--line); background: #FFE3D6; }
.no-hints { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; font-style: italic; }

/* results */
.result-hero { text-align: center; padding: 12px 0 6px; }
.score-ring {
  width: 168px; height: 168px; margin: 20px auto 10px; border-radius: 50%;
  border: 10px solid var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 800; background: var(--card);
  box-shadow: var(--shadow);
}
.diag-label { font-size: 29px; font-weight: 800; margin: 10px 0 6px; letter-spacing: -0.3px; }
.res-detail { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 2px; }
.res-sub { color: var(--ink); font-size: 16px; font-weight: 600; max-width: 34ch; margin: 0 auto; }

/* the money step: email card is the visual main event */
.email-card { border-width: 3px; background: #FFFDF6; }
.email-card h3 { font-size: 21px; }

/* post-email offer (inside the Leak Report) */
.fix-offer { border-top: 3px solid var(--line); margin-top: 22px; padding-top: 18px; }
.fix-offer h3 { font-size: 20px; }
.fix-product { font-size: 16px; margin-bottom: 10px; }
.fix-price { display: inline-block; background: var(--sun); border: 2px solid var(--line); border-radius: 8px; padding: 1px 10px; font-weight: 800; margin-left: 6px; }
.fix-list { list-style: none; margin: 0 0 14px; display: grid; gap: 8px; }
.fix-list li { font-size: 14px; font-weight: 600; color: var(--ink); padding-left: 28px; position: relative; }
.fix-list li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--mint); font-weight: 800; }
.fix-deal { background: #FFF3DF; border: 2px dashed var(--line); border-radius: 12px; padding: 14px; font-size: 14px; color: #4a4238; margin-bottom: 14px; }
.fix-offer .cta { display: block; text-align: center; margin: 4px 0 10px; }
.fix-note { font-size: 13px; color: #6b5f4e; margin-bottom: 0; }
.card {
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; margin-top: 18px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 8px; font-weight: 800; }
.card p { color: #4a4238; font-size: 14px; margin-bottom: 12px; }
.card .cta { margin-top: 4px; }
.hint { font-size: 13px; color: var(--mint); font-weight: 600; margin-top: 8px; min-height: 18px; }

/* share row: card thumbnail + copy side by side */
.share-row { display: flex; gap: 14px; align-items: center; }
.card-preview { flex: 0 0 104px; }
.card-thumb {
  width: 104px; height: auto; display: block;
  border: 2px solid var(--line); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--line);
}
.share-copy { flex: 1; min-width: 0; }
.share-copy p { margin-bottom: 10px; }

/* referral */
.ref-head { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.ref-sub { color: #4a4238; font-size: 14px; }
.ref-link-row { display: flex; gap: 8px; margin: 10px 0; }
.ref-link-row input {
  flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 12px;
  padding: 11px 12px; font-size: 13px; color: var(--ink); background: #FFF9EF;
}
.ref-link-row button {
  border: 2px solid var(--line); border-radius: 12px; background: var(--sun); color: var(--ink);
  padding: 0 16px; font-weight: 800; cursor: pointer; font-size: 14px;
  box-shadow: 2px 2px 0 var(--line);
}
.ref-link-row button:active { transform: translate(2px, 2px); box-shadow: none; }
.ref-progress { height: 12px; background: #EFE3CB; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.ref-bar { height: 100%; background: var(--mint); border-radius: 99px; transition: width .3s; }
.ref-count { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* email */
#email-form { display: grid; gap: 10px; }
#email-input {
  border: 2px solid var(--line); border-radius: 14px; padding: 14px;
  font-size: 16px; width: 100%; color: var(--ink); background: #FFF9EF;
}
.email-msg { font-size: 13px; margin-top: 8px; min-height: 18px; color: var(--muted); }
.email-msg.error { color: var(--accent-dark); }
.email-msg.ok { color: var(--mint); font-weight: 700; }

/* breakdown = the gated Leak Report */
.cat-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.cat-name { width: 110px; font-size: 13px; font-weight: 700; color: var(--ink); }
.cat-bar-wrap { flex: 1; height: 10px; background: #EFE3CB; border-radius: 99px; overflow: hidden; }
.cat-bar { height: 100%; background: var(--mint); border-radius: 99px; }
.cat-pct { width: 44px; text-align: right; font-size: 13px; font-weight: 700; color: var(--ink); }
.level-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.level-name { width: 108px; font-size: 13px; font-weight: 700; color: var(--ink); }
.segs { display: flex; gap: 5px; flex: 1; }
.seg { flex: 1; height: 10px; border-radius: 99px; background: #EFE3CB; }
.seg.on { background: var(--mint); }
.level-tag { width: 38px; text-align: right; font-size: 12px; font-weight: 800; color: var(--muted); }
.diag-line { background: #FFF3DF; border: 2px dashed var(--line); border-radius: 12px; padding: 14px; font-size: 14px; color: #4a4238; margin-bottom: 6px; }
.break-cat { font-size: 15px; margin: 18px 0 4px; color: var(--ink); border-top: 2px solid #F0E4CC; padding-top: 14px; }
.review-item { border-top: 1px solid #F0E4CC; padding: 12px 0; font-size: 14px; }
.review-q { font-weight: 700; color: var(--ink); }
.review-a { margin: 4px 0; }
.review-item.r-good .review-a { color: var(--mint); }
.review-item.r-bad .review-a { color: var(--accent-dark); }
.review-item p { color: #4a4238; }

/* landing teaser */
.teaser-card { text-align: left; }
.teaser-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.teaser-q { font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 12px; }
.teaser-opts { display: grid; gap: 8px; }
.teaser-opt { font-size: 14px; padding: 12px 14px; box-shadow: 2px 2px 0 var(--line); }
.teaser-opt:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.teaser-opt.picked { background: #FFE3D6; }
.teaser-opt:disabled { cursor: default; }
.teaser-msg { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 20px; }
.cta.pulse { animation: pulse 1.6s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 4px 4px 0 var(--line), 0 0 0 0 rgba(255,77,46,.55); }
  50% { box-shadow: 4px 4px 0 var(--line), 0 0 0 14px rgba(255,77,46,0); }
}

@media (min-width: 560px) {
  .hero h1 { font-size: 42px; }
}
