/* =============================================================================
   PROPOSAL STRUCTURE CHECKER - free diagnostic
   Shares the editorial-premium language of the sales page: warm paper canvas,
   one confident indigo accent, Fraunces against Inter, soft depth, CSS micro-
   interactions. Deliberately consistent with ../style.css.
   ============================================================================= */

:root {
  --paper: #fbf9f5;
  --paper-2: #f4f1ea;
  --ink: #1a1b1f;
  --ink-2: #4a4c54;
  --ink-3: #797b85;
  --line: #e8e3d8;
  --accent: #4338ca;
  --accent-2: #6d62e8;
  --accent-soft: #eceaf9;
  --good: #1c8f5f;
  --good-soft: #e4f3ec;
  --bad: #c0563e;
  --bad-soft: #f6e7e2;
  --gold: #b08740;
  --gold-soft: #f5ecda;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(26,27,31,.04), 0 4px 16px -6px rgba(26,27,31,.10);
  --shadow-md: 0 18px 50px -24px rgba(26,27,31,.30);
  --shadow-lg: 0 40px 90px -40px rgba(67,56,202,.35);
  --maxw: 1080px;
  --measure: 680px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }

/* ---------- TYPE ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.07; }
.section-title { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.16; max-width: 22ch; }
em { font-style: italic; color: var(--accent); }
.eyebrow, .section-tag { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; display: inline-block; }
.lede, .section-lede { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--ink-2); line-height: 1.6; max-width: var(--measure); }
.accent-text { color: var(--accent); font-weight: 600; }
.muted { color: var(--ink-3); }
strong { font-weight: 600; color: var(--ink); }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 999px; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background .18s ease, color .18s ease; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; padding: 0.85rem 1.6rem; font-size: 1rem; box-shadow: 0 10px 28px -10px rgba(67,56,202,.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(67,56,202,.8); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; border-radius: 14px; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); padding: 0.7rem 1.3rem; font-size: 0.95rem; }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent-2); background: var(--accent-soft); }
.cta-sub { display: block; font-size: 0.88rem; color: var(--ink-3); margin-top: 0.85rem; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(251,249,245,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.brand-mark { color: var(--accent); font-size: 0.8em; }
.nav-tag { font-size: 0.8rem; color: var(--ink-3); font-weight: 500; }

/* ---------- HERO / INTRO ---------- */
.hero { padding: clamp(2.8rem, 7vw, 5.5rem) 1.5rem clamp(2.5rem, 5vw, 4rem); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero h1 { max-width: 17ch; margin-bottom: 1.4rem; }
.hero .lede { margin-bottom: 2rem; }
.trust-row { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: 0.7rem; max-width: 640px; }
.trust-row li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem; color: var(--ink-2); }
.trust-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.75rem; margin-top: 1px; }
.hero-cta { margin-bottom: 0.5rem; }

/* ---------- QUIZ ---------- */
.quiz-wrap { padding: clamp(2rem, 5vw, 3.5rem) 1.5rem 4rem; }
.quiz-inner { max-width: 720px; margin: 0 auto; }
.quiz-head { margin-bottom: 1.8rem; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.progress-label { font-size: 0.82rem; color: var(--ink-3); margin: 0.6rem 0 0; font-weight: 600; letter-spacing: 0.04em; }

.qcard { border: none; margin: 0; padding: 0; min-width: 0; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q-section { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding: 0; margin-bottom: 0.7rem; }
.q-title { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.18; margin-bottom: 0.7rem; max-width: 24ch; }
.q-help { font-size: 0.96rem; color: var(--ink-2); margin: 0 0 1.6rem; max-width: 56ch; }

.opts { display: grid; gap: 0.7rem; }
.opt { position: relative; display: flex; align-items: flex-start; gap: 0.9rem; padding: 1.05rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease; }
.opt:hover { border-color: var(--accent-2); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); margin-top: 1px; transition: border-color .16s ease, background .16s ease; position: relative; }
.opt-mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .16s cubic-bezier(.2,.8,.2,1); }
.opt-label { font-size: 1rem; color: var(--ink); line-height: 1.45; }
.opt.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.opt.is-selected .opt-mark { border-color: var(--accent); background: var(--accent); }
.opt.is-selected .opt-mark::after { transform: scale(1); background: #fff; }
.opt input:focus-visible + .opt-mark { outline: 2px solid var(--accent); outline-offset: 3px; }

/* context numeric step */
.ctx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.ctx-field { display: flex; flex-direction: column; gap: 0.45rem; }
.ctx-label { font-size: 0.9rem; color: var(--ink-2); font-weight: 500; }
.ctx-field input { font-family: var(--sans); font-size: 1.05rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease; }
.ctx-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#seeResultBtn { width: 100%; margin-bottom: 0.8rem; }
.btn-skip { display: block; width: 100%; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.quiz-hint { font-size: 0.88rem; color: var(--ink-3); }

/* ---------- RESULT ---------- */
.result-wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 4rem; }
.result-inner { max-width: 820px; margin: 0 auto; }

/* score card */
.score-card { text-align: center; background: linear-gradient(165deg, #1d1e26, #14151b); color: var(--paper); border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.2rem) 1.5rem; box-shadow: var(--shadow-lg); margin-bottom: 2.5rem; }
.score-card .section-tag { color: var(--accent-2); }
.score-ring-wrap { position: relative; width: 200px; height: 200px; margin: 0.5rem auto 1.2rem; }
.score-ring { width: 200px; height: 200px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(251,249,245,.14); stroke-width: 14; }
.ring-fill { fill: none; stroke: var(--accent-2); stroke-width: 14; stroke-linecap: round; }
.score-center { position: absolute; inset: 0; display: grid; place-content: center; align-content: center; }
.score-num { font-family: var(--serif); font-size: 4.2rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.score-denom { font-size: 1rem; color: rgba(251,249,245,.55); margin-top: 0.2rem; }
.score-band { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; margin: 0 0 0.8rem; color: var(--accent-2); }
.score-verdict { font-size: 1rem; color: rgba(251,249,245,.82); max-width: 52ch; margin: 0 auto; line-height: 1.6; }

/* findings */
.result-block { margin-bottom: 2.5rem; }
.result-block .section-lede { margin: 1rem 0 2rem; }
.findings { display: grid; gap: 0.9rem; }
.finding { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; transition: transform .18s ease, box-shadow .18s ease; }
.finding:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.finding-gap { border-left: 3px solid var(--bad); }
.finding-partial { border-left: 3px solid var(--gold); }
.finding-good { border-left: 3px solid var(--good); }
.finding-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; margin-top: 2px; }
.finding-gap .finding-ic { background: var(--bad-soft); color: var(--bad); }
.finding-partial .finding-ic { background: var(--gold-soft); color: var(--gold); }
.finding-good .finding-ic { background: var(--good-soft); color: var(--good); }
.finding-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.finding-section { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.finding-pill { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.finding-pill-gap { background: var(--bad-soft); color: var(--bad); }
.finding-pill-partial { background: var(--gold-soft); color: var(--gold); }
.finding-pill-good { background: var(--good-soft); color: var(--good); }
.finding-title { font-size: 1.1rem; line-height: 1.25; margin-bottom: 0.35rem; }
.finding-text { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

/* biggest lever */
.lever-card { background: linear-gradient(160deg, #fff, var(--accent-soft)); border: 1px solid #d9d4f4; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-md); margin-bottom: 2.5rem; }
.lever-card h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.6rem; }
.lever-card p { font-size: 1rem; color: var(--ink-2); margin: 0; }

/* CTA card */
.cta-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 2rem; }
.cta-lede { font-size: 1.05rem; color: var(--ink-2); margin: 1rem 0 1.4rem; line-height: 1.6; }
.cta-lede .money-illo { display: block; margin-top: 0.9rem; padding: 0.9rem 1.1rem; background: var(--gold-soft); border-radius: var(--radius-sm); border-left: 3px solid var(--gold); font-size: 0.96rem; color: var(--ink-2); }
.cta-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 0.65rem; }
.cta-list li { font-size: 0.98rem; color: var(--ink-2); padding-left: 1.6rem; position: relative; line-height: 1.45; }
.cta-list li::before { content: '+'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.cta-actions { margin-bottom: 0.9rem; }
.cta-actions .btn-primary { width: 100%; }
.cta-anchor { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 1rem; }
.cta-anchor strong { color: var(--accent); }
.cta-anchor s { color: var(--ink-3); }
.cta-secondary { font-size: 0.95rem; margin: 0; }
.cta-secondary a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cta-secondary a:hover { text-decoration: underline; }

.result-foot { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(251,249,245,.62); padding: 3.2rem 1.5rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { font-family: var(--serif); font-size: 1.1rem; color: var(--paper); margin: 0 0 1.4rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-brand .brand-mark { color: var(--accent-2); }
.footer-disclosure, .footer-legal { font-size: 0.85rem; line-height: 1.6; max-width: 82ch; margin: 0 0 1rem; }
.footer-disclosure strong, .footer-legal strong { color: var(--paper); }
.footer-copy { font-size: 0.8rem; color: rgba(251,249,245,.4); margin: 1.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(251,249,245,.12); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 620px) {
  .nav-tag { display: none; }
  .ctx-grid { grid-template-columns: 1fr; }
  .opt-label { font-size: 0.96rem; }
  .score-ring-wrap, .score-ring { width: 170px; height: 170px; }
  .score-num { font-size: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
