/* RUNNIVE site — one stylesheet for every page (the help center adds help.css).
   Editorial and quiet, after the "Orvante Agency" design on MotionSites (motionsites-web-builder skill):
   paper and ink with one blue, a very large two-beat headline set left, chapters opened by a thin ink
   rule instead of coloured labels, hairline lists instead of icon cards, and one dark paragraph whose
   words light up as it scrolls past. Blue is kept for the status dot and for whatever the AI does. */

html, body { background: #f4f2ed; }

@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("assets/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  /* color */
  --paper: #f4f2ed;        /* page */
  --paper-deep: #eae7e0;   /* alternate sections */
  --surface: #fbfaf7;      /* panels, the two examples */
  --ink: #141413;
  --ink-soft: #55524c;
  --ink-faint: #6b6861;
  --ink-mute: #87837b;     /* the quiet half of a large headline only */
  --rule: rgba(20, 20, 19, .12);
  --rule-strong: rgba(20, 20, 19, .26);
  --accent: #1d5adb;
  --accent-ink: #1a4fc0;
  --accent-wash: #e5ecfa;
  --accent-text: var(--accent-ink);
  --focus: #1d5adb;
  --stage: #1a1917;

  /* type */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-mono: "Cascadia Mono", "SF Mono", Consolas, ui-monospace, "Pretendard Variable", monospace;
  --fs-display: clamp(2.25rem, 9vw, 7rem);
  --fs-h1: clamp(2.375rem, 5.4vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 4.1vw, 3.5rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: .9375rem;

  /* space and shape */
  --gutter: clamp(20px, 4.4vw, 64px);
  --col-gap: clamp(16px, 2.4vw, 40px);
  --section: clamp(88px, 10.5vw, 152px);
  --max: 1280px;
  --radius: 10px;          /* small boxes, keys */
  --radius-card: 20px;     /* the examples, the price panel */
  --radius-panel: 28px;    /* the screenshot stages */
  --radius-pill: 999px;    /* buttons, badges */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* names the help center stylesheet reads */
  --line: var(--rule);
  --muted: var(--ink-soft);
  --soft: var(--paper);
  --blue: var(--accent);
  --ui-blue-text: var(--accent-ink);
  --ui-border-strong: var(--rule-strong);
  --ui-shadow-sm: none;
  --ui-shadow-panel: 0 24px 48px rgba(20, 20, 19, .12);
  --ui-active-bg: var(--accent-wash);
  --ui-paused-bg: #f3e9d4;
  --shadow-card: 0 1px 2px rgba(20, 20, 19, .05), 0 12px 32px -18px rgba(20, 20, 19, .28);
}

/* A tone class re-points the color tokens, so everything inside flips with it. */
.tone-light {
  --ink: #141413; --ink-soft: #55524c; --ink-faint: #6b6861; --ink-mute: #87837b;
  --paper: #f4f2ed; --paper-deep: #eae7e0; --surface: #fbfaf7;
  --rule: rgba(20, 20, 19, .12); --rule-strong: rgba(20, 20, 19, .26);
  --accent-text: #1a4fc0; --focus: #1d5adb;
  color: var(--ink);
}
.tone-dark {
  --ink: #f2f0ea; --ink-soft: rgba(242, 240, 234, .74); --ink-faint: rgba(242, 240, 234, .6); --ink-mute: rgba(242, 240, 234, .5);
  --paper: #121211; --paper-deep: #1c1b19; --surface: #22211e;
  --rule: rgba(242, 240, 234, .13); --rule-strong: rgba(242, 240, 234, .28);
  --accent-text: #9db8ff; --focus: #9db8ff;
  background: var(--paper); color: var(--ink);
}
.tone-blue {
  --ink: #f8f6f0; --ink-soft: rgba(248, 246, 240, .88); --ink-faint: rgba(248, 246, 240, .76);
  --paper: #1d5adb; --surface: #1a4fc0;
  --rule: rgba(248, 246, 240, .22); --rule-strong: rgba(248, 246, 240, .5);
  --accent-text: #f8f6f0; --focus: #f8f6f0;
  background: var(--paper); color: var(--ink);
}
.tone-dark ::selection, .tone-blue ::selection { background: rgba(157, 184, 255, .35); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(29, 90, 219, .18); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-pill); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small shared pieces ---------- */
.label { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.eyebrow { font-size: .9375rem; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--ink-faint); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
em.accent { font-style: normal; color: var(--accent-text); }
h1 { font-size: var(--fs-h1); font-weight: 560; line-height: 1.1; letter-spacing: -.045em; }
h2 { font-size: var(--fs-h2); font-weight: 560; line-height: 1.16; letter-spacing: -.042em; }
h3 { font-size: var(--fs-h3); font-weight: 640; line-height: 1.45; letter-spacing: -.02em; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.7; margin-top: 18px; max-width: 34em; }
.note { font-size: var(--fs-small); color: var(--ink-soft); }
svg.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

/* buttons are pills: ink on paper, paper on ink */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1.2; text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.button:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.button:active { transform: scale(.97); }
.button-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.button-line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.button-line:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .2s var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }
.prose-link { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose-link:hover { text-decoration-thickness: 2px; }
kbd { font-family: var(--font-mono); font-size: .85em; padding: 1px 6px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; letter-spacing: .14em; }
.brand img { width: 26px; height: 26px; }
/* the menu sits in the middle as one segmented pill */
.site-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-pill); font-size: .9375rem; color: var(--ink-soft); }
.site-nav a { padding: 6px 16px; border-radius: var(--radius-pill); transition: background-color .2s var(--ease), color .2s var(--ease); }
.site-nav a:hover { color: var(--ink); background: var(--paper-deep); }
.site-nav a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* the phone menu: a native disclosure, so it works without JavaScript */
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--rule-strong); border-radius: 50%; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu[open] .menu-bars { background: transparent; }
.menu[open] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-bars::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter))); padding: 8px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-card); box-shadow: 0 24px 48px -24px rgba(20, 20, 19, .35); }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.menu-panel a:hover { background: var(--paper-deep); }
.menu-panel a[aria-current="page"] { color: var(--accent-text); }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--section); padding-top: 64px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-soft); overflow: hidden; }
main:has(> .cta:last-child) + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.footer-grid .brand { color: var(--ink); }
.footer-about p { margin-top: 14px; max-width: 22em; }
.footer-col h2 { font-size: .875rem; font-weight: 650; letter-spacing: 0; color: var(--ink); line-height: 1.4; }
.footer-col ul { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule); font-size: .8125rem; }
/* the name, set as large as the page is wide and cut off by the bottom edge */
.footer-mark { margin-top: clamp(40px, 6vw, 72px); font-size: clamp(4rem, 22vw, 22rem); font-weight: 640; line-height: .74; letter-spacing: -.06em; text-align: center; white-space: nowrap; color: #e6e2da; margin-bottom: -.09em; user-select: none; pointer-events: none; }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--paper-deep); }
.section-intro { max-width: 46rem; }
.section-intro.is-center { margin-inline: auto; text-align: center; }
.section-intro.is-center .lead { margin-inline: auto; }
.section-intro h2 { margin-top: 12px; }

/* a chapter opens with a thin ink rule, its number and name, then a large heading with the
   explanation set against its bottom-right */
.chapter-label { display: flex; align-items: baseline; gap: 14px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.chapter-label .num { font-size: .8125rem; color: var(--ink); }
.chapter-meta { margin-left: auto; font-weight: 400; color: var(--ink-faint); }
.chapter-row, .compare-head, .price-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 20px; align-items: end; }
.chapter-row { margin-top: clamp(40px, 6vw, 88px); }
.chapter-row h2, .compare-head h2, .price-head h2 { grid-column: 1 / span 7; }
.chapter-row .lead, .compare-head .lead, .price-head .lead { grid-column: 8 / -1; margin-top: 0; }

/* inner pages (about, updates) keep a heading column beside the text */
.section-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.section-head { grid-column: 1 / span 4; }
.section-body { grid-column: 5 / -1; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(36px, 5.5vw, 80px); }
.hero-status { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink-soft); }
.hero-title { margin-top: clamp(20px, 2.6vw, 36px); font-size: var(--fs-display); font-weight: 540; line-height: 1.04; letter-spacing: -.055em; }
.hero-title .line { display: block; overflow: hidden; padding: .02em .08em .1em; margin: -.02em -.08em -.1em; }
.hero-title .line > span { display: block; }
.hero-title .is-muted { color: var(--ink-mute); }
.hero-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; align-items: end; margin-top: clamp(28px, 3.6vw, 52px); }
.hero-lead { grid-column: 1 / span 6; font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-soft); max-width: 33em; }
.hero-cta { grid-column: 8 / -1; display: grid; justify-items: end; gap: 14px; text-align: right; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .hero-actions { justify-content: flex-end; }
.hero-actions .button { min-height: 52px; }
.hero-note { font-size: .875rem; line-height: 1.6; color: var(--ink-faint); max-width: 30em; }
.hero-shot { margin-top: clamp(40px, 5vw, 72px); }
.hero-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 32px; flex-wrap: wrap; margin-top: 16px; font-size: .875rem; color: var(--ink-faint); }
.hero-strip { list-style: none; display: flex; flex-wrap: wrap; row-gap: 4px; color: var(--ink-soft); }
.hero-strip li + li::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 14px; background: var(--rule-strong); vertical-align: -.1em; }

/* the app screenshot rises out of the bottom of a dark stage; the app's own title bar
   (still the old name) is cropped off with a negative top margin (a % of the width) */
.stage { position: relative; overflow: hidden; padding: clamp(12px, 2.2vw, 28px) clamp(12px, 4.6vw, 72px) 0; background: var(--stage); border-radius: var(--radius-panel); }
.stage.is-light { background: var(--paper-deep); }
.section-alt .stage.is-light { background: var(--paper); }
.stage-meta { display: flex; justify-content: space-between; gap: 16px; padding-bottom: clamp(10px, 1.6vw, 18px); font-size: .8125rem; color: rgba(242, 240, 234, .62); }
.stage.is-light .stage-meta { color: var(--ink-faint); }
.shot { overflow: hidden; aspect-ratio: 1366 / 600; border-radius: 10px 10px 0 0; background: #e9ebef; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.shot img { width: 100%; max-width: none; margin-top: -3.514%; }
.record-shot { margin-top: clamp(48px, 6vw, 80px); }
.record-shot figcaption { margin-top: 14px; font-size: .875rem; color: var(--ink-faint); }

/* ---------- the one dark paragraph ---------- */
.manifesto { margin-top: var(--section); padding-block: clamp(96px, 14vw, 200px); }
.manifesto-text { max-width: 24em; font-size: clamp(1.625rem, 3.5vw, 3rem); font-weight: 500; line-height: 1.48; letter-spacing: -.035em; }
.manifesto-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 96px); padding-top: 22px; border-top: 1px solid var(--rule); }
.manifesto-foot p { max-width: 32em; font-size: var(--fs-lead); line-height: 1.7; }
.manifesto-foot p span { color: var(--ink-faint); }

/* ---------- numbered steps: a hairline list, no badges ---------- */
.steps { list-style: none; border-top: 1px solid var(--rule-strong); }
.steps > li { display: grid; grid-template-columns: 3em minmax(0, 1fr); align-content: start; gap: 12px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.steps > li > .num { font-size: .8125rem; padding-top: .28em; }
.steps p { margin-top: 6px; color: var(--ink-soft); font-size: var(--fs-small); }
.steps.is-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: clamp(48px, 6vw, 80px); border-top: 0; }
.steps.is-row > li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 0 0; border-top: 1px solid var(--rule-strong); border-bottom: 0; }
.keys { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.keys li { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.keys kbd { min-width: 52px; padding: 6px 10px; font-size: .9375rem; font-weight: 600; text-align: center; color: var(--ink); border-radius: 8px; border-bottom-width: 3px; }

.reuse-body, .rehearsal-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; align-items: start; margin-top: clamp(48px, 6vw, 80px); }
.reuse-body .steps { grid-column: 1 / span 5; }
.reuse-body .trace { grid-column: 7 / -1; }
.rehearsal-body .demo { grid-column: 1 / span 8; margin-top: 0; }
.side-note { grid-column: 10 / -1; padding-top: 18px; border-top: 1px solid var(--rule-strong); font-size: var(--fs-small); color: var(--ink-soft); }
.side-note h3 { font-size: 1rem; color: var(--ink); }
.side-note p { margin-top: 10px; }
.side-note .prose-link { display: inline-block; margin-top: 14px; }

/* the AI record turning into a macro (an illustration, not the real app) */
.trace { border-radius: var(--radius-card); overflow: hidden; font-size: .875rem; }
.trace-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--rule); font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.trace-bar span:last-child { color: var(--ink); }
.trace-arrow { color: var(--accent-text); font-family: var(--font-mono); }
.trace-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.trace-body > ol { list-style: none; padding: 18px 20px 20px; }
.trace-macro { border-left: 1px solid var(--rule); }
.trace-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 6px 0; }
.trace-log time { font-size: .75rem; color: var(--ink-faint); }
.trace-log code { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace-tag { font-size: .75rem; color: var(--ink-faint); }
.trace-log .fold { opacity: .45; }
.trace-log .fold code { text-decoration: line-through; text-decoration-color: rgba(242, 240, 234, .45); }
.trace-log .judge .trace-tag { color: var(--accent-text); font-weight: 600; }
.trace-macro li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); gap: 0 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; }
.trace-macro li + li { margin-top: 8px; }
.trace-macro .num { grid-row: span 2; padding-top: 1px; }
.trace-macro b { font-weight: 620; font-size: .9375rem; }
.trace-macro small { color: var(--ink-faint); font-size: .8125rem; }
.trace-macro .judge { background: #1d5adb; border-color: #1d5adb; }
.trace-macro .judge small, .trace-macro .judge .num { color: rgba(255, 255, 255, .84); }
.trace-macro .judge b { color: #fff; }
.trace-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-faint); }
.trace-count { color: var(--accent-text); font-weight: 600; }

/* ---------- interactive examples (pure CSS: the checked radio decides what shows) ---------- */
.demo { margin-top: clamp(48px, 6vw, 72px); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-card); overflow: hidden; }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.demo-head .label { color: var(--ink); }
.demo-head .note { font-size: .8125rem; }
.demo-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.demo-body > * { padding: 24px 22px 28px; }
.demo-body > * + * { border-left: 1px solid var(--rule); background: var(--paper); }
.flow { list-style: none; }
.flow > li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
.flow > li:first-child { border-top: 0; padding-top: 0; }
.flow .num { grid-row: span 2; padding-top: 2px; font-size: .8125rem; }
.flow b { font-weight: 620; }
.flow small { color: var(--ink-soft); font-size: .875rem; }
.choice { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; grid-column: 2; }
.choice legend { font-size: .875rem; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
.choice-row { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; background: var(--paper-deep); border-radius: var(--radius-pill); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { padding: 7px 16px; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-radius: var(--radius-pill); transition: background-color .2s var(--ease), color .2s var(--ease); }
.choice label:hover { color: var(--ink); }
.choice input:checked + label { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-top { margin: 0 0 20px; }
.result-title { margin-top: 10px; font-size: 1.25rem; font-weight: 640; letter-spacing: -.025em; line-height: 1.4; }
.result p { margin-top: 10px; color: var(--ink-soft); font-size: var(--fs-small); }
.result-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: .875rem; }
.result-meta div { display: flex; justify-content: space-between; gap: 16px; }
.result-meta dt { color: var(--ink-soft); }
.result-meta dd { font-weight: 600; text-align: right; }
.explain { display: none; }
.decision-demo:has(#mode-fixed:checked) [data-explain="fixed"],
.decision-demo:has(#mode-ai:checked) [data-explain="ai"],
.decision-demo:has(#mode-human:checked) [data-explain="human"],
.rehearsal-demo:has(#assume-yes:checked) [data-explain="yes"],
.rehearsal-demo:has(#assume-no:checked) [data-explain="no"] { display: block; }
@supports not selector(:has(*)) { .explain { display: block; } .explain + .explain { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); } }
.path > li { transition: opacity .3s var(--ease); }
.rehearsal-demo:has(#assume-yes:checked) .path [data-branch="no"],
.rehearsal-demo:has(#assume-no:checked) .path [data-branch="yes"] { opacity: .32; }
.branch-tag { display: inline-block; margin-left: 8px; padding: 0 8px; font-size: .75rem; font-weight: 600; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); color: var(--ink-soft); vertical-align: 2px; }
.demo-footnote { margin-top: 16px; font-size: .875rem; color: var(--ink-faint); }

/* ---------- everything else: a plain index under hairlines ---------- */
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: clamp(48px, 6vw, 80px); }
.feature-list > li { padding: 20px 0 32px; border-top: 1px solid var(--rule-strong); }
.feature-list h3 { font-size: 1.0625rem; }
.feature-list p { margin-top: 6px; max-width: 25em; color: var(--ink-soft); font-size: var(--fs-small); }
.feature-list .text-link { margin-top: 12px; font-size: .9375rem; }

/* ---------- my PC ---------- */
.local-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(48px, 6vw, 80px); }
.local-head { grid-column: 1 / span 5; }
.ledger { grid-column: 7 / -1; align-self: end; border-top: 1px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 6px 24px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.ledger dt { font-weight: 650; }
.ledger-items { font-weight: 600; }
.ledger dd p + p { margin-top: 6px; color: var(--ink-soft); font-size: var(--fs-small); }
.local-facts { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
.local-facts > li { padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.local-facts h3 { font-size: 1rem; }
.local-facts p { margin-top: 6px; color: var(--ink-soft); font-size: var(--fs-small); }

/* ---------- comparison table ---------- */
.table-wrap { margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; border-top: 1px solid var(--ink); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--fs-small); }
.compare th, .compare td { padding: 18px 20px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare th:first-child { padding-left: 0; }
.compare thead th { font-size: .875rem; font-weight: 600; color: var(--ink-faint); }
.compare tbody th { font-weight: 640; width: 36%; }
.compare tbody th small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.compare td { width: 21%; }
.compare .us { background: rgba(20, 20, 19, .04); }
.compare thead .us { color: var(--ink); }
.mark { display: inline-block; vertical-align: middle; }
.mark-yes { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.mark-yes::after { content: ""; position: absolute; left: 7.5px; top: 4.5px; width: 6px; height: 10px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mark-no { width: 14px; height: 2px; margin: 10px 4px; background: var(--ink-faint); }
.compare td small { display: block; color: var(--ink-soft); margin-top: 6px; font-size: .8125rem; }
.table-foot { display: flex; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 14px; font-size: .875rem; color: var(--ink-soft); }
.table-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.table-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.table-legend .mark-yes { width: 18px; height: 18px; }
.table-legend .mark-yes::after { left: 6px; top: 3px; width: 5px; height: 9px; border-width: 0 1.5px 1.5px 0; }
.table-legend .mark-no { margin: 0 2px; }
.table-hint { display: none; margin-top: 12px; font-size: .875rem; color: var(--ink-soft); }
.more { margin-top: 32px; border-top: 1px solid var(--rule); }
.more summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--ink-soft); line-height: 1; }
.more[open] > summary::after { content: "−"; }
.more-body { padding-bottom: 12px; color: var(--ink-soft); max-width: 46em; font-size: var(--fs-small); }
.more-body p + p { margin-top: 12px; }
.doc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.doc-links h3 { font-size: .875rem; font-weight: 650; color: var(--ink); }
.doc-links ul { list-style: none; margin-top: 8px; }
.doc-links li { padding: 4px 0; }

/* ---------- price: one dark band, one bordered panel in three columns ---------- */
.plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--rule-strong); border-radius: var(--radius-card); }
.plan > * { padding: clamp(22px, 2.6vw, 36px); }
.plan > * + * { border-left: 1px solid var(--rule); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-name { font-weight: 700; font-size: .9375rem; letter-spacing: .14em; }
.plan-badge { padding: 3px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 600; line-height: 1.6; color: var(--ink-soft); }
.plan-price { display: grid; gap: 10px; margin-top: 28px; }
.plan-price strong { font-size: clamp(3rem, 5.6vw, 5rem); font-weight: 300; line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: .9375rem; color: var(--ink-soft); }
.plan-desc { margin-top: 16px; color: var(--ink-soft); font-size: var(--fs-small); }
.plan-cta { width: 100%; margin-top: 24px; }
.plan-fine { margin-top: 12px; font-size: .8125rem; line-height: 1.55; color: var(--ink-faint); }
.plan-fine a { white-space: nowrap; }
.plan-col { display: flex; flex-direction: column; }
.plan-col h3 { font-size: 1rem; }
.plan-checks, .plan-notes { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.plan-checks li, .plan-notes li { position: relative; padding-left: 26px; line-height: 1.55; font-size: var(--fs-small); }
.plan-checks li::before { content: ""; position: absolute; left: 4px; top: .2em; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-notes li { color: var(--ink-soft); }
.plan-notes li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px var(--col-gap); align-items: start; }
.faq-aside { display: grid; gap: 12px; justify-items: start; margin-top: 32px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--rule-strong); border-radius: 50%; font-size: 1.125rem; font-weight: 400; transition: transform .3s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details[open] > summary::after { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq details > p { padding: 0 2.5em 24px 0; color: var(--ink-soft); max-width: 44em; }

/* ---------- closing ---------- */
.cta { padding-block: var(--section) clamp(72px, 8vw, 120px); }
.cta-inner { padding-top: 14px; border-top: 1px solid var(--ink); }
.cta h2 { margin-top: clamp(36px, 5vw, 72px); font-size: clamp(2.375rem, 6.6vw, 6rem); font-weight: 540; line-height: 1.06; letter-spacing: -.055em; }
.cta-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px; align-items: end; margin-top: clamp(32px, 4vw, 52px); }
.cta-row .lead { grid-column: 1 / span 6; margin-top: 0; }
.cta-row .hero-actions { grid-column: 8 / -1; justify-content: flex-end; }

/* ---------- inner pages (about, updates, privacy) ---------- */
.page { padding-top: clamp(40px, 6vw, 80px); }
.page-back { display: inline-block; font-size: var(--fs-small); color: var(--ink-soft); }
.page-back:hover { color: var(--ink); }
.page-head { margin-top: 28px; padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--ink); }
.page-head h1 { margin-top: 14px; max-width: 15em; }
.page-head .lead { max-width: 38em; }
.page-section { padding-top: clamp(48px, 6vw, 80px); }
.page-section h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.page-section .section-body p + p { margin-top: 16px; }
.page-section .section-body { color: var(--ink-soft); }
.rows { list-style: none; border-top: 1px solid var(--rule-strong); }
.rows > li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 24px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.rows .num { grid-row: span 2; font-size: .8125rem; padding-top: 4px; }
.rows p { color: var(--ink-soft); margin-top: 6px; max-width: 36em; }
.facts { border-top: 1px solid var(--rule-strong); }
.facts > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 650; font-size: 1.0625rem; }
.facts dd { color: var(--ink-soft); }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 24px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-card); color: var(--ink); }
.contact-card b { display: block; font-size: 1.0625rem; }
.contact-card p { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.timeline { list-style: none; border-top: 1px solid var(--rule-strong); }
.timeline > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 32px; padding: 32px 0 40px; border-bottom: 1px solid var(--rule); }
.timeline time { font-family: var(--font-mono); font-size: .875rem; color: var(--ink); }
.timeline .tag { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.timeline h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.timeline .entry-lead { margin-top: 12px; color: var(--ink-soft); }
.timeline .rows { margin-top: 24px; }
.timeline .rows > li { grid-template-columns: minmax(0, 1fr); padding: 18px 0 20px; }
.timeline .rows p { margin-top: 4px; }
.timeline .rows a { display: inline-block; margin-top: 8px; font-size: var(--fs-small); }
.timeline article > .prose-link { display: inline-block; margin-top: 12px; font-size: var(--fs-small); }

/* privacy policy body (generated from the app's PRIVACY.md) */
.policy-content { max-width: 46em; margin-top: 48px; color: var(--ink); }
.policy-content h1 { display: none; }
.policy-content h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.policy-content h3 { font-size: 1.1875rem; margin-top: 36px; }
.policy-content p, .policy-content ul, .policy-content blockquote, .policy-content table, .policy-content pre { margin-top: 16px; }
.policy-content ul { padding-left: 1.3em; }
.policy-content li + li { margin-top: 6px; }
.policy-content blockquote { border-left: 2px solid var(--ink); padding: 4px 0 4px 18px; }
.policy-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); display: block; overflow-x: auto; }
.policy-content th, .policy-content td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.policy-content th { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); border-bottom-color: var(--rule-strong); }
.policy-content code, .policy-content pre { font-family: var(--font-mono); font-size: .875em; }
.policy-content code { background: var(--paper-deep); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.policy-content pre { background: var(--paper-deep); padding: 16px; overflow-x: auto; border-radius: 8px; }
.policy-content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy-meta { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 24px; font-size: var(--fs-small); }

/* ---------- page not found ---------- */
.not-found { padding-block: clamp(72px, 12vw, 160px); text-align: center; }
.not-found h1 { margin-top: 14px; }
.not-found .lead { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .reuse-body .steps, .reuse-body .trace, .rehearsal-body .demo, .side-note { grid-column: 1 / -1; }
  .side-note { max-width: 40em; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-head, .ledger { grid-column: 1 / -1; }
  .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-head { grid-column: 1 / -1; }
  .plan > .plan-col { border-top: 1px solid var(--rule); }
  .plan > .plan-col:nth-child(2) { border-left: 0; }
  .section-head, .section-body { grid-column: 1 / -1; }
  .section-body { margin-top: 28px; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-lead, .hero-cta, .chapter-row h2, .chapter-row .lead, .compare-head h2, .compare-head .lead,
  .price-head h2, .price-head .lead, .cta-row .lead, .cta-row .hero-actions { grid-column: 1 / -1; }
  .hero-cta { justify-items: start; text-align: left; }
  .hero-cta .hero-actions, .cta-row .hero-actions { justify-content: flex-start; }
}
@media (max-width: 880px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .header-actions .button { display: none; }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .demo-body > * + * { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .table-hint { display: block; }
  .steps.is-row { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .local-facts { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .ledger > div { grid-template-columns: minmax(0, 1fr); }
  .rows > li { grid-template-columns: minmax(0, 1fr); }
  .rows .num { grid-row: auto; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .timeline > li { grid-template-columns: minmax(0, 1fr); }
  .doc-links { grid-template-columns: minmax(0, 1fr); }
  .faq details > p { padding-right: 0; }
  .trace-body { grid-template-columns: minmax(0, 1fr); }
  .trace-macro { border-left: 0; border-top: 1px solid var(--rule); }
  /* phones see the left part of the app, a little larger */
  .shot { aspect-ratio: 4 / 3; }
  .shot img { width: 160%; margin-top: -5.622%; }
  .stage { border-radius: 20px; }
  .hero-foot { display: grid; }
  .hero-strip { display: grid; gap: 2px; }
  .hero-strip li + li::before { display: none; }
}
@media (max-width: 699px) {
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan > .plan-col, .plan > .plan-col:nth-child(2) { border-left: 0; }
}
@media (max-width: 640px) {
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .button { width: 100%; }
  .choice-row { display: flex; }
  .choice label { flex: 1; text-align: center; padding-inline: 8px; }
  .chapter-meta { display: none; }
}

/* ---------- motion: small, and the page is complete without it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
@media (prefers-reduced-motion: no-preference) {
  /* the hero assembles once on load (CSS only, so a failed script changes nothing):
     each headline line rises out of its own slot, then the copy, then the app */
  .hero-title .line > span { animation: line-up 1.05s var(--ease-out) both; animation-delay: calc(.1s + var(--i, 0) * .13s); }
  .hero-status { animation: soft-up .8s var(--ease-out) both; }
  .hero-lead { animation: soft-up .9s var(--ease-out) .4s both; }
  .hero-cta { animation: soft-up .9s var(--ease-out) .5s both; }
  .hero-shot .stage { animation: soft-up 1.2s var(--ease-out) .55s both; }
  .hero-shot .shot img { animation: settle 1.8s var(--ease-out) .55s both; transform-origin: 50% 0; }
  .hero-foot { animation: fade-in .8s ease .9s both; }
  @keyframes line-up { from { transform: translateY(108%); } }
  @keyframes soft-up { from { opacity: 0; transform: translateY(28px); } }
  @keyframes settle { from { transform: scale(1.05); } }
  @keyframes fade-in { from { opacity: 0; } }

  /* motion.js adds .js only when it can also reveal, so nothing stays hidden if it fails */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .js .feature-list > .reveal:nth-child(3n + 2), .js .steps.is-row > .reveal:nth-child(2), .js .local-facts > .reveal:nth-child(2) { transition-delay: .08s; }
  .js .feature-list > .reveal:nth-child(3n), .js .steps.is-row > .reveal:nth-child(3), .js .local-facts > .reveal:nth-child(3) { transition-delay: .16s; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  /* met from above (scrolling back up after a fast jump): just there, no rise against the scroll */
  .js .reveal.is-instant { transition: none; }
}
