/* Finmorrow public page. Tokens follow the approved v3 mockup (2026-11-27). */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --forest: #12302a;
  --forest-2: #163a33;
  --paper: #f6f1e8;
  --surface: #fffdf8;
  --apricot: #e9a86a;
  --apricot-soft: #f6d2a8;
  --sage: #9fd3bf;
  --clay: #c4622d;
  --clay-ink: #8a4a22;
  --muted: #4c5c56;
  --on-dark-muted: #c9d4ce;
  --line: #e3d9c6;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --spring: linear(0, 0.36 9%, 0.88 22%, 1.06 33%, 1.03 45%, 0.99 62%, 1);
  --wrap: 1240px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--forest); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-variant-numeric: tabular-nums; }
a { color: var(--forest); }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { margin: 0; }
h2.display { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 15px 24px; border-radius: 10px; transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn-apricot { background: var(--apricot); color: var(--forest); font-weight: 700; }
.btn-apricot:hover { color: var(--forest); }
.btn-ghost { color: var(--paper); border: 1px solid rgba(246,241,232,.28); }
.btn-ghost:hover { color: #fff; }
.btn-paper { background: var(--paper); color: var(--forest); padding: 10px 18px; }

/* Hero */
.hero { background: var(--forest); color: var(--paper); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -10%; top: -30%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(233,168,106,.16), rgba(233,168,106,0)); pointer-events: none; }
.site-header { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font-family: var(--display); font-size: 22px; }
.brand:hover { color: #fff; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav a.navlink { color: #d5ddd8; text-decoration: none; }
.site-nav a.navlink:hover { color: #fff; }
.hero-grid { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 104px; }
.hero-copy { flex: 1 1 400px; min-width: 0; }
.eyebrow-dark { color: var(--sage); margin: 0 0 20px; }
.hero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.025em; color: #fff; margin-bottom: 24px; }
.hero h1 em { color: var(--apricot); }
.lead { margin: 0 0 32px; font-size: 19px; color: var(--on-dark-muted); max-width: 31rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { margin: 22px 0 0; font-size: 14px; color: #a9b8b1; }

/* Demo */
.demo { flex: 1 1 560px; min-width: 0; background: rgba(246,241,232,.06); border: 1px solid rgba(246,241,232,.16); border-radius: 20px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.28); }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid rgba(246,241,232,.12); }
.demo-head strong { font-size: 14px; font-weight: 600; color: #fff; }
.demo-head .mono { font-size: 11px; color: #a9b8b1; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: rgba(246,241,232,.12); }
.choice { background: var(--forest-2); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.choice-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.choice-top .mono { color: var(--on-dark-muted); }
.age { font-family: var(--display); font-size: 30px; color: #fff; line-height: 1; }
.age small { font-family: var(--sans); font-size: 14px; color: var(--on-dark-muted); }
.choice label { font-size: 13px; color: var(--on-dark-muted); }
.choice input[type=range] { width: 100%; accent-color: var(--apricot); height: 32px; margin: 0; }
.choice svg { width: 100%; height: auto; display: block; }
.bar-salary, .bar-bridge { transform-box: fill-box; transform-origin: left; transition: transform .55s var(--spring); }
.bar-bridge { transform-origin: right; }
.choice dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; font-size: 14px; }
.choice dt { color: var(--on-dark-muted); }
.choice dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px 20px; font-size: 12px; color: var(--on-dark-muted); border-top: 1px solid rgba(246,241,232,.12); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .end { margin-left: auto; }

/* Trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding-top: 26px; padding-bottom: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 32px; font-size: 15px; }
.trust li { display: flex; gap: 12px; align-items: center; }

/* Goals */
.goals { padding-top: 112px; padding-bottom: 104px; }
.goals .eyebrow { color: var(--muted); margin: 0 0 14px; }
.goals h2 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; margin-bottom: 48px; }
.goals h2 em { color: var(--clay); }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
/* Hover uses translate/scale, not transform, so the scroll reveal (.rise, which animates transform) cannot override it. */
.goal { display: flex; flex-direction: column; min-height: 480px; border-radius: 28px; overflow: hidden; text-decoration: none; transition: translate .6s var(--spring), scale .6s var(--spring), box-shadow .4s ease; }
.goal:hover { translate: 0 -10px; scale: 1.015; box-shadow: 0 40px 80px rgba(18,48,42,.22); }
.goal svg { width: 100%; height: auto; display: block; }
.goal-body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.goal h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; }
.goal p { margin: 0; }
.goal .more { margin-top: auto; font-weight: 600; }
.goal .arrow { display: inline-block; transition: transform .35s ease; }
.goal:hover .arrow { transform: translateX(6px); }
.goal-1 { background: var(--forest); color: var(--paper); }
.goal-1:hover { color: var(--paper); }
.goal-1 h3 { color: #fff; }
.goal-1 p { color: var(--on-dark-muted); }
.goal-1 .mono { color: var(--sage); }
.goal-1 .more { color: var(--apricot); }
.goal-2 { background: var(--surface); color: var(--forest); border: 1px solid var(--line); }
.goal-2 p, .goal-2 .mono { color: var(--muted); }
.goal-2 .more { color: var(--clay-ink); }
.goal-3 { background: var(--apricot); color: var(--forest); }
.goal-3:hover { color: var(--forest); }
.goal-3 p { color: #2b3f39; }

/* Goal card animations */
@keyframes slide { 0%,12% { transform: translateX(0) } 45%,62% { transform: translateX(-96px) } 95%,100% { transform: translateX(0) } }
@keyframes sun { 0%,12% { transform: translateY(0) } 45%,62% { transform: translateY(-34px) } 95%,100% { transform: translateY(0) } }
@keyframes span { 0%,12% { transform: scaleX(1) } 45%,62% { transform: scaleX(2.2) } 95%,100% { transform: scaleX(1) } }
@keyframes pay { 0%,8% { transform: scaleY(1) } 50%,70% { transform: scaleY(.04) } 100% { transform: scaleY(1) } }
@keyframes key { 0%,40% { opacity: 0; transform: translateY(10px) } 55%,75% { opacity: 1; transform: none } 90%,100% { opacity: 0; transform: translateY(10px) } }
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes balance { 0%,100% { transform: rotate(-7deg) } 50% { transform: rotate(7deg) } }
.a-slide { animation: slide 6s cubic-bezier(.65,0,.35,1) infinite; }
.a-sun { animation: sun 6s cubic-bezier(.65,0,.35,1) infinite; }
.a-span { transform-origin: right; transform-box: fill-box; animation: span 6s cubic-bezier(.65,0,.35,1) infinite; }
.a-pay { transform-origin: bottom; transform-box: fill-box; animation: pay 6s cubic-bezier(.65,0,.35,1) infinite; }
.a-key { animation: key 6s ease infinite; }
.a-spin { transform-origin: center; transform-box: fill-box; animation: spin 14s linear infinite; }
.a-balance { transform-origin: 50% 0; transform-box: fill-box; animation: balance 4s ease-in-out infinite; }

/* Steps */
.steps { padding-bottom: 96px; }
.steps h2 { margin-bottom: 40px; }
.progress { position: relative; height: 2px; background: var(--line); margin-bottom: 28px; }
.progress span { position: absolute; inset: 0; background: var(--forest); }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.step-grid .mono { color: var(--muted); }
.step-grid h3 { margin: 8px 0 6px; font-size: 22px; font-weight: 600; }
.step-grid p { margin: 0; color: var(--muted); }

/* Sources */
.sources { padding-bottom: 104px; }
.sources-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.sources-card > p { margin: 12px 0 28px; color: var(--muted); max-width: 36rem; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.fact { background: var(--forest); color: var(--paper); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .45s var(--spring); }
.fact:hover { transform: translateY(-4px); }
.fact .mono { color: var(--sage); font-size: 11px; }
.fact h3 { font-size: 15px; font-weight: 600; color: var(--on-dark-muted); }
.fact .value { font-family: var(--display); font-size: 24px; line-height: 1.2; color: #fff; }
.fact .note { font-size: 14px; color: var(--on-dark-muted); margin: 0; }
.fact a { align-self: flex-start; background: var(--apricot); color: var(--forest); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.fact a:hover { color: var(--forest); text-decoration: underline; }

/* Data */
.data { background: var(--forest); color: var(--paper); }
.data .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.data h2 { color: #fff; flex: 1 1 300px; }
.data p { margin: 0; flex: 2 1 420px; color: var(--on-dark-muted); font-size: 18px; }
.data a { color: var(--apricot); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: 104px var(--gutter) 96px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* CTA + footer */
.cta { padding-bottom: 96px; }
.cta-box { background: var(--forest); color: var(--paper); border-radius: 24px; padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-box h2 { color: #fff; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0; max-width: 40rem; }
.site-footer nav { display: flex; gap: 20px; }

/* Scroll-driven enhancement (no JavaScript, falls back to static) */
@supports (animation-timeline: view()) {
  @keyframes fill { from { transform: scaleX(0) } to { transform: scaleX(1) } }
  .progress span { transform-origin: left; animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
  @keyframes rise { from { opacity: .001; transform: translateY(36px) } to { opacity: 1; transform: none } }
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

@keyframes in { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
.in { animation: in .9s cubic-bezier(.2,.8,.2,1) both; }
.in-2 { animation: in .9s cubic-bezier(.2,.8,.2,1) .15s both; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-nav a.navlink { display: none; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .hero-grid { padding-top: 28px; padding-bottom: 64px; gap: 36px; }
  .goals { padding-top: 64px; padding-bottom: 56px; }
  .goals h2 { margin-bottom: 28px; }
  .goal { min-height: 0; }
  .goal:hover { translate: none; scale: none; }
  .sources { padding-bottom: 64px; }
  .sources-card { padding: 24px 20px; }
  .steps { padding-bottom: 64px; }
  .data .wrap { padding-top: 64px; padding-bottom: 64px; }
  .faq { padding-top: 64px; padding-bottom: 56px; }
  .cta { padding-bottom: 56px; }
  .cta-box { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
