/* Sparebyte website. Plain CSS, no build step.
   Radius rule: interactive controls are pills, page surfaces are 20px,
   recreated app UI uses macOS radii (in em, so it scales with its window). */

/* ---------- Fonts: Geist and Geist Mono, self-hosted (SIL OFL 1.1, see assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --bg-2: #eaecf0;
  --surface: #fcfcfd;
  --ink: #101216;
  --ink-2: #464b55;
  --ink-3: #626874;
  --line: rgba(16, 18, 22, .1);
  --line-2: rgba(16, 18, 22, .17);
  --room: #0e7a3a;            /* text green: "space you get back" */
  --room-fill: #34c759;
  --room-soft: #e1f4e6;
  --warn-ink: #7f4b00;
  --warn-soft: #fff0d4;
  --deep: #15171c;            /* the one dark panel, same in both themes */
  --deep-ink: #f2f3f5;
  --deep-ink-2: #a9afba;
  --btn: #101216;
  --btn-ink: #f7f8fa;
  --shadow: 0 1px 2px rgba(22, 28, 40, .06), 0 12px 32px -8px rgba(22, 28, 40, .14);
  --shadow-lg: 0 2px 4px rgba(22, 28, 40, .05), 0 40px 80px -24px rgba(22, 28, 40, .28);
  --focus: #0e7a3a;

  /* Category colors, the same ones the app uses */
  --c-docs: #4f8df9;
  --c-apps: #a98cf7;
  --c-sys: #b9bcc4;
  --c-sys-2: #cdd0d6;
  --c-mac: #7c7f87;
  --c-dev: #ff9f45;
  --c-other: #d4d6dc;

  /* App window recreation */
  --w-card: #ffffff;
  --w-line: rgba(0, 0, 0, .08);
  --w-blue: #0071e3;
  --w-blue-ink: #0b63c7;
  --chip-safe: #e3f6e8;  --chip-safe-ink: #17692e;
  --chip-rev: #fff1d6;   --chip-rev-ink: #7f4b00;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 16px;
  --max: 1200px;
  --radius: 20px;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* Dark tokens: written twice on purpose (system preference, then the manual toggle). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0c0f; --bg-2: #111318; --surface: #16181d;
    --ink: #f2f3f5; --ink-2: #b8bdc7; --ink-3: #8f95a1;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
    --room: #45d483; --room-fill: #30d158; --room-soft: rgba(48, 209, 88, .14);
    --warn-ink: #ffb54a; --warn-soft: rgba(255, 159, 10, .14);
    --deep: #1a1d23; --btn: #f2f3f5; --btn-ink: #101216;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .7);
    --focus: #45d483;
    --c-sys: #5d6068; --c-sys-2: #4b4e55; --c-mac: #8e9199; --c-other: #3a3d44;
    --w-card: #2a2a2d;
    --w-line: rgba(255, 255, 255, .08); --w-blue-ink: #4ea1ff;
    --chip-safe: rgba(48, 209, 88, .18); --chip-safe-ink: #63e08e;
    --chip-rev: rgba(255, 159, 10, .18);  --chip-rev-ink: #ffbf5e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0f; --bg-2: #111318; --surface: #16181d;
  --ink: #f2f3f5; --ink-2: #b8bdc7; --ink-3: #8f95a1;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --room: #45d483; --room-fill: #30d158; --room-soft: rgba(48, 209, 88, .14);
  --warn-ink: #ffb54a; --warn-soft: rgba(255, 159, 10, .14);
  --deep: #1a1d23; --btn: #f2f3f5; --btn-ink: #101216;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .7);
  --focus: #45d483;
  --c-sys: #5d6068; --c-sys-2: #4b4e55; --c-mac: #8e9199; --c-other: #3a3d44;
  --w-card: #2a2a2d;
  --w-line: rgba(255, 255, 255, .08); --w-blue-ink: #4ea1ff;
  --chip-safe: rgba(48, 209, 88, .18); --chip-safe-ink: #63e08e;
  --chip-rev: rgba(255, 159, 10, .18);  --chip-rev-ink: #ffbf5e;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--room); }
::selection { background: var(--room-fill); color: #0b2414; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 11vw, 152px) 0 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--btn); --b-ink: var(--btn-ink); --b-line: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-ink);
  font: 500 16px/1 var(--font); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { box-shadow: 0 8px 24px -10px rgba(16, 18, 22, .45); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn-ghost { --b-bg: transparent; --b-ink: var(--ink); --b-line: var(--line-2); }
.btn-ghost:hover { --b-bg: var(--surface); box-shadow: var(--shadow); }
.btn .tag {
  font-size: 13px; font-weight: 500; padding: 5px 9px; border-radius: 999px;
  background: var(--room-soft); color: var(--room); margin-right: -10px;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.nav {
  display: flex; align-items: center; gap: 8px;
  max-width: 1080px; margin: 0 auto; padding: 6px 6px 6px 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 1px rgba(16, 18, 22, .03), 0 8px 24px -16px rgba(16, 18, 22, .25);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; padding: 6px 4px; margin-right: auto; }
.brand svg { height: 25px; width: auto; }
.nav-links { display: none; gap: 2px; margin: 0 10px 0 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 450; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--line); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.theme-toggle:hover { background: var(--line); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ---------- Hero: Sparebyte as it lives on a Mac desktop ----------
   A recreated desktop: wallpaper, menu bar with Sparebyte's free-space item, its panel, and a notification.
   Day wallpaper in light, night in dark. Copy is never animated, so the h1 stays the LCP. */
.hero {
  --cols: minmax(0, 1fr) 340px 356px; --cg: 24px; --pad: 22px;
  --sky-1: #b9cff2; --sky-2: #d7e1f1; --sky-3: #f2dccb;
  --d1: #e9cdb6; --d2: #ddb99c; --d3: #cfa585;
  --hero-ink-2: #2f333b;
  --mb-bg: rgba(255, 255, 255, .42); --mb-ink: #15171b; --mb-on: rgba(0, 0, 0, .14);
  --mat: rgba(246, 246, 248, .84); --mat-line: rgba(0, 0, 0, .1); --mat-ink: #1d1d1f; --mat-ink-2: #3a3a3f; --mat-mut: #5c5c61;
  --mat-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 22px 56px -14px rgba(36, 44, 74, .38);
  --pop-card: linear-gradient(135deg, #eef4ff, #fafcff); --pop-card-line: #d6e3fb;
  padding: 4px 0 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero {
    --sky-1: #08122a; --sky-2: #13213f; --sky-3: #2a2a44;
    --d1: #1d2a46; --d2: #18223a; --d3: #111a2e;
    --hero-ink-2: #c3c8d2;
    --mb-bg: rgba(12, 16, 28, .45); --mb-ink: #eef0f4; --mb-on: rgba(255, 255, 255, .2);
    --mat: rgba(36, 38, 46, .8); --mat-line: rgba(255, 255, 255, .12); --mat-ink: #f5f5f7; --mat-ink-2: #d4d4d9; --mat-mut: #a8a8ae;
    --mat-shadow: 0 0 0 .5px rgba(0, 0, 0, .5), 0 22px 56px -14px rgba(0, 0, 0, .7);
    --pop-card: linear-gradient(135deg, #1e2a3d, #262a33); --pop-card-line: rgba(78, 161, 255, .25);
  }
}
:root[data-theme="dark"] .hero {
  --sky-1: #08122a; --sky-2: #13213f; --sky-3: #2a2a44;
  --d1: #1d2a46; --d2: #18223a; --d3: #111a2e;
  --hero-ink-2: #c3c8d2;
  --mb-bg: rgba(12, 16, 28, .45); --mb-ink: #eef0f4; --mb-on: rgba(255, 255, 255, .2);
  --mat: rgba(36, 38, 46, .8); --mat-line: rgba(255, 255, 255, .12); --mat-ink: #f5f5f7; --mat-ink-2: #d4d4d9; --mat-mut: #a8a8ae;
  --mat-shadow: 0 0 0 .5px rgba(0, 0, 0, .5), 0 22px 56px -14px rgba(0, 0, 0, .7);
  --pop-card: linear-gradient(135deg, #1e2a3d, #262a33); --pop-card-line: rgba(78, 161, 255, .25);
}
.hero-screen {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  min-height: max(600px, calc(100vh - 92px)); min-height: max(600px, calc(100svh - 92px));
  max-width: 1680px; margin: 0 16px; border-radius: 26px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 1712px) { .hero-screen { margin: 0 auto; } }
.hero-wall { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 42%, var(--sky-3) 72%); }
.hero-wall svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 62%; }
.hero-wall .d1 { fill: var(--d1); }
.hero-wall .d2 { fill: var(--d2); }
.hero-wall .d3 { fill: var(--d3); }
.hero-menubar {
  display: grid; grid-template-columns: var(--cols); column-gap: var(--cg); align-items: center; flex: none;
  height: 32px; padding: 0 var(--pad); background: var(--mb-bg); color: var(--mb-ink);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  font-family: -apple-system, BlinkMacSystemFont, var(--font); font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
}
.hero .mb-left { display: flex; gap: 20px; min-width: 0; overflow: hidden; white-space: nowrap; }
.hero .mb-left b { font-weight: 700; }
.hero .mb-mid { justify-self: center; }
.hero .mb-roomy { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-weight: 600; transition: background-color .25s var(--ease) 1.25s; }
.hero .mb-roomy svg { width: 14px; height: 14px; }
.hero.is-in .mb-roomy, :root:not(.js) .hero .mb-roomy { background: var(--mb-on); }
.hero .mb-right { justify-self: end; display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.hero .mb-batt { width: 25px; height: 12px; }
.hero .mb-wifi { width: 17px; height: 13px; }
.hero .mb-ico { width: 15px; height: 15px; }
.hero-grid { flex: 1; display: grid; grid-template-columns: var(--cols); column-gap: var(--cg); padding: 8px var(--pad) clamp(28px, 4vw, 56px); }
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; max-width: 40rem; padding-left: clamp(4px, 1.6vw, 28px); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); letter-spacing: -.045em; line-height: .98; }
.hero .lede { margin-top: 20px; max-width: 29em; color: var(--hero-ink-2); font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-ghost { --b-bg: color-mix(in srgb, var(--surface) 62%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (max-width: 440px) { .hero .ctas .btn { flex: 1 1 100%; justify-content: center; } }
.hero-scene { grid-column: 2 / -1; grid-row: 1; align-self: start; display: grid; grid-template-columns: 340px 356px; column-gap: var(--cg); align-items: start; }
.hero-note, .hero-pop {
  background: var(--mat); color: var(--mat-ink); border: 1px solid var(--mat-line); box-shadow: var(--mat-shadow);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  font-family: -apple-system, BlinkMacSystemFont, var(--font); letter-spacing: -.01em;
}
@media (prefers-reduced-transparency: reduce) { .hero-note, .hero-pop { background: var(--surface); } }
.hero-pop { grid-column: 1; grid-row: 1; padding: 14px; border-radius: 14px; font-size: 13px; }
.hero-note { grid-column: 2; grid-row: 1; margin-top: 4px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 12px 14px; border-radius: 20px; font-size: 13px; line-height: 1.35; }
.hero .note-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #3d8fff, #1460d4); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 1px 2px rgba(0, 0, 0, .2); }
.hero .note-icon svg { width: 20px; height: 20px; }
.hero .note-top { display: flex; justify-content: space-between; color: var(--mat-mut); font-size: 12px; margin-bottom: 1px; }
.hero .note-top span:first-child { font-weight: 600; }
.hero .note-pro { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em; margin-left: 4px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px; color: #fff; background: #1460d4; }
.hero-note b { display: block; font-weight: 650; }
.hero-note p { color: var(--mat-ink-2); }
.hero .pop-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hero .pop-lbl { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mat-mut); }
.hero .pop-big { font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; }
.hero .pop-big small { font-size: 12.5px; font-weight: 500; color: var(--mat-mut); letter-spacing: 0; margin-left: 5px; }
.hero .pop-pill { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: var(--chip-rev); color: var(--chip-rev-ink); }
.hero .pop-bar { display: flex; gap: 2px; height: 9px; margin: 12px 0; border-radius: 4px; overflow: hidden; }
.hero .pop-bar i { display: block; }
.hero .pop-free { background: var(--w-card); box-shadow: inset 0 0 0 1px var(--w-line); }
.hero .pop-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--pop-card); border: 1px solid var(--pop-card-line); }
.hero .pop-k { font-size: 12px; font-weight: 600; color: var(--w-blue-ink); }
.hero .pop-v { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hero .pop-btn { padding: 5px 12px; border-radius: 7px; background: var(--w-blue); color: #fff; font-weight: 550; font-size: 12.5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.hero .pop-li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 2px; }
.hero .pop-li span { color: var(--mat-mut); }
.hero .pop-li b { font-weight: 600; }
.hero .pop-li b.is-warn { color: var(--warn-ink); }
.hero .pop-foot { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 10px 2px 0; border-top: 1px solid var(--mat-line); color: var(--w-blue-ink); font-weight: 550; font-size: 12.5px; }
.hero .pop-foot svg { width: 15px; height: 15px; margin-left: auto; color: var(--mat-mut); }
/* The notification slides in, then the panel drops from the menu bar item. Reduce Motion: both simply sit in place. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .hero-note { opacity: 0; transform: translateX(calc(100% + 48px)); transition: transform .9s cubic-bezier(.16, 1, .3, 1) .45s, opacity .3s linear .45s; }
  .js .hero .hero-pop { opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: 50% 0; transition: opacity .35s var(--ease) 1.3s, transform .5s var(--ease) 1.3s; }
  .js .hero.is-in .hero-note, .js .hero.is-in .hero-pop { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero .mb-roomy { transition: none; } }
@media (max-width: 1180px) {
  .hero { --cols: minmax(0, 1fr) 330px; }
  .hero .mb-mid { grid-column: 2; }
  .hero .mb-right { display: none; }
  .hero-scene { grid-column: 2; grid-template-columns: minmax(0, 1fr); }
  .hero-note { grid-column: 1; grid-row: 1; margin: 4px 0 12px; }
  .hero-pop { grid-column: 1; grid-row: 2; }
}
/* The raccoon (page-mascot, MIT) sits on the dunes at the desktop's bottom right, clear of the copy and the panels.
   One 144 px window onto a 3 × 3 sheet: --x/--y pick the cell (site.js); the centre cell without JS. */
.hero-mascot {
  --x: 1; --y: 1;
  position: absolute; right: clamp(20px, 6vw, 96px); bottom: -6px; z-index: 0;
  width: 144px; height: 144px; overflow: hidden; cursor: pointer; transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.hero-mascot img {
  position: absolute; left: 0; top: 0; width: 300%; height: 300%; max-width: none; pointer-events: none;
  transform: translate(calc(var(--x) * -33.3333%), calc(var(--y) * -33.3333%));
}
/* The other sheet is hidden, not transparent: still laid out, so the lazy image loads before the first click. */
.hero-mascot img + img, .hero-mascot.is-react img:first-child { visibility: hidden; }
.hero-mascot.is-react img + img { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mascot.is-poked { animation: mascot-poke .45s var(--ease); }
}
@keyframes mascot-poke { 18% { transform: scale(1.07, .9); } 100% { transform: none; } }
@media (max-width: 1180px) { .hero-mascot { width: 128px; height: 128px; } }
/* Phone: headline and buttons first, then a simplified scene below them. */
@media (max-width: 767px) {
  .hero { --pad: 14px; }
  .hero-screen { min-height: 0; border-radius: 22px; }
  .hero-menubar { display: flex; justify-content: space-between; }
  .hero .mb-left span { display: none; }
  .hero .mb-right { display: flex; gap: 12px; }
  .hero .mb-right svg { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-top: 28px; padding-bottom: 16px; }
  .hero-copy { grid-row: 1; padding: 0 4px; }
  .hero-scene { grid-column: 1; grid-row: 2; }
  .hero-note { margin: 0 0 10px; }
  .hero .pop-li, .hero .pop-foot { display: none; }
  .hero .pop-card { margin-bottom: 0; }
  .hero-wall svg { height: 40%; }
  /* Phone: it peeks over the notification instead, tucked behind it. */
  .hero-scene { position: relative; margin-top: 44px; }
  .hero-note { position: relative; z-index: 1; }
  .hero-mascot { top: -62px; right: 14px; bottom: auto; width: 88px; height: 88px; }
}

/* ---------- Demo player ---------- */
.player-shell { padding: 8px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background:
    linear-gradient(180deg, #161a21 0%, #0d0f13 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.player .fallback { position: absolute; inset: 0; color: #f2f3f5; overflow: hidden; }
.player .fallback .ring { position: absolute; right: -6%; top: 50%; width: 58%; height: auto; transform: translateY(-50%); opacity: .07; }
.player .fallback .word { position: absolute; left: clamp(20px, 4%, 44px); top: clamp(18px, 5%, 40px); width: clamp(72px, 10%, 120px); height: auto; opacity: .9; }
.player .fallback .cap { position: absolute; left: clamp(20px, 4%, 44px); bottom: clamp(18px, 5%, 40px); right: 20px; font-size: clamp(13px, 1.4vw, 16px); color: rgba(242, 243, 245, .72); }
.play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 8, .45)); color: #f7f8fa; cursor: pointer; font: inherit;
  transition: opacity .4s var(--ease);
}
.play .disc {
  width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(247, 248, 250, .94); color: #101216;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.play .disc svg { width: 34%; height: 34%; margin-left: 8%; }
.play:hover .disc { transform: scale(1.06); box-shadow: 0 24px 60px -10px rgba(0, 0, 0, .7); }
.play:active .disc { transform: scale(.97); }
.play .lbl { font-weight: 500; font-size: clamp(14px, 1.5vw, 17px); padding: 8px 16px; border-radius: 999px; background: rgba(16, 18, 22, .78); }
.play .lbl span { opacity: .7; font-weight: 400; }
@media (max-width: 640px) { .player .fallback .cap { display: none; } }
.player.is-on .play { opacity: 0; pointer-events: none; }
.player-note { margin-top: 14px; color: var(--ink-3); font-size: 15px; text-align: center; min-height: 1.5em; }

/* ---------- Story ---------- */
.story-intro { display: grid; gap: 24px; max-width: 1080px; }
.story-intro h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -.04em; }
.story-intro h2 em { font-style: normal; color: var(--room); }
.story-intro p { color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 58ch; }

.disk { margin-top: clamp(48px, 6vw, 72px); }
.disk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.disk-top strong { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; font-weight: 600; }
.disk-top span { color: var(--ink-3); font-size: 15px; }
.dbar { display: flex; gap: 3px; height: clamp(28px, 4vw, 44px); }
.dbar > i { display: block; border-radius: 6px; flex: var(--f) 1 0; min-width: 3px; transform-origin: left; }
.hatch { background: repeating-linear-gradient(45deg, var(--c-sys) 0 5px, var(--c-sys-2) 5px 10px); }
.free { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.dlegend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.dlegend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--sw); margin-right: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.dlegend li.sys::before { background: repeating-linear-gradient(45deg, var(--c-sys) 0 2px, var(--c-sys-2) 2px 4px); }
.dlegend b { color: var(--ink); font-weight: 600; margin-left: 4px; }

.zoom { position: relative; height: clamp(56px, 8vw, 96px); margin: 10px 0; }
.zoom::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(60.1% 0, 85.8% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-sys) 55%, transparent), color-mix(in srgb, var(--c-sys) 12%, transparent));
  transform-origin: 73% 0;
}
.zoom span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }

.sysbar > i.p-wall { background: var(--room-fill); }
.sysbar > i.p-cache { background: color-mix(in srgb, var(--room-fill) 55%, var(--c-sys)); }
.sysbar > i.p-docker { background: var(--c-dev); }
.sysbar > i.p-app { background: var(--c-mac); }
.sysbar > i.p-misc { background: var(--c-sys); }

.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 4px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.pieces li { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; }
.pieces li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--sw); transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--line); }
.pieces li.hatched::before { background: repeating-linear-gradient(45deg, var(--c-sys) 0 2px, var(--c-sys-2) 2px 4px); }
.pieces b { font-weight: 550; }
.pieces small { grid-column: 2 / -1; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.pieces .gb { font-variant-numeric: tabular-nums; font-weight: 600; }
.pieces li.lead b, .pieces li.lead .gb { color: var(--room); }

@media (prefers-reduced-motion: no-preference) {
  .js .unfold .zoom::before { transform: scaleY(0); opacity: 0; transition: transform .9s var(--ease), opacity .6s var(--ease); }
  .js .unfold .sysbar > i { transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 80ms + 450ms); }
  .js .unfold .pieces li { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms + 900ms); }
  .js .unfold.in .zoom::before { transform: none; opacity: 1; }
  .js .unfold.in .sysbar > i { transform: none; }
  .js .unfold.in .pieces li { opacity: 1; transform: none; }
}

/* Findings table */
.found { margin-top: clamp(64px, 8vw, 104px); display: grid; gap: 40px; }
@media (min-width: 1024px) { .found { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.found-sum h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; }
.found-sum .bignum { display: block; font-size: clamp(4.2rem, 9vw, 6rem); font-weight: 650; letter-spacing: -.045em; line-height: .95; color: var(--room); margin: 18px 0 10px; font-variant-numeric: tabular-nums; }
.found-sum p { color: var(--ink-2); max-width: 36ch; }
.found-sum p + p { margin-top: 14px; }
/* The tables carry their own surface, so row rules run edge to edge and cells hold the inset. */
.ftable, .ctable { border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ftable { width: 100%; font-size: 16px; }
.ftable caption { text-align: left; padding: 18px 22px 0; color: var(--ink-3); font-size: 14px; }
.ftable th, .ftable td { text-align: left; padding: 14px 22px; vertical-align: top; }
.ftable thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); padding-top: 14px; padding-bottom: 10px; }
.ftable tbody tr + tr td, .ftable tbody tr + tr th { border-top: 1px solid var(--line); }
.ftable tbody th { font-weight: 550; }
.ftable tbody th small { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.ftable .gb { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ftable tfoot td { border-top: 1px solid var(--line-2); background: var(--bg-2); border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); font-size: 15px; color: var(--ink-2); }
.ftable tfoot b { color: var(--ink); }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--chip-safe); color: var(--chip-safe-ink); white-space: nowrap; }
.chip.rev { background: var(--chip-rev); color: var(--chip-rev-ink); }
.chip.keep { background: var(--line); color: var(--ink-2); }
@media (max-width: 560px) {
  .ftable th, .ftable td { padding: 12px 14px; }
  .ftable .hide-sm { display: none; }
}

/* ---------- What it finds ---------- */
.finds { display: grid; gap: 16px; }
@media (min-width: 900px) { .finds { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: 28px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 900px) { .panel { padding: 44px; } }
.panel.deep { background: var(--deep); color: var(--deep-ink); border-color: rgba(255, 255, 255, .06); }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.panel > p { margin-top: 10px; color: var(--ink-2); max-width: 44ch; }
.panel.deep > p { color: var(--deep-ink-2); }
.items { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.items li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.items b { font-weight: 550; }
.items small { grid-column: 1; color: var(--ink-3); font-size: 15px; line-height: 1.45; }
.panel.deep .items small { color: var(--deep-ink-2); }
.items .chip { grid-column: 2; grid-row: 1; align-self: start; }
.panel.deep .chip { background: rgba(48, 209, 88, .16); color: #6ee49a; }
.panel.deep .chip.rev { background: rgba(255, 159, 10, .16); color: #ffc46b; }
.panel.deep .chip.keep { background: rgba(255, 255, 255, .1); color: #d5d9e0; }
.panel.deep .mono { color: #c9ced8; }
.panel-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
.panel.deep .panel-foot { border-color: rgba(255, 255, 255, .1); color: var(--deep-ink-2); }

/* ---------- Honest by design (bento) ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento > :nth-child(1) { grid-column: span 7; }
  .bento > :nth-child(2) { grid-column: span 5; }
  .bento > :nth-child(3) { grid-column: span 5; }
  .bento > :nth-child(4) { grid-column: span 7; }
}
.cell { border-radius: 28px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 280px; overflow: hidden; }
@media (min-width: 900px) { .cell { padding: 36px; } }
.cell h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.028em; line-height: 1.15; max-width: 22ch; }
.cell p { color: var(--ink-2); max-width: 46ch; }
.cell.green { background: var(--room-soft); border-color: transparent; }
.cell.green p { color: color-mix(in srgb, var(--ink) 78%, var(--room)); }
.cell.deep { background: var(--deep); color: var(--deep-ink); border-color: transparent; }
.cell.deep p { color: var(--deep-ink-2); }
.cell .viz { margin-top: auto; }

/* mini confirm sheet */
.sheet { background: var(--surface); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 20px; font-size: 15px; }
.sheet h4 { margin: 0 0 12px; font-size: 17px; letter-spacing: -.02em; }
.sheet .grp { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 12px 0 4px; }
.sheet .ln { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sheet .ln span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.sheet .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.sheet .btns span { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; }
.sheet .btns span.go { background: var(--btn); color: var(--btn-ink); border-color: transparent; }

.scale { display: grid; gap: 10px; }
.scale .l1 { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; color: var(--room); font-variant-numeric: tabular-nums; }
.scale .l2 { color: var(--ink-3); font-size: 15px; }
.price-stamp { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.price-stamp small { font-size: .32em; font-weight: 500; letter-spacing: -.01em; color: var(--deep-ink-2); margin-left: 8px; }
.wire { display: grid; gap: 8px; font-size: 15px; }
@media (min-width: 560px) { .wire { grid-template-columns: 1fr 1fr; gap: 24px; } }
.wire h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.wire ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wire li { display: flex; gap: 8px; align-items: baseline; }
.wire li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--room-fill); transform: translateY(-1px); }
.wire .never li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* ---------- Comparison ---------- */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 0 24px; margin-bottom: -24px; border-radius: var(--radius); }
.ctable { width: 100%; min-width: 760px; font-size: 15.5px; }
.ctable th, .ctable td { padding: 16px 18px; text-align: left; vertical-align: top; }
.ctable thead th { font-size: 15px; font-weight: 600; padding-top: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.ctable thead th small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.ctable tbody th { font-weight: 500; color: var(--ink-2); width: 22%; }
.ctable tbody tr + tr > * { border-top: 1px solid var(--line); }
.ctable .us { background: color-mix(in srgb, var(--room-soft) 60%, transparent); }
.ctable thead .us { color: var(--room); }
.ctable .na { color: var(--ink-3); }
.ctable td small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.ctable th:first-child, .ctable td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.ctable thead th:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
.ctable tbody tr:last-child > :first-child { border-bottom-left-radius: calc(var(--radius) - 1px); }
.cnote { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-3); font-size: 14px; }
.owner-flag { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); padding: 2px 10px; border-radius: 999px; font-size: 13px; }

/* ---------- Pricing ---------- */
.ptable-wrap { border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 14px 16px; text-align: left; vertical-align: middle; }
@media (min-width: 768px) { .ptable th, .ptable td { padding: 14px 28px; } }
.ptable thead th { vertical-align: top; padding-top: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.ptable thead th:first-child { width: 52%; }
.ptable .plan { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.ptable .amt { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.ptable .amt s { font-size: .5em; font-weight: 500; color: var(--ink-3); margin-left: 6px; text-decoration-thickness: 1.5px; }
.ptable .sub { display: block; font-size: 14px; font-weight: 400; color: var(--ink-3); margin-bottom: 16px; }
.ptable thead th:first-child h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.03em; max-width: 18ch; }
.ptable thead th:first-child p { margin-top: 10px; font-weight: 400; color: var(--ink-2); font-size: 15.5px; max-width: 36ch; }
.ptable tbody th { font-weight: 450; font-size: 16px; }
.ptable tbody tr + tr > * { border-top: 1px solid var(--line); }
.ptable td { text-align: center; width: 24%; }
.ptable .pro { background: color-mix(in srgb, var(--room-soft) 55%, transparent); }
.yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--room-fill); color: #06210f; }
.yes svg { width: 14px; height: 14px; }
.no { color: var(--ink-3); }
.pfoot { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 16px; background: var(--bg-2); color: var(--ink-2); font-size: 15px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .pfoot { padding: 18px 28px; } }
.checkout-note { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--room); }
@media (max-width: 640px) {
  .ptable thead th:first-child { width: 46%; }
  .ptable thead th:first-child > * { display: none; }
  .ptable th, .ptable td { padding-left: 12px; padding-right: 12px; }
  .ptable td, .ptable thead th:not(:first-child) { width: 27%; padding-left: 6px; padding-right: 6px; }
  .ptable tbody th { font-size: 15px; }
  .ptable thead th { text-align: center; }
  .ptable .amt { font-size: 1.8rem; }
  .ptable .sub, .ptable .checkout-note { font-size: 12.5px; }
  .ptable .btn { padding: 0 12px; font-size: 14px; min-height: 36px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 550; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .a { padding: 0 0 26px; color: var(--ink-2); max-width: 68ch; display: grid; gap: 12px; }
.faq .a ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- Closing + footer ---------- */
.closing { padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 9vw, 120px); text-align: center; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.045em; max-width: 16ch; margin: 0 auto; }
.closing p { margin: 18px auto 0; color: var(--ink-2); max-width: 44ch; }
.closing .ctas { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { margin: 0; }
.foot .brand svg { height: 21px; }
.foot small { font-size: 14px; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- Document pages (legal, support, changelog) ---------- */
.doc { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.042em; }
.doc .lead { margin-top: 18px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
.doc .updated { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.toc { position: sticky; top: 104px; align-self: start; display: none; }
@media (min-width: 1024px) { .toc { display: block; } }
.toc p { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.toc a { display: block; padding: 6px 0 6px 16px; border-left: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.03em; margin: 56px 0 16px; scroll-margin-top: 104px; }
.prose h3 { font-size: 1.15rem; letter-spacing: -.02em; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; letter-spacing: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
.prose .table-wrap table { min-width: 560px; }
.ph { font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); padding: 1px 6px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.draft-banner {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 32px; padding: 16px 20px; border-radius: 16px;
  background: var(--warn-soft); color: var(--warn-ink); font-size: 15.5px; line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--warn-ink) 22%, transparent);
}
.draft-banner strong { font-weight: 650; }
.callout { padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 0 0 20px; }
.callout p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: baseline; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 14px; font-weight: 600; transform: translateY(-2px); }

/* ---------- Download: meta line, install dialog, non-Mac dialog ---------- */
.dl-meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hero .dl-meta { color: var(--hero-ink-2); }
.ptable .dl-meta { margin: 10px 0 0; font-size: 13px; font-weight: 400; line-height: 1.4; max-width: 24ch; }
@media (max-width: 640px) { .ptable .dl-meta { margin-inline: auto; font-size: 12.5px; } }
.btn.is-not-mac .ico { display: none; }
body:has(.dl-dialog[open]) { overflow: hidden; }
.dl-dialog {
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.dl-dialog::backdrop { background: rgba(8, 9, 12, .44); }
.dl-body { display: grid; gap: 22px; padding: 28px; }
.dl-head { display: grid; gap: 8px; }
.dl-head h2 { font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.15; }
.dl-head p { color: var(--ink-2); font-size: 15.5px; }
.dl-steps { display: grid; gap: 12px; margin: 0; font-size: 15.5px; color: var(--ink-2); }
.dl-steps strong { color: var(--ink); font-weight: 600; }
.dl-steps li { grid-template-columns: 28px 1fr; gap: 12px; text-wrap: pretty; }
.dl-steps li::before { width: 24px; height: 24px; font-size: 13px; transform: translateY(-1px); }
.dl-note { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); font-size: 14.5px; line-height: 1.45; }
.dl-note strong { font-weight: 650; }
.dl-copy { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-url {
  flex: 1 1 180px; min-width: 0; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink-2);
  font: 13px/1 var(--mono); letter-spacing: 0;
}
.dl-url:focus-visible { outline-offset: 1px; border-radius: 999px; }
.dl-status { min-height: 1.4em; margin-top: -12px; font-size: 14px; color: var(--room); }
.dl-status:empty { display: none; }
.dl-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3);
}
.dl-foot a { color: var(--ink); }
.dl-foot .btn { margin-left: auto; }
@media (max-width: 480px) { .dl-body { padding: 22px; gap: 20px; } .dl-copy .btn { flex-basis: 100%; justify-content: center; } }
@media (prefers-reduced-motion: no-preference) {
  .dl-dialog[open] { animation: dl-in .36s var(--ease); }
  .dl-dialog[open]::backdrop { animation: dl-fade .36s var(--ease); }
}
@keyframes dl-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes dl-fade { from { opacity: 0; } }

/* changelog */
.release { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 18px; }
.release-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.release-head time { color: var(--ink-3); font-size: 15px; }
.badge { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); }

/* 404 */
.lost { min-height: 70vh; min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 650; letter-spacing: -.06em; line-height: .9; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lost h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035em; margin-top: 18px; }
.lost p { margin: 14px auto 0; color: var(--ink-2); max-width: 40ch; }
.lost .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
}
.no { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: var(--ink-3); vertical-align: middle; opacity: .6; }
