/* Home. One phone only, in the hero. Below it the page shows pieces of the
   app, not whole screens: cards rebuilt from the app's components, with its
   sizes and colours. The centre of the page is a pinned scene that the scroll
   plays: your accounts, investments, home and mortgage come in one by one and
   add up to your net worth. */

/* Hero */
.hero { padding-block: 40px 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.split.rev .pieces { order: -1; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero-copy { display: grid; gap: 24px; max-width: 34rem; min-width: 0; }
.hero h1 { font-size: clamp(44px, 6.2vw, 78px); line-height: 1.0; letter-spacing: -.045em; }
.hero h1 span { color: var(--text-faint); }
/* What the app is, inside the h1 so search engines read it as the page's subject.
   Visually hidden: the pill that used to show it is gone. */
.hero h1 .h1-tag {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lede { font-size: 19px; line-height: 1.55; color: var(--text-muted); }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-cta small { font-size: 14px; font-weight: 600; color: var(--text-muted); }

/* Device (hero only) */
.device { --w: 320; display: grid; justify-items: center; gap: 14px; margin: 0; }
.frame {
  width: calc(var(--w) * 1px + 20px); padding: 10px; border-radius: 56px;
  background: #0A0A0B; box-shadow: 0 0 0 1px #2B2B30, 0 40px 80px -36px rgba(10, 10, 11, .55);
}
.viewport { width: calc(var(--w) * 1px); height: calc(var(--w) * 844px / 390); border-radius: 46px; overflow: hidden; position: relative; }
.screen {
  width: 390px; height: 844px; transform: scale(calc(var(--w) / 390)); transform-origin: 0 0;
  background: var(--bg); position: relative; overflow: hidden;
  padding: 62px 20px 0; display: flex; flex-direction: column; gap: 16px;
}
.island { position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 124px; height: 36px; border-radius: 999px; background: #0A0A0B; z-index: 5; }
.status { position: absolute; top: 18px; left: 46px; right: 36px; display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; z-index: 4; }
.status .bars { display: flex; gap: 3px; align-items: flex-end; }
.status .bars i { width: 3.5px; border-radius: 1px; background: var(--text); }
.device-note { font-size: 13px; font-weight: 600; color: var(--text-faint); text-align: center; }

/* App pieces (sizes from src/theme/tokens.ts) */
.t-title { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.6px; }
.t-heading { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.2px; }
.t-body { font-size: 15px; line-height: 21px; font-weight: 500; letter-spacing: -.1px; }
.t-num { font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: -.2px; }
.t-label { font-size: 13px; line-height: 18px; font-weight: 600; }
.t-caption { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .1px; }
.muted { color: var(--text-muted); } .faint { color: var(--text-faint); }
.neg { color: var(--down); } .pos { color: var(--up); }
.mirror { display: inline-block; transform: scaleX(-1); }
.p-card { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-1); border: 1px solid var(--card-border); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: grid; gap: 12px; align-content: start; }
.tile > div { display: grid; gap: 2px; justify-items: start; }
.tile .icon-tile { width: 36px; height: 36px; border-radius: 12px; }
.tile .icon-tile svg { width: 17px; height: 17px; }
.tile b { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.2px; }
.dpill { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; width: fit-content; border-radius: 999px; padding: 4px 12px; color: var(--up); background: var(--up-soft); }
.dpill svg { width: 15px; height: 15px; stroke-width: 2.6; }
.dpill span { font-size: 13px; line-height: 18px; font-weight: 700; }
.dpill.sm { padding: 3px 8px; }
.dpill.sm svg { width: 13px; height: 13px; }
.dpill.sm span { font-size: 11px; line-height: 14px; }
.dpill.down { color: var(--down); background: var(--down-soft); }
.dpill.inline { background: none; padding: 0; }
.dpill.onink { color: var(--inv-up); background: var(--inv-up-soft); }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--surface);
  box-shadow: var(--shadow-1); display: grid; place-items: center; color: var(--text); cursor: pointer; padding: 0; flex: none;
}
.round-btn svg { width: 20px; height: 20px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.hair { height: .5px; background: var(--border); }
.ink-card { background: var(--primary); color: var(--on-brand); border-radius: 20px; padding: 20px; display: grid; gap: 4px; box-shadow: var(--shadow-2); }
.ink-card .disp { font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -1.2px; }
.ink-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.inv-m { color: var(--inv-muted); } .inv-up { color: var(--inv-up); }

/* Home screen inside the hero phone */
.h-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-alt); display: grid; place-items: center; font-size: 16px; font-weight: 700; flex: none; }
.h-greet { flex: 1; min-width: 0; }
.h-greet b { display: block; font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.6px; }
.ranges { display: flex; gap: 24px; padding-block: 4px; }
.ranges button { border: 0; background: none; padding: 0; cursor: pointer; font: 600 16px/22px var(--font); letter-spacing: -.2px; color: var(--text-muted); }
.ranges button[aria-selected="true"] { font-weight: 800; color: var(--text); }
.readout-row { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 12px; }
.big { font-size: 38px; line-height: 46px; font-weight: 800; letter-spacing: -1.2px; }
.delta { display: flex; align-items: center; gap: 4px; min-height: 24px; color: var(--up); }
.delta i { font-style: normal; font-size: 11px; font-weight: 600; }
.delta b { font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: -.2px; }
.delta span { font-size: 13px; font-weight: 600; }
/* The home chart, sized as PriceChart: 220 px, bleeding to the screen edges, the readout above it. */
.pchart { margin-inline: -20px; }
.pc-head { display: grid; gap: 4px; justify-items: start; padding-inline: 20px; margin-bottom: 8px; }
.pc-plot { position: relative; height: 220px; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pc-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pc-dim { stroke-opacity: 0; transition: stroke-opacity .09s; }
.pc-halo { opacity: .18; transition: opacity .14s; }
.pc-plot.on .pc-dim { stroke-opacity: .28; }
.pc-plot.on .pc-halo { opacity: .28; }
.pc-ticks span { position: absolute; right: 2px; font-size: 12px; line-height: 14px; font-weight: 600; letter-spacing: .1px; color: var(--text-muted); opacity: .75; font-variant-numeric: tabular-nums; pointer-events: none; }
.pc-cursor { position: absolute; top: 2px; left: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-muted); white-space: nowrap; opacity: 0; transition: opacity .09s; pointer-events: none; }
.pc-plot.on .pc-cursor { opacity: 1; }
.pc-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .1px; color: var(--text-muted); pointer-events: none; }
/* Content scrolls under the floating tab bar, which fades it out as iOS does. */
.screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 132px; z-index: 2; pointer-events: none; background: linear-gradient(to top, var(--bg) 30%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 34px; display: flex; gap: 10px; z-index: 3; }
.tabs { flex: 1; display: flex; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-2); }
.tabs span { flex: 1; height: 56px; border-radius: 999px; display: grid; place-content: center; justify-items: center; gap: 3px; color: var(--text-faint); }
.tabs span.on { background: var(--surface-alt); color: var(--text); }
.tabs svg { width: 22px; height: 22px; }
.tabs em { font-style: normal; font-size: 10px; line-height: 13px; font-weight: 600; }
.add { width: 68px; height: 68px; border-radius: 50%; background: var(--primary); color: var(--on-brand); display: grid; place-items: center; box-shadow: var(--shadow-2); flex: none; }
.add svg { width: 26px; height: 26px; stroke-width: 2.4; }

/* ---------- The pinned scene ---------- */
.flight { position: relative; }
.flight-stage { padding-block: 72px; }
.flight-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.flight-copy { display: grid; gap: 22px; align-content: center; min-width: 0; }
.flight-copy h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.045em; }
.steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 10px 0; color: var(--text-faint); transition: color .3s; }
.steps li b { display: block; font-size: 17px; letter-spacing: -.2px; }
.steps li span { font-size: 14.5px; line-height: 1.5; }
.steps li i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; border: 1.5px solid currentColor; transition: background .3s, color .3s, border-color .3s; }
.steps li.on { color: var(--text); }
.steps li.on span { color: var(--text-muted); }
.steps li.done i { background: var(--primary); border-color: var(--primary); color: var(--on-brand); }

.board { position: relative; min-height: 460px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 12px; align-content: center; }
.piece { will-change: transform, opacity; }
.piece.tile { padding: 18px; }
.piece small.src { display: block; margin-top: 2px; }
.result { grid-column: 1 / -1; display: grid; gap: 6px; padding: 24px; }
.result .disp { font-size: clamp(38px, 4.2vw, 52px); line-height: 1.1; }
.result svg { width: 100%; height: 64px; margin-top: 8px; overflow: visible; }
.minus-tag { position: absolute; top: 14px; right: 16px; font-size: 22px; font-weight: 800; color: var(--down); }

/* Live mode (JS on, motion allowed): the section is tall and the stage sticks. */
.flight.live { height: 380vh; }
.flight.live .flight-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-block: 72px 24px; }

/* ---------- Pieces of the app beside the copy ---------- */
.show { padding-block: 80px; }
.show-copy { display: grid; gap: 18px; max-width: 30rem; min-width: 0; }
.kicker { font-size: 14px; font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.kicker svg { width: 18px; height: 18px; color: var(--text); }
.show-copy h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.show-copy > p { font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.points { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; font-weight: 600; }
.points svg { width: 18px; height: 18px; color: var(--up); flex: none; margin-top: 2px; stroke-width: 2.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-1); }

/* A small stack of app cards, slightly layered */
.pieces { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; padding: 8px; }
.pieces .lift { box-shadow: var(--shadow-2); }
.pieces .offset { margin-left: 12%; }
.pieces .offset-r { margin-right: 12%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pieces .lift { box-shadow: none; } }
.list { padding: 0; overflow: hidden; }
.lrow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 16px; position: relative; }
.lrow + .lrow::before { content: ""; position: absolute; top: 0; right: 0; left: 72px; height: .5px; background: var(--border); }
.lrow .txt { flex: 1; min-width: 0; }
.lrow .txt span { display: block; }
.lrow .end { display: grid; justify-items: end; gap: 2px; }
.logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; overflow: hidden; }
.logo svg { width: 52%; height: 52%; }
.logo.wide { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--border); }
.logo.wide svg { width: 76%; height: 76%; }
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 4px; }
.list-head b { font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -.2px; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.irow { display: flex; align-items: center; gap: 12px; }
.irow > svg { width: 18px; height: 18px; flex: none; color: var(--up); stroke-width: 2; }
.irow .txt { flex: 1; min-width: 0; }
.irow .txt span { display: block; }
.irows { padding: 0; }
.irows .irow { padding: 14px 16px; }
.irows .irow + .irow { border-top: .5px solid var(--border); }
.excluded { opacity: .45; }
.excluded > svg { color: var(--text-faint) !important; }
.ink-card.debt { gap: 12px; }
.ink-card.debt .lines { display: grid; gap: 4px; }
.bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--on-brand) 16%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--inv-up); }
.bar-row { display: flex; justify-content: space-between; }
.p-card h4 { margin: 0 0 8px; font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.2px; }

/* Privacy band */
.band { padding-block: 80px; }
.ink {
  background: var(--primary); color: var(--on-brand); border-radius: var(--r-xl);
  padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 56px;
}
.ink h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.ink > div:first-child { display: grid; gap: 18px; align-content: start; }
.ink p { font-size: 17px; line-height: 1.6; color: var(--inv-muted); }
.shake { margin-top: 8px; border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; background: color-mix(in srgb, var(--on-brand) 8%, transparent); }
.shake small { font-size: 13px; font-weight: 600; color: var(--inv-muted); }
.shake-num { font-size: clamp(34px, 4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; min-height: 1.1em; }
.shake-btn {
  justify-self: start; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--on-brand); color: var(--primary); font: 700 15px/1 var(--font); display: inline-flex; align-items: center; gap: 8px;
}
.shake-btn svg { width: 18px; height: 18px; }
.shake.shaking { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 45%, 55% { transform: translateX(-6px); } }
.ink-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 0; padding: 0; list-style: none; align-content: start; }
.ink-list li { display: grid; gap: 6px; align-content: start; }
.ink-list svg { width: 22px; height: 22px; margin-bottom: 4px; }
.ink-list b { font-size: 16px; letter-spacing: -.2px; }
.ink-list span { font-size: 14.5px; line-height: 1.55; color: var(--inv-muted); }

/* PRO, as the app's ProBadge: a small ink pill */
.pro-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  background: var(--primary); color: var(--on-brand); font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
}
.feature h3 .pro-tag { margin-left: 6px; vertical-align: 2px; }

/* Apple Pay: the notification a payment leaves, and the automation behind it */
.notif {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 24px; border: 1px solid var(--card-border);
  background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.notif .brand-tile { width: 38px; height: 38px; border-radius: 10px; }
.notif-body { display: grid; gap: 1px; min-width: 0; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.notif-body b { font-size: 15px; line-height: 21px; letter-spacing: -.1px; }
.notif-body > span { font-size: 14px; line-height: 19px; color: var(--text-muted); }
.auto { display: grid; gap: 10px; }
.auto-step { display: flex; align-items: center; gap: 12px; }
.auto-step > div { display: grid; min-width: 0; }
.auto-link { width: 2px; height: 14px; margin-left: 19px; border-radius: 2px; background: var(--border); }
.icon-tile.solid { background: var(--primary); color: var(--on-brand); }
.switch { width: 51px; height: 31px; border-radius: 999px; background: var(--up); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }

/* Widgets: a home screen and a lock screen */
.screens { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.hs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; border-radius: 34px;
  background: linear-gradient(160deg, var(--surface-alt), color-mix(in srgb, var(--surface-alt) 45%, var(--bg)));
  border: 1px solid var(--card-border);
}
.wg {
  aspect-ratio: 1; min-width: 0; overflow: hidden; border-radius: 24px; padding: 16px;
  background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
}
.wg.ink { background: var(--primary); color: var(--on-brand); border-color: transparent; }
.wg.wide { grid-column: 1 / -1; aspect-ratio: auto; justify-content: flex-start; }
.wg-label { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--text-muted); }
.wg.ink .wg-label { color: var(--inv-muted); }
.wg-big { display: block; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.wg-sub { font-size: 12px; line-height: 16px; font-weight: 700; }
.wg .spark { width: 100%; height: 30px; overflow: visible; display: block; }
.wg-ring { display: flex; align-items: center; justify-content: space-between; }
.ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.wg-rows { display: grid; margin-top: 4px; }
.wg-row { display: flex; align-items: center; gap: 10px; padding-block: 7px; font-size: 14px; font-weight: 600; }
.wg-row + .wg-row { border-top: .5px solid var(--border); }
.wg-row span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-row .when { color: var(--text-muted); font-size: 12.5px; }
.lock {
  display: grid; justify-items: center; gap: 4px; padding: 26px 18px 22px; border-radius: 34px;
  background: linear-gradient(170deg, #1F1F23, #0A0A0B 70%); color: #F5F5F6; border: 1px solid #27272B;
}
.lock-date { font-size: 15px; font-weight: 600; color: #A1A1AA; }
.lock-time { font-size: clamp(54px, 7vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.lock-wgs { display: flex; gap: 10px; margin-top: 14px; }
.lw { border-radius: 18px; background: rgba(255, 255, 255, .12); padding: 8px 14px; display: grid; align-content: center; }
.lw.circ { width: 62px; height: 62px; border-radius: 50%; padding: 0; place-items: center; position: relative; }
.lw.circ .ring { width: 54px; height: 54px; position: absolute; }
.lw.circ b { font-size: 13px; }
.lw.rect { min-width: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: #A1A1AA; }
.lw.rect b { font-size: 17px; line-height: 22px; color: #F5F5F6; font-weight: 800; letter-spacing: -.02em; }

/* In-page links land below the sticky header, with or without Lenis */
main section[id] { scroll-margin-top: 76px; }

/* Key figures under the hero */
.facts-band { padding-block: 16px 8px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.fact b { font-size: clamp(34px, 3.8vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.fact span { font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--text-muted); }

/* Portfolio statistics, on the ink card */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 10px; }
.stat-grid > div { display: grid; gap: 2px; min-width: 0; }
.stat-grid b { font-size: 19px; line-height: 24px; font-weight: 800; letter-spacing: -.3px; }

/* Bars: a fill, and a mark for the target or for where you should be today */
.track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-alt); }
.track i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--text); }
.track i.over { background: var(--down); }
.track i.good { background: var(--up); }
.track em { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--up); }
.track em.pace { background: var(--text-faint); }
.bars { display: grid; gap: 14px; }
.bar-line { display: grid; gap: 7px; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.act { font-size: 12px; line-height: 16px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.act.buy { color: var(--up); background: var(--up-soft); }
.act.sell { color: var(--down); background: var(--down-soft); }
.act.ok { color: var(--text-muted); background: var(--surface-alt); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head b { font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -.2px; }
.card-foot { display: block; margin-top: 14px; }

/* Spending by category: one stacked bar, shades of ink */
.stack { display: flex; gap: 3px; height: 12px; margin: 14px 0 8px; }
.stack i { display: block; height: 100%; border-radius: 4px; }
.c1 { background: var(--text); }
.c2 { background: color-mix(in srgb, var(--text) 70%, var(--surface)); }
.c3 { background: color-mix(in srgb, var(--text) 48%, var(--surface)); }
.c4 { background: color-mix(in srgb, var(--text) 32%, var(--surface)); }
.c5 { background: color-mix(in srgb, var(--text) 20%, var(--surface)); }
.c6 { background: color-mix(in srgb, var(--text) 10%, var(--surface)); }
.crows { display: grid; }
.crow { display: flex; align-items: center; gap: 10px; padding-block: 9px; font-size: 15px; font-weight: 600; }
.crow + .crow { border-top: .5px solid var(--border); }
.crow .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.crow .grow { flex: 1; min-width: 0; display: grid; }
.crow .grow small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.crow .pct { width: 3.2em; text-align: right; color: var(--text-muted); font-size: 13px; }
.mono { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--surface-alt); font-size: 15px; font-weight: 800; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 92px; margin-top: 6px; }
.week span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.week i { display: block; width: 100%; max-width: 26px; border-radius: 6px; background: color-mix(in srgb, var(--text) 18%, var(--surface)); }
.week span.peak i { background: var(--text); }
.week span.peak { color: var(--text); }

/* Projection and financial freedom, on the ink card */
.proj svg { display: block; width: 100%; height: 110px; margin-top: 10px; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 3px; border-radius: 2px; }
.split-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 14px; margin-top: 10px; border-top: .5px solid color-mix(in srgb, var(--on-brand) 18%, transparent); }
.split-row > div { display: grid; gap: 2px; }
.tag-ok { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: var(--up); background: var(--up-soft); }
.ticks { position: relative; height: 16px; margin-top: 6px; }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { right: 0; transform: none; }

/* How to start */
.start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.start-step { padding: 26px; display: grid; gap: 12px; align-content: start; }
.start-step .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-brand); font-size: 15px; font-weight: 800; }
.start-step h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.3px; }
.start-step p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* Plan comparison, folded under the two plans */
.compare { max-width: 900px; margin: 16px auto 0; }
.compare > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;
  width: fit-content; margin-inline: auto; height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-1); font-size: 15px; font-weight: 700;
}
.compare > summary::-webkit-details-marker { display: none; }
.compare > summary svg { width: 18px; height: 18px; transition: transform .2s; }
.compare[open] > summary svg { transform: rotate(180deg); }
.compare .card { margin-top: 16px; padding: 8px 4px; overflow-x: auto; }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctable th, .ctable td { padding: 12px 18px; text-align: left; font-weight: 600; border-top: .5px solid var(--border); }
.ctable thead th { border-top: 0; font-size: 14px; font-weight: 800; }
.ctable th + th, .ctable td { text-align: center; width: 24%; }
.ctable tbody th { font-weight: 600; }
.ctable tr.group th { padding-top: 24px; border-top: 0; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); }
.ctable td { font-weight: 700; }
.ctable svg { width: 18px; height: 18px; vertical-align: middle; stroke-width: 2.4; color: var(--up); }
.ctable .no { color: var(--text-faint); font-weight: 600; }

/* Everyday */
section.block { padding-block: 64px; }
.block-head { display: grid; gap: 10px; max-width: 36rem; margin-bottom: 28px; }
.block-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -.04em; }
.block-head p { color: var(--text-muted); font-size: 17px; }
.block-head.center { text-align: center; justify-items: center; margin-inline: auto; max-width: 40rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature { display: grid; gap: 16px; align-content: start; padding: 24px; }
.feature h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.2px; margin-bottom: 6px; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* Pricing: the free plan on a white card, PRO on the ink card */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-1);
}
.seg button {
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--font); color: var(--text-muted);
}
.seg button[aria-checked="true"] { background: var(--primary); color: var(--on-brand); }
.seg em { font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 7px; border-radius: 999px; background: var(--up-soft); color: var(--up); }
.seg button[aria-checked="true"] em { background: var(--inv-up-soft); color: var(--inv-up); }
.billing { display: flex; justify-content: center; margin-bottom: 20px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin-inline: auto; }
.plan { display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 16px; padding: 32px; }
.plan.pro { background: var(--primary); color: var(--on-brand); border-color: transparent; box-shadow: var(--shadow-2); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: 22px; letter-spacing: -.03em; }
.plan-sub { font-size: 15px; color: var(--text-muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price b { font-size: clamp(40px, 5vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.price span { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.plan-note { font-size: 13.5px; font-weight: 700; color: var(--text-muted); min-height: 1.5em; }
.plan.pro .plan-sub, .plan.pro .price span, .plan.pro .plan-note { color: var(--inv-muted); }
.plan.pro .plan-note b { color: var(--inv-up); }
.trial { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--inv-up-soft); color: var(--inv-up); white-space: nowrap; }
.plan-list { list-style: none; margin: 0; padding: 18px 0 0; border-top: .5px solid var(--border); display: grid; gap: 11px; align-content: start; }
.plan.pro .plan-list { border-top-color: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; font-weight: 600; }
.plan-list li.lead { font-weight: 700; color: var(--inv-muted); }
.plan-list svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--up); stroke-width: 2.4; }
.plan.pro .plan-list svg { color: var(--inv-up); }
.plan .store-badge { justify-self: start; }
.plans-fine { max-width: 46rem; margin: 20px auto 0; text-align: center; font-size: 13px; line-height: 1.6; color: var(--text-faint); }

/* Questions */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px 56px; align-items: start; }
.faq-wrap .block-head { margin: 0; }
.faq { padding: 0 20px; }
.faq details + details { border-top: .5px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--text-faint); flex: none; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-bottom: 18px; color: var(--text-muted); font-size: 15px; max-width: 46rem; }

/* Closing: the ink card with the download badge */
.closing { padding-block: 40px 0; }
.closing-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--primary); color: var(--on-brand);
  padding: 64px 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
}
.closing-card::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 410px; opacity: .07; pointer-events: none;
  background: var(--on-brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 7 222 238'%3E%3Cpath d='M223.9 7.4L205.6 15.7L170.9 32.8L163.6 40.6L159.9 51L160.8 111L226.8 178.4L229.4 167L229.4 12L226 7.4ZM79.5 66.5L65.1 69.9L32 87.8L15.8 101.4L14 104.4L23 99.7L35.6 98.9L47 103.9L153.6 204.3L168.9 212.4L182.6 212.2L212.9 198.1L223.5 189L213.9 179.1L109.3 76.7L95.3 68.8ZM20.8 103.4L11.8 108.4L8.3 119L8.2 237L10.9 243.7L14.8 244.1L50.1 227.2L73.1 214L79.5 202.1L80.1 152L76 146L38.1 109.8L26 103.7Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 7 222 238'%3E%3Cpath d='M223.9 7.4L205.6 15.7L170.9 32.8L163.6 40.6L159.9 51L160.8 111L226.8 178.4L229.4 167L229.4 12L226 7.4ZM79.5 66.5L65.1 69.9L32 87.8L15.8 101.4L14 104.4L23 99.7L35.6 98.9L47 103.9L153.6 204.3L168.9 212.4L182.6 212.2L212.9 198.1L223.5 189L213.9 179.1L109.3 76.7L95.3 68.8ZM20.8 103.4L11.8 108.4L8.3 119L8.2 237L10.9 243.7L14.8 244.1L50.1 227.2L73.1 214L79.5 202.1L80.1 152L76 146L38.1 109.8L26 103.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.closing-copy { display: grid; gap: 16px; position: relative; z-index: 1; }
.closing-copy h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.0; letter-spacing: -.045em; }
.closing-copy h2 span { color: var(--inv-muted); }
.closing-copy p { font-size: 17px; line-height: 1.6; color: var(--inv-muted); }
.closing-form { display: grid; gap: 12px; position: relative; z-index: 1; min-width: 0; }
.closing-copy { min-width: 0; }
.closing-form ul { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--inv-muted); }
.closing-form li { display: flex; gap: 8px; align-items: center; }
.closing-form li svg { width: 16px; height: 16px; color: var(--inv-up); stroke-width: 2.6; }

/* Sections ease in as they reach the screen (only with JS, only with motion) */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* Tablet: still two columns, closer together, and the cards stop stepping sideways. */
@media (max-width: 960px) {
  .split { gap: 40px; }
  .split.rev, .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .device { --w: 300; }
  .flight-grid { gap: 32px; }
  .ink { grid-template-columns: minmax(0, 1fr); padding: 40px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .closing-card { grid-template-columns: minmax(0, 1fr); padding: 48px 32px; }
  .pieces .offset, .pieces .offset-r { margin-inline: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { gap: 12px 16px; }
  .stat-grid b { font-size: 17px; }
}
/* Phone: one column; the copy leads and the pieces follow, centred. */
@media (max-width: 760px) {
  .split, .split.rev, .split.even { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.rev .pieces, .split.rev .screens { order: 2; }
  .flight-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flight.live .flight-stage { padding-block: 76px 16px; align-items: start; }
  .flight.live .steps li:not(.on) { display: none; }
  .flight-copy h2 { font-size: clamp(26px, 6vw, 40px); }
  .board { min-height: 0; }
  .pieces, .screens { width: 100%; max-width: 480px; justify-self: center; }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .start { grid-template-columns: minmax(0, 1fr); }
  .ctable th, .ctable td { padding: 11px 10px; font-size: 14px; }
}
/* The home page's footer adds a column of features */
.site-foot .foot-grid { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .site-foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding-block: 20px 8px; }
  .show, .band { padding-block: 56px; }
  section.block { padding-block: 48px; }
  .features, .ink-list { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 20px; }
  .plan { padding: 24px 22px; }
  .hs { padding: 14px; gap: 12px; border-radius: 28px; }
  .wg { padding: 13px; border-radius: 20px; }
  .seg button { padding: 0 14px; }
  .fact { padding: 18px; }
  .start-step { padding: 22px; }
  .ink { padding: 28px 22px; border-radius: var(--r-lg); gap: 36px; }
  .device { --w: 280; }
  .closing-card { padding: 36px 22px; border-radius: var(--r-lg); }
  .piece.tile { padding: 14px; }
  /* On a phone the whole scene has to fit one screen: lighter tiles. */
  .flight.live .piece.tile { gap: 0; }
  .flight.live .piece .icon-tile, .flight.live .piece small.src, .flight.live .piece .dpill { display: none; }
  .flight.live .result .disp { font-size: 34px; }
  .flight.live .result svg { height: 44px; }
  .board { gap: 10px; }
  .result { padding: 18px; }
}
@media (max-width: 340px) { .device { --w: 250; } }
