:root {
  --canvas: #f4f5f3;
  --paper: #ffffff;
  --ink: #16181d;
  --cobalt: #1b47b8;
  --cobalt-dark: #0f2e86;
  --hairline: #c9d3ee;
  --graphite: #5a6270;
  --mist: #aeb5c1;
  --midnight: #0a1633;
  --gain: #0e7a4e;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(1.25rem, 4vw, 4.5rem); border-bottom: 1px solid #d9dcd8; background: rgba(244,245,243,.94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); }
.brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; color: var(--cobalt); }
.brand span { color: var(--cobalt); }
.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { font-size: .83rem; color: #3e424a; text-decoration: none; }
.desktop-nav a:hover { color: var(--cobalt); }
.header-cta { justify-self: end; font-size: .82rem; font-weight: 700; color: var(--cobalt); text-decoration: none; border-bottom: 1px solid var(--cobalt); padding-bottom: 2px; }
.cta-short { display: none; }

.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; padding: clamp(4rem, 9vw, 8.5rem) clamp(1.25rem, 7vw, 8rem); max-width: 1600px; margin: auto; }
.eyebrow, .card-tag { color: var(--cobalt); font: 500 .68rem/1.2 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.hero h1, h2, blockquote { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hero h1 { max-width: 780px; font-size: clamp(3.6rem, 6.6vw, 7rem); margin: 1.25rem 0 1.75rem; }
.hero h1 em { color: var(--cobalt); font-style: normal; }
.hero-intro { max-width: 610px; color: var(--graphite); font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin: 2.25rem 0 3rem; }
.button { border: 0; min-height: 50px; padding: .9rem 1.25rem; display: inline-flex; justify-content: center; align-items: center; gap: 1rem; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--cobalt); }
.button-primary:hover { background: var(--cobalt-dark); }
.button-quiet { background: transparent; border: 1px solid #c8cac7; }
.button-quiet:disabled { opacity: .35; cursor: default; transform: none; }
.text-link { font-size: .82rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid #929690; padding-bottom: .3rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; color: var(--graphite); font-size: .72rem; }
.trust-row span::before { content: "✓"; color: var(--gain); margin-right: .45rem; font-weight: 700; }

.money-snapshot { background: var(--paper); border: 1px solid #d9dcd8; padding: clamp(1.25rem, 2.5vw, 2.5rem); box-shadow: 0 28px 80px rgba(10,22,51,.08); }
.snapshot-topline, .result-topline { display: flex; justify-content: space-between; align-items: center; }
.mono { font-family: var(--mono); font-size: .61rem; letter-spacing: .09em; }
.status-dot { color: var(--gain); font-size: .68rem; font-weight: 600; }
.status-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .45rem; background: var(--gain); border-radius: 50%; }
.snapshot-total { padding: 3rem 0 2.5rem; }
.snapshot-total span, .snapshot-total small { display: block; color: var(--graphite); font-size: .75rem; }
.snapshot-total strong { display: block; font: 500 clamp(2.6rem, 4vw, 4.4rem)/1 var(--serif); letter-spacing: -.04em; margin: .35rem 0 .55rem; font-variant-numeric: tabular-nums; }
.flow-bar { height: 7px; display: flex; gap: 3px; }
.bar { width: var(--size); background: var(--cobalt); }
.bar.goals { background: #7495df; }
.bar.flexible { background: #dce3f3; }
.flow-legend { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin: 1rem 0 2.25rem; font-size: .6rem; color: var(--graphite); }
.flow-legend span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .35rem; }
.flow-legend b { grid-column: 2; color: var(--ink); }
.flow-legend i { width: 6px; height: 6px; background: var(--cobalt); }
.flow-legend .legend-goals { background: #7495df; }
.flow-legend .legend-flexible { background: #dce3f3; }
.next-action { border-top: 1px solid #d9dcd8; padding-top: 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.action-number { width: 35px; height: 35px; display: grid; place-items: center; background: #e9eefb; color: var(--cobalt); font: 500 .63rem var(--mono); }
.next-action small { display: block; color: var(--graphite); font-size: .62rem; margin-bottom: .2rem; }
.next-action strong { display: block; font-size: .76rem; }

/* Calm, one-time motion: enough life to guide attention without distraction. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.motion-ready .hero-copy > * { opacity: 0; animation: rise-in .58s var(--ease) forwards; }
.motion-ready .hero-copy > *:nth-child(2) { animation-delay: .07s; }
.motion-ready .hero-copy > *:nth-child(3) { animation-delay: .14s; }
.motion-ready .hero-copy > *:nth-child(4) { animation-delay: .21s; }
.motion-ready .hero-copy > *:nth-child(5) { animation-delay: .28s; }
.motion-ready .money-snapshot { opacity: 0; animation: rise-in .68s .18s var(--ease) forwards; }
.motion-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

.proof-strip { min-height: 92px; background: var(--cobalt); color: white; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem clamp(1.25rem, 7vw, 8rem); }
.proof-strip p { margin: 0; font-size: .88rem; }
.proof-strip .mono { opacity: .75; }

.score-section, .journey-section, .tools-section, .principles-section { padding: clamp(5.5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 8rem); }
.founder-section { max-width: 1280px; margin: clamp(5.5rem, 10vw, 10rem) auto; display: grid; grid-template-columns: minmax(340px, 410px) minmax(0, 1fr); background: var(--paper); border: 1px solid #d9dcd8; }
.founder-portrait { min-height: 600px; position: relative; overflow: hidden; background: #dbe0e8; }
.founder-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 25%; position: absolute; inset: 0; }
.founder-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.5rem; color: white; background: linear-gradient(transparent, rgba(10,22,51,.88)); padding-top: 5rem; }
.founder-caption strong, .founder-caption span { display: block; }
.founder-caption strong { font: 500 1.25rem var(--serif); }
.founder-caption span { margin-top: .15rem; color: #d4ddf1; font-size: .67rem; }
.founder-copy { padding: clamp(2.25rem, 5vw, 5.5rem); display: flex; flex-direction: column; justify-content: center; }
.founder-copy h2 { font-size: clamp(2.8rem, 4.6vw, 5rem); margin: 1rem 0 1.75rem; max-width: 760px; }
.founder-lead { color: var(--graphite); font-size: .93rem; line-height: 1.85; max-width: 650px; }
.founder-copy blockquote { color: var(--cobalt); font-size: clamp(1.7rem, 2.6vw, 2.75rem); line-height: 1.13; margin: 2rem 0; max-width: 670px; }
.founder-principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: #d7dad6; border: 1px solid #d7dad6; margin: 0 0 2rem; }
.founder-principles span { background: white; padding: 1rem; font-size: .67rem; line-height: 1.5; }
.founder-principles b { display: block; color: var(--cobalt); font: 500 .58rem var(--mono); margin-bottom: .45rem; }
.founder-copy .button { align-self: flex-start; }
.section-heading { max-width: 1350px; margin: 0 auto 4rem; display: grid; grid-template-columns: 1.45fr .55fr; gap: 5rem; align-items: end; }
.section-heading h2, .journey-title h2, .tools-section h2, .learn-section h2 { font-size: clamp(2.7rem, 5vw, 5.2rem); margin: 1rem 0 0; max-width: 920px; }
.section-heading > p { color: var(--graphite); font-size: .9rem; line-height: 1.8; }
.score-shell { max-width: 1120px; margin: auto; background: var(--paper); border: 1px solid #d9dcd8; min-height: 560px; display: grid; place-items: stretch; }
.score-form, .score-result { padding: clamp(1.5rem, 5vw, 4.5rem); }
.form-progress { height: 3px; background: #e2e4e1; margin-bottom: 2rem; }
.form-progress span { display: block; height: 100%; width: 16.67%; background: var(--cobalt); transition: width .4s var(--ease); }
.question-count { color: var(--graphite); margin-bottom: 2rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font: 500 clamp(1.7rem, 3vw, 3rem)/1.16 var(--serif); letter-spacing: -.035em; max-width: 800px; margin-bottom: 2rem; }
.answer-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.answer-option { border: 1px solid #d1d4d0; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .8rem; cursor: pointer; font-size: .82rem; transition: border .2s, background .2s; }
.answer-option:hover { border-color: var(--cobalt); }
.answer-option:has(input:checked) { border-color: var(--cobalt); background: #edf1fb; color: var(--cobalt-dark); }
.answer-option input { appearance: none; width: 16px; height: 16px; border: 1px solid #9ca19a; border-radius: 50%; margin: 0; }
.answer-option input:checked { border: 5px solid var(--cobalt); }
.form-controls { display: flex; justify-content: space-between; margin-top: 3rem; }
.score-result { max-width: 900px; margin: auto; width: 100%; }
.reset-button { border: 0; background: transparent; color: var(--graphite); text-decoration: underline; cursor: pointer; font-size: .72rem; }
.score-gauge { width: 175px; height: 175px; border-radius: 50%; display: grid; place-items: center; margin: 1.8rem auto 1rem; background: conic-gradient(var(--cobalt) calc(var(--score) * 1%), #e1e4e0 0); position: relative; }
.score-gauge::before { content: ""; width: 145px; height: 145px; border-radius: 50%; background: white; position: absolute; }
.score-gauge div { z-index: 1; }
.score-gauge strong { font: 500 3.6rem/1 var(--serif); }
.score-gauge span { color: var(--graphite); font-size: .7rem; }
.score-result h3 { text-align: center; font: 500 2rem var(--serif); margin: .75rem 0 .25rem; }
.score-result > p { text-align: center; color: var(--graphite); font-size: .8rem; margin: 0 auto 2rem; max-width: 560px; }
.dimension-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dimension { border: 1px solid #d9dcd8; padding: .8rem; }
.dimension span { display: flex; justify-content: space-between; font-size: .61rem; margin-bottom: .5rem; }
.dimension i { height: 3px; display: block; background: #e2e4e1; }
.dimension i::after { content: ""; display: block; width: var(--value); height: 100%; background: var(--cobalt); }
.result-action { border-left: 3px solid var(--cobalt); background: #eef2fb; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.result-action span, .result-action strong { display: block; }
.result-action span { color: var(--cobalt); margin-bottom: .4rem; }
.result-action strong { font-size: .83rem; }
.full-width { width: 100%; }

.journey-section { background: var(--paper); }
.journey-title { max-width: 1350px; margin: 0 auto 4rem; }
.journey-grid { max-width: 1350px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ccd0cb; }
.journey-grid li { min-height: 390px; padding: 1.5rem; border-right: 1px solid #ccd0cb; display: flex; flex-direction: column; }
.journey-grid li:first-child { border-left: 1px solid #ccd0cb; }
.step-number { color: var(--graphite); font: 500 .62rem var(--mono); }
.step-icon { color: var(--cobalt); font-size: 2.4rem; margin: 3.5rem 0 2rem; }
.journey-grid h3, .tool-card h3, .track-list h3, .principles-grid h3 { font: 500 1.5rem var(--serif); margin: 0 0 .75rem; }
.journey-grid p, .tool-card p, .track-list p, .principles-grid p { color: var(--graphite); font-size: .75rem; line-height: 1.7; }
.step-label, .availability { margin-top: auto; color: var(--cobalt); font-size: .68rem; font-weight: 700; }

.compact { display: block; }
.tool-grid { max-width: 1350px; margin: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; }
.tool-card { min-height: 365px; background: white; border: 1px solid #d9dcd8; padding: 2rem; display: flex; flex-direction: column; }
.tool-card h3 { font-size: 2rem; margin-top: 1.5rem; }
.tool-card.featured { background: var(--cobalt); color: white; }
.tool-card.featured .card-tag, .tool-card.featured p { color: #cbd7f6; }
.mini-dashboard { margin: 1.2rem 0; padding: 1.1rem; background: rgba(255,255,255,.1); font-size: .65rem; }
.mini-top, .mini-cols { display: flex; justify-content: space-between; }
.mini-line { height: 4px; background: rgba(255,255,255,.2); margin: .8rem 0 1.2rem; }
.mini-line i { display: block; width: var(--w); height: 100%; background: white; }
.mini-cols b { font-size: .78rem; }
.featured .availability { color: white; }
.featured-link { margin-top: auto; color: white; font-size: .72rem; font-weight: 700; text-decoration: none; border-top: 1px solid rgba(255,255,255,.24); padding-top: 1rem; }
.featured-link span { float: right; }
.card-link { margin-top: auto; color: var(--cobalt); font-size: .72rem; font-weight: 700; text-decoration: none; }
.card-link span { float: right; }

.learn-section { background: var(--midnight); color: white; padding: clamp(5.5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 8rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 9rem); }
.learn-copy { max-width: 560px; }
.learn-copy .eyebrow { color: #8facf1; }
.learn-copy h2 { font-size: clamp(3rem, 5vw, 5.2rem); }
.learn-copy > p:not(.eyebrow) { color: #adb7cc; line-height: 1.8; font-size: .85rem; }
.text-link.light { display: inline-block; color: white; margin-top: 2rem; border-color: #69738a; }
.track-list { border-top: 1px solid #3c465e; }
.track-list article { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: center; border-bottom: 1px solid #3c465e; padding: 1.5rem 0; }
.track-list .mono { color: #8facf1; }
.track-list h3 { margin: 0 0 .2rem; }
.track-list p { margin: 0; color: #adb7cc; }

.principles-section { max-width: 1600px; margin: auto; }
blockquote { font-size: clamp(3.2rem, 6vw, 6.6rem); margin: 1.5rem 0 5rem; max-width: 1200px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #cdd0cc; border: 1px solid #cdd0cc; }
.principles-grid > div { background: var(--canvas); padding: 2rem; min-height: 230px; }
.principles-grid > div > span { font: 500 .63rem var(--mono); color: var(--cobalt); }
.principles-grid h3 { margin-top: 3rem; }

footer { background: var(--ink); color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem clamp(1.25rem, 7vw, 8rem); }
.brand-light { color: #7da0ed; font-size: 2rem; }
.footer-brand p { color: #aeb4c1; font: 500 1.3rem var(--serif); }
.footer-note { color: #9299a7; font-size: .68rem; line-height: 1.7; max-width: 560px; justify-self: end; }
.footer-note span { display: block; margin-top: 1rem; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .money-snapshot { max-width: 600px; width: 100%; }
  .section-heading, .learn-section { grid-template-columns: 1fr; gap: 2rem; }
  .founder-section { margin-inline: 1.25rem; grid-template-columns: 340px minmax(0, 1fr); }
  .founder-portrait { min-height: 560px; }
  .founder-principles { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid li:nth-child(3) { border-left: 1px solid #ccd0cb; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card.featured { grid-column: 1/-1; }
}

@media (max-width: 760px) {
  .founder-section { grid-template-columns: 1fr; }
  .founder-portrait { min-height: 0; aspect-ratio: 4 / 5; }
  .founder-copy { padding: 2.5rem 2rem 3rem; }
}

@media (max-width: 600px) {
  .site-header { height: 68px; padding-inline: 1rem; }
  .header-cta { font-size: .72rem; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hero { min-height: auto; padding: 4.5rem 1.1rem 4rem; gap: 4rem; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 3.6rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { align-self: flex-start; }
  .proof-strip { align-items: flex-start; flex-direction: column; }
  .score-section, .journey-section, .tools-section, .principles-section { padding: 5rem 1.1rem; }
  .founder-section { margin: 4rem 1.1rem; grid-template-columns: 1fr; }
  .founder-portrait { min-height: 0; aspect-ratio: 4 / 5; }
  .founder-copy { padding: 2.25rem 1.5rem 2.5rem; }
  .founder-copy h2 { font-size: 2.8rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .section-heading h2, .journey-title h2, .tools-section h2 { font-size: 2.75rem; }
  .score-shell { min-height: 620px; }
  .answer-options, .dimension-list { grid-template-columns: 1fr; }
  .journey-grid, .tool-grid, .principles-grid { grid-template-columns: 1fr; }
  .journey-grid li, .journey-grid li:first-child, .journey-grid li:nth-child(3) { border-left: 1px solid #ccd0cb; min-height: 320px; }
  .tool-card.featured { grid-column: auto; }
  .learn-section { padding: 5rem 1.1rem; }
  .learn-copy h2 { font-size: 3rem; }
  .track-list article { grid-template-columns: 58px 1fr auto; }
  blockquote { font-size: 3.3rem; }
  footer { grid-template-columns: 1fr; padding: 3rem 1.1rem; }
  .footer-note { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .motion-ready .hero-copy > *, .motion-ready .money-snapshot,
  .motion-ready .reveal { opacity: 1; transform: none; animation: none; }
}
