/* Root. Its own product, built on its leaf. The leaf (#1ED2DC) is the logo, the
   buttons and every accent, one color. A soft leaf haze runs behind the whole page
   with no breaks, and everything that holds content is a white card with a shadow,
   the money-flow chart included. Blue, green and red appear only where they carry
   meaning: money in, kept, out. */
:root {
  --page: #FFFFFF;
  --tint: #F5FCFC;
  --fill: #EEFAFA;
  --line: #D9E7E9;
  --line-2: #E8F1F2;
  --ink: #0B2A30;
  --text: #15262A;
  --muted: #5B6F74;
  --leaf: #1ED2DC;
  --leaf-h: #3ADAE3;
  --leaf-t: #DBF8F9;
  --leaf-w: #BCF2F4;
  --leaf-glow: 0 1px 2px rgba(11, 42, 48, .10), 0 8px 20px -12px rgba(11, 42, 48, .35);
  --blue: #3B82F6;
  --green: #10B981;
  --green-t: #E7F8F1;
  --red: #C81E2D;
  --red-t: #FBEAEC;
  --display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 42, 48, .05), 0 4px 10px -4px rgba(11, 42, 48, .08), 0 18px 36px -18px rgba(11, 42, 48, .22);
  --card-shadow: var(--shadow);
  --shadow-lift: 0 2px 4px rgba(11, 42, 48, .04), 0 24px 48px -20px rgba(11, 42, 48, .24);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; }
img, svg { display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.nav a, .brand, .btn, .foot a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; }
h3 { font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 58ch; margin: 18px 0 0; }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: 600 16px/1 var(--ui); padding: 15px 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--leaf); color: var(--ink); box-shadow: var(--leaf-glow); }
.btn.primary:hover { background: var(--leaf-h); }
.btn.quiet { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(11, 42, 48, .06), 0 8px 20px -12px rgba(11, 42, 48, .25); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1px var(--leaf), 0 1px 2px rgba(11, 42, 48, .06), 0 8px 20px -12px rgba(11, 42, 48, .3); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.wide { width: 100%; margin-top: 8px; }
.btn[aria-disabled='true'] { background: var(--green); pointer-events: none; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(217, 231, 233, .8); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 20px/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 16px; }
.by { font-size: 13px; color: var(--muted); }
.by a { color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 20px; }
.nav-links a { color: var(--text); font-size: 14px; font-weight: 500; opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
/* Sign in stays in the bar at every width, so a returning owner can always get in. */
.nav-signin { color: var(--text); font-size: 14px; font-weight: 600; margin-right: 8px; white-space: nowrap; }
.nav-signin:hover { text-decoration: none; color: var(--ink); }
.nav-menu { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.nav-menu:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.progress { height: 2px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--leaf); transition: width .5s var(--ease); }
body:not([data-mode='land']) .nav-links, body:not([data-mode='land']) .nav-menu, body:not([data-mode='land']) .nav-in > .btn:not(#signout) { display: none !important; }
body:not([data-mode='land']) .nav-signin { margin-left: auto; }
#signout { margin-left: auto; }
body:not([data-mode='land']) .progress { background: var(--line-2); }

/* Hero */
.hero { position: relative; }
.aurora { display: none; }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 88px 24px 96px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); padding: 6px 12px 6px 10px; border-radius: 999px; }
.assure { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; font-weight: 500; }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure svg { width: 15px; height: 15px; color: var(--green); }

.hero-shot { position: relative; margin: 0; }
.shot-floats { display: flex; justify-content: space-between; gap: 16px; margin: -26px 24px 0; position: relative; }
.shot-main { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); padding: 22px 24px 10px; }
.shot-head { display: flex; align-items: center; gap: 10px; font: 600 14px var(--ui); color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.shot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.shot-tag { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--fill); padding: 3px 9px; border-radius: 999px; }
.shot-row { display: grid; grid-template-columns: 1fr auto auto 54px; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.shot-row:last-child { border-bottom: 0; }
.shot-row span { color: var(--text); font-size: 15px; }
.shot-row s { color: var(--muted); font-size: 14px; text-decoration-color: rgba(100, 116, 139, .5); }
.shot-row b { font: 700 20px var(--display); color: var(--ink); letter-spacing: -0.02em; }
.shot-row em { font-style: normal; font-size: 13px; font-weight: 600; text-align: right; }
/* The hero's margin check: books next to all costs in, so the books figure isn't struck through. */
.shot-rows.lines .shot-row { grid-template-columns: 1fr 64px 92px 60px; padding: 12px 0; }
.shot-rows.lines .shot-row s { text-decoration: none; text-align: right; }
.shot-rows.lines .shot-row b { text-align: right; }
.shot-rows.lines .shot-cols { padding: 12px 0 10px; }
.shot-rows.lines .shot-cols s, .shot-rows.lines .shot-cols b { font-family: inherit; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.shot-rows.lines { padding-bottom: 30px; }
.down { color: var(--red); }
.up { color: var(--green); }
.shot-float { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: 14px 16px; display: grid; gap: 3px; min-width: 190px; }
.shot-float b { font: 700 24px var(--display); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.shot-float .muted { font-size: 12px; }
.shot-float.cash { margin-right: -36px; }
.neg { color: var(--red) !important; }
.mini-track { position: relative; height: 6px; border-radius: 6px; background: var(--fill); margin: 6px 0 4px; }
.mini-q { position: absolute; left: 15%; right: 42%; top: 0; bottom: 0; background: var(--leaf-w); border-radius: 6px; }
.mini-you { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transform: translateX(-50%); }
.label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

/* Connects with */
.works { max-width: 760px; margin: 0 auto; padding: 14px 24px; text-align: center; }
.works p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-wrap: balance; }

/* Blocks */
.block { max-width: 1200px; margin: 0 auto; padding: 112px 24px; }
.block-head { max-width: 760px; margin-bottom: 48px; }


/* Truths: the summary, same markup on the landing page and in results */
.truths { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.truth { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); min-width: 0; }
.truth h3 { font-size: 17px; margin-bottom: 18px; }
.truth[data-key='gap'] { grid-column: span 4; order: 0; }
.truth[data-key='cash'] { grid-column: span 2; order: 1; }
.truth[data-key='profit'], .truth[data-key='team'], .truth[data-key='lines'] { grid-column: span 2; order: 2; }
.truth .why { color: var(--muted); font-size: 14px; line-height: 1.55; margin: auto 0 0; padding-top: 18px; }
.truth .why.solo { margin-top: 0; padding-top: 0; color: var(--text); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pair > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.truth[data-key='cash'] .pair { grid-template-columns: 1fr; gap: 14px; }

.fig summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fig summary::-webkit-details-marker { display: none; }
.fig summary:hover .num { text-decoration: underline 2px var(--leaf); text-underline-offset: 4px; }
.fig p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; padding: 10px 12px; background: var(--tint); border-radius: var(--r-sm); max-width: 46ch; }
.num { font: 700 26px/1.1 var(--display); color: var(--ink); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; transition: color .15s; }
.num small { font: 500 13px var(--ui); color: var(--muted); letter-spacing: 0; }
.fig-unknown { color: var(--muted); font-size: 14px; }
.tier { font: 600 11px/1 var(--ui); padding: 5px 8px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.tier.measured { background: var(--green-t); color: #047857; }
.tier.derived { background: var(--leaf-t); color: var(--ink); }
.tier.likely { background: #FEF6C9; color: #6B5300; }
.tier.unknown { background: var(--red-t); color: var(--red); }

table.gap { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.gap th, table.gap td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-weight: 400; }
table.gap tr:last-child th, table.gap tr:last-child td { border-bottom: 0; }
table.gap thead th { font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 0; }
table.gap tbody th { color: var(--text); font-size: 15px; width: 36%; }
table.gap td.said { color: var(--muted); font-size: 17px; }
table.gap td .fig { display: inline-block; }
table.gap .num { font-size: 30px; }
.delta { display: inline-block; font: 600 13px var(--ui); margin-left: 4px; padding: 4px 8px; border-radius: 999px; vertical-align: middle; }
.delta.down { color: var(--red); background: var(--red-t); }
.delta.up { color: #047857; background: var(--green-t); }

.line-box { display: grid; gap: 6px; justify-items: start; }
.line-box strong { font: 600 15px var(--ui); color: var(--text); }

.bench { margin-top: 22px; }
.bench-track { position: relative; height: 8px; border-radius: 8px; background: var(--fill); }
.bench-track .q { position: absolute; top: 0; bottom: 0; background: var(--leaf-w); border-radius: 8px; }
.bench-track .you { position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(11, 42, 48, .25); transform: translateX(-50%); }
.bench-marks { position: relative; height: 20px; margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bench-marks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.source { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* Money-flow band: the one dark moment */

.flow-in { max-width: 1200px; margin: 0 auto; padding: 112px 24px 96px; }
.sankey-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; padding: 0 8px; }
.flow-band .sankey-wrap { margin: 0 calc((min(100vw - 64px, 1400px) - 1152px) / -2); padding: 28px 24px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--card-shadow); }
.sankey { width: 100%; height: auto; font-family: var(--display); }
.sk-link, .sk-node, .sk-label { transition: opacity .25s var(--ease); }
.sk-node, .sk-label { cursor: default; }
.sankey .sk-node { filter: drop-shadow(0 2px 2px rgba(11, 42, 48, .28)) drop-shadow(0 6px 8px rgba(11, 42, 48, .14)); }
.sankey .sk-link { filter: drop-shadow(0 3px 4px rgba(11, 42, 48, .10)); }
.sankey .sk-label rect { filter: drop-shadow(0 1px 2px rgba(11, 42, 48, .18)); }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: #A5BDC1; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend.light { margin: 0; color: var(--muted); }
.k-in { background: #3B82F6; } .k-rev { background: #E2E8F0; } .k-cost { background: #C81E2D; } .k-gray { background: #94A3B8; } .k-profit { background: #10B981; }
.legend.light .k-rev { background: #0B1D3A; }
.flow-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Steps: a real sequence, so it's numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li::before { content: ''; position: absolute; left: 44px; right: 12px; top: 18px; height: 1px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--leaf); color: var(--ink); box-shadow: var(--leaf-glow); font: 600 15px var(--display); margin-bottom: 22px; position: relative; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Full report */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.report .block-head { margin-bottom: 0; }
.locked-list { list-style: none; margin: 0; padding: 6px 0; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.locked-list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.locked-list li:last-child { border-bottom: 0; }
.lk { color: var(--leaf); }
.lk-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Security */
.security { text-align: left; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; border-top: 3px solid var(--leaf); }
.sec-grid h3 { margin-bottom: 10px; }
.sec-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.sec-more { margin: 40px 0 0; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.faq .block-head { margin-bottom: 0; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 26px; }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 600 18px/1.4 var(--display); color: var(--ink); position: relative; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { margin: -6px 0 22px; color: var(--muted); max-width: 64ch; }

/* Closer */
.closer { text-align: center; padding: 120px 24px 128px; }
.closer img { margin: 0 auto 24px; }
.closer .lede { margin-left: auto; margin-right: auto; }

/* Footer */
.foot { background: transparent; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 26px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.foot nav a { color: var(--muted); }
.copy { width: 100%; font-size: 13px; }

/* The flow: one calm panel per step */
.flow { background: transparent; min-height: calc(100vh - 66px); padding: 56px 20px 96px; }
.panel { max-width: 560px; margin: 0 auto; background: var(--page); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 40px 40px 36px; }
.panel.wide { max-width: 760px; }
.panel h2 { font-size: clamp(28px, 3.4vw, 36px); }
.panel .lede { font-size: 17px; margin-top: 10px; }
.step { margin: 0 0 14px; font: 600 13px var(--ui); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.step::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: var(--leaf-glow); }
.results-head .step::before { display: none; }
.stack { display: grid; gap: 18px; margin-top: 30px; }
label { display: grid; gap: 8px; font-weight: 500; font-size: 14px; color: var(--ink); }
input, select { font: 400 17px var(--ui); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23526B70' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px; }
input:hover, select:hover { border-color: #B9D2D6; }
input:focus, select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(30, 210, 220, .25); }
.money-in { position: relative; display: block; }
.money-in::before { content: '$'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; pointer-events: none; }
.money-in input { padding-left: 32px; font-variant-numeric: tabular-nums; }
label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--text); }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--leaf); }
.status { margin: 14px 0 0; font-size: 14px; color: var(--muted); min-height: 1em; }
.status.error, .error { color: var(--red); }

.bank-card { display: flex; gap: 16px; align-items: center; margin: 28px 0 20px; padding: 18px; border-radius: var(--r-md); background: var(--tint); }
.bank-card p { margin: 4px 0 0; font-size: 14px; }
.bank-card strong { color: var(--ink); }
.bank-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.bank-icon svg { width: 22px; height: 22px; }

.conn { padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.conn:first-of-type { margin-top: 12px; }
.conn-head p { margin: 4px 0 0; font-size: 14px; }
.conn h3 { font-size: 16px; }
.accounts { margin-top: 18px; }
.accounts h3 { font-size: 16px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.acct-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.acct-row select { width: auto; max-width: 60%; flex: 0 1 auto; min-width: 0; padding: 10px 36px 10px 12px; font-size: 14px; background-position: right 14px center; }
@media (max-width: 520px) { .acct-row { flex-wrap: wrap; } .acct-row select { max-width: 100%; width: 100%; } }
#bank-done:disabled { opacity: .5; cursor: default; }
.pick { display: flex; gap: 10px; margin-top: 14px; }
.pick select { flex: 1; min-width: 0; }
.pick .btn:disabled { opacity: .45; cursor: default; }
.conn .note { margin-top: 12px; }
.conn .connected { margin-top: 14px; }
.conn .connected:empty { display: none; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tile { appearance: none; cursor: pointer; font: 600 15px var(--ui); color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(30, 210, 220, .18); }
.tile.done { border-color: var(--green); background: var(--green-t); color: #047857; }
.inset { margin-top: 16px; padding: 18px; background: var(--tint); border-radius: var(--r-md); }
.connected { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.connected li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--green-t); color: #065F46; }
.connected li strong { color: #047857; }

.payees { display: grid; gap: 0; margin: 26px 0 8px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.payee { display: grid; grid-template-columns: 1fr minmax(170px, 240px); gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.payee:last-child { border-bottom: 0; }
.payee strong { display: block; font-weight: 600; color: var(--ink); }
.payee .note { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.payee .note.q { display: block; margin-top: 4px; color: var(--ink); }
.payee.ask { background: color-mix(in srgb, var(--leaf) 7%, transparent); }
.payee select { padding: 10px 36px 10px 12px; font-size: 14px; background-position: right 14px center; }
.payee .card-bal { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.payee .card-bal[hidden] { display: none; }
.payee .card-bal .note { grid-column: 1 / -1; }
.payee .card-bal label { font-size: 13px; gap: 6px; }
.payee .card-bal input { padding: 9px 12px; font-size: 14px; }
.costs { margin-top: 28px; }
.costs h3 { font-size: 16px; }

.working { text-align: center; padding: 72px 40px; }
.working .lede { margin: 20px auto 0; }
.pulse { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 210, 220, .14); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(30, 210, 220, .35); } 50% { box-shadow: 0 0 0 18px rgba(30, 210, 220, 0); } }

/* Results */
.results { background: transparent; padding: 48px 0 96px; }
.results-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.pdf-slot { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pdf-wait { margin: 8px 0 0; font-size: 13px; color: var(--muted); max-width: 30ch; }
.pdf-slot .pdf-wait { margin: 0; text-align: right; }
.pdf-wait b, .stage-card b { font-variant-numeric: tabular-nums; color: var(--ink); }
.stage-card { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.stage-pulse { flex: none; width: 60px; height: 60px; margin: 0; }
.stage-body { flex: 1; min-width: 0; }
.stage-body h3 { margin: 0 0 4px; }
.stage-body .bgjob-bar { margin-top: 12px; }
.stage-body .small { margin: 8px 0 0; }
.stage-card.done .stage-pulse { animation: none; }
.results-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.card { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; }
.flow-card { margin-top: 16px; }
.flow-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.flow-card-head p { margin: 4px 0 0; font-size: 14px; }
.wants { border: 0; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 18px; min-width: 0; }
.wants legend { font: 600 17px var(--display); color: var(--ink); padding: 0 0 4px; }
.results-locked { margin-top: 72px; margin-bottom: 40px; max-width: 640px; }
.report-pages { list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); counter-reset: pg; }
.report-pages li { display: grid; gap: 2px; padding: 13px 22px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.report-pages li:last-child { border-bottom: 0; }
.report-pages span { color: var(--muted, #5B6F74); font-size: 14px; }
.h-sm { font-size: clamp(26px, 3vw, 34px); }
.fine { color: var(--muted); font-size: 13px; margin: 56px 0 0; }

dialog { border: 0; border-radius: 24px; padding: 32px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(11, 42, 48, .45); color: var(--text); }
dialog::backdrop { background: rgba(11, 42, 48, .35); backdrop-filter: blur(4px); }
dialog .stack { margin-top: 0; }
dialog h3 { font-size: 22px; }
dialog p { margin: 0; }

/* Entrance: one moment, on the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4), .hero-copy > :nth-child(5) { animation-delay: .18s; }
  .shot-main { animation: rise 1s .15s var(--ease) both; }
  .shot-float { animation: rise 1s .45s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pulse { animation: none; } }

/* Tablet */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 64px; gap: 40px; }
  .hero-shot { max-width: 560px; }
  .truths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .truth[data-key='gap'] { grid-column: span 2; }
  .truth[data-key='cash'], .truth[data-key='profit'], .truth[data-key='team'], .truth[data-key='lines'] { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .steps li:nth-child(2)::before { display: none; }
  .report-grid, .faq { grid-template-columns: 1fr; gap: 36px; }
  /* The page links fold into a menu. Sign in and Try free stay in the bar. */
  .nav-in { position: relative; }
  .nav-signin { margin-left: auto; }
  .nav-menu { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(11, 42, 48, .35); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; opacity: 1; border-bottom: 1px solid var(--line-2); }
  .nav-links a:last-child { border-bottom: 0; }
}
/* Phone */
@media (max-width: 640px) {
  .nav-in { padding: 10px 16px; gap: 8px; }
  .nav-links { padding: 4px 16px 12px; }
  .nav-signin { margin-right: 2px; }
  .by { display: none; }
  .hero-in { padding: 44px 16px 56px; }
  .shot-main { padding: 16px 16px 6px; }
  .shot-row { grid-template-columns: 1fr auto 46px; gap: 10px; }
  .shot-row s { display: none; }
  .shot-rows.lines .shot-row { grid-template-columns: 1fr 50px 70px 50px; gap: 8px; }
  .shot-rows.lines .shot-row s { display: inline; font-size: 13px; }
  .shot-rows.lines .shot-row span { font-size: 14px; }
  .shot-rows.lines .shot-cols s, .shot-rows.lines .shot-cols b { font-size: 10px; }
  .shot-row b { font-size: 18px; }
  .shot-floats { margin: -18px 8px 0; gap: 10px; }
  .shot-float { min-width: 0; flex: 1; padding: 12px 14px; }
  .shot-float b { font-size: 20px; }
  .shot-float.cash { margin-right: 0; }
  .works { padding: 12px 12px; }
  .works p { font-size: 11.5px; }
  .block { padding: 72px 16px; }
  .block-head { margin-bottom: 32px; }
  .truths { grid-template-columns: 1fr; }
  .truth[data-key] { grid-column: auto; }
  .truth { padding: 22px 18px 18px; }
  table.gap thead { display: none; }
  table.gap tbody tr { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  table.gap tbody tr:last-child { border-bottom: 0; }
  table.gap th, table.gap td { padding: 0; border: 0; }
  table.gap tbody th { grid-column: 1 / -1; width: auto; font-size: 14px; color: var(--muted); }
  table.gap td.said { font-size: 14px; order: 2; grid-column: 1 / -1; }
  table.gap td.said::before { content: 'You said '; }
  table.gap td.said.skip::before { content: 'You '; }
  table.gap td.said.skip .muted { text-transform: lowercase; }
  table.gap .num { font-size: 26px; }
  .pair { grid-template-columns: 1fr; gap: 14px; }
  .flow-in { padding: 72px 16px 64px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li::before { display: none; }
  .sec-grid { grid-template-columns: 1fr; gap: 28px; }
  .closer { padding: 80px 16px 88px; }
  .flow { padding: 20px 12px 64px; }
  .panel { padding: 28px 20px 24px; border-radius: 20px; }
  .payee { grid-template-columns: 1fr; gap: 8px; }
  .results { padding-top: 28px; }
  .results-in { padding: 0 12px; }
  .results-head { flex-direction: column; align-items: flex-start; }
  .pdf-slot { align-items: flex-start; }
  .pdf-slot .pdf-wait { text-align: left; }
  .stage-card { align-items: flex-start; gap: 14px; }
  .stage-pulse { width: 48px; height: 48px; }
  .card { padding: 20px 16px; }
  .foot-in { padding: 22px 16px; }
  .foot nav { margin-left: 0; width: 100%; }
}


/* Why the numbers are off: three roles, each a column of habits people recognize */
.wrong { max-width: none; }
.wrong > * { max-width: 1152px; margin-left: auto; margin-right: auto; }
.wrong-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wrong-col { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 10px; box-shadow: var(--shadow); }
.wrong-col h3 { font-size: 15px; color: var(--ink); margin-bottom: 6px; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.wrong-col h3::before { content: ''; width: 18px; height: 18px; flex: none; background: url(/icon.svg) center / contain no-repeat; }
.wrong-col ul { list-style: none; margin: 0; padding: 0; }
.wrong-col li { padding: 18px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 6px; }
.wrong-col li:last-child { border-bottom: 0; }
.wrong-col strong { font: 600 17px/1.35 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.wrong-col span { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Why not ChatGPT or an accountant */
.alt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.alt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; }
.alt h3 { margin-bottom: 10px; }
.alt p { margin: 0; color: var(--muted); font-size: 15px; }
.does { margin-top: 24px; background: #fff; border: 1px solid var(--leaf-w); box-shadow: var(--shadow); color: var(--text); border-radius: var(--r-lg); padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px; align-items: start; position: relative; overflow: hidden; }
.does::after { content: ''; position: absolute; right: -110px; bottom: -130px; width: 280px; height: 280px; background: url(/icon.svg) center / contain no-repeat; opacity: .16; pointer-events: none; }
.does h3 { font-size: 24px; }
.does ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; position: relative; z-index: 1; }
.does li { font-size: 15px; line-height: 1.55; padding-left: 20px; position: relative; }
.does li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: var(--leaf-glow); }
.does strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

.swipe { display: none; }
@media (max-width: 1000px) {
  .flow-band .sankey-wrap { margin: 0 -8px; padding: 16px 10px 12px; }
  .wrong-grid, .alt-grid { grid-template-columns: 1fr; }
  .alt-grid { gap: 16px; }
  .does { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .flow-card .sankey { max-width: none; }
  .swipe { display: inline; }
}
@media (max-width: 640px) {
  .wrong-col { padding: 22px 18px 6px; }
  .does { padding: 28px 22px; }
  .does ul { grid-template-columns: 1fr; }
}


/* The haze: the hero's blur, run down the whole page on the body itself, so it never
   breaks between sections. Cards sit on it in white with a shadow. */
body { background-color: #F7FCFC; background-image:
  radial-gradient(900px 700px at 80% 0, rgba(30, 210, 220, .24), transparent 70%),
  radial-gradient(700px 600px at 35% 6%, rgba(30, 210, 220, .08), transparent 70%),
  radial-gradient(900px 900px at 0 14%, rgba(30, 210, 220, .16), transparent 70%),
  radial-gradient(900px 900px at 100% 24%, rgba(30, 210, 220, .18), transparent 70%),
  radial-gradient(900px 900px at 5% 36%, rgba(30, 210, 220, .16), transparent 70%),
  radial-gradient(900px 900px at 95% 47%, rgba(30, 210, 220, .18), transparent 70%),
  radial-gradient(900px 900px at 0 58%, rgba(30, 210, 220, .16), transparent 70%),
  radial-gradient(900px 900px at 100% 69%, rgba(30, 210, 220, .18), transparent 70%),
  radial-gradient(900px 900px at 5% 80%, rgba(30, 210, 220, .16), transparent 70%),
  radial-gradient(900px 900px at 95% 91%, rgba(30, 210, 220, .18), transparent 70%),
  radial-gradient(1100px 700px at 50% 100%, rgba(30, 210, 220, .21), transparent 70%); }
.landing { position: relative; overflow-x: clip; }
.landing > * { position: relative; }
.brand img, .closer img, .wrong-col h3::before, .kicker img { filter: drop-shadow(0 1px 1.5px rgba(11, 42, 48, .22)); }
.truth, .wrong-col, .locked-list, .shot-main, .shot-float, .card, .panel { background: #fff; }


/* Sankey popups, as in the Summit dashboard */
#sp { position: fixed; z-index: 30; max-width: 300px; min-width: 220px; padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--text); border: 1px solid rgba(127, 127, 127, .28); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); font: 13px/1.4 var(--display); pointer-events: none; opacity: 0; transition: opacity .12s; }
#sp.dark { background: #0F3F46; color: #fff; border-color: rgba(255, 255, 255, .16); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
#sp.on { opacity: 1; }
#sp.pin { pointer-events: auto; }
#sp .sp-h { font-weight: 700; font-size: 14px; }
#sp .sp-period { color: var(--muted); font-size: 12px; margin-top: 1px; }
#sp .sp-about { margin: 8px 0; }
#sp .sp-row { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; border-top: 1px solid rgba(127, 127, 127, .16); }
#sp .sp-row span { color: var(--muted); }
#sp .sp-row b { font-weight: 600; white-space: nowrap; }
#sp .sp-sub { margin-top: 9px; font-weight: 600; font-size: 12px; }
#sp .sp-note { margin-top: 7px; color: var(--muted); font-size: 11.5px; }
#sp.dark .sp-period, #sp.dark .sp-row span, #sp.dark .sp-note { color: #9DBDC2; }
.sankey [data-sp] { cursor: pointer; }
.sankey path[data-sp]:hover { filter: brightness(.92) saturate(1.2); }
.sankey.dark path[data-sp]:hover { filter: brightness(1.25) saturate(1.2); }


/* The method: six principles, each a card */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; position: relative; }
.principle::before { content: ''; display: block; width: 22px; height: 22px; margin-bottom: 14px; background: url(/icon.svg) center / contain no-repeat; filter: drop-shadow(0 1px 1.5px rgba(11, 42, 48, .22)); }
.principle h3 { margin-bottom: 8px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

/* Three checks: a real sequence of separate tests, numbered */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: c; }
.check-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; counter-increment: c; display: flex; flex-direction: column; }
.check-list li::before { content: counter(c); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--leaf); color: var(--ink); box-shadow: var(--leaf-glow); font: 600 14px var(--display); margin-bottom: 16px; }
.check-list h3 { margin-bottom: 8px; }
.check-list p { margin: 0; color: var(--muted); font-size: 15px; }
.check-list .tell { margin-top: auto; padding-top: 16px; color: var(--text); font-weight: 500; }
@media (max-width: 1000px) { .principles, .check-list { grid-template-columns: 1fr; gap: 16px; } }


/* Prose on a card: the method, the habits list and the comparison read as writing, not a grid */
.prose-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 36px 40px; }
.prose-card p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: var(--text); max-width: 68ch; }
.prose-card p.big { font: 500 21px/1.5 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.prose-card.two-col { max-width: none; column-count: 2; column-gap: 48px; }
.prose-card.two-col p { break-inside: avoid; }
.tiers-row { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.tiers-row li { display: flex; align-items: center; gap: 10px; }
.tiers-row .tier { flex: none; min-width: 74px; text-align: center; }
.tier.reported { background: #EEF2F6; color: var(--ink); }
.hits { list-style: none; margin: 0; padding: 0; }
.hits li { padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line-2); position: relative; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hits li:first-child { padding-top: 0; }
.hits li:first-child::before { top: 6px; }
.hits li::before { content: ''; position: absolute; left: 0; top: 22px; width: 16px; height: 16px; background: url(/icon.svg) center / contain no-repeat; }
.hits strong { color: var(--ink); font-weight: 600; }
.prose-card .after { margin: 20px 0 0; font-weight: 600; color: var(--ink); }
@media (max-width: 1000px) { .prose-card.two-col { column-count: 1; } }
@media (max-width: 640px) { .prose-card { padding: 24px 20px; } .prose-card p.big { font-size: 19px; } .tiers-row { grid-template-columns: 1fr; } }


/* Movement: one quiet fade as each block arrives. Nothing loops, nothing bounces,
   nothing draws itself. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(2px); transition: opacity .2s ease-out, transform .2s ease-out; }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* The step screens and the account page: one gradient the length of the page, no solid
   fill and no seams. It scrolls with the page, so a full-page capture is as smooth as the
   screen. A fixed background stopped at the bottom of the first screen and left a hard line. */
html { min-height: 100%; }
body:not([data-mode='land']) { background-color: #F4FBFC; background-attachment: scroll; background-image:
  radial-gradient(1200px 800px at 85% 0, rgba(30, 210, 220, .18), transparent 70%),
  radial-gradient(1000px 900px at 0 45%, rgba(30, 210, 220, .09), transparent 70%),
  radial-gradient(1200px 900px at 100% 100%, rgba(30, 210, 220, .12), transparent 70%),
  linear-gradient(180deg, #F2FAFB 0%, #F8FCFD 45%, #EDF8F9 100%); }

/* Phone start bar */
.mcta { display: none; }
.swipe-chip { display: none; }
@media (max-width: 700px) {
  .mcta { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 2px rgba(11, 42, 48, .08), 0 14px 32px -14px rgba(11, 42, 48, .4); border: 1px solid var(--line); transform: translateY(140%); transition: transform .4s var(--ease); }
  .mcta .btn { flex: 1; padding: 13px 12px; font-size: 15px; }
  .mcta.on { transform: none; }
  .mbar .nav-in > .btn { opacity: 0; pointer-events: none; }
  .nav-in > .btn { transition: opacity .3s var(--ease); }
  body:not([data-mode='land']) .mcta { display: none; }
  body[data-mode='land'] .foot { padding-bottom: 88px; }
  .swipe-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 13px var(--ui); color: var(--ink); }
  .swipe-chip svg { color: var(--leaf); }
  .sankey-wrap { scroll-behavior: auto; scrollbar-width: none; }
  .sankey-wrap::-webkit-scrollbar { display: none; }
}

/* Phone first: tighter rhythm, bigger targets */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .block { padding: 56px 16px; }
  .block-head { margin-bottom: 24px; }
  .flow-in { padding: 56px 16px 48px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .lede { font-size: 17px; margin-top: 14px; }
  .hero-in { padding: 36px 16px 48px; gap: 32px; }
  .cta-row { margin-top: 24px; }
  .hero .cta-row .btn { flex: 1 1 100%; padding: 16px 20px; }
  .nav-in > .btn.small { padding: 11px 18px; min-height: 42px; }
  .foot nav a { padding: 10px 0; }
  .faq-list { padding: 2px 18px; }
  .faq-list summary { padding: 18px 32px 18px 0; font-size: 17px; }
  .check-list li, .alt, .sec-grid > div { padding: 22px 20px; }
  .panel h2 { font-size: 26px; }
  input, select { font-size: 16px; }
}

/* Print: the PDF is the results page and nothing else */
@media print {
  .mcta, .swipe-chip { display: none !important; }
  .nav, .foot, .cta-row, #open-pdf, .results-locked, dialog, .landing { display: none !important; }
  .results { background: #fff; padding: 0; }
  .truth, .card { box-shadow: none; break-inside: avoid; }
  .fig p { display: block; }
  /* Everything prints, whether or not it has faded in on screen yet. */
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html, body { background: #fff !important; }
}
.flow-card .sankey { max-width: 1100px; margin: 0 auto; }
.costs p, .costs h3 { margin: 0; }
.wrong .prose-card { max-width: 1152px; }

/* A step that failed says so in the step, in plain words, with what to do next. */
.flow-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--red-t); color: #8A1420; font-size: 15px; line-height: 1.45; }
.flow-error[hidden] { display: none; }

/* hidden always wins, so a layout class like .stack never shows a closed form. */
[hidden] { display: none !important; }

.from-jobber { display: inline-block; margin: 0 0 16px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--leaf); border-radius: var(--r-md); font-size: 15px; color: var(--ink, #15262A); }

/* Background pull */
.bgjob { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: min(340px, calc(100vw - 32px)); padding: 14px 16px 12px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.bgjob-title { margin: 0 0 10px; font: 600 14px/1.3 var(--display); color: var(--ink); }
.bgjob-bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bgjob-bar span { display: block; height: 100%; width: 4%; border-radius: inherit; background: var(--leaf); transition: width .8s var(--ease); }
.bgjob-text { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
body[data-mode='land'] .bgjob, body[data-mode='results'] .bgjob { display: none; }
@media (max-width: 560px) { .bgjob { right: 16px; bottom: 16px; } }

.more { text-align: center; margin: 8px 0 0; }
#bank-more .more { margin: -4px 0 4px; }
.acct-known { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.acct-known .small { max-width: 280px; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font: 500 14px var(--ui); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.fig .to { font-size: .62em; font-weight: 500; color: var(--muted, #5B6F74); }
.parts { display: block; margin-top: 2px; }
.fix { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted, #5B6F74); }

.acct-row .acct-warn { margin: 4px 0 0; color: var(--ink); max-width: 30ch; }

.habits-card { margin-top: 16px; }
.people-card { margin-top: 16px; }
.people-card h3 { font-size: 17px; margin-bottom: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 6px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--page); }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font: 700 22px var(--display, var(--ui)); letter-spacing: -0.02em; color: var(--ink); margin-top: 2px; }
.kpi b.none { font: 500 13px var(--ui); color: var(--muted); padding-top: 6px; }
.kpi.lead { background: var(--tint); border-color: var(--leaf); }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.habits-card h3 { font-size: 17px; margin-bottom: 4px; }
.habits { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.habits li { display: flex; gap: 10px; align-items: flex-start; }
.habits li strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.habits li .small { display: block; line-height: 1.45; }
.habits .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.habits li.gap .mark { background: #FDECEE; color: #B4232F; }
.habits li.ok .mark { background: #E3F8F0; color: #0E7C59; }
@media (max-width: 720px) { .habits { grid-template-columns: 1fr; } }

/* Run it again: what moved since the last report. Green better, red worse, gray held. */
.since-card { margin: 0 0 16px; }
.since-card h3 { font-size: 17px; margin-bottom: 4px; }
.since-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.since-rows .mv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--page); }
.since-rows .mv span { display: block; font-size: 12.5px; color: var(--muted); }
.since-rows .mv b { display: block; font: 700 18px var(--display, var(--ui)); letter-spacing: -0.02em; color: var(--ink); margin-top: 2px; }
.since-rows .mv s { color: var(--muted); font-size: 12.5px; text-decoration: none; }
.since-rows .mv em { font-style: normal; font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.since-rows .mv.better { background: #E9F8F1; border-color: #BCE8D3; }
.since-rows .mv.better em { color: #0E7A55; }
.since-rows .mv.worse { background: #FDECEC; border-color: #F5C6C3; }
.since-rows .mv.worse em { color: #B42318; }
.since-rows .mv.held em { color: var(--muted); }
@media (max-width: 720px) { .since-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The account page: the paid plan, week by week. */
.acct { max-width: 960px; margin: 0 auto; display: grid; gap: 16px; }
.acct > .card { margin: 0; }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 8px 4px 4px; }
.acct-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 4px 0 2px; }
.acct-head .muted { margin: 0; font-size: 14px; }
.acct .acct-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; padding: 0; border-bottom: 0; }
.acct .acct-row h3 { font-size: 17px; margin: 0 0 4px; }
.acct .acct-row .muted { margin: 0; font-size: 14px; }
.acct-refresh { text-align: right; }
.acct-refresh .status { margin-top: 6px; font-size: 13px; }
.acct-setup h3 { font-size: 19px; margin: 0 0 6px; }
.acct-conns { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.acct-conns li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.acct-conns li div { display: grid; gap: 2px; min-width: 0; }
.acct-conns li.broken { background: var(--red-t); border-color: #F5C6C3; }
.acct-tbl { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.acct-tbl th, .acct-tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.acct-tbl th { font-weight: 600; color: var(--muted); font-size: 13px; }
.acct-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.acct-close { text-align: center; margin: 12px 0 0; font-size: 14px; }
.acct-close .link { color: var(--muted); }
@media (max-width: 640px) { .acct-refresh { text-align: left; width: 100%; } .acct-head .cta-row { width: 100%; } }

/* Root every week, on the landing page. */
.plan-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 28px; align-items: center; max-width: 960px; margin: 28px auto 0; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-list li { position: relative; padding-left: 28px; color: var(--text); }
.plan-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.plan-buy { border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 8px; }
.plan-buy .muted { margin: 0; }
.plan-price { margin: 0; font-size: 15px; color: var(--muted); }
.plan-price b { font: 700 40px var(--display); letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; }
#plan-dialog label.check span { font-size: 14px; line-height: 1.5; }
@media (max-width: 720px) { .plan-card { grid-template-columns: 1fr; } .plan-buy { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; } }

/* Working: a button that started something, and a status line that's waiting on it. */
.is-busy { pointer-events: none; }
.btn.is-busy:disabled, button.is-busy:disabled { opacity: 1; }
.is-busy::before, .status.working::before, .working-note::before { content: ''; display: inline-block; width: .95em; height: .95em; margin-right: .55em; vertical-align: -0.14em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
.status.working { color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-busy::before, .status.working::before, .working-note::before { animation-duration: 2.4s; } }

/* Short-form sections: cards and tiles, not paragraphs */
.tiers-card { margin-top: 20px; padding: 18px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); grid-template-columns: repeat(4, auto); justify-content: space-between; }
.hit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hit-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 22px 20px; display: grid; gap: 6px; align-content: start; }
.hit-grid strong { font: 600 17px/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.hit-grid span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.hit-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.hit-close p { margin: 0; font: 600 19px/1.4 var(--display); color: var(--ink); }
.why-root .sec-more { font-size: 17px; color: var(--ink); font-weight: 500; }
@media (max-width: 1000px) { .hit-grid { grid-template-columns: 1fr 1fr; } .tiers-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hit-grid, .tiers-card { grid-template-columns: 1fr; } .hit-close .btn { width: 100%; } }

/* Step 2: one line per account. Name and Root's reason on the left, the call on the right. */
.kind-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px 0; }
.kind-row .kr-name { display: grid; gap: 2px; min-width: 0; }
.kind-row .kr-name > span:first-child { color: var(--ink); overflow-wrap: anywhere; }
.kind-row .kr-why { font-size: 13px; color: var(--muted); line-height: 1.4; }
.kind-row .kr-pick { display: flex; align-items: center; gap: 12px; justify-self: end; }
.kind-row .acct-known { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.kind-row .kind-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #E6F7F8; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.kind-row .kind-pill.personal, .kind-row .kind-pill.mixed { background: #EEF2F6; }
.kind-row select { max-width: 260px; }
.kind-row .acct-warn { grid-column: 1 / -1; max-width: none; }
@media (max-width: 520px) { .kind-row { grid-template-columns: 1fr; } .kind-row .kr-pick { justify-self: start; } .kind-row select { max-width: 100%; width: 100%; } }

/* Account page: one small chart per number, week by week */
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 8px; }
.chart { --chart-bg: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 10px; background: var(--chart-bg); display: grid; gap: 2px; }
.chart > span { font-size: 12.5px; color: var(--muted); }
.chart b { font: 700 18px var(--display, var(--ui)); letter-spacing: -0.02em; color: var(--ink); }
.chart .chg { font-size: 12.5px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.chart .chg i { font-style: normal; }
.chart .better { color: #0E7A55; }
.chart .worse { color: #B42318; }
.chart .held, .chart .first { color: var(--muted); font-weight: 500; }
.chart { position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.chart:hover { box-shadow: 0 6px 18px -12px rgba(11, 42, 48, .35); }
.chart.better { border-color: #BFE8D6; }
.chart.worse { border-color: #F2C4C0; }
.chart.better b { color: #0E7A55; }
.chart.worse b { color: #B42318; }
.chart.better::before, .chart.worse::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #10B981; }
.chart.worse::before { background: #DC2626; }
.chart svg { width: 100%; height: 52px; margin-top: 6px; overflow: visible; }
.chart svg .ln { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart svg .band { fill: var(--ink); opacity: .06; }
.chart svg .halo { opacity: .18; }
.chart svg .rep { opacity: .55; }
.chart svg .hit { fill: transparent; }
.chart svg .sel { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .tip { font-size: 12px; color: var(--muted); min-height: 16px; }
@media (max-width: 720px) { .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .charts { grid-template-columns: 1fr; } }
.past { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.past summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.past summary::-webkit-details-marker { display: none; }
.past summary::before { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; }
.past[open] summary::before { content: '\2212'; }
.past ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.past li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 14px; }
.past li a:hover { text-decoration: none; border-color: var(--leaf); }
.past li a.on { border-color: var(--leaf); background: #F0FBFC; }
.past li a span { color: var(--muted); }
.past li a, .past li a:hover { text-decoration: none; background-image: none; }
@media (max-width: 520px) { .past li a { flex-direction: column; gap: 2px; } }
.viewing { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #F0FBFC; border: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.acct-conns .masks { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* Add or change accounts */
.back-row { margin: 0 0 8px; font-size: 14px; }
#manage .card { margin-top: 16px; }
.m-bank { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.m-bank.broken { background: var(--red-t); border-color: #F5C6C3; }
.m-bank-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-bank-head strong { color: var(--ink); }
.m-acct { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.m-acct:first-of-type { margin-top: 8px; }
.m-acct select { width: auto; max-width: 260px; padding: 8px 32px 8px 10px; font-size: 14px; }
.m-add { display: flex; gap: 10px; margin: 14px 0 8px; flex-wrap: wrap; }
.m-add select { flex: 1 1 220px; width: auto; }
#manage > .cta-row { margin-top: 20px; justify-content: center; }
@media (max-width: 520px) { .m-acct { grid-template-columns: 1fr; gap: 6px; } .m-acct select { max-width: 100%; width: 100%; } }

/* The account page's theme toggle and its dark theme. Only the account page sets
   data-scheme on <html>, so the home page and the setup flow stay light. */
.theme { display: inline-flex; gap: 2px; padding: 3px; margin-left: auto; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.theme button { appearance: none; border: 0; background: transparent; color: var(--muted); width: 32px; height: 28px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed='true'] { background: var(--page); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 42, 48, .12), inset 0 0 0 1px var(--line); }
.theme button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 1px; }
.theme + #signout { margin-left: 8px; }

html[data-scheme='dark'] {
  color-scheme: dark;
  --page: #12272B;
  --tint: #102226;
  --fill: #0E1F22;
  --line: #27454A;
  --line-2: #1E383C;
  --ink: #E8F5F6;
  --text: #CFE2E4;
  --muted: #8EA9AE;
  --leaf-t: #123A3E;
  --leaf-w: #1B4D52;
  --leaf-glow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -12px rgba(30, 210, 220, .35);
  --green-t: #0F2F26;
  --red: #F26B78;
  --red-t: #3A171C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 18px 36px -18px rgba(0, 0, 0, .55);
  --card-shadow: var(--shadow);
}
html[data-scheme='dark'] body, html[data-scheme='dark'] body:not([data-mode='land']) { background-color: #0B1A1D; background-attachment: scroll; background-image:
  radial-gradient(1200px 800px at 85% 0, rgba(30, 210, 220, .10), transparent 70%),
  radial-gradient(1000px 900px at 0 45%, rgba(30, 210, 220, .05), transparent 70%),
  radial-gradient(1200px 900px at 100% 100%, rgba(30, 210, 220, .07), transparent 70%),
  linear-gradient(180deg, #0D1F23 0%, #0A181B 55%, #0C1D21 100%); }
html[data-scheme='dark'] .nav { background: rgba(11, 26, 29, .82); border-bottom-color: var(--line-2); }
html[data-scheme='dark'] .card, html[data-scheme='dark'] .panel, html[data-scheme='dark'] dialog, html[data-scheme='dark'] .chart, html[data-scheme='dark'] .btn.quiet { background: var(--page); }
html[data-scheme='dark'] .btn.quiet { box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .3); }
html[data-scheme='dark'] .btn.quiet:hover { box-shadow: inset 0 0 0 1px var(--leaf), 0 1px 2px rgba(0, 0, 0, .3); }
html[data-scheme='dark'] .btn.primary { color: #0B2A30; }
html[data-scheme='dark'] dialog::backdrop { background: rgba(0, 0, 0, .55); }
html[data-scheme='dark'] input:hover, html[data-scheme='dark'] select:hover { border-color: #3C6268; }
html[data-scheme='dark'] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238EA9AE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-scheme='dark'] .chart .better, html[data-scheme='dark'] .since-rows .mv.better em { color: #4ADE9F; }
html[data-scheme='dark'] .chart .worse, html[data-scheme='dark'] .since-rows .mv.worse em { color: #F7868F; }
html[data-scheme='dark'] .since-rows .mv.better { background: #0F2F26; border-color: #1F5A45; }
html[data-scheme='dark'] .since-rows .mv.worse { background: #33161B; border-color: #6A2A32; }
html[data-scheme='dark'] .chart.better { border-color: #1F5A45; }
html[data-scheme='dark'] .chart.worse { border-color: #6A2A32; }
html[data-scheme='dark'] .chart.better b { color: #4ADE9F; }
html[data-scheme='dark'] .chart.worse b { color: #F7868F; }
html[data-scheme='dark'] .chart svg .band { fill: #fff; opacity: .07; }
html[data-scheme='dark'] .chart { --chart-bg: var(--page); }
html[data-scheme='dark'] .habits li.gap .mark { background: #3A171C; color: #F7868F; }
html[data-scheme='dark'] .habits li.ok .mark { background: #0F2F26; color: #4ADE9F; }
html[data-scheme='dark'] .past li a.on, html[data-scheme='dark'] .viewing { background: var(--leaf-t); }
html[data-scheme='dark'] .acct-conns li.broken, html[data-scheme='dark'] .m-bank.broken { border-color: #6A2A32; }
html[data-scheme='dark'] .flow-error { color: #F7A1A8; }
html[data-scheme='dark'] .tier.measured, html[data-scheme='dark'] .delta.up { color: #4ADE9F; }
html[data-scheme='dark'] .tier.reported { background: #1A3236; }
html[data-scheme='dark'] .brand img, html[data-scheme='dark'] .kicker img { filter: none; }

/* Dashboard: alerts, what changed, fix tracking. Red is worse, green and blue are better,
   yellow is in progress. Light fills so the text reads at a glance. */
.alerts { margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.alerts h4, .changed h4, .fixes-head h4 { margin: 0 0 8px; font: 600 15px/1.3 var(--display); color: var(--ink); }
.alert-list, .changed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alert-list li, .changed-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.45; color: var(--ink); }
.alert-list .tag, .changed-list .tag { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag.worse { background: #FDECEE; color: #B4232F; }
.tag.better { background: #E3F8F0; color: #0E7C59; }
.tag.held { background: #EEF1F3; color: #4B5B62; }
.alert-list li { align-items: center; }
.alert-list li > span:last-child { flex: 1; }
.alert-list .clear { flex: none; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--page); cursor: pointer; padding: 0; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.alert-list .clear:hover { border-color: var(--leaf); }
.alert-list .clear::after { content: ''; width: 9px; height: 5px; border: solid transparent; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.alert-list .clear:hover::after { border-color: var(--leaf); }
.alert-list .clear[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); }
.alert-list .clear[aria-pressed="true"]::after { border-color: #fff; }
.alert-list .clear:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.alert-list li.off > span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.alert-list li.off .tag { opacity: .55; }
.alert-list li.cleared { display: block; }
.alert-list li.cleared summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.alert-list li.cleared .alert-list { margin-top: 8px; }
.changed { margin: 20px 0 8px; }
.changed .small { margin: 10px 0 0; }
.fixes-head { margin: 22px 0 0; }
.fixes-head .small { margin: 0; }
.fix-list li .fix-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fix-list li .fix-act button { font-size: 13px; font-weight: 600; line-height: 1; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--page); color: var(--ink); cursor: pointer; }
.fix-list li .fix-act button[aria-pressed="true"] { background: #E3F8F0; border-color: #B7EBD8; color: #0E7C59; }
.fix-list li .fix-act button.doing[aria-pressed="true"] { background: #FEF6C9; border-color: #F3E39A; color: #6B5300; }
.habits li.doing .mark { background: #FEF6C9; color: #6B5300; }
.acct .pdf-wait { margin: 8px 0 0; }
@media (max-width: 520px) { .alert-list li { flex-wrap: wrap; row-gap: 4px; } .alert-list li > span:last-child { flex-basis: 100%; padding-left: 30px; } }

/* What changed folds shut by default: the title and a count show, the list opens on tap. */
.fold { margin: 0; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 0; }
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font: 600 15px/1.3 var(--display); color: var(--ink); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font: 600 14px var(--ui); flex: none; }
.fold[open] > summary::before { content: '\2212'; }
.fold > summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
.fold .fold-count { font: 500 13px var(--ui); color: var(--muted); }
.fold .changed-list { margin-top: 12px; }

.fold > .charts { margin-top: 14px; }
.fold.alerts { margin: 0; padding: 14px 0; border-width: 1px 0 0; border-radius: 0; }
.fold > .small { margin: 10px 0 0; }
.fold > .fix-list { margin-top: 12px; }

/* Room between a section's title row and what's under it, so its +/− never touches the first row. */
.fold > summary { min-height: 28px; }
.fold[open] > summary { margin-bottom: 14px; }
.fold > summary + * { margin-top: 0; }
.fold-card { border-top: 0; padding: 0; }
.fold-card > summary { font-size: 17px; }
.fold-card .acct-row { align-items: center; }

.pdf-note { margin: 16px 0 0; }
.pdf-note .link { font: inherit; }
/* Refreshing never moves the page: the button keeps its place, and the status reads on its
   own reserved line under the heading, never inside the big centered working panel. */
.status.working { padding: 0; text-align: inherit; }
.refresh-status { margin: 8px 0 0; min-height: 21px; line-height: 20px; font-size: 13px; }
@media (max-width: 640px) { .refresh-status { min-height: 41px; } }
.acct-refresh { flex: none; }
#refresh { position: relative; }
#refresh.is-busy { color: transparent; }
#refresh.is-busy::before { position: absolute; inset: 0; margin: auto; color: var(--ink); }

/* Sign-in and recovery. Other ways in sit under the email form, quieter than it. */
.signin-alt { display: grid; gap: 10px; margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.signin-alt .status:empty { display: none; }
.signin-lost > summary { cursor: pointer; font: 500 14px var(--ui); color: var(--muted); width: fit-content; }
.signin-lost > summary:hover { color: var(--ink); }
.signin-lost[open] > summary { margin-bottom: 10px; }
.signin-lost .stack { margin: 10px 0; }
.access-block { padding: 14px 0; border-top: 1px solid var(--line-2); }
.access-block:first-of-type { border-top: 0; padding-top: 4px; }
.access-block h4 { margin: 0 0 2px; font: 600 15px/1.3 var(--display); color: var(--ink); }
.access-block .acct-row { align-items: center; }
.access-block .m-add { margin-top: 10px; }
#access-note:empty { display: none; }
#access-note { margin: 0 0 8px; }
.acct-conns li.empty { border-style: dashed; }
.rc-show { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill, transparent); }
.rc-codes { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font: 500 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
@media (max-width: 340px) { .rc-codes { grid-template-columns: 1fr; } }
.access-block .m-add input { flex: 1 1 240px; width: auto; }
#signin-form .status:empty { display: none; }
.signin-alt { margin-top: 20px; }

/* Recovery: each way to prove it, checked off as it passes. */
.recover-ways { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.recover-ways li { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.recover-ways li > div { display: grid; gap: 2px; }
.recover-ways li.done { border-color: var(--leaf); }
.recover-ways .rv-done { font: 600 13px var(--ui); color: var(--leaf); }
.recover-ways .btn { justify-self: start; }
.rv-form { display: grid; gap: 8px; grid-template-columns: 1fr; }
.rv-form input { width: 100%; min-width: 0; }
.rv-form .btn { justify-self: start; }
@media (min-width: 640px) {
  .rv-form[data-form=card] { grid-template-columns: 1fr 1.4fr auto; }
  .rv-form[data-form=details] { grid-template-columns: 1fr 1fr 2fr auto; }
}
.recover-ways li.done .rv-form, .recover-ways li.done > .btn { display: none; }
#recover .back-row { margin: 0 0 8px; }
#recover-board-status:empty { display: none; }

/* A broken connection says why, and offers Reconnect beside Disconnect. */
.acct-conns .why, .m-bank-head .why { font-size: 13px; color: var(--red, #B42318); margin-top: 2px; }
.m-bank-head .why { display: block; }
.conn-acts { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
@media (max-width: 560px) { .acct-conns li, .m-bank-head { flex-wrap: wrap; } .conn-acts { width: 100%; justify-content: flex-start; } }

/* A reconnect in progress: pending, not broken. Yellow means in transition. */
.acct-conns li.pending, .m-bank.pending { background: #FEF7DC; border-color: #F1DC8A; }
html[data-scheme='dark'] .acct-conns li.pending, html[data-scheme='dark'] .m-bank.pending { background: #3A331A; border-color: #6B5B22; }
.why.pending { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.why.pending .spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: reconspin .8s linear infinite; flex-shrink: 0; }
@keyframes reconspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .why.pending .spin { animation: none; } }

/* The range the charts compare over, and the readout for any point on a line. */
.range-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; }
.range-row label { font-size: 13px; color: var(--muted); }
.range-row select, .range-row input[type=date] { width: auto; max-width: 100%; font: 500 14px var(--ui); padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background-color: transparent; color: var(--ink); min-height: 38px; }
.range-row select { padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center; }
.range-custom { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chart .tip { font-size: 12px; color: var(--muted); min-height: 16px; }
.chart .tip.on { color: var(--ink); font-weight: 600; }
.chart svg .guide { stroke: var(--muted); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.chart svg .hit { cursor: crosshair; }
html[data-scheme='dark'] .range-row select option { background: #12262B; }
.getapp-line { margin: 14px 0 0; }

/* The report in full on the account page: margin first, then every figure the PDF shows. */
.full { margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.full-title { margin: 0; }
.full, .full > *, .full .truth, .full .kpi { min-width: 0; }
.full .sankey-wrap { max-width: 100%; }
.full h4 { font-size: 15px; margin: 0 0 8px; color: var(--ink); }
.full-kpis { margin: 0; }
.full-kpis .fig .num, .full-people .kpi b { font: 700 20px var(--display, var(--ui)); letter-spacing: -0.02em; }
.full .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lines-tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lines-tbl th, .lines-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line-2, var(--line)); text-align: left; white-space: nowrap; }
.lines-tbl thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.lines-tbl tbody th { font-weight: 500; white-space: normal; min-width: 120px; }
.lines-tbl .n { text-align: right; }
.lines-tbl td b { font-weight: 700; color: var(--ink); }
.lines-tbl tr.rest th, .lines-tbl tr.rest td { color: var(--muted); }
.full-truths { gap: 12px; }
@media (min-width: 641px) { .full-truths .truth[data-key='profit'] { grid-column: span 6; } }
.full-truths .truth { padding: 18px 18px 16px; box-shadow: none; }
.full-truths .truth h3 { font-size: 15px; margin-bottom: 12px; }
.full-flow, .full-people { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.num-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.num-group dl { margin: 0; }
.num-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2, var(--line)); }
.num-row dt { font-size: 13.5px; color: var(--text); }
.num-row dd { margin: 0; text-align: right; }
.num-row .fig summary { justify-content: flex-end; }
.num-row .fig .num { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.num-row .fig p { text-align: left; }
@media (max-width: 860px) {
  .num-groups { grid-template-columns: 1fr; }
  .full-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lines-tbl { font-size: 13px; }
  .lines-tbl th, .lines-tbl td { padding: 8px 5px; }
  .lines-tbl tbody th { min-width: 96px; }
  .full-people .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html[data-scheme='dark'] .full .truth, html[data-scheme='dark'] .full .kpi, html[data-scheme='dark'] .full-flow, html[data-scheme='dark'] .full-people { background: var(--page); }
html[data-scheme='dark'] .full .num.neg, html[data-scheme='dark'] .lines-tbl .neg { color: #F7868F !important; }

/* The story video, between the hero and the sample report. 16:9 on wider screens, its own square cut on phones. */
.story { max-width: 1200px; margin: 0 auto; padding: 72px 24px 0; }
.story-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lift); background: var(--tint); }
.story-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-cta { position: absolute; left: 34.09%; top: 64.72%; width: 31.81%; height: 8.93%; border: 0; border-radius: 999px; background: transparent; color: transparent; cursor: pointer; font-size: 0; }
.story-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .story { padding: 48px 16px 0; }
  .story-frame { aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; }
  .story-cta { left: 21.72%; top: 69.88%; width: 56.55%; height: 8.93%; }
}
