/* Margin: a theme for software products. Tokens first; everything else reads them. */

@view-transition { navigation: auto; }

:root {
  color-scheme: light;
  /* colour: neutrals + one accent */
  --bg: #f7f7f4;
  --bg-tint: #efeeea;
  --surface: #ffffff;
  --surface-2: #f3f3ef;
  --line: #e5e4de;
  --line-2: #d2d1c9;
  --ink: #121211;
  --ink-2: #47473f;
  --ink-3: #6b6b64;
  --accent: #d4f44f;
  --accent-hover: #c8ec36;
  --accent-soft: #eef8c4;
  --accent-ink: #4b6100;
  --on-accent: #121211;
  --warn: #a8401b;
  --warn-soft: #f8e5dc;
  --band: #121211;          /* the dark band */
  --band-ink: #f2f2ee;
  --band-ink-2: #a9a9a2;
  --band-line: #2b2b28;
  --focus: #121211;

  /* type */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-hero: clamp(38px, 7.25vw, 108px);
  --t-h1: clamp(42px, 5.6vw, 80px);
  --t-h2: clamp(32px, 3.9vw, 56px);
  --t-h3: clamp(20px, 1.6vw, 23px);
  --t-lede: clamp(18px, 1.35vw, 20px);
  --t-body: 17px;
  --t-sm: 15px;
  --t-xs: 13px;
  --t-2xs: 12px;
  --track-display: -0.045em;
  --track-h2: -0.035em;

  /* space: 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --section: clamp(96px, 10.5vw, 152px);
  --max: 1200px;
  --col-gap: 24px;

  /* shape */
  --r-1: 6px;   /* controls */
  --r-2: 10px;  /* cards */
  --r-3: 14px;  /* windows */
  --sh-1: 0 1px 0 rgb(18 18 17 / .03), 0 1px 2px rgb(18 18 17 / .06);
  --sh-2: 0 1px 1px rgb(18 18 17 / .04), 0 4px 10px -2px rgb(18 18 17 / .06), 0 16px 32px -12px rgb(18 18 17 / .12);
  --sh-3: 0 1px 1px rgb(18 18 17 / .05), 0 10px 20px -6px rgb(18 18 17 / .08), 0 40px 80px -24px rgb(18 18 17 / .22);
  --hi: inset 0 1px 0 rgb(255 255 255 / .7);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --dur: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0e0d; --bg-tint: #141413; --surface: #171716; --surface-2: #1e1e1c;
    --line: #292926; --line-2: #3a3a36;
    --ink: #f2f2ee; --ink-2: #bfbfb7; --ink-3: #94948c;
    --accent-soft: #29300f; --accent-ink: #d4f44f;
    --warn: #f08a62; --warn-soft: #3a2018;
    --band: #181816; --band-ink: #f2f2ee; --band-ink-2: #a9a9a2; --band-line: #2e2e2b;
    --focus: #d4f44f; --logo-ring: #3a3a36;
    --sh-1: 0 1px 0 rgb(0 0 0 / .3);
    --sh-2: 0 1px 1px rgb(0 0 0 / .4), 0 12px 28px -10px rgb(0 0 0 / .6);
    --sh-3: 0 1px 1px rgb(0 0 0 / .5), 0 16px 32px -8px rgb(0 0 0 / .5), 0 48px 96px -24px rgb(0 0 0 / .7);
    --hi: inset 0 1px 0 rgb(255 255 255 / .05);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0d; --bg-tint: #141413; --surface: #171716; --surface-2: #1e1e1c;
  --line: #292926; --line-2: #3a3a36;
  --ink: #f2f2ee; --ink-2: #bfbfb7; --ink-3: #94948c;
  --accent-soft: #29300f; --accent-ink: #d4f44f;
  --warn: #f08a62; --warn-soft: #3a2018;
  --band: #181816; --band-ink: #f2f2ee; --band-ink-2: #a9a9a2; --band-line: #2e2e2b;
  --focus: #d4f44f; --logo-ring: #3a3a36;
  --sh-1: 0 1px 0 rgb(0 0 0 / .3);
  --sh-2: 0 1px 1px rgb(0 0 0 / .4), 0 12px 28px -10px rgb(0 0 0 / .6);
  --sh-3: 0 1px 1px rgb(0 0 0 / .5), 0 16px 32px -8px rgb(0 0 0 / .5), 0 48px 96px -24px rgb(0 0 0 / .7);
  --hi: inset 0 1px 0 rgb(255 255 255 / .05);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-1); font-size: var(--t-sm); }
.skip-link:focus { top: 12px; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--sm { width: 15px; height: 15px; }
.i--xs { width: 13px; height: 13px; stroke-width: 2; }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.money { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; font-weight: 500; }
.money .c { color: var(--ink-3); font-size: .82em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.sec { padding-block: var(--section); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec--flush-top { padding-top: 0; }

/* signature: the margin note */
.note {
  grid-column: 1 / 3; align-self: start;
  font: 500 var(--t-2xs)/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-3);
  padding-top: 14px; position: relative; display: flex; gap: 10px;
}
.note::before { content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 1px; background: var(--ink); }
.note b { font-weight: 500; color: var(--ink); }
.sec-body { grid-column: 3 / 13; min-width: 0; }

.kicker { font: 500 var(--t-xs)/1.4 var(--mono); color: var(--ink-3); letter-spacing: .01em; }
.h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: var(--track-h2); font-weight: 600; text-wrap: balance; max-width: 18ch; }
.h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.sec-head { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; margin-bottom: var(--s-8); }
.sec-head .h2 { grid-column: 1 / 7; }
.sec-head .lede { grid-column: 7 / 11; font-size: var(--t-sm); max-width: 40ch; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s-6); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px var(--logo-ring, transparent); }
.nav { display: flex; gap: 2px; margin-left: var(--s-4); }
.nav a { font-size: 14.5px; color: var(--ink-2); padding: 7px 12px; border-radius: var(--r-1); transition: color var(--dur), background-color var(--dur); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.head-end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.head-end .link { font-size: 14.5px; color: var(--ink-2); padding: 7px 10px; }
.head-end .link:hover { color: var(--ink); }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-1);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-1);
  transition: color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn:active { transform: scale(.96); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: var(--r-1);
  font-size: 15px; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: rgb(18 18 17 / .14); box-shadow: var(--hi), 0 1px 2px rgb(18 18 17 / .12); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--hi), 0 6px 16px -6px rgb(80 100 0 / .45); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgb(18 18 17 / .5); }
.btn--line { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-1); }
.btn--line:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn[aria-busy="true"] { color: transparent; position: relative; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-accent); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .i { transition: transform var(--dur) var(--ease); }
.btn:hover .i-arrow { transform: translateX(2px); }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color var(--dur); }
.textlink:hover { border-color: var(--ink); }
.textlink .i { transition: transform var(--dur) var(--ease); }
.textlink:hover .i { transform: translateX(2px); }
.kbd { font: 500 11px/1 var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; color: var(--ink-3); background: var(--surface); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px; font: 500 11.5px/1 var(--font); white-space: nowrap; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip--draft { color: var(--ink-3); background: transparent; border-style: dashed; }
.chip--sent { color: var(--ink-2); }
.chip--opened { color: var(--ink); border-color: var(--line-2); }
.chip--paid { color: var(--accent-ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-ink) 25%, transparent); }
.chip--overdue { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.chip--plain::before { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 5.5vw, 80px); position: relative; }
.announce { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--sh-1); margin-bottom: var(--s-6); transition: border-color var(--dur); }
.announce:hover { border-color: var(--line-2); }
.announce .tag { font: 500 11px/1 var(--mono); background: var(--ink); color: var(--bg); padding: 5px 7px; border-radius: 999px; }
.announce .i { color: var(--ink-3); }
.hero h1 {
  font-size: var(--t-hero); line-height: .96; letter-spacing: var(--track-display); font-weight: 600;
  text-wrap: balance; max-width: 12ch;
}
.hero h1 .soft { color: var(--ink-3); display: block; }
.hero h1 .w { display: inline-block; }
.hero-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: var(--s-6); align-items: end; }
.hero-row .lede { grid-column: 1 / 6; }
.hero-cta { grid-column: 7 / 13; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); justify-content: flex-end; }
.hero-cta .fine { flex-basis: 100%; text-align: right; font-size: var(--t-xs); color: var(--ink-3); }

.stage { position: relative; margin-top: clamp(40px, 4.5vw, 64px); }
.stage::before {
  content: ""; position: absolute; inset: 72px 0 0; background: var(--bg-tint);
  border-top: 1px solid var(--line);
}
.stage .wrap { position: relative; }
.stage-cap { position: relative; display: flex; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-5) var(--s-7); font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- the app window (hero visual) ---------- */
.window {
  background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-3), 0 0 0 1px var(--line);
  overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--ink);
}
.win-bar { display: flex; align-items: center; gap: var(--s-4); height: 44px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-crumb { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.win-crumb b { color: var(--ink); font-weight: 550; }
.win-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 220px; height: 28px; padding: 0 6px 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-3); font-size: 12px; background: var(--bg); }
.win-search .kbd { margin-left: auto; font-size: 10px; padding: 2px 4px; }
.app { display: grid; grid-template-columns: 196px minmax(0, 1fr) 292px; min-height: 520px; }
.side { border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.ws { display: flex; align-items: center; gap: 9px; padding: 6px 8px 12px; font-weight: 600; font-size: 13px; }
.ws .av { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.side a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); font-size: 13px; }
.side a .i { width: 15px; height: 15px; color: var(--ink-3); }
.side a .ct { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.side a.on { background: var(--surface); color: var(--ink); font-weight: 550; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.side a.on .i { color: var(--ink); }
.side .gap { flex: 1; }
.side .sep { height: 1px; background: var(--line); margin: 8px 8px; }
.side .lbl { font: 500 10.5px/1 var(--mono); color: var(--ink-3); padding: 10px 8px 6px; letter-spacing: .02em; }
.main { padding: 18px 22px 8px; min-width: 0; }
.main-top { display: flex; align-items: center; gap: 12px; }
.main-top h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.main-top .btn { --h: 30px; padding: 0 10px; font-size: 12.5px; margin-left: auto; gap: 8px; border-radius: 6px; }
.main-top .btn .kbd { background: transparent; border-color: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--bg); padding: 2px 4px; font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat { padding: 12px 14px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { font-size: 11.5px; color: var(--ink-3); }
.stat dd { font: 550 21px/1.2 var(--font); letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat dd .c { color: var(--ink-3); font-size: .7em; }
.stat dd small { font: 400 11px var(--font); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.stat.is-live dd { color: var(--ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.tabs span { padding: 7px 9px; font-size: 12px; color: var(--ink-3); border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tabs span b { font: 500 10.5px var(--mono); margin-left: 4px; color: var(--ink-3); }
.tabs span.on { color: var(--ink); border-color: var(--ink); font-weight: 550; }
.inv { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.inv th { text-align: left; font-weight: 500; font-size: 11px; color: var(--ink-3); padding: 9px 8px; border-bottom: 1px solid var(--line); }
.inv td { padding: 0 8px; height: 40px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.inv tr:last-child td { border-bottom: 0; }
.inv .r { text-align: right; }
.inv .no { font-family: var(--mono); color: var(--ink-3); font-size: 11.5px; }
.inv .cl { font-weight: 500; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.inv .dt { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.inv .money { font-size: 12.5px; }
.inv tr.sel td { background: var(--surface-2); }
.inv tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--ink); }
.inv tr.is-new td { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.inv .from { font: 400 11px var(--font); color: var(--ink-3); margin-left: 6px; }
.detail { border-left: 1px solid var(--line); padding: 18px 18px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.detail-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.detail-top .kicker { font-size: 11px; }
.detail-top h4 { font-size: 14px; font-weight: 600; margin-top: 2px; }
.detail .big { font: 550 30px/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.detail .big .c { color: var(--ink-3); font-size: .62em; }
.detail .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.rail { position: relative; display: grid; gap: 12px; padding-left: 20px; }
.rail::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.rail li { position: relative; font-size: 12px; }
.rail li::before { content: ""; position: absolute; left: -20px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink-3); box-sizing: border-box; }
.rail li.done::before { background: var(--ink); border-color: var(--ink); }
.rail li.paid::before { background: var(--accent); border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.rail li b { font-weight: 550; display: block; }
.rail li span { color: var(--ink-3); font: 400 11px var(--mono); }
.detail .mini { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.detail .mini div { display: flex; justify-content: space-between; gap: 8px; }
.detail .mini .money { font-size: 11.5px; color: var(--ink); }

/* ---------- feature: hours to lines ---------- */
.ht { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; }
.card { background: var(--surface); border-radius: var(--r-2); box-shadow: var(--sh-2), 0 0 0 1px var(--line); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.card-head b { font-weight: 600; }
.card-head span { color: var(--ink-3); font-size: 12px; }
.ts { font-size: 13px; }
.ts li { display: grid; grid-template-columns: 22px 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease); }
.ts li:last-child { border-bottom: 0; }
.ts .who { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.ts .d { font: 400 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.ts .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts .h { font: 500 12.5px var(--mono); }
.ts li.is-hot { background: var(--accent-soft); }
.ht-arrow { display: grid; place-items: center; color: var(--ink-3); }
.ht-arrow svg { width: 28px; height: 28px; }
.lines { font-size: 13px; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lines .q { font: 400 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.lines .tot { border-bottom: 0; padding-top: 8px; padding-bottom: 6px; color: var(--ink-3); font-size: 12px; }
.lines .grand { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 600; font-size: 14px; padding-block: 14px; }
.lines .grand .money { font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: var(--s-8); }
.facts li { border-top: 1px solid var(--line-2); padding-top: var(--s-4); }
.facts h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.facts p { font-size: var(--t-sm); color: var(--ink-2); max-width: 34ch; }

/* ---------- the band: follow-up story ---------- */
.band { background: var(--band); color: var(--band-ink); --line: var(--band-line); }
.band .note { color: var(--band-ink-2); }
.band .note::before { background: var(--band-ink); }
.band .note b { color: var(--band-ink); }
.band .lede, .band .body { color: var(--band-ink-2); }
.sec.band + .sec { border-top: 0; }
.story { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: var(--s-8); }
.story-pin { grid-column: 1 / 6; position: sticky; top: 112px; align-self: start; }
.story-steps { grid-column: 7 / 11; }
.step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-6); border-top: 1px solid var(--band-line); transition: opacity .4s var(--ease); }
.m .step { opacity: .38; }
.step:first-child { border-top: 0; }
.m .step.is-on { opacity: 1; }
.step .kicker { color: var(--band-ink-2); margin-bottom: 10px; }
.step h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--band-ink-2); font-size: 16px; max-width: 40ch; }

.inv-card { background: #fbfbf8; color: #121211; border-radius: var(--r-3); box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 30px 60px -20px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .06); overflow: hidden; font-size: 13px; }
:root[data-theme="dark"] .inv-card { background: #202020; color: #f2f2ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inv-card { background: #202020; color: #f2f2ee; } }
.inv-card { --ic-line: rgb(127 127 120 / .22); --ic-3: color-mix(in srgb, currentColor 58%, transparent); }
.ic-top { display: flex; justify-content: space-between; align-items: start; padding: 20px 22px 18px; border-bottom: 1px solid var(--ic-line); }
.ic-top .kicker { color: var(--ic-3); font-size: 11.5px; }
.ic-top h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.ic-due { padding: 18px 22px; border-bottom: 1px solid var(--ic-line); display: flex; justify-content: space-between; align-items: end; }
.ic-due dt { font-size: 11.5px; color: var(--ic-3); }
.ic-due dd { font: 550 38px/1 var(--font); letter-spacing: -0.045em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ic-due dd .c { font-size: .6em; color: var(--ic-3); }
.ic-due .of { font-size: 12px; color: var(--ic-3); text-align: right; }
.sched { padding: 8px 22px 14px; }
.sched li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ic-line); transition: color .3s; }
.sched li:last-child { border-bottom: 0; }
.sched .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ic-3); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.sched .dot svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.5; fill: none; opacity: 0; transition: opacity .2s; }
.sched .when { font: 400 11.5px var(--mono); color: var(--ic-3); }
.sched .what b { font-weight: 550; }
.sched .what span { display: block; font-size: 11.5px; color: var(--ic-3); }
.sched li.done .dot { background: currentColor; border-color: currentColor; }
.sched li.done .dot svg { opacity: 1; stroke: #fbfbf8; }
:root[data-theme="dark"] .sched li.done .dot svg { stroke: #202020; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sched li.done .dot svg { stroke: #202020; } }
.sched li.now .dot { border-color: currentColor; box-shadow: 0 0 0 4px rgb(212 244 79 / .35); background: var(--accent); }
.sched li.paid .dot { background: var(--accent); border-color: #4b6100; }
.sched li.paid .dot svg { opacity: 1; stroke: #121211; }
.sched li.skip .what b { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ic-3); }
.sched li.later { color: var(--ic-3); }
.ic-foot { padding: 12px 22px; border-top: 1px solid var(--ic-line); font-size: 11.5px; color: var(--ic-3); display: flex; justify-content: space-between; gap: 12px; }
.ic-progress { height: 2px; background: var(--ic-line); position: relative; }
.ic-progress i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--accent); transform-origin: left; transition: transform .6s var(--ease); }

/* ---------- bento: records ---------- */
.bento { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--col-gap); }
.cell { background: var(--surface); border-radius: var(--r-2); box-shadow: var(--sh-1), 0 0 0 1px var(--line); padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.cell:hover { box-shadow: var(--sh-2), 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.cell h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.cell > p { font-size: 14.5px; color: var(--ink-2); max-width: 46ch; margin-top: -10px; }
.cell--feed { grid-column: 1 / 7; grid-row: span 2; }
.cell--chart { grid-column: 7 / 11; grid-row: span 2; }
.cell--export { grid-column: 1 / 5; }
.cell--pay { grid-column: 5 / 11; }
.feed { font-size: 13.5px; }
.feed .day { font: 500 11px/1 var(--mono); color: var(--ink-3); padding: 14px 0 8px; letter-spacing: .02em; }
.feed .day:first-child { padding-top: 0; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.feed .ic .i { width: 14px; height: 14px; }
.feed .ic--paid { background: var(--accent); color: #121211; border-color: transparent; }
.feed .t { min-width: 0; }
.feed .t b { font-weight: 550; }
.feed .t span { color: var(--ink-3); }
.feed .tm { font: 400 11.5px var(--mono); color: var(--ink-3); }
.bars { display: grid; gap: 14px; margin-top: auto; }
.bar { display: grid; gap: 6px; font-size: 13px; }
.bar .row { display: flex; justify-content: space-between; gap: 8px; }
.bar .row span:last-child { font-family: var(--mono); color: var(--ink-2); font-size: 12px; }
.bar .track { height: 8px; background: var(--surface-2); border-radius: 2px; position: relative; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--ink-3); border-radius: 2px; transform-origin: left; }
.bar.is-best .fill { background: var(--accent-ink); }
.bars-avg { font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; }
.bars-avg b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.files { display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: 400 12.5px var(--mono); background: var(--bg); }
.file .i { color: var(--ink-3); width: 15px; height: 15px; }
.file span { margin-left: auto; color: var(--ink-3); font-size: 11px; }
.paypage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pp { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pp .kicker { font-size: 11px; }
.pp .amt { font: 550 28px/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pp .amt .c { font-size: .62em; color: var(--ink-3); }
.pp .fake-btn { height: 34px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 550; font-size: 13px; margin-top: auto; }
.pp .opt { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12.5px; }
.pp .opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pp dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12px; }
.pp dt { color: var(--ink-3); }
.pp dd { font-family: var(--mono); font-size: 11.5px; text-align: right; }

/* ---------- plans list (landing) ---------- */
.planlist { border-top: 1px solid var(--ink); }
.planlist a { display: grid; grid-template-columns: 2fr 4fr 2fr 2fr 24px; gap: var(--col-gap); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color var(--dur), padding var(--dur) var(--ease); }
.planlist a:hover { background: var(--surface); padding-inline: 16px; }
.planlist .nm { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.planlist .ds { color: var(--ink-2); font-size: 15px; }
.planlist .st { font: 400 13px var(--mono); color: var(--ink-3); }
.planlist .pr { font: 550 24px var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; text-align: right; }
.planlist .pr small { font: 400 13px var(--font); color: var(--ink-3); letter-spacing: 0; }
.planlist .i { color: var(--ink-3); transition: transform var(--dur) var(--ease), color var(--dur); }
.planlist a:hover .i { transform: translateX(3px); color: var(--ink); }
.planlist .tag { font: 500 11px var(--mono); color: var(--accent-ink); margin-left: 10px; vertical-align: middle; }
.planlist-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: var(--s-5); font-size: var(--t-xs); color: var(--ink-3); flex-wrap: wrap; }

/* ---------- closing ---------- */
.closing h2 { font-size: var(--t-h1); line-height: .98; letter-spacing: var(--track-display); font-weight: 600; max-width: 14ch; text-wrap: balance; }
.closing .row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-top: var(--s-7); }
.closing .fine { font-size: var(--t-xs); color: var(--ink-3); margin-left: var(--s-2); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: var(--s-9) var(--s-6); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-7); }
.foot-brand { grid-column: 1 / 5; display: grid; gap: var(--s-4); align-content: start; }
.foot-brand p { color: var(--ink-3); max-width: 34ch; }
.foot-col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.foot-col:first-of-type { grid-column: 7 / 9; }
.foot-col h2 { font: 500 var(--t-2xs)/1.4 var(--mono); color: var(--ink-3); margin-bottom: 4px; letter-spacing: .02em; }
.foot-col a { color: var(--ink-2); width: fit-content; }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding-top: clamp(56px, 8vw, 112px); padding-bottom: var(--s-8); }
.page-head h1 { font-size: var(--t-h1); line-height: .98; letter-spacing: var(--track-display); font-weight: 600; max-width: 14ch; text-wrap: balance; }
.page-head .lede { margin-top: var(--s-5); }
.page-head .sec-body { display: grid; gap: 0; }

/* ---------- pricing ---------- */
.switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); margin-top: var(--s-6); position: relative; width: fit-content; }
.switch button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border: 0; background: none; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; transition: color var(--dur); }
.switch button[aria-pressed="true"] { color: var(--ink); }
.switch .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 6px; background: var(--surface); box-shadow: var(--sh-1), 0 0 0 1px var(--line); transition: transform .32s var(--ease), width .32s var(--ease); }
.switch .save { font: 500 11px var(--mono); color: var(--accent-ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.plan { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan--lead { background: var(--bg); box-shadow: inset 0 3px 0 var(--accent); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-name > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.seats { font: 400 12px var(--mono); color: var(--ink-3); }
.plan-name h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.plan-name .flag { font: 500 11px/1 var(--mono); color: var(--on-accent); background: var(--accent); padding: 5px 7px; border-radius: 4px; }
.plan .for { color: var(--ink-2); font-size: 15px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amt { font: 600 60px/1 var(--font); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; display: inline-block; }
.price .per { color: var(--ink-3); font-size: 14px; }
.billed { font-size: 13px; color: var(--ink-3); margin-top: -10px; min-height: 1.4em; }
.plan .btn { width: 100%; }
.plan ul { display: grid; gap: 10px; font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 20px; }
.plan li { display: flex; gap: 10px; align-items: start; color: var(--ink-2); }
.plan li .i { width: 16px; height: 16px; margin-top: 3px; color: var(--ink); }
.plan li:first-child { color: var(--ink); font-weight: 500; }
.price-note { margin-top: var(--s-5); font-size: var(--t-xs); color: var(--ink-3); }

.matrix-wrap { overflow-x: auto; contain: paint; border-top: 1px solid var(--ink); -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.matrix thead th { background: transparent; text-align: left; font-weight: 600; font-size: 15px; padding: 18px 12px; border-bottom: 1px solid var(--line); z-index: 1; }
.matrix thead th:first-child { padding-left: 0; }
.matrix thead th span { display: block; font: 400 12px var(--mono); color: var(--ink-3); margin-top: 2px; }
.matrix th[scope="row"] { text-align: left; font-weight: 400; color: var(--ink-2); padding: 14px 12px 14px 0; }
.matrix td { padding: 14px 12px; border-bottom: 1px solid var(--line); width: 20%; }
.matrix tbody th { border-bottom: 1px solid var(--line); }
.matrix .grp th { text-align: left; font: 500 var(--t-2xs)/1 var(--mono); color: var(--ink-3); padding: 28px 0 10px; letter-spacing: .02em; border-bottom: 1px solid var(--line-2); }
.matrix .yes .i { width: 17px; height: 17px; color: var(--ink); }
.matrix .no { color: var(--ink-3); }
.matrix td.v { font-family: var(--mono); font-size: 13.5px; }
.matrix .lead { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.matrix thead th.lead { box-shadow: inset 0 2px 0 var(--accent); }
.matrix .grp th { background: transparent; }
.scroll-hint { display: none; font-size: 12px; color: var(--ink-3); margin-top: 10px; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 550; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq summary:hover .i { color: var(--ink); }
.faq .ans { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }
.faq .ans p + p { margin-top: 10px; }

/* ---------- changelog ---------- */
.subscribe { display: flex; gap: 8px; margin-top: var(--s-6); max-width: 460px; flex-wrap: wrap; }
.subscribe .field { flex: 1 1 240px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input { height: 44px; width: 100%; padding: 0 14px; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; box-shadow: inset 0 1px 1px rgb(18 18 17 / .04); transition: border-color var(--dur), box-shadow var(--dur); }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.input[aria-invalid="true"] { border-color: var(--warn); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--warn-soft); }
.error { font-size: 13px; color: var(--warn); display: flex; gap: 6px; align-items: center; }
.ok-msg { font-size: 13.5px; color: var(--accent-ink); display: flex; gap: 8px; align-items: center; }
.ok-msg[hidden], .error[hidden] { display: none; }

.release { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: var(--s-9); border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 1px solid var(--ink); }
.rel-meta { grid-column: 1 / 3; align-self: start; position: sticky; top: 100px; display: grid; gap: 6px; }
.rel-meta time { font: 500 13px var(--mono); color: var(--ink); }
.rel-meta .ver { font: 400 12px var(--mono); color: var(--ink-3); }
.rel-body { grid-column: 3 / 11; min-width: 0; }
.rel-body .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.rel-body h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; letter-spacing: var(--track-h2); font-weight: 600; text-wrap: balance; max-width: 22ch; }
.prose { margin-top: var(--s-5); color: var(--ink-2); max-width: 66ch; }
.prose > * + * { margin-top: 16px; }
.prose h3 { color: var(--ink); font-size: 17px; font-weight: 600; margin-top: 32px; letter-spacing: -0.01em; }
.prose ol, .prose ul { padding-left: 0; display: grid; gap: 10px; }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; }
.prose ol li::before { content: counter(n, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--ink-3); }
.prose ul li { display: grid; grid-template-columns: 20px 1fr; }
.prose ul li::before { content: ""; width: 8px; height: 1px; background: var(--ink-3); margin-top: .8em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font: 400 .86em var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.code { border-radius: var(--r-2); background: #131312; color: #e8e8e2; box-shadow: var(--sh-2); overflow: hidden; margin-top: 24px; max-width: 72ch; }
:root[data-theme="dark"] .code { box-shadow: 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .code { box-shadow: 0 0 0 1px var(--line); } }
.code-head { gap: 12px; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid #2a2a27; font: 400 12px var(--mono); color: #a3a39b; }
.code-head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { flex: none; display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 10px; border-radius: 5px; border: 1px solid #34342f; background: #1c1c1a; color: #d6d6cf; font: 500 12px var(--font); transition: border-color var(--dur), color var(--dur); }
.copy:hover { border-color: #5a5a52; color: #fff; }
.copy .i { width: 13px; height: 13px; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13px/1.65 var(--mono); }
.code .k { color: #d4f44f; } .code .s { color: #c9c9bf; } .code .c2 { color: #7b7b73; } .code .n { color: #f2f2ee; }
.callout { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); font-size: 15px; max-width: 66ch; }
.callout .i { margin-top: 3px; color: var(--ink); }
.callout b { color: var(--ink); }
.shot { margin-top: 28px; max-width: 640px; }
.shot figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.older { padding-block: var(--s-9); border-top: 1px solid var(--line); }
.older ul { grid-column: 3 / 11; }
.older li a { display: grid; grid-template-columns: 120px 80px 1fr 20px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: padding var(--dur) var(--ease); }
.older li a:hover { padding-left: 8px; }
.older time, .older .ver { font: 400 12.5px var(--mono); color: var(--ink-3); }
.older .i { color: var(--ink-3); }

/* ---------- sign in ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; padding-block: var(--s-9); }
.auth-form { grid-column: 1 / 6; display: grid; gap: var(--s-5); max-width: 420px; }
.auth-form h1 { font-size: clamp(36px, 3.8vw, 52px); line-height: 1; letter-spacing: var(--track-display); font-weight: 600; }
.auth-form .lede { font-size: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.seg button { height: 34px; border: 0; background: none; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .btn { width: 100%; }
.auth-form .fine { font-size: 13px; color: var(--ink-3); }
.auth-form .fine a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 13px; color: var(--ink-3); }
.label-row a:hover { color: var(--ink); }
.auth-side { grid-column: 7 / 13; position: relative; }
.auth-side .card { max-width: 480px; margin-left: auto; }
.auth-side .cap { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; max-width: 480px; margin-left: auto; }
.month { padding: 22px; display: grid; gap: 18px; }
.month .big { font: 600 48px/1 var(--font); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.month .big .c { font-size: .55em; color: var(--ink-3); }
.spark { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 72px; }
.spark i { background: var(--line-2); border-radius: 1px; display: block; }
.spark i.hi { background: var(--accent-ink); }

/* ---------- reveal (JS only adds .m) ---------- */
.m [data-rv] { opacity: 0; transform: translateY(18px); }
.m .hero h1 .w, .m .page-head h1 .w { opacity: 0; transform: translateY(.35em); }
.page-head h1 .w, .hero h1 .w { display: inline-block; }
.m [data-rv-hero] { opacity: 0; transform: translateY(12px); }
.m .stage .window { opacity: 0; transform: translateY(40px) scale(.985); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .app { grid-template-columns: 180px minmax(0, 1fr); }
  .detail { display: none; }
}
@media (max-width: 960px) {
  .nav, .head-end .link, .head-end .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: var(--sh-2); }
  .mobile-nav.is-open { display: grid; gap: 2px; }
  .mobile-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 14px; }
  .note, .sec-body { grid-column: 1 / -1; }
  .note { margin-bottom: var(--s-6); }
  .sec-head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-7); }
  .sec-head .h2, .sec-head .lede { grid-column: 1 / -1; }
  .hero-row .lede { grid-column: 1 / -1; }
  .hero-cta { grid-column: 1 / -1; justify-content: flex-start; margin-top: var(--s-6); }
  .hero-cta .fine { text-align: left; }
  .story { grid-template-columns: 1fr; }
  .story-pin { grid-column: 1; position: relative; top: 0; }
  .story-steps { grid-column: 1; margin-top: var(--s-6); }
  .step, .m .step { min-height: 0; padding-block: var(--s-6); opacity: 1; }
  .bento { grid-template-columns: 1fr; }
  .cell--feed, .cell--chart, .cell--export, .cell--pay { grid-column: 1; grid-row: auto; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .rel-meta { grid-column: 1 / -1; position: static; display: flex; gap: 12px; margin-bottom: var(--s-4); }
  .rel-body, .older ul { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; gap: var(--s-8); }
  .auth-form, .auth-side { grid-column: 1; }
  .auth-side .card, .auth-side .cap { margin-left: 0; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col, .foot-col:first-of-type { grid-column: span 4; }
}
@media (max-width: 760px) {
  :root { --t-body: 16px; }
  .side { display: none; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .win-search { display: none; }
  .main { padding: 14px 14px 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { display: none; }
  .stat dd { font-size: 17px; }
  .inv .c-issued, .inv .c-due, .inv .c-no { display: none; }
  .inv .cl { max-width: 120px; }
  .inv .from { display: none; }
  .tabs span:nth-child(n+4) { display: none; }
  .ht { grid-template-columns: 1fr; }
  .ht-arrow { padding: 12px 0; transform: rotate(90deg); }
  .facts { grid-template-columns: 1fr; gap: var(--s-5); }
  .paypage { grid-template-columns: 1fr; }
  .planlist a { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; }
  .planlist .ds { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .planlist .st { grid-column: 1 / -1; grid-row: 3; }
  .planlist .pr { grid-row: 1; grid-column: 2; }
  .planlist .i { display: none; }
  .stage-cap { flex-direction: column; gap: 4px; }
  .stage::before { inset: 40px 0 0; }
  .older li a { grid-template-columns: 1fr 20px; gap: 2px 12px; }
  .older time { grid-row: 1; } .older .ver { display: none; } .older li a span.t { grid-column: 1; } .older li a .i { grid-row: 1 / 3; grid-column: 2; }
  .scroll-hint { display: block; }
  .sched li { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; }
  .ic-due dd { font-size: 28px; }
  .foot-col, .foot-col:first-of-type { grid-column: span 6; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .inv .cl { max-width: 118px; }
  .stat { padding: 10px 12px; }
  .stat dd small { display: none; }
  .main-top .chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .step { opacity: 1; }
}
