/* Focus Ally — public site.
   Layout concept: one calm column of single-idea folds; the product (a day on one timeline) carries the weight,
   type is big and tight, colour appears only where it means something (tags, the agent lane, the now line).
   Tokens mirror design-repo/site/styles.css (paper-light / midnight). Light on bare :root, dark twice (artifact contract). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-var.9b6f5ff45b.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 103%;
  ascent-override: 92%;
}

:root {
  /* surfaces */
  --bg: #FAF8F4;
  --bg-2: #F1ECE3;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  /* ink */
  --ink: #1A1A1F;
  --ink-2: #55524D;
  --ink-3: #6B6862;
  --hair: rgba(26, 26, 31, 0.08);
  --hair-2: rgba(26, 26, 31, 0.14);
  /* action */
  --accent: #1A6FF0;
  --accent-ink: #1455C0;
  --accent-soft: rgba(26, 111, 240, 0.10);
  --on-accent: #FFFFFF;
  /* the one committed colour moment: the manifesto band */
  --band: #1559D6;
  --band-ink: #FFFFFF;
  --band-ink-2: rgba(255, 255, 255, 0.9);
  --band-line: rgba(255, 255, 255, 0.55);
  /* meaning: tags (DS §3 Vivid), agents, rest, now */
  --tag-work: oklch(0.60 0.20 252);
  --tag-design: oklch(0.58 0.22 315);
  --tag-health: oklch(0.66 0.20 145);
  --tag-admin: oklch(0.70 0.20 40);
  --tag-reading: oklch(0.72 0.19 68);
  --tag-learning: oklch(0.62 0.15 198);
  --tag-life: oklch(0.65 0.20 350);
  --stage-bg: #EEEBE6;
  --agent: oklch(0.68 0.17 33);
  --agent-ink: oklch(0.45 0.14 33);
  --rest-hatch: rgba(26, 26, 31, 0.07);
  --now: #1A6FF0;
  --live: #2A8A50;
  /* the illustration surface */
  --stage: #FFFFFF;
  --stage-ink: #1A1A1F;
  --stage-ink-2: #6A6762;
  --stage-hair: rgba(26, 26, 31, 0.07);
  --stage-ring: 0 0 0 1px rgba(26, 26, 31, 0.08);
  --shadow-1: 0 1px 2px rgba(60, 48, 30, 0.05), 0 8px 24px rgba(60, 48, 30, 0.07);
  --shadow-2: 0 2px 6px rgba(60, 48, 30, 0.06), 0 30px 70px -20px rgba(60, 48, 30, 0.22);
  /* paper tape is paper in both themes */
  --tape: #F3EAD6;
  --tape-2: #EADFC3;
  --tape-ink: #2A2013;
  /* type */
  --font-display: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* space */
  --gutter: clamp(16px, 4.2vw, 48px);
  --max: 1200px;
  --fold: clamp(80px, 11vw, 160px);
  --r-stage: 22px;
  --r-card: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.16 0.02 268);
    --bg-2: oklch(0.19 0.024 268);
    --surface: oklch(0.22 0.028 268);
    --surface-2: oklch(0.20 0.026 268);
    --ink: oklch(0.96 0.005 268);
    --ink-2: oklch(0.76 0.012 268);
    --ink-3: oklch(0.62 0.012 268);
    --hair: oklch(1 0 0 / 0.08);
    --hair-2: oklch(1 0 0 / 0.14);
    --accent: oklch(0.78 0.16 235);
    --accent-ink: oklch(0.80 0.15 235);
    --accent-soft: oklch(0.78 0.16 235 / 0.14);
    --on-accent: oklch(0.14 0.02 268);
    --band: oklch(0.47 0.19 260);
    --band-ink: #FFFFFF;
    --band-ink-2: rgba(255, 255, 255, 0.9);
    --band-line: rgba(255, 255, 255, 0.5);
    --tag-work: oklch(0.72 0.20 252);
    --tag-design: oklch(0.70 0.22 315);
    --tag-health: oklch(0.76 0.20 145);
    --tag-admin: oklch(0.80 0.18 40);
    --tag-reading: oklch(0.82 0.18 68);
    --tag-learning: oklch(0.78 0.16 198);
    --tag-life: oklch(0.76 0.20 350);
    --stage-bg: oklch(0.21 0.026 268);
    --agent: oklch(0.76 0.16 33);
    --agent-ink: oklch(0.86 0.10 33);
    --rest-hatch: oklch(1 0 0 / 0.07);
    --now: oklch(0.78 0.16 235);
    --live: oklch(0.78 0.16 145);
    --stage: oklch(0.20 0.026 268);
    --stage-ink: oklch(0.96 0.005 268);
    --stage-ink-2: oklch(0.70 0.012 268);
    --stage-hair: oklch(1 0 0 / 0.07);
    --stage-ring: 0 0 0 1px oklch(1 0 0 / 0.09);
    --shadow-1: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px oklch(0 0 0 / 0.25);
    --shadow-2: 0 2px 6px oklch(0 0 0 / 0.3), 0 30px 80px -20px oklch(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: oklch(0.16 0.02 268);
  --bg-2: oklch(0.19 0.024 268);
  --surface: oklch(0.22 0.028 268);
  --surface-2: oklch(0.20 0.026 268);
  --ink: oklch(0.96 0.005 268);
  --ink-2: oklch(0.76 0.012 268);
  --ink-3: oklch(0.62 0.012 268);
  --hair: oklch(1 0 0 / 0.08);
  --hair-2: oklch(1 0 0 / 0.14);
  --accent: oklch(0.78 0.16 235);
  --accent-ink: oklch(0.80 0.15 235);
  --accent-soft: oklch(0.78 0.16 235 / 0.14);
  --on-accent: oklch(0.14 0.02 268);
  --band: oklch(0.47 0.19 260);
  --band-ink: #FFFFFF;
  --band-ink-2: rgba(255, 255, 255, 0.9);
  --band-line: rgba(255, 255, 255, 0.5);
  --tag-work: oklch(0.72 0.20 252);
  --tag-design: oklch(0.70 0.22 315);
  --tag-health: oklch(0.76 0.20 145);
  --tag-admin: oklch(0.80 0.18 40);
  --tag-reading: oklch(0.82 0.18 68);
  --tag-learning: oklch(0.78 0.16 198);
  --tag-life: oklch(0.76 0.20 350);
  --stage-bg: oklch(0.21 0.026 268);
  --agent: oklch(0.76 0.16 33);
  --agent-ink: oklch(0.86 0.10 33);
  --rest-hatch: oklch(1 0 0 / 0.07);
  --now: oklch(0.78 0.16 235);
  --live: oklch(0.78 0.16 145);
  --stage: oklch(0.20 0.026 268);
  --stage-ink: oklch(0.96 0.005 268);
  --stage-ink-2: oklch(0.70 0.012 268);
  --stage-hair: oklch(1 0 0 / 0.07);
  --stage-ring: 0 0 0 1px oklch(1 0 0 / 0.09);
  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px oklch(0 0 0 / 0.25);
  --shadow-2: 0 2px 6px oklch(0 0 0 / 0.3), 0 30px 80px -20px oklch(0 0 0 / 0.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--accent-soft); }
.num, time { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- type scale (1.333) ---------- */
.h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 640;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 620;
}
.h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.body { color: var(--ink-2); max-width: 34em; }
.body + .body { margin-top: 0.9em; }
.small { font-size: 0.875rem; color: var(--ink-2); }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* ---------- header ---------- */
.site-header {
  /* opaque, same colour as the page: Safari 26 tints its toolbar from this, and nothing may show through it */
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
/* covers the strip above the pinned header (under Safari's translucent toolbar) so no section colour shows there */
.site-header::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 320px;
  background: var(--bg); pointer-events: none;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 620; font-size: 1.05rem; letter-spacing: -0.02em; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; padding: 8px 12px; border-radius: 9px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--hair); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.header-badge { flex: none; }
.header-badge .badge img { height: 32px; width: auto; }
.menu { display: none; margin-inline-start: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hair-2); font-size: 0.9375rem; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 16px; height: 16px; }
.menu[open] summary { background: var(--hair); }
.menu-sheet {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-2), var(--stage-ring);
  padding: 8px; display: grid;
}
.menu-sheet a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.menu-sheet a:hover { background: var(--hair); }
.menu-sheet hr { border: 0; border-top: 1px solid var(--hair); margin: 6px 8px; }

@media (max-width: 960px) {
  .nav, .header-badge { display: none; }
  .menu { display: block; }
  .site-header .wrap { min-height: 56px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 28px; font-size: 0.875rem; color: var(--ink-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- App Store badge + price line ---------- */
.get { display: grid; gap: 12px; justify-items: start; }
.badge { display: inline-block; border-radius: 9px; line-height: 0; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.badge img { height: 48px; width: auto; }
.badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.price-line { font-size: 0.9375rem; color: var(--ink-2); }
.price-line span { white-space: nowrap; }
.price-line span:not(:last-child)::after { content: "·"; margin-inline-start: 0.45em; color: var(--ink-3); }
.devices { font-size: 0.875rem; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 5.5vw, 88px) var(--fold); }
.hero-top { display: grid; gap: 22px; margin-bottom: clamp(28px, 4vw, 56px); }
.hero-top .kicker { color: var(--accent-ink); }
.hero-grid {
  display: grid; gap: clamp(36px, 5vw, 80px);
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: start;
}
.hero-copy { display: grid; gap: 26px; align-content: start; min-width: 0; padding-top: 34px; }
.hero .h1 span { display: block; }
.hero .h1 { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6rem); }
.hero .get { margin-top: 10px; }
.lede .lede-more { display: inline; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 28px; }
  .hero-copy { padding-top: 0; }
}
@media (max-width: 600px) {
  .hero-top { gap: 14px; margin-bottom: 18px; }
  .hero-grid { gap: 30px; }
  .hero-copy { gap: 16px; }
  .hero .lede { font-size: 1.0625rem; }
  .hero .price-line { font-size: 0.8125rem; }
  .lede .lede-more { display: none; }
  .hero .devices { display: none; }
  .hero .get { margin-top: 4px; }
  .badge img { height: 44px; }
}

/* ---------- the day (hero illustration) ---------- */
.day {
  --slot: 6px;              /* 5 minutes */
  --gut: 46px;
  position: relative; margin: 0; min-width: 0;
}
.day-stage {
  position: relative;
  background: var(--stage); color: var(--stage-ink);
  border-radius: var(--r-stage);
  box-shadow: var(--shadow-2), var(--stage-ring);
  padding: 30px 18px 14px;
  overflow: hidden;
}
.day-head, .day-grid { display: grid; grid-template-columns: var(--gut) 1fr 1.18fr 0.82fr; column-gap: 10px; }
.day-head { padding-bottom: 12px; border-bottom: 1px solid var(--stage-hair); }
.day-head span {
  font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stage-ink-2);
}
.day-head span:first-child { visibility: hidden; }
.day-head .you { color: var(--accent-ink); }
.day-head .ag { color: var(--agent-ink); }
.day-grid {
  position: relative; padding-top: 10px;
  grid-template-rows: repeat(60, var(--slot));
}
/* hour rules */
.day-grid .hr {
  grid-column: 1 / -1; position: relative; border-top: 1px dashed var(--stage-hair);
  font: 500 0.6875rem/1 var(--font-mono); color: var(--stage-ink-2); font-variant-numeric: tabular-nums;
}
.day-grid .hr span { position: absolute; top: -0.5em; left: 0; background: var(--stage); padding-right: 6px; }
.hr-15 { grid-row: 1; } .hr-16 { grid-row: 13; } .hr-17 { grid-row: 25; } .hr-18 { grid-row: 37; } .hr-19 { grid-row: 49; }
.day-grid .lane-ag {
  grid-column: 4; grid-row: 1 / -1; border-radius: 10px;
  background: color-mix(in oklab, var(--agent) 7%, transparent);
}

.blk {
  position: relative; z-index: 1; min-width: 0; margin-block: 1.5px; overflow: hidden;
  border-radius: 9px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px;
  font-size: 0.75rem; line-height: 1.25;
}
.blk b { font-weight: 600; font-size: 0.8125rem; letter-spacing: -0.005em; overflow: hidden; }
.blk i { font-style: normal; font: 500 0.6875rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; opacity: 0.85; }
.blk.plan { grid-column: 2; border: 1.5px dashed color-mix(in oklab, var(--c) 60%, transparent); background: color-mix(in oklab, var(--c) 7%, transparent); color: var(--stage-ink-2); }
.blk.plan i { color: color-mix(in oklab, var(--c) 80%, var(--stage-ink)); }
.blk.you { grid-column: 3; border: 1px solid color-mix(in oklab, var(--c) 55%, transparent); background: color-mix(in oklab, var(--c) 18%, var(--stage)); color: var(--stage-ink); }
.blk.you i { color: color-mix(in oklab, var(--c) 75%, var(--stage-ink)); }
.blk.rest {
  grid-column: 3; color: var(--stage-ink);
  border: 1px solid var(--hair-2);
  background: repeating-linear-gradient(135deg, var(--rest-hatch) 0 6px, transparent 6px 12px), var(--stage);
}
.blk.rest .walk { display: inline-flex; align-items: center; gap: 4px; }
.blk.rest svg { width: 13px; height: 13px; flex: none; }
.blk.agent {
  grid-column: 4; border-radius: 10px; color: var(--agent-ink);
  background: color-mix(in oklab, var(--agent) 22%, var(--stage));
  border: 1px solid color-mix(in oklab, var(--agent) 60%, transparent);
}
.blk.agent.big { background: color-mix(in oklab, var(--agent) 30%, var(--stage)); border-color: var(--agent); }
.blk.agent b { white-space: normal; }
.blk .pill {
  position: absolute; right: 6px; top: 6px; font: 650 0.5625rem/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 5px; border-radius: 5px; background: var(--live); color: var(--stage);
}
.blk.short { flex-direction: row; align-items: center; gap: 6px; padding-block: 0; }
.blk.short i { opacity: 0.7; }
.blk.agent b { white-space: normal; }
.blk.agent.big b { white-space: normal; }
.blk.agent b::before { content: ">_"; font-family: var(--font-mono); font-size: 0.82em; font-weight: 600; margin-right: 0.4em; opacity: 0.75; }
.c-learning { --c: var(--tag-learning); } .c-life { --c: var(--tag-life); } .c-reading { --c: var(--tag-reading); }
.c-work { --c: var(--tag-work); } .c-design { --c: var(--tag-design); } .c-health { --c: var(--tag-health); } .c-admin { --c: var(--tag-admin); }

/* the day's events, placed on 5-minute rows (row 1 = 15:00) */
.p1 { grid-row: 1 / 19; }   /* 15:00–16:30 plan: quarterly report */
.p2 { grid-row: 25 / 31; }  /* 17:00–17:30 plan: 1:1 */
.p3 { grid-row: 43 / 55; }  /* 18:30–19:30 plan: gym */
.y1 { grid-row: 2 / 21; }   /* 15:05–16:40 */
.y2 { grid-row: 25 / 31; }  /* 17:00–17:30 */
.y3 { grid-row: 34 / 44; }  /* 17:45–18:35 rest walk */
.y4 { grid-row: 45 / 53; }  /* 18:40–now (19:20) */
.a1 { grid-row: 4 / 9; }    /* 15:15–15:40 */
.a2 { grid-row: 13 / 21; }  /* 16:00–16:40 */
.a3 { grid-row: 34 / 46; }  /* 17:44–18:43 Claude Code 59m */

/* overlap band: the walk and the agent run share the same hour */
.overlap {
  grid-column: 3 / 5; grid-row: 34 / 46; z-index: 0; margin-inline: -4px; border-radius: 12px;
  background: color-mix(in oklab, var(--agent) 9%, transparent);
  outline: 1px dashed color-mix(in oklab, var(--agent) 50%, transparent); outline-offset: 0;
}
.now {
  grid-column: 1 / -1; grid-row: 53; z-index: 3; position: relative; height: 0;
  border-top: 1.5px solid var(--now);
}
.now span {
  position: absolute; left: 0; top: -9px; font: 650 0.625rem/1 var(--font-mono); font-variant-numeric: tabular-nums;
  background: var(--now); color: var(--stage); padding: 4px 5px; border-radius: 5px;
}
.now::after { content: ""; position: absolute; right: -2px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--now); }

/* tapes: our signature, HTML only */
.tape {
  position: absolute; z-index: 4; display: inline-block; white-space: nowrap;
  font: 600 0.875rem/1 var(--font-mono); letter-spacing: 0.01em; text-transform: lowercase;
  color: var(--tape-ink); padding: 8px 13px 9px; border-radius: 2px;
  background: linear-gradient(163deg, #FBF5E4 0%, var(--tape) 46%, var(--tape-2) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 10px 20px -10px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--rot, -3deg));
}
.day .tape { top: -14px; }
.day .t-plan { left: 15%; --rot: -5deg; }
.day .t-you { left: 44%; --rot: 3deg; }
.day .t-ag { right: 2%; --rot: -4deg; }
.day figcaption, .shot figcaption { margin-top: 16px; font-size: 0.875rem; color: var(--ink-3); max-width: 40em; }

@media (max-width: 600px) {
  .day { --slot: 7px; --gut: 34px; }
  .day-stage { padding: 26px 10px 10px; border-radius: 18px; }
  .day-head, .day-grid { column-gap: 6px; grid-template-columns: var(--gut) 0.92fr 1.12fr 0.96fr; }
  .blk { padding: 4px 6px; border-radius: 7px; }
  .blk b { font-size: 0.75rem; }
  .blk i { font-size: 0.625rem; }
  .blk.short i, .blk .opt { display: none; }
  .blk .pill { display: none; }
  /* phone: the day from 16:30, so the walk + agent run are above the fold */
  .day:not(.zoom):not(.mini):not(.ag-day) .day-grid { grid-template-rows: repeat(36, var(--slot)); }
  .day:not(.zoom):not(.mini):not(.ag-day) :is(.hr-15, .hr-16, .p1, .y1, .a1, .a2) { display: none; }
  .day:not(.zoom):not(.mini):not(.ag-day) .hr-17 { grid-row: 7; }
  .day:not(.zoom):not(.mini):not(.ag-day) .hr-18 { grid-row: 19; }
  .day:not(.zoom):not(.mini):not(.ag-day) .hr-19 { grid-row: 31; }
  .day:not(.zoom):not(.mini):not(.ag-day) :is(.p2, .y2) { grid-row: 7 / 13; }
  .day:not(.zoom):not(.mini):not(.ag-day) .p3 { grid-row: 25 / 37; }
  .day:not(.zoom):not(.mini):not(.ag-day) .y3 { grid-row: 16 / 26; }
  .day:not(.zoom):not(.mini):not(.ag-day) .y4 { grid-row: 27 / 35; }
  .day:not(.zoom):not(.mini):not(.ag-day) :is(.a3, .overlap) { grid-row: 16 / 28; }
  .day:not(.zoom):not(.mini):not(.ag-day) .now { grid-row: 35; }
  .tape { font-size: 0.75rem; padding: 6px 9px 7px; }
  .day .t-plan { left: 12%; }
  .day .t-you { left: 40%; }
}

/* ---------- fact strip ---------- */
.facts { border-block: 1px solid var(--hair); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts li { padding: 20px 18px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.facts li:first-child { padding-left: 0; }
.facts li + li { border-left: 1px solid var(--hair); }
.facts a { color: var(--ink-2); }
.facts a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: minmax(0, 1fr); padding-block: 8px; }
  .facts li { padding: 10px 0 10px 18px; position: relative; }
  .facts li:first-child { padding-left: 18px; }
  .facts li + li { border-left: 0; }
  .facts li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
}

/* ---------- manifesto band (the one committed colour moment) ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--band); color: var(--band-ink);
  padding-block: clamp(84px, 12vw, 176px);
}
.band .kicker { color: var(--band-ink-2); }
.band .mega {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(2.7rem, 1.2rem + 6.2vw, 6rem); line-height: 0.96; letter-spacing: -0.04em;
  color: var(--band-ink); margin-top: 22px;
}
.band .mega span { display: block; }
.band p.body { color: var(--band-ink-2); margin-top: 28px; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 31em; }
.band a { color: var(--band-ink); font-weight: 600; }
.band .more { margin-top: 30px; display: inline-flex; }
.band-now {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 4vw, 48px); z-index: -1; height: 0; border-top: 1.5px solid var(--band-line);
}
.band-now span {
  position: absolute; left: var(--gutter); top: -11px; font: 650 0.75rem/1 var(--font-mono); font-variant-numeric: tabular-nums;
  background: var(--band-ink); color: var(--band); padding: 5px 7px; border-radius: 6px;
}
.band-now::after { content: ""; position: absolute; right: var(--gutter); top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--band-ink); }

/* ---------- feature folds ---------- */
.fold { padding-block: var(--fold); }
.fold + .fold { padding-top: 0; }
.split {
  display: grid; gap: clamp(36px, 6vw, 96px); align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.split.flip > .copy { order: 2; }
.split .copy { display: grid; gap: 20px; align-content: start; min-width: 0; }
.split .copy .h2 { max-width: 13ch; }
.more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform 0.25s var(--ease); }
.more:hover::after { transform: translateX(3px); }
.labels { display: flex; flex-wrap: wrap; gap: 8px; }
.label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--hair-2); color: var(--ink-2); background: var(--surface);
}
.label.new { color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent) 40%, transparent); background: var(--accent-soft); }
.works { font-size: 0.9375rem; color: var(--ink-2); }
.works b { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .copy { order: 0; }
}

/* ---------- screenshots ---------- */
.shot { margin: 0; position: relative; min-width: 0; }
.screen {
  position: relative; border-radius: var(--r-stage); overflow: hidden;
  box-shadow: var(--shadow-2), var(--stage-ring); background: var(--stage);
}
.screen img { width: 100%; }
.phone-screen { max-width: 340px; margin-inline: auto; border-radius: 30px; }
.phone-screen.wide { max-width: 400px; }
.shot .tape { --rot: -4deg; }
.shot-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: clamp(16px, 2.5vw, 28px); align-items: end; }
.shot-pair .phone-screen { max-width: none; }
@media (max-width: 700px) { .shot-pair { grid-template-columns: minmax(0, 1fr); } .shot-pair .only-wide { display: none; } }

/* light-only phone screenshots: take the glare off in the dark theme */
/* phone screenshots sit on a calm stage in both themes (DESIGN-PROMPT §4): a frame, not a glare */
.phone-screen { padding: clamp(10px, 1.4vw, 16px); background: var(--stage-bg); border-radius: 34px; box-shadow: var(--shadow-1), var(--stage-ring); }
.phone-screen img { border-radius: 22px; }

/* theme-matched renders: show the one that matches the page theme */
.th-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .th-dark { display: block; }
  :root:not([data-theme="light"]) .th-light { display: none; }
}
:root[data-theme="dark"] .th-dark { display: block; }
:root[data-theme="dark"] .th-light { display: none; }

/* lane crop annotations */
.lane-shot { max-width: 420px; margin-inline: auto; }
.lane-shot .t-walk { left: -6%; top: 64%; --rot: -4deg; }
.lane-shot .t-agent { right: -4%; top: 47%; --rot: 4deg; }
.lane-shot .t-agent small { display: block; font-size: 0.75em; font-weight: 500; margin-top: 4px; opacity: 0.8; }
@media (max-width: 480px) { .lane-shot .t-walk { left: 2%; } .lane-shot .t-agent { right: 2%; } }

.plan-shot .t-plan { left: 14%; top: -16px; --rot: -5deg; }
.plan-shot .t-fact { left: 52%; top: -18px; --rot: 4deg; }
@media (max-width: 699px) { .plan-shot .t-plan { left: 18%; } .plan-shot .t-fact { left: 58%; } }

/* live counter in the sessions fold */
.counter { display: grid; gap: 6px; }
.counter output {
  font: 600 clamp(3rem, 2rem + 4vw, 5.25rem)/1 var(--font-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.counter span { font-size: 0.875rem; color: var(--ink-3); }

.sub { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--hair); }

/* wide folds: Mac proofs at near 1:1 */
.wide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.wide-head .copy { display: grid; gap: 18px; justify-items: start; }
.wide-head .h2 { max-width: 13ch; }
@media (max-width: 900px) { .wide-head { grid-template-columns: minmax(0, 1fr); } }
.stats-shot .insights { position: relative; width: 52%; margin: -12% 4% 0 auto; z-index: 1; }
.stats-shot .t-pro { left: -18px; top: -16px; --rot: -4deg; }
@media (max-width: 699px) { .stats-shot .insights { width: 100%; margin: 28px 0 0; } .stats-shot .t-pro { left: 8px; } }
.plan-shot .screen { max-width: 1200px; }
@media (max-width: 699px) { .plan-shot .screen { max-width: 360px; margin-inline: auto; border-radius: 30px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- ally band (quiet) ---------- */
.ally { padding-block: calc(var(--fold) * 0.6) var(--fold); }
.ally .wrap { display: grid; gap: 24px; justify-items: start; }
.ally .h2 { max-width: 16ch; }
.ally .body { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); max-width: 30em; }
.ally .small { color: var(--ink-3); }

/* ---------- pricing ---------- */
.pricing { padding-block: var(--fold); background: var(--bg-2); }
.pricing .head { display: grid; gap: 16px; margin-bottom: 40px; }
.pricing .h2 { max-width: 18ch; }
.table-scroll { position: relative; overflow-x: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--stage-ring); }
.plans { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 520px; }
.plans th, .plans td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.plans thead th { font-family: var(--font-display); font-size: 1.125rem; font-weight: 620; letter-spacing: -0.015em; padding-block: 20px; }
.plans thead th:last-child { color: var(--accent-ink); }
.plans tbody th { font-weight: 500; color: var(--ink); width: 40%; }
.plans td { color: var(--ink-2); }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 0; }
.plans .yes { color: var(--accent-ink); font-weight: 600; font-size: 1.05rem; }
.plans .no { color: var(--ink-3); }
.plans tfoot td, .plans tfoot th { border-top: 1px solid var(--hair-2); font-weight: 600; color: var(--ink); }
.pricing .notes { display: grid; gap: 8px; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--fold); }
.faq .h2 { margin-bottom: 40px; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.qa div { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--hair); }
.qa h3 { font-size: 1.125rem; letter-spacing: -0.012em; font-weight: 600; line-height: 1.3; }
.qa p { color: var(--ink-2); }
@media (max-width: 760px) { .qa { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- final CTA ---------- */
.final { padding-block: var(--fold); text-align: center; border-top: 1px solid var(--hair); }
.final .wrap { display: grid; gap: 22px; justify-items: center; }
.final .h2 { max-width: 14ch; }
.final .get { justify-items: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); padding-block: 64px 40px; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.foot-brand p { color: var(--ink-2); max-width: 22em; }
.foot-col h2 { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-base {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 0.875rem;
}
.foot-base p { color: var(--ink-3); }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--hair); }
.theme-switch[hidden] { display: none; }
.theme-switch button {
  font: inherit; font-size: 0.8125rem; color: var(--ink-2); background: transparent; border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(28px, 5vw, 72px) clamp(56px, 8vw, 112px); }
.page-hero .hero-copy .h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); max-width: 14ch; }
.prose { display: grid; gap: 1.1em; max-width: 40em; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 620; margin-top: 1.4em; color: var(--ink); }
.prose h3 { font-size: 1.2rem; letter-spacing: -0.012em; font-weight: 600; margin-top: 0.8em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--hair-2); color: var(--ink); font-size: 1.15em; }
.prose code, .code {
  font-family: var(--font-mono); font-size: 0.875em; background: var(--surface); border: 1px solid var(--hair); border-radius: 6px; padding: 1px 6px; color: var(--ink);
}
.codeblock { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 18px 20px; font: 0.875rem/1.6 var(--font-mono); color: var(--ink); overflow-x: auto; white-space: pre-wrap; }
.copy-btn {
  position: absolute; right: 10px; top: 10px; font: 600 0.75rem/1 var(--font-sans); padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--hair-2); background: var(--bg); color: var(--ink); cursor: pointer;
}
.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; padding: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 0.875rem/1 var(--font-mono); color: var(--accent-ink); background: var(--accent-soft);
}
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.cmp thead th { font-family: var(--font-display); font-weight: 620; font-size: 1rem; }
.cmp tbody th { font-weight: 500; color: var(--ink); }
.cmp td { color: var(--ink-2); }
.log { display: grid; gap: 48px; }
.log article { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding-top: 28px; border-top: 1px solid var(--hair); }
.log time { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 700px) { .log article { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.notfound { padding-block: clamp(80px, 14vw, 180px); }
.notfound .wrap { display: grid; gap: 22px; justify-items: start; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0.55); } to { transform: none; } }
@keyframes drift { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--now) 50%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
  .day-stage { animation: rise 1.1s 0.15s var(--ease) both; }
  .day .tape { animation: rise 0.8s var(--ease) both; }
  .day .t-plan { animation-delay: 0.7s; } .day .t-you { animation-delay: 0.82s; } .day .t-ag { animation-delay: 0.94s; }
  .blk.agent.big { transform-origin: top; animation: grow 1.6s 0.5s var(--ease) both; }
  .now { animation: drift 6s ease-in-out infinite alternate; }
  .now::after { animation: pulse 2.4s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

/* ======================================================================
   Inner pages: feature template, article, pricing, changelog, 404
   ====================================================================== */
.page-hero { padding-block: clamp(20px, 3vw, 40px) clamp(64px, 9vw, 128px); }
.page-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
.page-hero .phone-screen { max-width: 420px; }
.page-hero .phone-screen.wide { max-width: 480px; }
.page-hero .hero-copy { padding-top: 0; }
.page-hero .hero-copy .kicker { color: var(--accent-ink); }
.page-h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem); }
.page-hero .lede { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); }
@media (max-width: 960px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }

/* section heading + body pairs used by every feature page */
.sec { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--hair); }
.sec .head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.sec .head .h2 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.9rem); max-width: 14ch; }
.sec .head .copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.sec .wide-fig { margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .sec .head { grid-template-columns: minmax(0, 1fr); } }

/* three short points, set as columns of text (not cards) */
.points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 5vw, 48px); }
.points li { padding: 18px 24px 0 0; display: grid; gap: 6px; align-content: start; color: var(--ink-2); border-top: 1px solid var(--hair-2); }
.points li + li { padding-left: 24px; }
.points b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .points { grid-template-columns: minmax(0, 1fr); gap: 18px; } .points li + li { padding-left: 0; } }

/* list of plain rows (what gets sent, four ways to lock) */
.rows { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.rows li { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
.rows li b { color: var(--ink); font-weight: 600; }
.rows.single li { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) { .rows li { grid-template-columns: minmax(0, 1fr); } }
.never { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; font-weight: 620; color: var(--ink); }

/* copyable prompt */
.codeblock { padding-right: 88px; }
.codeblock pre { margin: 0; font: inherit; white-space: pre-wrap; word-break: break-word; }
.copy-btn[hidden] { display: none; }
.copy-btn:hover { border-color: var(--ink-3); }
.note { font-size: 0.9375rem; color: var(--ink-2); }
.note code { font-family: var(--font-mono); font-size: 0.875em; }

/* two lanes, horizontal: the /ai-agents signature */
.lanes-fig { margin: 0; min-width: 0; position: relative; }
.lanes-scroll { position: relative; overflow-x: auto; border-radius: var(--r-stage); box-shadow: var(--shadow-2), var(--stage-ring); background: var(--stage); }
.lanes {
  --cols: 48; min-width: 560px; padding: 22px 20px 18px; color: var(--stage-ink);
  display: grid; grid-template-columns: 92px repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: auto; row-gap: 10px;
}
.lanes .axis { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font: 500 0.6875rem/1 var(--font-mono); color: var(--stage-ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--stage-hair); }
.lanes .who { grid-column: 1; align-self: center; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stage-ink-2); }
.lanes .who.you { color: var(--accent-ink); }
.lanes .who.ag { color: var(--agent-ink); }
.lanes .track { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); height: 44px; position: relative; border-radius: 10px; }
.lanes .track.agents { background: color-mix(in oklab, var(--agent) 7%, transparent); }
.lanes .track.sub { height: 34px; }
.lanes .blk { margin: 0; justify-content: center; min-height: 0; }
.lanes .blk b { font-size: 0.75rem; }
.lanes .blk i { font-size: 0.625rem; }
.lanes .gap { grid-column: 1 / -1; height: 4px; }
.lanes .r1 { grid-row: 1; } .lanes .r2 { grid-row: 2; } .lanes .r3 { grid-row: 3; } .lanes .r4 { grid-row: 4; }
.lanes .nowv { grid-column: 2 / -1; grid-row: 2 / 5; position: relative; pointer-events: none; z-index: 3; }
.lanes .nowv::before { content: ""; position: absolute; top: -4px; bottom: -4px; left: calc(100% * 44 / 48); border-left: 1.5px solid var(--now); }
.lanes .nowv span { position: absolute; top: -22px; left: calc(100% * 44 / 48); transform: translateX(-50%); font: 650 0.625rem/1 var(--font-mono); background: var(--now); color: var(--stage); padding: 3px 5px; border-radius: 5px; }
/* 10-minute columns from 10:00 (col 1) */
.track .blk.l-y1 { grid-column: 1 / 10; } .track .blk.l-y2 { grid-column: 13 / 21; } .track .blk.rest { grid-column: 31 / 37; } .track .blk.l-y4 { grid-column: 38 / 45; }
.track .blk.l-c1 { grid-column: 3 / 7; } .track .blk.l-c2 { grid-column: 13 / 20; } .track .blk.l-c3 { grid-column: 30 / 36; }
.track .blk.l-x1 { grid-column: 7 / 11; } .track .blk.l-x2 { grid-column: 21 / 25; } .track .blk.l-x3 { grid-column: 39 / 43; }
.track .blk { grid-row: 1; padding: 4px 8px; }
.lanes-fig .tape { top: -14px; }
.lanes-fig .t-you { left: 6%; --rot: -4deg; }
.lanes-fig .t-ag { left: 58%; --rot: 3deg; }
.lanes-fig figcaption { margin-top: 16px; font-size: 0.875rem; color: var(--ink-3); }
.scroll-hint { display: none; font-size: 0.8125rem; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 620px) { .scroll-hint { display: block; } }

/* pricing cards */
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(28px, 4vw, 44px); }
.plan-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-stage); background: var(--surface); box-shadow: var(--stage-ring); }
.plan-card.pro { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--accent) 55%, transparent), var(--shadow-1); }
.plan-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 620; }
.plan-card .price { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 640; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.plan-card .price small { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.plan-card ul { list-style: none; display: grid; gap: 10px; align-content: start; color: var(--ink-2); }
.plan-card li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.plan-card li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }
.plan-card .foot { display: grid; gap: 10px; justify-items: start; }
@media (max-width: 760px) { .plan-cards { grid-template-columns: minmax(0, 1fr); } }
.legal-print { font-size: 0.8125rem; color: var(--ink-3); max-width: 65ch; margin-inline: auto; }

/* long-form article (manifesto, guide) */
.article { padding-block: clamp(24px, 4vw, 56px) clamp(64px, 9vw, 120px); }
.article .wrap { max-width: calc(720px + 2 * var(--gutter)); }
.article .kicker { color: var(--accent-ink); }
.article .h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.6rem); margin-top: 18px; }
.article .lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.5; color: var(--ink); margin-top: 28px; }
.article .prose { margin-top: 40px; max-width: none; font-size: 1.125rem; line-height: 1.7; }
.article .prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.article .closing { margin-top: 48px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 640; color: var(--ink); }
.article .closing span { display: block; color: var(--accent-ink); }
.article ol.steps { margin-top: 0.4em; }
.article .ladder { width: 100%; border-collapse: collapse; font-size: 1rem; }
.article .ladder td { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.article .ladder td:last-child { text-align: right; font-family: var(--font-mono); color: var(--ink); }

/* manifesto hero uses the band */
.band.page-band { padding-block: clamp(56px, 9vw, 128px); }
.band .h1 { color: var(--band-ink); margin-top: 18px; max-width: 14ch; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); }
.band .lead { color: var(--band-ink-2); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.5; max-width: 34em; margin-top: 28px; }

/* example requests (/mcp-server) */
.asks { list-style: none; display: grid; gap: 12px; }
.asks li {
  justify-self: start; max-width: 32em; padding: 12px 16px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); box-shadow: var(--stage-ring); color: var(--ink); font-size: 1rem;
}
.asks li:nth-child(even) { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--accent-soft); box-shadow: none; }
.asks-fig { margin: 0; position: relative; padding: clamp(26px, 3vw, 36px); border-radius: var(--r-stage); background: var(--bg-2); }
.asks-fig .tape { top: -14px; left: 8%; --rot: -3deg; }
.asks-fig figcaption { margin-top: 18px; font-size: 0.8125rem; color: var(--ink-3); }

/* comparison */
.cmp-wrap { position: relative; overflow-x: auto; margin-top: 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--stage-ring); }
.cmp thead th:last-child { color: var(--accent-ink); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px); margin-top: clamp(28px, 4vw, 44px); }
.diff > div { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--hair-2); }
.diff h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 620; }
.diff p { color: var(--ink-2); }
@media (max-width: 760px) { .diff { grid-template-columns: minmax(0, 1fr); } }
.well { list-style: none; display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--hair); }
.well li { padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
.well b { color: var(--ink); font-weight: 600; }
.source { font-size: 0.8125rem; color: var(--ink-3); margin-top: 14px; }

/* changelog */
.log article h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.025em; font-weight: 640; }
.log .entry { display: grid; gap: 14px; color: var(--ink-2); max-width: 42em; }
.log .entry .lead { font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.log .entry ul { padding-left: 1.2em; display: grid; gap: 6px; }
.log .when { display: grid; gap: 4px; align-content: start; }
.log .ver { font-family: var(--font-display); font-weight: 640; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.log .next .ver { color: var(--ink-3); }
.page-hero .wide-h1 { max-width: 20ch; }
.narrow-copy { max-width: 46em; }
.page-hero .hero-copy { gap: 22px; }
.article-get { margin-top: 28px; }
.article .source, .sec .source { margin-top: 32px; }
.vs-line { margin-top: clamp(32px, 5vw, 48px); color: var(--ink); font-size: 1.15rem; }
.big-counter { justify-items: start; }
.big-counter output { font-size: clamp(4rem, 2rem + 8vw, 8.5rem); }
.lane-shot.tall .t-agent { right: -6%; top: 62%; --rot: 4deg; }
.plan-hero .t-plan { left: 14%; top: -14px; --rot: -5deg; }
.plan-hero .t-fact { left: 56%; top: -16px; --rot: 4deg; }
.block-hero .t-task { right: -2%; top: 58%; --rot: 3deg; }
@media (max-width: 480px) { .block-hero .t-task { right: 4%; } .lane-shot.tall .t-agent { right: 2%; } }
.composer-shot img { width: 100%; }
.notfound .h1 { max-width: 12ch; }
.wide-fig.plan-shot .t-plan { left: 12%; } .wide-fig.plan-shot .t-fact { left: 48%; }

/* tables on a phone: comparison stacks, plans compress */
@media (max-width: 600px) {
  .cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { padding: 0; border: 0; font-size: 0.875rem; }
  .cmp th[scope="row"] { grid-column: 1 / -1; font-weight: 600; margin-bottom: 4px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
  .cmp td:last-child::before { color: var(--accent-ink); }
  .plans { min-width: 0; font-size: 0.875rem; }
  .plans th, .plans td { padding: 12px 10px; }
  .plans thead th { font-size: 1rem; }
  .plans tbody th { width: 44%; }
}
.pricing .h2 + .table-scroll, #s-compare + .table-scroll { margin-top: 32px; }
.band.page-band .band-now { bottom: clamp(20px, 3vw, 36px); }
@media (max-width: 760px) { .foot-col ul { gap: 2px; } .foot-col a { display: inline-block; padding-block: 8px; } }

/* ======================================================================
   Pass 4 — hero showcase: the real Mac window from the prototype
   ====================================================================== */
.showcase-hero { overflow-x: clip; padding-bottom: calc(var(--fold) * 0.8); }
.showcase-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.showcase-hero .hero-copy { padding-top: 0; }
.showcase-hero .kicker { color: var(--accent-ink); }
.showcase-hero .h1 span { display: block; }
.showcase { position: relative; margin: 0; min-width: 0; isolation: isolate; }
.showcase-light {
  position: absolute; z-index: -1; inset: -14% -10% 8%; pointer-events: none;
  background:
    radial-gradient(48% 52% at 50% 38%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 72%),
    radial-gradient(30% 40% at 86% 70%, color-mix(in oklab, var(--agent) 18%, transparent), transparent 70%);
  filter: blur(18px);
}
.window {
  position: relative; border-radius: 16px; overflow: visible;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 2px 6px rgba(20, 16, 10, 0.08), 0 40px 90px -28px rgba(20, 22, 40, 0.45), 0 0 0 1px var(--hair-2);
}
.window picture, .window img { border-radius: 16px; }
.window img { width: 100%; }
.showcase figcaption { margin-top: 18px; font-size: 0.875rem; color: var(--ink-3); }

/* notes: paper tape pointing at the two things that matter */
.anno {
  position: absolute; z-index: 3; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  font: 600 clamp(0.75rem, 0.6rem + 0.35vw, 0.95rem)/1 var(--font-mono); color: var(--tape-ink);
  padding: 9px 14px 10px; border-radius: 2px; transform: rotate(var(--rot, -3deg));
  background: linear-gradient(163deg, #FBF5E4 0%, var(--tape) 46%, var(--tape-2) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 14px 26px -12px rgba(0, 0, 0, 0.55);
}
.anno svg { position: absolute; width: 54px; height: 36px; color: var(--tape); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
/* desktop window coordinates (render: day 13:00–19:30, rail at the right edge) */
.n-walk { left: 46%; top: 47%; --rot: -4deg; }
.n-agent { right: 10%; top: 68%; --rot: 3deg; }
.n-agent svg { right: -50px; top: -6px; transform: rotate(-6deg); }
.pulse { position: absolute; z-index: 2; left: 93.8%; top: 61.7%; width: 1.6%; height: 14.2%; border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--agent) 85%, transparent), 0 0 24px 4px color-mix(in oklab, var(--agent) 55%, transparent); }

/* Variant A: copy above, centred; the window full width below */
.v-a .hero-copy { justify-items: center; text-align: center; max-width: 900px; margin-inline: auto; }
.v-a .lede { margin-inline: auto; }
.v-a .get { justify-items: center; }
.v-a .h1 { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6rem); }

/* Variant B: copy left, the window right, oversized and tilted into depth */
.v-b .showcase-grid { grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr); align-items: center; }
.v-b .h1 { font-size: clamp(2.6rem, 1.4rem + 3.9vw, 5.1rem); }
.v-b .showcase { margin-right: calc(-1 * var(--gutter)); perspective: 2600px; }
.v-b .window { transform: rotateY(-9deg) rotateX(4deg) rotateZ(0.5deg); transform-origin: left center; }

/* badges side by side */
.badges { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.header-badge .badges { gap: 8px; flex-wrap: nowrap; }

@media (max-width: 960px) {
  .v-b .showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .v-b .showcase { margin-right: 0; }
  .v-b .window { transform: none; }
}
/* phone: the narrow render (16:30–19:20, focus column + agent rail) */
@media (max-width: 699px) {
  .showcase .window { max-width: 360px; margin-inline: auto; }
  .n-walk { left: 9%; top: 55%; }
  .n-agent { right: 24%; top: 37%; }
  .n-agent svg { right: -46px; top: 14px; transform: rotate(16deg); }
  .pulse { left: 80.8%; top: 50.2%; width: 4.7%; height: 24.8%; }
}
@media (prefers-reduced-motion: no-preference) {
  .window { animation: rise 1.1s 0.1s var(--ease) both; }
  .anno { animation: rise 0.8s var(--ease) both; }
  .n-walk { animation-delay: 0.9s; } .n-agent { animation-delay: 1.1s; }
  .pulse { animation: glow 2.6s 1.4s ease-in-out infinite; }
  .v-b .window { animation: tilt-in 1.4s 0.1s var(--ease) both; }
}
@keyframes glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes tilt-in { from { opacity: 0.001; transform: rotateY(-22deg) rotateX(10deg) translateY(30px); } to { opacity: 1; transform: rotateY(-9deg) rotateX(4deg) rotateZ(0.5deg); } }

/* ---------- pass 4: local dark surface (the session fold and the finale) ---------- */
.on-dark {
  --bg: oklch(0.13 0.02 268); --bg-2: oklch(0.17 0.024 268); --surface: oklch(0.21 0.028 268); --surface-2: oklch(0.19 0.026 268);
  --ink: oklch(0.96 0.005 268); --ink-2: oklch(0.78 0.012 268); --ink-3: oklch(0.64 0.012 268);
  --hair: oklch(1 0 0 / 0.08); --hair-2: oklch(1 0 0 / 0.14);
  --accent: oklch(0.78 0.16 235); --accent-ink: oklch(0.80 0.15 235); --accent-soft: oklch(0.78 0.16 235 / 0.14); --on-accent: oklch(0.14 0.02 268);
  --agent: oklch(0.76 0.16 33); --agent-ink: oklch(0.86 0.10 33);
  --stage: oklch(0.20 0.026 268); --stage-ink: oklch(0.96 0.005 268); --stage-ink-2: oklch(0.70 0.012 268); --stage-hair: oklch(1 0 0 / 0.07);
  --stage-ring: 0 0 0 1px oklch(1 0 0 / 0.09); --stage-bg: oklch(0.21 0.026 268);
  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px oklch(0 0 0 / 0.25);
  --shadow-2: 0 2px 6px oklch(0 0 0 / 0.3), 0 30px 80px -20px oklch(0 0 0 / 0.6);
  color-scheme: dark; background: var(--bg); color: var(--ink);
}
.fold-dark { padding-block: var(--fold); overflow-x: clip; }
.fold + .fold-dark, .fold-dark + .fold { padding-top: var(--fold); }
.fold-dark .h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4.2rem); }
.timer-shot .window { max-width: 640px; margin-inline: auto; }

/* narrow window (16:40–19:20, focus + agent rail) */
.window.narrow { max-width: 380px; margin-inline: auto; }
.window.narrow .n-walk { left: 20%; top: 56%; }
.window.narrow .n-agent { left: auto; right: 24%; top: 37%; }
.window.narrow .n-agent svg { right: -46px; top: 14px; transform: rotate(16deg); }
.window.narrow .pulse { left: 80.8%; top: 50.2%; width: 4.7%; height: 24.8%; }
@media (max-width: 699px) { .agents-shot { display: none; } }

/* plan strip */
.plan-strip .window { max-width: 1200px; }
.plan-strip .n-plan { left: 16%; top: -14px; --rot: -5deg; }
.plan-strip .n-fact { left: 58%; top: -16px; --rot: 4deg; }

/* app cards recreated in HTML (both themes from the site tokens) */
.app-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-2), var(--stage-ring); color: var(--ink); }
.rules-shot { position: relative; max-width: 440px; margin-inline: auto; }
.rules { padding: 18px 14px 14px; }
.rules-top { display: grid; gap: 6px; padding: 2px 8px 14px; }
.rules-top .back { color: var(--accent-ink); font-size: 0.9375rem; }
.rules-top .ttl { font-family: var(--font-display); font-weight: 650; font-size: 1.45rem; letter-spacing: -0.02em; }
.rule-list { list-style: none; display: grid; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: var(--stage-ring); }
.rule-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) 12px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list .ri { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.rule-list .ri svg { width: 18px; height: 18px; }
.rule-list .rt { display: grid; gap: 2px; min-width: 0; }
.rule-list b { font-weight: 600; font-size: 0.9875rem; }
.rule-list i { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); }
.rule-list .chev { color: var(--ink-3); font-size: 1.2rem; }
.rule-list li.on { background: var(--accent-soft); }
.rule-list li.add b { color: var(--accent-ink); }
.rules-shot .n-task { right: -8%; top: 64%; --rot: 4deg; }
.rules-shot figcaption, .stats-html figcaption { margin-top: 16px; font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 480px) { .rules-shot .n-task { right: 2%; top: 74%; } }

.stats-html { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; margin: 0; }
.stats-html figcaption { grid-column: 1 / -1; margin-top: 4px; }
.stats { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; }
.stats .cap { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.st-goal { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface-2); box-shadow: var(--stage-ring); }
.st-goal > b { font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.4rem); }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--hair); }
.bar .seg { display: block; height: 100%; background: var(--c); }
.s-27 { width: 27%; } .s-24 { width: 24%; } .s-12 { width: 12.5%; } .s-10 { width: 9.5%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.legend b { color: var(--ink); font-weight: 600; }
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-cards > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); box-shadow: var(--stage-ring); min-width: 0; }
.st-cards b { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem); }
.st-cards i { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); }
.st-cards i.up { color: var(--live); }
.insights-card { position: relative; padding: clamp(18px, 2.4vw, 24px); display: grid; gap: 12px; }
.ins { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); box-shadow: var(--stage-ring); }
.ins .chip { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 7px; border-radius: 6px; }
.ins .when { justify-self: end; font-size: 0.75rem; color: var(--ink-3); align-self: center; }
.ins b { grid-column: 1 / -1; font-weight: 600; font-size: 0.9875rem; line-height: 1.35; }
.ins i { grid-column: 1 / -1; font-style: normal; font-size: 0.8125rem; color: var(--ink-2); }
.insights-card .n-pro { left: -14px; top: -16px; --rot: -4deg; }
@media (max-width: 860px) { .stats-html { grid-template-columns: minmax(0, 1fr); } .st-cards { grid-template-columns: minmax(0, 1fr); } }
.legend .c-design, .bar .c-design { --c: var(--tag-design); }

/* the ally statement: one loud line, dense */
.ally { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--hair); }
.ally-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.ally-h { font-family: var(--font-display); font-size: clamp(2.6rem, 1.2rem + 5vw, 5.6rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 650; }
.ally-copy { display: grid; gap: 14px; }
@media (max-width: 860px) { .ally-grid { grid-template-columns: minmax(0, 1fr); } }

/* the finale: the day closes at now */
.final-day { text-align: left; border-top: 0; padding-block: clamp(72px, 10vw, 140px); overflow: clip; }
.final-day .wrap { justify-items: stretch; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.final-copy { display: grid; gap: 28px; }
.final-day .h2 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.2rem); max-width: 12ch; }
.final-day .get { justify-items: start; }
.final-shot .window.narrow { max-width: 320px; }
.final-shot .n-now { left: -6%; top: 86%; --rot: -4deg; }
@media (max-width: 760px) { .final-grid { grid-template-columns: minmax(0, 1fr); } .final-shot .window.narrow { max-width: 300px; } }
.agents-hero .window.narrow, .page-hero .window.narrow { max-width: 380px; }
.lanes-wide { margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 620px) { .lanes-wide { display: none; } }
.setup-wrap .copy { display: grid; gap: 20px; max-width: 720px; }
.timer-window { max-width: 620px; margin-inline: auto; }
.page-hero .rules-shot { margin-inline: auto; }

/* comparison table as an object: the Focus Ally column is lit */
.cmp-wrap { box-shadow: var(--shadow-2), var(--stage-ring); border-radius: 18px; }
.cmp td:last-child, .cmp thead th:last-child { background: var(--accent-soft); }
.cmp thead th:last-child { color: var(--accent-ink); }
.cmp-fig { position: relative; margin: 28px 0 0; }
.cmp-fig .anno { right: 6%; top: -14px; --rot: 3deg; }
.cmp-fig .cmp-wrap { margin-top: 0; }
@media (max-width: 600px) { .cmp td:last-child { background: none; } .cmp tr { background: none; } }
@media (min-width: 961px) and (max-width: 1140px) { .nav a { padding-inline: 8px; } .header-badge .badge img { height: 28px; } }

.page-hero { overflow-x: clip; }
.rule-list li.on i, .rule-list li.on .chev { color: var(--ink-2); }
.st-cards i.up { color: color-mix(in oklab, var(--live) 72%, var(--ink)); }

/* ---------- pass 5: phone layout (annotations never sit on data; hit areas ≥ 44px) ---------- */
@media (max-width: 699px) {
  /* hero, agents page hero and the finale: the tape notes leave the picture and sit in a row under the window.
     The pulse ring and the picture already point at the thing; the notes name it. */
  .showcase .window { margin-bottom: 62px; }
  .showcase .window .anno { top: calc(100% + 14px); }
  .showcase .window .n-walk { left: 2%; right: auto; --rot: -3deg; }
  .showcase .window .n-agent { left: auto; right: 2%; --rot: 2deg; }
  .showcase .window .n-agent svg { display: none; }
  .showcase .window .n-walk::before, .showcase .window .n-agent::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--agent);
  }
  .showcase .window .n-walk::before { background: var(--accent); }
  .showcase .window .n-now { left: 4%; right: auto; --rot: -3deg; }
  /* the ring starts below the lane icons instead of on top of them */
  .showcase .window .pulse, .window.narrow .pulse { top: 50.2%; height: 24.8%; }

  /* plan / fact strip: tapes above the picture, not across the top of the columns */
  .plan-strip .window { margin-top: 58px; }
  .plan-strip .n-plan, .plan-strip .n-fact { top: -42px; }
  .plan-strip .n-plan { left: 12%; }
  .plan-strip .n-fact { left: 56%; }
  .cmp-fig { margin-top: 52px; }
  .cmp-fig .anno { top: -40px; right: 4%; }

  /* rules card and insights card: the note moves out of the rows */
  .rules-shot .n-task { position: relative; right: auto; top: auto; display: flex; width: max-content; max-width: 100%; margin: 14px 4px 0 auto; }
  .insights-card { margin-top: 22px; }
  .insights-card .n-pro { left: 8px; top: -22px; }

  /* tap targets: a 44px hit area with no change in layout */
  .more { padding-block: 11px; margin-block: -11px; }
  .logo { padding-block: 8px; margin-block: -8px; }
  .crumbs a { display: inline-block; padding: 10px 6px; margin: -10px -6px; }
  .copy-btn::after { content: ""; position: absolute; inset: -9px; }
  .theme-switch button { min-height: 44px; padding-inline: 14px; }
}
/* tablet: the agent note sits in the empty stretch above the live block, not on its corner */
@media (min-width: 700px) and (max-width: 959px) { .showcase .window .n-agent { top: 58%; } }
