/* Budly landing, "The First Look" (Oct 2026). Fonts are self-hosted: the CSP allows font-src 'self' only. */
@font-face{font-family:"Geist";src:url("fonts/GeistVF.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Geist Mono";src:url("fonts/GeistMono-Variable.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
/* Layout: two scroll chapters, each a sticky stage with the story text scrolling past it
   (the fog that sorts itself into the Overview, then the line that falls and rises),
   then the founder note, a working five tab tour, and a quiet close.
   Tokens are the app's own (Budly redesign, Oct 2026). Motion calms down as the story resolves. */
:root{
  color-scheme: light;
  --accent:#5B53D6; --accent-hover:#4F47C7; --accent-wash:#EEEDFB; --accent-wash-2:#E2E0F7; --accent-contrast:#FFFFFF;
  --app-bg:#F7F8FA; --app-bg-0:rgba(247,248,250,0); --app-bg-60:rgba(247,248,250,.6); --surface:#FFFFFF;
  --ink-900:#14151A; --ink-700:#3B3E45; --ink-500:#6A6E78; --ink-400:#6D717B; --ink-300:#AEB2BB;
  /* three landing-only inks, each the smallest step off an app token that reaches 4.5:1 (WCAG AA) where that token
     is drawn: --ink-550 is ink-500 on the accent wash (the tour list's selected row); --ink-600 is ink-500 for the
     labels that sit on the orb wash (the app's own ambient lifts the background under them); --tab-on is the selected
     tab label on its pill */
  --ink-550:#696A78; --ink-600:#5A5D66; --tab-on:#5950D4;
  --hairline:#EAEBEE; --hairline-strong:#DCDEE3;
  --positive:#12805C; --positive-text:#0E6B4E; --positive-wash:#E6F4EE;
  --alloc-exp:#5B53D6; --alloc-debt:#C65A32; --alloc-goal:#00897B; --alloc-track:rgba(118,118,128,.12);
  --tint-exp:rgba(91,83,214,.18); --tint-debt:rgba(198,90,50,.16); --tint-goal:rgba(0,137,123,.18); --tint-goal-track:rgba(0,137,123,.22);
  --cat-indigo:#5B53D6; --cat-teal:#0E9384; --cat-amber:#C2820F; --cat-rose:#C24360; --cat-blue:#2D72D2; --cat-green:#2E9466; --cat-violet:#7D5BD0; --cat-slate:#5C6675;
  --g2-fill:linear-gradient(155deg, rgba(255,255,255,.88), rgba(255,255,255,.58) 50%, rgba(255,255,255,.72));
  --g2-shadow:inset 0 1px 0 #FFFFFF, 0 2px 6px rgba(40,30,120,.08), 0 18px 36px -8px rgba(40,30,120,.18), 0 44px 80px -24px rgba(40,30,120,.30);
  --g2-rim:linear-gradient(160deg, #FFFFFF, rgba(255,255,255,.4) 40%, rgba(91,83,214,.16));
  --g2-sheen:radial-gradient(140% 70% at 15% -10%, rgba(255,255,255,.6), transparent 55%);
  --g2-solid:#FFFFFF;
  --g2-blur:blur(30px) saturate(180%);
  --orb-1:rgba(91,83,214,.30);
  --fog:#6A6E78;
  --veil:#F7F8FA;
  --chart-zero:rgba(109,113,123,.55);
  --debt-area:rgba(198,90,50,.12);
  --phone-edge:rgba(20,21,26,.10);

  --font-sans:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-display:clamp(2.75rem, 1.15rem + 5.2vw, 6rem);
  --fs-h2:clamp(2rem, 1.25rem + 2.7vw, 3.6rem);
  --fs-lead:clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  --fs-body:1.0625rem; --fs-callout:1rem; --fs-subhead:.9375rem; --fs-footnote:.8125rem; --fs-caption2:.6875rem; --fs-title3:1.25rem;
  --ease-out:cubic-bezier(.23,1,.32,1);
  --gutter-l:max(16px, env(safe-area-inset-left, 0px));
  --gutter-r:max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark){ :root{
  color-scheme: dark;
  /* the app's dark accent is #6E66EE (white on it 4.38:1); #6D61ED is the nearest shade that gives white text 4.5:1 and
     still reads at 4.5:1 as link text on black. The hover goes darker, as it does in light mode, since any lighter shade fails */
  --accent:#6D61ED; --accent-hover:#655AE9; --accent-wash:rgba(110,102,238,.14); --accent-wash-2:rgba(110,102,238,.24); --accent-contrast:#FFFFFF;
  --app-bg:#000000; --app-bg-0:rgba(0,0,0,0); --app-bg-60:rgba(0,0,0,.6); --surface:#1A1B2E;
  --ink-900:#F3F4F6; --ink-700:#CBCED5; --ink-500:#9AA0AA; --ink-400:#8B909A; --ink-300:#5C626C;
  --ink-550:#9AA0AA; --ink-600:#B8BDC5; --tab-on:#A29DF5;
  --hairline:rgba(255,255,255,.07); --hairline-strong:rgba(255,255,255,.13);
  --positive:#2FB37E; --positive-text:#54C495; --positive-wash:rgba(47,179,126,.13);
  --alloc-exp:#7C74EE; --alloc-debt:#E0704A; --alloc-goal:#24A08F; --alloc-track:rgba(118,118,128,.24);
  --tint-exp:rgba(124,116,238,.18); --tint-debt:rgba(224,112,74,.16); --tint-goal:rgba(36,160,143,.18); --tint-goal-track:rgba(36,160,143,.22);
  --cat-indigo:#7C74EE; --cat-teal:#2BB6A4; --cat-amber:#D6A031; --cat-rose:#E06A85; --cat-blue:#5191E6; --cat-green:#46B07E; --cat-violet:#9A7BE6; --cat-slate:#8893A3;
  --g2-fill:linear-gradient(155deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 45%, rgba(255,255,255,.07));
  --g2-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.3), 0 18px 36px -8px rgba(0,0,0,.55), 0 44px 80px -24px rgba(8,6,40,.75);
  --g2-rim:linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 30%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.24));
  --g2-sheen:radial-gradient(140% 70% at 15% -10%, rgba(255,255,255,.14), transparent 55%);
  --g2-solid:#1A1B2E;
  --orb-1:rgba(110,102,238,.50);
  --fog:#9AA0AA; --veil:#000000; --chart-zero:rgba(139,144,154,.55); --debt-area:rgba(224,112,74,.14); --phone-edge:rgba(255,255,255,.12);
}}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--app-bg);color:var(--ink-900);font-family:var(--font-sans);font-size:var(--fs-body);line-height:1.45;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:clip}
a{color:var(--accent);text-decoration:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.num{font-variant-numeric:tabular-nums}
.skip{position:fixed;z-index:100;left:16px;top:-60px;padding:10px 14px;border-radius:12px;background:var(--accent);color:var(--accent-contrast);font-weight:600}
.skip:focus{top:calc(12px + env(safe-area-inset-top,0px))}

/* ---------- the one glass recipe (src/budly-ui.css) ---------- */
.glass{position:relative;isolation:isolate;background:var(--g2-fill);box-shadow:var(--g2-shadow);-webkit-backdrop-filter:var(--g2-blur);backdrop-filter:var(--g2-blur)}
.glass::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:var(--g2-rim);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;z-index:2}
.glass::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--g2-sheen);pointer-events:none;z-index:-1}
@media (prefers-reduced-transparency: reduce){.glass{background:var(--g2-solid);-webkit-backdrop-filter:none;backdrop-filter:none}}

/* ---------- nav ---------- */
.glass.nav{position:fixed;z-index:60;top:calc(12px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(760px, calc(100% - 32px));height:52px;border-radius:26px;display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 18px}
.wordmark{display:inline-flex;align-items:center;font-weight:800;font-size:20px;letter-spacing:-.035em;color:var(--ink-900)}
.wordmark .bud{display:block;flex:none;width:26px;height:26px;margin-right:8px}
.wordmark span{color:var(--accent)}
.nav-links{display:flex;align-items:center;gap:2px}
.nav-link{display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:20px;color:var(--ink-700);font-size:var(--fs-subhead);font-weight:500}

/* ---------- buttons (press feel from the app) ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:50px;padding:0 24px;border-radius:25px;border:0;background:var(--accent);color:var(--accent-contrast);font:inherit;font-size:var(--fs-body);font-weight:600;letter-spacing:-.01em;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform 260ms cubic-bezier(.3,1.4,.5,1),background-color 160ms ease}
.btn:active{transform:scale(.96);transition-duration:90ms;transition-timing-function:ease-out}
.btn--ghost{background:var(--alloc-track);color:var(--ink-900)}
.btn--sm{height:40px;padding:0 16px;border-radius:20px;font-size:var(--fs-subhead)}
@media (hover:hover) and (pointer:fine){
  .btn:hover{background:var(--accent-hover)}
  .btn--ghost:hover{background:var(--accent-wash-2)}
  .nav-link:hover{background:var(--alloc-track);color:var(--ink-900)}
}

/* ---------- story type ---------- */
.display{margin:0;font-size:var(--fs-display);line-height:.97;letter-spacing:-.047em;font-weight:650;text-wrap:balance;max-width:11.5ch}
.h2{margin:0;font-size:var(--fs-h2);line-height:1.02;letter-spacing:-.04em;font-weight:650;text-wrap:balance}
.lead{margin:20px 0 0;font-size:var(--fs-lead);line-height:1.5;color:var(--ink-700);max-width:36ch;text-wrap:pretty}
.src{margin:14px 0 0;font-size:var(--fs-footnote);line-height:1.4;color:var(--ink-400)}
.micro{margin:16px 0 0;font-size:var(--fs-subhead);color:var(--ink-500)}
/* a link inside running text is underlined: colour alone is not enough (WCAG 1.4.1) */
.micro a{text-decoration:underline;text-underline-offset:2px}
/* the closing section sits on the indigo glow: its small print takes the darker secondary ink to keep 4.5:1 */
.close .micro{color:var(--ink-600)}
.close .micro a{color:inherit}
.cta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.eyebrow{margin:0 0 18px;font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-500)}

/* ---------- scroll chapters ---------- */
.scrolly{position:relative}
.stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.steps{position:relative;z-index:3;margin-top:-100vh;margin-top:-100svh}
.step{min-height:100vh;min-height:100svh;display:flex;align-items:center;padding-block:96px 64px;padding-left:max(var(--gutter-l), 6vw);padding-right:var(--gutter-r)}
.step__inner{width:min(33rem, 40vw)}
.scrolly--line .step__inner{width:min(29rem, 31vw)}
.step--hold{min-height:150vh;min-height:150svh;align-items:flex-start;padding-top:30vh;padding-top:30svh}
.step--hold .step__inner{position:sticky;top:30vh;top:30svh}

.orb{position:absolute;left:0;top:0;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,var(--orb-1),transparent);will-change:opacity,transform}
.example{margin:14px 0 0;font-size:var(--fs-footnote);color:var(--ink-400);text-align:center}
/* on phones an app card that is taller than its room keeps its size and runs past the stage edge: this fades its last rows
   into the stage background (landing.js sets the opacity with the card's own; it stays at 0 on desktop and without JS) */
.stage-fade{position:absolute;left:0;right:0;bottom:0;height:calc(var(--cap, 30px) + 56px);opacity:0;pointer-events:none;background:linear-gradient(to bottom,var(--app-bg-0),var(--app-bg) calc(100% - var(--cap, 30px)));will-change:opacity}
/* phones: one "Example account" caption per stage, in a band at the bottom that cards and the chart never enter (CAP in
   landing.js). It shows whenever an example card does, so the figures always read as an example */
.stage-ex{display:none;position:absolute;left:0;right:0;bottom:6px;margin:0;text-align:center;font-size:var(--fs-footnote);color:var(--ink-700);opacity:0;pointer-events:none}
@media (max-width:899.98px){.stage-ex{display:block}}

/* chapter one: the fog */
.frags{position:absolute;inset:0}
.frag{position:absolute;left:0;top:0;white-space:nowrap;color:var(--fog);will-change:transform,opacity,filter;pointer-events:none}
.frag--s{display:flex;gap:16px;font-family:var(--font-mono);font-size:13px;letter-spacing:.03em;text-transform:uppercase}
.frag--s b{font-weight:500}
.frag--s i{font-style:normal;font-variant-numeric:tabular-nums;color:var(--ink-700)}
.frag--q{font-size:17px;letter-spacing:-.01em}
.veil{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(115% 85% at 55% 50%, transparent 25%, var(--veil) 78%)}
.ov-wrap{position:absolute;left:0;top:0;transform-origin:0 0}
.ov{width:358px;display:flex;flex-direction:column;gap:28px;will-change:opacity,transform}
/* hidden before the first paint (the hashed js-anim script sets the class), so the card never flashes over the hero */
.js-anim .ov,.js-anim .stage .orb{opacity:0}
/* this card lands on the orb at full glow: its row subtitles (dark, 3.4:1) and caption (light, 4.1:1) take the deeper ink */
.ov .row-sub{color:var(--ink-600)}
/* "Example account" sits right on the indigo glow: the strongest secondary ink keeps it at 4.5:1 or better in both themes */
.ov .example{color:var(--ink-700)}
/* without JS the class never arrives and the page reads as plain text: the stages stay empty, and the furniture that only
   JS can fill (the phone, the "Example account" label on the line stage, the story map, "Tap one to look around") stays out */
html:not(.lj-ready) .co-ex,html:not(.lj-ready) .phone-box,html:not(.lj-ready) .storymap,html:not(.lj-ready) .js-only{display:none}
html:not(.lj-ready) .tour-grid{grid-template-columns:minmax(0,1fr)}

/* chapter two: the line */
.chart-box{position:absolute;left:40vw;right:max(5vw,24px);top:11vh;top:11svh;height:42vh;height:42svh}
.chart{display:block;width:100%;height:100%;overflow:visible}
.c-hist{fill:none;stroke:var(--ink-400);stroke-width:2;stroke-linecap:round;stroke-dasharray:1 7;opacity:.85}
.c-plan{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-dasharray:1 7;opacity:.75}
.c-done{fill:none;stroke:var(--accent);stroke-width:2.75;stroke-linecap:round;stroke-linejoin:round}
.c-below{fill:var(--debt-area)}
.c-zero{stroke:var(--chart-zero);stroke-width:1;stroke-dasharray:3 3}
.c-tx{font-family:var(--font-mono);font-size:11px;letter-spacing:.03em;fill:var(--ink-500)}
.c-first line{stroke:var(--ink-400);stroke-width:1}
.c-first text{font-family:var(--font-sans);font-size:13px;font-weight:600;fill:var(--ink-900)}
.c-ms .ring{fill:var(--app-bg);stroke:var(--accent);stroke-width:2;transition:fill 200ms ease}
.c-ms .tick{fill:none;stroke:var(--accent-contrast);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity 200ms ease}
.c-ms.done .ring{fill:var(--accent)}
.c-ms.done .tick{opacity:1}
.c-ms .pulse{fill:none;stroke:var(--accent);stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center}
.c-ms text{font-family:var(--font-sans);font-size:13px;font-weight:500;fill:var(--ink-700)}
.c-ms.done text{fill:var(--ink-900)}
/* the moving dot and its glow are HTML, not SVG: moving or breathing them is compositor work, so an idle frame costs no layout */
.dot,.dot-glow{position:absolute;left:0;top:0;border-radius:50%;background:var(--accent);opacity:0;pointer-events:none;will-change:transform,opacity}
.dot{width:11px;height:11px;margin:-5.5px 0 0 -5.5px;box-shadow:0 0 0 2.5px var(--app-bg)}
.dot-glow{width:32px;height:32px;margin:-16px 0 0 -16px}
.glass.dot-label{opacity:0;position:absolute;left:0;top:0;display:flex;flex-direction:column;gap:1px;padding:7px 11px 8px;border-radius:14px;white-space:nowrap;pointer-events:none;will-change:transform,opacity}
.dl-m{font-size:12px;color:var(--ink-500)}
.dl-v{font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--ink-900)}
.callouts{position:absolute;left:40vw;right:max(5vw,24px);top:58vh;top:58svh;bottom:5vh;bottom:5svh}
.co{position:absolute;left:0;top:0;transform-origin:0 0}
.co-in{will-change:opacity,transform;opacity:0}
.co-ex{position:absolute;left:40vw;bottom:1.5vh;bottom:1.5svh;margin:0;text-align:left;color:var(--ink-700)}

/* ---------- app kit: exact values from the October redesign ---------- */
/* the app paints these two in ink-500; here they sit on the orb wash (3.5:1 at its centre), so they take the deeper step */
.lbl{font-size:var(--fs-subhead);font-weight:500;color:var(--ink-600)}
.sub{font-size:var(--fs-subhead);color:var(--ink-600)}
.hero{display:flex;flex-direction:column;gap:4px}
.hero-fig{font-size:40px;line-height:46px;font-weight:700;letter-spacing:-.035em;color:var(--ink-900);font-variant-numeric:tabular-nums;white-space:nowrap}
.hero-fig--44{font-size:44px;line-height:50px}
.hero-fig .c{color:var(--ink-500);font-weight:600}
.df{display:flex;align-items:center;gap:6px;font-size:var(--fs-subhead);font-weight:500;color:var(--positive-text)}
.df svg{width:16px;height:16px;stroke-width:2.25}
.card{border-radius:22px;padding:16px}
.group{border-radius:18px;overflow:hidden}
.row{position:relative;display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 16px;color:var(--ink-900);text-align:left}
.group > .row + .row::before{content:"";position:absolute;top:0;right:0;left:62px;height:1px;background:var(--hairline)}
.group > .row--pot + .row--pot::before{left:16px}
.tile{position:relative;width:34px;height:34px;border-radius:9px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;transition:background-color 240ms ease,color 240ms ease}
.tile-pulse{position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 1.5px var(--positive);opacity:0;pointer-events:none}
.tile svg{width:18px;height:18px}
.tile .ok{display:none}
.row-main{flex:1;min-width:0}
.row-title{display:block;font-size:var(--fs-body);color:var(--ink-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-sub{display:block;font-size:var(--fs-footnote);color:var(--ink-500)}
.row-val{font-size:var(--fs-body);color:var(--ink-900);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0}
.w500{font-weight:500}
.chev{width:16px;height:16px;color:var(--ink-400);flex-shrink:0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;padding:0 4px 8px}
.sec-title{margin:0;font-size:var(--fs-title3);font-weight:600;letter-spacing:-.012em;color:var(--ink-900)}
.sec-sum{font-size:var(--fs-subhead);color:var(--ink-500);font-variant-numeric:tabular-nums}
.ov-head{display:flex;align-items:center;justify-content:space-between;min-height:32px}
.mini-pill{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:16px;background:var(--alloc-track);color:var(--ink-900);font-size:var(--fs-subhead);font-weight:500}
.ov-income .hero-fig{margin-top:4px}
.alloc{margin-top:16px;display:flex;gap:2px;height:12px;border-radius:6px;overflow:hidden;background:var(--alloc-track)}
.seg{display:block;min-width:0}
.seg i{display:block;height:100%;transform-origin:left center}
.al-grid{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.al-cell{display:flex;flex-direction:column;gap:2px}
.al-lbl{display:flex;align-items:center;gap:6px;font-size:var(--fs-footnote);color:var(--ink-500)}
.al-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.al-dot--hollow{border:1.5px solid var(--ink-400)}
.al-val{font-size:17px;font-weight:600;color:var(--ink-900);font-variant-numeric:tabular-nums}
.own-lbls,.own-vals{display:flex;justify-content:space-between}
.own-lbls{font-size:var(--fs-footnote);font-weight:500;color:var(--ink-500)}
.own-bar{display:flex;gap:2px;height:8px;margin-top:8px}
.own-bar span{border-radius:4px}
.own-vals{margin-top:8px;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.ring{position:relative;width:72px;height:72px;flex-shrink:0}
.ring svg{display:block;transform:rotate(-90deg)}
.ring b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:var(--fs-body);font-weight:700;font-variant-numeric:tabular-nums}
.g-top{display:flex;align-items:center;gap:16px}
.g-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.g-name{font-size:var(--fs-title3);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-amt{font-size:var(--fs-subhead);color:var(--ink-500);font-variant-numeric:tabular-nums}
.g-when{font-size:var(--fs-footnote);color:var(--ink-500)}
.g-stack{display:flex;flex-direction:column;gap:14px}
.hr{height:1px;background:var(--hairline)}
.g-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-grid .k{font-size:var(--fs-footnote);color:var(--ink-500);margin-bottom:2px}
.g-grid .v{font-size:var(--fs-callout);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.tl li{display:flex;align-items:center;gap:12px}
.tl .m{width:20px;height:20px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 0 0 2px var(--ink-400)}
.tl .l{flex:1;font-size:var(--fs-subhead);font-weight:500;color:var(--ink-500)}
.tl .d{font-size:var(--fs-subhead);color:var(--ink-500);font-variant-numeric:tabular-nums}
.row--debt{flex-direction:column;align-items:stretch;gap:8px;padding:12px 12px 12px 16px}
.rtop{display:flex;align-items:center;gap:12px;width:100%}
.dd{display:flex;flex-direction:column;gap:4px;padding:0 28px 0 46px}
.dd span{display:flex;justify-content:space-between;gap:8px;font-size:var(--fs-footnote)}
.dd .k{color:var(--ink-500)}
.dd .v{color:var(--ink-900);font-variant-numeric:tabular-nums}
.row--debt.paid .tile{background:var(--positive-wash)!important;color:var(--positive)!important}
.row--debt.paid .tile svg{display:none}
.row--debt.paid .tile .ok{display:block}
.row--pot{padding:12px 12px 12px 16px}
.pot-main{display:flex;flex-direction:column;gap:6px}
.pot-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.pot-name{display:flex;align-items:center;gap:8px;min-width:0}
.pot-dot{width:8px;height:8px;border-radius:4px;flex-shrink:0;align-self:center}
.pot-bar-row{display:flex;align-items:center;gap:10px}
.pot-bar{flex:1;height:4px;border-radius:2px;background:var(--alloc-track);overflow:hidden}
.pot-bar i{display:block;height:100%;border-radius:2px;background:var(--alloc-exp)}
.pot-pct{flex-shrink:0;font-size:var(--fs-footnote);color:var(--ink-500);font-variant-numeric:tabular-nums}
.acts{display:flex;justify-content:flex-end;gap:8px}
.ed-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border-radius:18px;font-size:var(--fs-subhead);font-weight:600}
.ed-pill svg{width:15px;height:15px}
.ed-pill--accent{background:var(--accent);color:var(--accent-contrast)}
.ed-pill--grey{background:var(--alloc-track);color:var(--ink-900)}
.left-to{font-size:var(--fs-subhead);color:var(--ink-500)}
.left-to b{color:var(--ink-900);font-weight:600;font-variant-numeric:tabular-nums}

/* ---------- founder ---------- */
.founder{padding-block:clamp(110px, 16vw, 220px);padding-left:max(var(--gutter-l), 6vw);padding-right:var(--gutter-r)}
.founder-in{max-width:1080px}
.quote{margin:0;font-size:clamp(1.65rem, 1rem + 2.3vw, 2.85rem);line-height:1.2;letter-spacing:-.032em;font-weight:560;max-width:30ch;text-wrap:pretty}
.quote .w{color:var(--ink-500);transition:color 380ms ease}
.quote .w.lit{color:var(--ink-900)}
.sig{display:flex;align-items:center;gap:12px;margin-top:36px}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--accent);color:var(--accent-contrast);display:flex;align-items:center;justify-content:center;font-weight:700}
.sig b{display:block;font-weight:600}
.sig span span{display:block;font-size:var(--fs-subhead);color:var(--ink-500)}

/* ---------- tour ---------- */
.tour{padding-block:clamp(80px, 11vw, 160px);padding-left:var(--gutter-l);padding-right:var(--gutter-r)}
.tour-grid{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:clamp(40px,7vw,110px);align-items:center}
.tabs-copy{list-style:none;margin:36px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;max-width:30rem}
/* the five tabs are in the HTML as list items (readable without JS); landing.js moves each one into a button and marks the list live */
.tabs-copy li,.tabs-copy button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px 16px;border-radius:16px}
.tabs-copy.live li{display:block;padding:0}
.tabs-copy button{width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color 200ms ease}
.tabs-copy b{font-size:var(--fs-body);font-weight:600;color:var(--ink-500);transition:color 200ms ease}
.tabs-copy span{font-size:var(--fs-subhead);color:var(--ink-550)}
.tabs-copy button[aria-current="true"]{background:var(--accent-wash)}
.tabs-copy button[aria-current="true"] b{color:var(--ink-900)}
@media (hover:hover) and (pointer:fine){.tabs-copy button:hover b{color:var(--ink-900)}}
.phone-box{justify-self:center;width:100%;max-width:390px}
.phone-fit{position:relative;width:100%;aspect-ratio:390/800}
.phone{position:absolute;left:50%;top:0;width:390px;height:800px;transform:translateX(-50%);transform-origin:50% 0;border-radius:52px;overflow:hidden;background:var(--app-bg);box-shadow:0 0 0 1px var(--phone-edge), 0 40px 90px -40px rgba(40,30,120,.45)}
.phone .orb{width:560px;height:560px;transform:translate(-240px,-200px)}
.screen{position:absolute;inset:0;padding-top:56px;overflow-y:auto;overscroll-behavior-y:auto;scrollbar-width:none;transition:opacity 260ms var(--ease-out),transform 260ms var(--ease-out),filter 260ms var(--ease-out),visibility 0s}
/* the panel is focusable (it has no focusable content); the phone clips at its edge, so its ring sits just inside and follows the corners */
.screen:focus-visible{outline-offset:-3px;border-radius:52px}
.screen[aria-hidden="true"]{opacity:0;visibility:hidden;transform:translateY(10px) scale(.985);filter:blur(4px);transition:opacity 160ms ease,transform 160ms ease,filter 160ms ease,visibility 0s 160ms}
.a-head{display:flex;align-items:flex-end;justify-content:space-between;padding:0 16px}
/* the greeting sits right on the orb's centre (3.1:1 in ink-500, the app's own value); strong body ink reads at 6.5:1 there */
.a-greet{font-size:var(--fs-subhead);color:var(--ink-700)}
.a-title{font-size:2.125rem;font-weight:700;letter-spacing:-.022em;line-height:1.2}
.a-icons{display:flex;align-items:center}
.a-ib{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-700)}
.a-ib svg{width:20px;height:20px}
.a-av{width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--accent-contrast);font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center}
.scr-body{margin-top:16px;padding:8px 16px 140px;display:flex;flex-direction:column;gap:16px}
.scr-body--ov{gap:28px;padding-top:2px}
.scroll-edge{position:absolute;left:0;right:0;bottom:0;height:120px;z-index:4;pointer-events:none;background:linear-gradient(to bottom,var(--app-bg-0),var(--app-bg-60))}
.glass.p-tabbar{position:absolute;z-index:5;left:16px;right:16px;bottom:16px;height:64px;border-radius:32px;display:grid;grid-template-columns:repeat(5,1fr);padding:0 6px}
.p-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin:6px 0;padding:0;border:0;border-radius:26px;background:transparent;color:var(--ink-500);font:inherit;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform 260ms cubic-bezier(.3,1.4,.5,1)}
.p-tab:active{transform:scale(.95);transition-duration:90ms;transition-timing-function:ease-out}
.p-tab[aria-selected="true"]{background:var(--accent-wash-2);color:var(--tab-on);font-weight:600}
.p-tab svg{width:22px;height:22px}
.p-tab span{font-size:var(--fs-caption2)}
/* the tour's small print sits on the phone's tinted shadow: the darker secondary ink keeps 4.5:1 */
.tour-live{margin:14px 0 0;text-align:center;font-size:var(--fs-subhead);color:var(--ink-600);min-height:1.5em}
.tour .example{color:var(--ink-600)}

/* ---------- close ---------- */
.close{position:relative;overflow:hidden;padding-block:clamp(120px, 17vw, 230px);padding-left:max(var(--gutter-l), 6vw);padding-right:var(--gutter-r)}
.close .orb{width:900px;height:900px;transform:translate(calc(60vw - 450px), -260px)}
.close-in{position:relative;max-width:1080px}
.h2--xl{font-size:clamp(2.6rem, 1.2rem + 5vw, 5.5rem);line-height:.98;letter-spacing:-.047em}
.foot{border-top:1px solid var(--hairline);padding-block:28px calc(28px + env(safe-area-inset-bottom,0px));padding-left:max(var(--gutter-l), 6vw);padding-right:var(--gutter-r)}
.foot-in{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;font-size:var(--fs-footnote);color:var(--ink-500)}
.foot-in p{margin:0}
.foot-in nav{display:flex;flex-wrap:wrap;gap:18px;margin-left:auto}
.foot-in a{color:var(--ink-700)}
.screen::-webkit-scrollbar{display:none}

/* ---------- the story map: where you are on the arc ---------- */
.glass.storymap{pointer-events:none;position:fixed;z-index:55;right:max(20px, env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));width:140px;height:40px;border-radius:20px;display:none}
.storymap svg{position:absolute;left:14px;top:8px;width:112px;height:24px;overflow:visible}
.sm-base{fill:none;stroke:var(--ink-400);stroke-width:1.5;stroke-dasharray:1 4;stroke-linecap:round;opacity:.8}
.sm-done{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round}
.sm-dot{fill:var(--accent);stroke:var(--app-bg);stroke-width:2}
@media (min-width:1100px){.glass.storymap{display:block}}

/* ---------- phones and small tablets ---------- */
/* landing.js tests this exact query, so there is no width (fractional, zoomed, scrollbar) where the two disagree */
@media (max-width:899.98px){
  .step{align-items:flex-start;padding-top:calc(78px + env(safe-area-inset-top,0px));padding-left:var(--gutter-l)}
  .step__inner,.scrolly--line .step__inner{width:100%;max-width:34rem}
  .step--hero{padding-top:calc(104px + env(safe-area-inset-top,0px))}
  .step--hold{padding-top:calc(78px + env(safe-area-inset-top,0px))}
  .step--hold .step__inner{top:calc(78px + env(safe-area-inset-top,0px))}
  .panel{border-radius:22px;padding:18px 18px 20px;background:var(--g2-fill);box-shadow:var(--g2-shadow);-webkit-backdrop-filter:var(--g2-blur);backdrop-filter:var(--g2-blur)}
  .panel .h2{font-size:clamp(1.75rem, 1.1rem + 3.2vw, 2.4rem)}
  .panel .lead{margin-top:10px;font-size:1rem;line-height:1.45}
  .panel .src{margin-top:10px}
  .chart-box{left:16px;right:16px;top:41vh;top:41svh;height:18vh;height:18svh}
  .callouts{left:16px;right:16px;top:62vh;top:62svh;bottom:3vh;bottom:3svh}
  .co-ex{display:none}
  .tour-grid{grid-template-columns:minmax(0,1fr)}
  .tabs-copy.live{display:none}
  .glass.nav{padding-left:16px}
  .nav-link{padding:0 10px}
}
/* a phone on its side (landing.js SIDE): the line chapter's panel keeps the left column, the chart and the cards the right one */
@media (max-width:899.98px) and (min-aspect-ratio:13/10){
  .scrolly--line .step__inner{width:min(24rem, 44vw)}
  .chart-box,.callouts,.scrolly--line .stage-ex{left:50vw}
  .co{width:min(358px, 100%)}
  .scrolly--line .panel{padding:14px 16px 16px}
  .scrolly--line .panel .h2{font-size:clamp(1.25rem, 3.4vw, 1.75rem)}
  .scrolly--line .panel .lead{font-size:.9375rem;line-height:1.4}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn:active,.p-tab:active{transform:none}
  .frag,.co-in,.ov,.veil{transition:opacity 400ms ease}
  /* the order still holds with no motion: the fade covers before the card's rows reach the caption band and leaves after
     them, and the caption arrives last and leaves first (the "on" class marks the direction) */
  .stage-fade{transition:opacity 150ms ease 250ms}
  .stage-fade.on{transition-delay:0ms}
  .stage-ex{transition:opacity 200ms ease}
  .stage-ex.on{transition-delay:350ms}
  .screen,.screen[aria-hidden="true"]{transform:none;filter:none}
}

/* ---------- icons: Lucide 1.17.0 (the app's version) as an inline sprite ---------- */
.sprite{position:absolute;width:0;height:0;overflow:hidden}
/* :where() keeps this base at zero specificity, so every component size (.tile svg, .chev, .p-tab svg) wins */
:where(svg.ic){width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
[hidden]{display:none!important}
.foot-about{flex-basis:100%;max-width:60ch}

@media (max-width:899.98px) and (prefers-reduced-transparency: reduce){.panel{background:var(--g2-solid);-webkit-backdrop-filter:none;backdrop-filter:none}}
