/* Current website. One accent per theme, warm paper, ink, hairlines. Bauhaus shapes as the visual language. */

:root {
  --paper: #F7F5F1;
  --paper-2: #EFECE6;
  --ink: #1C1C1E;
  --ink-2: rgba(28, 28, 30, 0.66);
  --ink-3: rgba(28, 28, 30, 0.44);
  --ink-4: rgba(28, 28, 30, 0.22);
  --line: rgba(28, 28, 30, 0.09);
  --night: #141416;
  --night-2: #1E1E21;
  --success: #3F876B;

  --accent: #CC5C29;
  --accent-ink: #fff;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --g-top: #FFA058;
  --g-bottom: #CF4A19;

  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;

  --text-display: clamp(2.4rem, 4.6vw, 4.25rem);
  --text-h1: clamp(2.1rem, 3.6vw, 3.4rem);
  --text-h2: clamp(1.8rem, 2.8vw, 2.7rem);
  --text-lede: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  --text-body: 1.0625rem;
  --text-label: 0.75rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --pad: clamp(20px, 4vw, 64px);
  --radius: 14px;
}

[data-theme="blue"]     { --accent: #146BF0; --g-top: #52ABFF; --g-bottom: #0A52E0; }
[data-theme="teal"]     { --accent: #0A8C7A; --g-top: #5CE1BE; --g-bottom: #088578; }
[data-theme="indigo"]   { --accent: #6145E6; --g-top: #9985FF; --g-bottom: #4B2DD2; }
[data-theme="graphite"] { --accent: #38383D; --g-top: #666870; --g-bottom: #1B1C20; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--text-body)/1.5 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }

/* ── Type ─────────────────────────────────────────────── */
.overline { font: 500 var(--text-label)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 22px; }
.h1 { font-size: var(--text-h1); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
.h2 { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.num-label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.9rem; color: var(--ink-3); }
.num-label b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; font: 600 0.78rem/1 var(--font); transition: background-color 0.4s var(--ease); }
.num-label--dark { color: rgba(247,245,241,0.5); }
.num-label--center { justify-content: center; }
.lede--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 46ch; text-wrap: balance; }
.h2, .hero__title, .lede { text-wrap: balance; }
.muted { color: var(--ink-3); }
.lede { font-size: var(--text-lede); line-height: 1.5; letter-spacing: -0.012em; color: var(--ink-2); max-width: 40ch; margin: 14px 0 0; }
.small { font-size: 0.9rem; color: var(--ink-3); margin: 0; }

/* ── The mark: a squircle split in two, the newer half lifted ── */
/* The mascot: the split mark with the app's face. Moods are set with data-mood, as in the app (Buddy.swift). */
.buddy { display: block; flex: none; width: 26px; height: auto; overflow: visible; cursor: pointer; --lx: 0px; --ly: 0px; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.buddy--small { width: 18px; }
.buddy--tiny { width: 13px; }
.buddy--price { width: 64px; height: 70px; }
.buddy * { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; transform-box: fill-box; transform-origin: center; }
.buddy__top { fill: var(--accent); }
.buddy__bottom { fill: var(--ink); }
.buddy__white { fill: #fff; stroke: rgba(0, 0, 0, 0.18); stroke-width: 1.5; }
.buddy__pupil circle { fill: #171717; }
.buddy__pupil .buddy__glint { fill: #fff; }
.buddy__pupil { transform: translate(var(--lx), var(--ly)); transition: transform 0.18s ease-out; }
.buddy__brow { fill: #171717; }
.buddy__mouth { fill: none; stroke: var(--paper); stroke-width: 4.5; stroke-linecap: round; opacity: 0; }
.buddy__mouth--o { stroke-width: 4; }
.buddy__grin { fill: var(--paper); opacity: 0; }
.buddy__joy { fill: none; stroke: #fff; stroke-width: 7.5; stroke-linecap: round; opacity: 0; }
.buddy__blush ellipse { fill: #FF7399; opacity: 0; }
.buddy.is-blink .buddy__eye { transform: scaleY(0.08); transition-duration: 0.07s; }
.buddy.is-hop { transform: translateY(-14%); transition-duration: 0.2s; }
.buddy[data-mood="idle"] .buddy__mouth--idle, .buddy[data-mood="curious"] .buddy__mouth--idle { opacity: 1; }
.buddy[data-mood="curious"] .buddy__brow--l { transform: translateY(-5px) rotate(-6deg); }
.buddy[data-mood="curious"] .buddy__brow--r { transform: translateY(-5px) rotate(6deg); }
.buddy[data-mood="surprised"] .buddy__mouth--o { opacity: 1; }
.buddy[data-mood="surprised"] .buddy__eye { transform: scale(1.1); }
.buddy[data-mood="surprised"] .buddy__brow { transform: translateY(-9px); }
/* busy and cross: brows angle down to the middle */
.buddy[data-mood="busy"] .buddy__mouth--flat, .buddy[data-mood="cross"] .buddy__mouth--flat { opacity: 1; }
.buddy[data-mood="busy"] .buddy__brow--l { transform: translateY(2px) rotate(14deg); }
.buddy[data-mood="busy"] .buddy__brow--r { transform: translateY(2px) rotate(-14deg); }
.buddy[data-mood="cross"] .buddy__brow--l { transform: translateY(2px) rotate(22deg); }
.buddy[data-mood="cross"] .buddy__brow--r { transform: translateY(2px) rotate(-22deg); }
.buddy[data-mood="cross"] .buddy__eye { transform: scaleY(0.55); }
/* happy: ^^ eyes, grin, blush */
.buddy[data-mood="happy"] .buddy__eye { opacity: 0; }
.buddy[data-mood="happy"] .buddy__joy, .buddy[data-mood="happy"] .buddy__grin { opacity: 1; }
.buddy[data-mood="happy"] .buddy__blush ellipse { opacity: 0.55; }
.buddy[data-mood="happy"] .buddy__brow--l { transform: translateY(-5px) rotate(-4deg); }
.buddy[data-mood="happy"] .buddy__brow--r { transform: translateY(-5px) rotate(4deg); }
/* sad: brows lift in the middle */
.buddy[data-mood="sad"] .buddy__mouth--sad { opacity: 1; }
.buddy[data-mood="sad"] .buddy__brow--l { transform: translateY(-2px) rotate(-20deg); }
.buddy[data-mood="sad"] .buddy__brow--r { transform: translateY(-2px) rotate(20deg); }
.buddy[data-mood="sad"] .buddy__eye { transform: scaleY(0.85); }
@media (prefers-reduced-motion: reduce) { .buddy, .buddy * { transition: none !important; } }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn--solid:hover { transform: translateY(-1px); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 24px -14px rgba(20,20,22,0.6); }
.btn--ink:hover { transform: translateY(-1px); background: #000; }
.link-quiet { font-size: 0.95rem; color: var(--ink-2); }
.link-quiet:hover { color: var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.btn--small { --h: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* The app's Update button: fills as it works. --p is 0 to 1. */
.pbtn {
  --p: 0; position: relative; display: inline-grid; place-items: center; overflow: hidden; isolation: isolate;
  height: 26px; min-width: 86px; padding: 0 12px; border-radius: 6px;
  background: var(--accent); color: #fff; font: 600 0.78rem/1 var(--font); white-space: nowrap;
  transition: background-color 0.3s var(--ease);
}
.pbtn.is-working { background: var(--accent-soft); color: var(--accent); }
.pbtn.is-working::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); transition: transform 0.18s linear; z-index: -1; }
.pbtn.is-working .pbtn__label { width: 100%; text-align: center; }
.pbtn.is-working .pbtn__label { background: linear-gradient(90deg, #fff calc(var(--p) * 100%), var(--accent) calc(var(--p) * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pbtn--compact { height: 24px; min-width: 76px; font-size: 0.74rem; border-radius: 5px; }
.pbtn--large { height: 64px; width: min(100%, 460px); border-radius: 12px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pbtn.is-done { background: transparent; color: var(--success); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--success) 40%, transparent); }

/* ── Nav: a floating pill ─────────────────────────────── */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.nav__pill {
  pointer-events: auto; display: flex; align-items: center; gap: 22px; height: 50px; padding: 0 7px 0 16px; border-radius: 999px;
  background: color-mix(in oklab, #fff 72%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(20,20,22,0.35);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.04em; }
.nav__links { display: flex; gap: 20px; font-size: 0.88rem; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
[data-theme-set="orange"] { --dot: #CC5C29; } [data-theme-set="blue"] { --dot: #146BF0; } [data-theme-set="teal"] { --dot: #0A8C7A; }
[data-theme-set="indigo"] { --dot: #6145E6; } [data-theme-set="graphite"] { --dot: #38383D; }

/* ── Hero: one sentence, one button ──────────────────── */
.hero { padding: 150px var(--pad) 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: var(--text-display); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; margin: 0; }
.hero__title .accent { color: var(--accent); white-space: nowrap; transition: color 0.4s var(--ease); }
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 13px; margin: 28px 0 14px; }
.hero__ctas .btn { min-width: 188px; }
.hero__meta { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--ink-3); }

/* ── Section scaffolding (rhythm varies on purpose) ──── */
section { position: relative; }
.section-head { padding: 0 var(--pad); max-width: 1100px; }
.section-head--wide { max-width: none; }

/* ── Demo window ─────────────────────────────────────── */
.demo { padding: 10px 0 110px; }
.demo__hint { text-align: center; margin: 0 0 22px; font-size: 0.92rem; color: var(--ink-2); }
.demo__hint span { color: var(--ink-3); }
.window {
  --row: 50px; max-width: 1180px; margin: 0 auto; width: calc(100% - 2 * var(--pad)); background: #FDFCFA; border-radius: 16px; overflow: hidden; font-size: 0.86rem;
  box-shadow: 0 0 0 1px var(--line), 0 50px 120px -50px rgba(20, 20, 22, 0.35), 0 20px 40px -30px rgba(20, 20, 22, 0.2);
}
.window__bar { height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.window__bar b { font-weight: 600; letter-spacing: -0.03em; font-size: 0.98rem; }
.lights { display: inline-flex; gap: 8px; margin-right: 12px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; }
.window__spacer { flex: 1; }
.search { display: inline-flex; align-items: center; gap: 40px; height: 28px; padding: 0 10px; border-radius: 6px; background: rgba(28,28,30,0.045); color: var(--ink-3); }
.search kbd { font: 500 0.72rem var(--mono); }
.ghost-btn { height: 28px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 0.8rem; }
.window__bar [data-update-all] { min-width: 150px; height: 28px; }

.window__strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.cell { position: relative; text-align: left; padding: 18px 20px 16px; border-left: 1px solid var(--line); transition: background-color 0.2s; }
.cell:first-child { border-left: 0; }
.cell:hover { background: rgba(28,28,30,0.02); }
.cell b { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.cell span { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.cell em { font: 400 0.72rem var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-3); margin-left: 6px; }
.cell.is-active::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent); }
.cell.is-active b, .cell[data-tab="updates"] b { color: var(--accent); }
.cell[data-tab="updates"] b[data-zero] { color: var(--ink); }

.window__table { min-height: calc(var(--row) * 8 + 34px); }
.thead, .row { display: grid; grid-template-columns: 34px minmax(160px, 1fr) 100px 110px 84px 150px 92px; align-items: center; gap: 10px; padding: 0 20px; }
.thead { height: 34px; border-bottom: 1px solid var(--line); font: 500 0.64rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.c-size { text-align: right; }
.row { height: var(--row); border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.row:hover { background: rgba(28,28,30,0.018); }
.row.is-picked { background: var(--accent-soft); }
.row.is-leaving { animation: leave 0.6s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(16px); } }
.app { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 500; font-size: 0.92rem; }
.app span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-icon { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; font: 700 0.72rem/1 var(--font); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.12); }
.tool-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--night); color: #9ef0b8; font: 600 0.62rem var(--mono); }
.ver { font: 400 0.82rem/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ver b { color: var(--accent); font-weight: 600; }
.size { font: 400 0.8rem/1 var(--mono); color: var(--ink-2); text-align: right; }
.status { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 0.85rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status.is-current { color: var(--ink-2); }
.status.is-current::before { background: transparent; box-shadow: inset 0 0 0 1.4px var(--success); }
.status.is-managed::before { border-radius: 0; background: rgba(28,28,30,0.55); }
.pick { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ink-4); display: grid; place-items: center; transition: background-color 0.15s, box-shadow 0.15s; }
.pick[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.pick[aria-checked="true"]::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pick[aria-checked="mixed"]::after { content: ""; width: 7px; height: 2px; background: var(--accent); }
.pick:disabled { opacity: 0.35; cursor: default; }
.window__foot { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 0.74rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.window__foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.demo__note { padding: 0 var(--pad); margin: 22px 0 0; font-size: 0.85rem; color: var(--ink-3); }
.empty-state { padding: 60px 40px; color: var(--ink-2); }
.empty-state b { display: block; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 6px; }

/* The demo's own cursor: an arrow while it travels, a hand over what it is about to press. */
.window { position: relative; }
.ghost-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); }
.ghost-cursor.is-on { opacity: 1; }
.ghost-cursor svg { position: absolute; width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(20, 20, 22, 0.28)); transition: opacity 0.12s, transform 0.15s var(--ease); }
.ghost-cursor svg path { fill: #111; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.ghost-cursor__arrow { left: -5px; top: -3px; }
.ghost-cursor__hand { left: -9px; top: -3px; opacity: 0; }
.ghost-cursor__hand path { fill: #fff; stroke: #111; }
.ghost-cursor__hand .ghost-cursor__crease { fill: none; stroke-width: 1.1; stroke-linecap: round; }
.ghost-cursor.is-hand .ghost-cursor__arrow { opacity: 0; }
.ghost-cursor.is-hand .ghost-cursor__hand { opacity: 1; }
.ghost-cursor.is-down svg { transform: scale(0.86); }
.ghost-cursor__ring { position: absolute; left: -18px; top: -18px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px var(--accent); animation: ghost-ring 0.55s var(--ease) forwards; }
@keyframes ghost-ring { from { scale: 0.3; opacity: 0.9; } to { scale: 1.15; opacity: 0; } }

/* ── Verify: an update rides through four checks ─────── */
.verify { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-areas: "head figure" "steps figure"; align-items: start; column-gap: 6vw; padding: 130px var(--pad); background: var(--paper-2); }
.verify__head { grid-area: head; }
.verify__figure { grid-area: figure; position: sticky; top: 90px; margin: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); overflow: hidden; }
.verify__stage { --hairline-plate: var(--paper); --hairline-hi: var(--accent); --hairline-edge: #ABA59B; --hairline-mid: #CBC6BD; --hairline-lo: #E3DED5; --hairline-stroke: 1.05; }
.verify__tags { position: absolute; inset: 18px 22px auto; display: flex; justify-content: space-between; font: 500 0.78rem/1 var(--mono); color: var(--ink-3); pointer-events: none; }
.verify__tags span:last-child { color: var(--accent); }
.verify__steps { grid-area: steps; list-style: none; margin: 44px 0 0; padding: 0; }
.verify__steps li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); cursor: default; transition: border-color 0.4s var(--ease); }
.verify__steps li.is-on { border-top-color: var(--accent); }
.verify__steps .num { font: 500 0.9rem/1.6 var(--mono); color: var(--ink-3); transition: color 0.4s var(--ease); }
.verify__steps li.is-on .num { color: var(--accent); }
.verify__steps h3 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -0.025em; font-weight: 600; }
.verify__steps p { margin: 0; color: var(--ink-2); max-width: 40ch; }

/* ── Where updates come from: three numbers, four sources ── */
.sources { padding: 120px var(--pad) 110px; max-width: 1180px; margin: 0 auto; }
.sources .section-head { padding: 0; margin-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.stat-cell { padding: 30px 0 28px; }
.stat-cell + .stat-cell { padding-left: 32px; border-left: 1px solid var(--line); }
.stat-cell b { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--accent); transition: color 0.4s var(--ease); }
.stat-cell span { display: block; margin-top: 10px; color: var(--ink-2); }
.sources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.source { padding: 24px; border-radius: var(--radius); background: #FDFCFA; box-shadow: 0 0 0 1px var(--line); }
.source h3 { margin: 20px 0 6px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.source p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(28, 28, 30, 0.05); }
.logo img { display: block; width: 26px; height: 26px; }
.logo img[src$=".png"] { width: 34px; height: 34px; }
.logo img[src$="electron.svg"] { width: 31px; height: 31px; }
.sources-grid .reveal:nth-child(2) { transition-delay: 0.06s; } .sources-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.sources-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ── Terminal (full-bleed dark) ──────────────────────── */
.terminal-section { background: var(--night); color: var(--paper); padding: 120px var(--pad); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; align-items: center; }
.terminal-section .overline { color: rgba(247,245,241,0.45); }
.lede--dark { color: rgba(247,245,241,0.7); margin-top: 18px; }
.note { margin: 26px 0 0; padding-left: 16px; border-left: 2px solid var(--accent); color: rgba(247,245,241,0.55); font-size: 0.92rem; max-width: 42ch; }
.note--plain { border-left: 0; padding-left: 0; margin-top: 14px; }
.note code { font: 500 0.88em var(--mono); color: rgba(247,245,241,0.85); }
.terminal { border-radius: 14px; background: var(--night-2); box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 40px 100px -40px rgba(0,0,0,0.8); overflow: hidden; }
.terminal__bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.06); font: 500 0.75rem var(--mono); color: rgba(247,245,241,0.4); }
.terminal__body { margin: 0; padding: 22px 24px 26px; min-height: 380px; font: 400 0.86rem/1.75 var(--mono); color: rgba(247,245,241,0.86); white-space: pre; overflow-x: auto; }
.terminal__body .t-prompt { color: color-mix(in oklab, var(--accent) 70%, white); }
.terminal__body .t-dim { color: rgba(247,245,241,0.38); }
.terminal__body .t-new { color: #9ef0b8; }
.terminal__body .t-caret { display: inline-block; width: 8px; height: 1.05em; background: rgba(247,245,241,0.75); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Hands off ───────────────────────────────────────── */
.handsoff { padding: 40px var(--pad) 120px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6vw; align-items: start; max-width: 1180px; margin: 0 auto; }
.handsoff__body .lede { margin-top: 0; }
.chips { list-style: none; padding: 0; margin: 24px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.chips .sq { width: 8px; height: 8px; background: rgba(28,28,30,0.55); }

/* ── Menu bar ────────────────────────────────────────── */
.menubar { padding: 120px var(--pad); max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 6px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.ticks b { color: var(--ink); font-weight: 600; }
.menubar__scene { position: relative; height: 460px; border-radius: 22px; overflow: hidden; background: linear-gradient(150deg, var(--g-top), var(--g-bottom)); box-shadow: 0 40px 100px -50px color-mix(in oklab, var(--accent) 70%, transparent); transition: background 0.5s var(--ease); }
.mb-bar { height: 30px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: rgba(20,20,22,0.28); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; font-size: 0.8rem; font-weight: 500; }
.mb-item { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,0.22); margin-left: auto; font-variant-numeric: tabular-nums; }
.mb-item .buddy__bottom { fill: #2a2a2e; }
.mb-fill { width: 120px; }
.mb-panel { position: absolute; right: 120px; top: 40px; width: 300px; padding: 16px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45); }
.mb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mb-count { display: block; font-size: 2.2rem; font-weight: 500; letter-spacing: -0.05em; color: var(--accent); line-height: 1; }
.mb-caption { display: block; margin: 6px 0 10px; font: 500 0.62rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.mb-list { list-style: none; margin: 0; padding: 0; }
.mb-list li { display: flex; align-items: center; gap: 9px; height: 34px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.mb-list .tile-icon { width: 20px; height: 20px; border-radius: 5px; font-size: 0.6rem; }
.mb-list .ver { margin-left: auto; font-size: 0.72rem; }
.mb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 0.8rem; }

/* ── Themes ──────────────────────────────────────────── */
.themes { padding: 110px var(--pad); background: var(--paper-2); text-align: center; }
.themes .lede { margin: 14px auto 48px; }
.icons { display: flex; justify-content: center; gap: clamp(14px, 3vw, 48px); flex-wrap: wrap; }
.icons button { display: grid; gap: 12px; justify-items: center; font-size: 0.85rem; color: var(--ink-3); transition: transform 0.4s var(--ease); }
.icons img { width: clamp(64px, 7vw, 96px); height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.16)); transition: transform 0.5s var(--ease); }
.icons button:hover img { transform: translateY(-8px) rotate(-3deg); }
.icons [aria-checked="true"] { color: var(--ink); font-weight: 600; }
.icons [aria-checked="true"] img { transform: translateY(-12px) scale(1.06); }

/* ── Pricing ─────────────────────────────────────────── */
.pricing { padding: 110px var(--pad) 90px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing .price-card { margin-top: 32px; width: min(100%, 420px); text-align: left; }
.price-card { padding: 32px; border-radius: 22px; background: #FDFCFA; box-shadow: 0 0 0 1px var(--line), 0 40px 100px -60px rgba(20,20,22,0.4); }
.price-card__top { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.price { display: block; font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price s { font-size: 1.6rem; color: var(--ink-4); font-weight: 500; margin-right: 6px; }
.price__note { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--ink-2); }
.price__stock { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--ink-3); }
.price__stock[hidden] { display: none; }
.ticks--card { margin: 22px 0 24px; gap: 10px; }
.ticks--card li { font-size: 0.95rem; }
.price-card__small { margin: 16px 0 0; text-align: center; font-size: 0.8rem; color: var(--ink-3); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { padding: 60px var(--pad) 130px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6vw; max-width: 1180px; margin: 0 auto; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-weight: 400; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { margin: -6px 0 24px; color: var(--ink-2); max-width: 62ch; }

/* ── Footer: the wordmark split like the mark ────────── */
.footer { padding: 0 var(--pad) 40px; overflow: hidden; }
/* ── The pip: a wobbling mark that explains itself on hover ── */
.pip { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.pip.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.pip__btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 13px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); cursor: pointer; background: color-mix(in oklab, #FDFCFA 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(20, 20, 22, 0.4); transition: box-shadow 0.3s var(--ease); }
.pip__btn:hover, .pip.is-open .pip__btn { box-shadow: 0 0 0 1px var(--ink-4), 0 22px 50px -18px rgba(20, 20, 22, 0.45); }
.pip__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pip .buddy { width: 24px; animation: pip-wobble 4.8s var(--ease) 1.2s infinite; transform-origin: 50% 90%; }
.pip.is-open .buddy { animation-play-state: paused; }
@keyframes pip-wobble { 0%, 64%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 76% { transform: rotate(10deg); } 82% { transform: rotate(-6deg); } 88% { transform: rotate(3deg); } 94% { transform: rotate(0); } }
.pip__arrow { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform 0.4s var(--ease), background-color 0.3s; }
.pip__arrow svg { width: 12px; height: 12px; fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pip.is-open .pip__arrow { transform: rotate(180deg); background: var(--accent); }
.pip__card { width: 340px; margin-bottom: 12px; padding: 22px 22px 20px; border-radius: 22px; background: #FDFCFA; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(20, 20, 22, 0.5); transform-origin: 100% 100%; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.96); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s; }
.pip.is-open .pip__card { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s; }
.pip__eyebrow { margin: 0 0 8px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pip__title { margin: 0 0 16px; font-size: 1.12rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.pip__list { list-style: none; margin: 0 0 18px; padding: 0; }
.pip__list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.86rem; }
/* Each problem gets struck out, one after another, and its fix appears under it. */
.pip__list s { position: relative; justify-self: start; text-decoration: none; color: var(--ink-3); }
.pip__list s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease) calc(0.15s + var(--i) * 0.12s); }
.pip__list span { color: var(--ink); font-weight: 500; opacity: 0; transform: translateY(4px); transition: opacity 0.4s var(--ease) calc(0.3s + var(--i) * 0.12s), transform 0.4s var(--ease) calc(0.3s + var(--i) * 0.12s); }
.pip__list li:nth-child(1) { --i: 0; } .pip__list li:nth-child(2) { --i: 1; } .pip__list li:nth-child(3) { --i: 2; } .pip__list li:nth-child(4) { --i: 3; }
.pip.is-open .pip__list s::after { transform: none; }
.pip.is-open .pip__list span { opacity: 1; transform: none; }
@media (max-width: 760px), (hover: none) { .pip { display: none; } }
@media (prefers-reduced-motion: reduce) { .pip .buddy { animation: none; } }

/* ── Inner pages: about, support, privacy, terms, 404 ─── */
.page { max-width: 760px; margin: 0 auto; padding: 150px var(--pad) 110px; }
.page__head { margin-bottom: 44px; }
.page__head .lede { max-width: 52ch; }
.page__head .meta-line { margin-top: 18px; }
.prose { color: var(--ink-2); line-height: 1.65; }
.prose h2 { margin: 52px 0 10px; font-size: 1.3rem; letter-spacing: -0.025em; font-weight: 600; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 1.15em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-4); }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code { font: 500 0.84em var(--mono); background: var(--paper-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.page > .faq__list { margin-top: 4px; }
.meta-line { margin: 12px 0 0; font: 500 0.8rem/1.5 var(--mono); color: var(--ink-3); }
.principles { list-style: none; margin: 18px 0 8px; padding: 0; }
.principles li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .num { font: 500 0.9rem/1.6 var(--mono); color: var(--accent); }
.principles h3 { margin: 0 0 4px; font-size: 1.1rem; letter-spacing: -0.025em; font-weight: 600; }
.principles p { margin: 0; color: var(--ink-2); }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 18px; background: #FDFCFA; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.contact-card > span:first-child { display: grid; gap: 2px; }
.contact-card b { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.contact-card b + span { color: var(--accent); font-weight: 500; }
.contact-card__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform 0.3s var(--ease); }
.contact-card:hover { box-shadow: 0 0 0 1px var(--ink-4), 0 20px 50px -30px rgba(20, 20, 22, 0.35); }
.contact-card:hover .contact-card__go { transform: translateX(3px); }
.notfound { min-height: 78svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 150px var(--pad) 60px; }
.notfound .lede { margin-top: 16px; }
.notfound__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.nav__links a[aria-current="page"] { color: var(--ink); }

/* One word, two colours from one gradient, so the split is a single edge with no seam between two copies. */
@property --split { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
.footer__mark { display: flex; justify-content: center; margin-bottom: 26px; }
.wm { --split: 50%; display: block; margin: -0.12em 0 -0.08em; font-size: min(13vw, 180px); font-weight: 700; letter-spacing: -0.07em; line-height: 1.1; background: linear-gradient(to bottom, var(--accent) var(--split), var(--ink) var(--split)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: --split 0.7s var(--ease); }
.footer__mark:hover .wm { --split: 36%; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 22px; }
.footer__row nav { display: flex; gap: 22px; }
.footer__row a:hover { color: var(--ink); }

.mobile-bar { display: none; }

/* ── Reveals ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Tablet: fewer columns ───────────────────────────── */
@media (max-width: 1100px) {
  .nav__links { gap: 14px; }
  .thead, .row { grid-template-columns: 30px minmax(130px, 1fr) 92px 100px 128px 86px; }
  .c-size, .size { display: none; }
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile: simple, straight, one action ────────────── */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .nav { inset: 10px 0 auto; padding: 0 10px; }
  .nav__pill { width: 100%; justify-content: space-between; height: 48px; }
  .nav__links { display: none; }

  .hero { padding: 104px var(--pad) 36px; }
  .hero__title { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
  .hero__ctas { width: min(100%, 280px); gap: 12px; margin: 22px 0 12px; }
  .hero__ctas .btn { width: 100%; }

  .demo { padding: 0 0 70px; }
  .demo__hint { padding: 0 var(--pad); font-size: 0.86rem; }
  .demo__hint span { display: block; }
  .window { width: calc(100% - 24px); border-radius: 14px; }
  .window__bar .search, .window__bar .ghost-btn, .window__bar b, .window__bar .buddy { display: none; }
  .window__bar [data-update-all] { min-width: 0; flex: 1; height: 32px; }
  .window__strip { grid-template-columns: repeat(2, 1fr); }
  .cell { padding: 12px 14px; }
  .cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .cell:nth-child(4) { border-top: 1px solid var(--line); }
  .cell em { display: none; }
  .cell b { font-size: 1.5rem; }
  .thead { display: none; }
  .row { grid-template-columns: 26px 1fr 78px; grid-template-rows: auto auto; height: auto; padding: 12px 14px; row-gap: 4px; }
  .row > :nth-child(3), .row > :nth-child(6) { display: none; }
  .row .app { grid-column: 2; }
  .row > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .row > :nth-child(7) { grid-column: 3; grid-row: 1 / span 2; }
  .window__table { min-height: 0; }
  .window__foot span:last-child { display: none; }

  .verify { display: block; padding: 70px var(--pad); }
  .verify__figure { position: relative; top: auto; margin-top: 30px; border-radius: 16px; }
  .verify__tags { inset: 14px 16px auto; font-size: 0.72rem; }
  .verify__steps { margin-top: 18px; }
  .verify__steps li { grid-template-columns: 44px 1fr; padding: 18px 0; }

  .sources { padding: 70px var(--pad); }
  .sources .section-head { margin-bottom: 28px; }
  .stats { grid-template-columns: 1fr; }
  .stat-cell, .stat-cell + .stat-cell { padding: 18px 0; border-left: 0; }
  .stat-cell + .stat-cell { border-top: 1px solid var(--line); }
  .stat-cell b { font-size: 2.2rem; }
  .sources-grid { grid-template-columns: 1fr; gap: 10px; }

  .terminal-section { display: block; padding: 80px var(--pad); }
  .terminal { margin-top: 36px; }
  .terminal__body { min-height: 300px; font-size: 0.72rem; padding: 18px; }

  .handsoff, .menubar, .faq { display: block; padding: 70px var(--pad); }
  .handsoff__body { margin-top: 18px; }
  .pricing { padding: 70px var(--pad); }
  .menubar__scene { display: none; }
  .themes { padding: 80px var(--pad); }
  .icons { gap: 12px; }
  .icons img { width: 56px; }
  .pricing { padding-top: 60px; }
  .pricing .price-card { margin-top: 24px; padding: 24px; }
  .faq__list { margin-top: 24px; }
  .faq__list summary { font-size: 1.05rem; }
  .footer { padding-bottom: 110px; }
  .footer__row nav { flex-wrap: wrap; gap: 14px; }

  .mobile-bar {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
    background: color-mix(in oklab, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(0,0,0,0.3); font-size: 0.9rem;
    transform: translateY(160%); transition: transform 0.5s var(--ease);
  }
  .mobile-bar.is-shown { transform: none; }
}

/* ── Reduced motion: everything visible, nothing moves on its own ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}
