/* Sayzen site. Static HTML and CSS; see README.md.
   One flat accent band, warm paper, and accent-tinted section panels. No engraved art, no fake window chrome.
   <html data-theme="light|dark" data-accent="iris|ultramarine|clay|graphite|rose"> is set by theme.js. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Warm paper and ink. Section panels mix in the active accent so the scroll changes room.
   The accent itself stays whole on buttons, swatches and the one band. */
:root {
  --accent: #8b80f9;
  --on-accent: #1c1612;
  --paper: #f7f2e9;
  --ink: #1c1612;
  --muted: #4a403a;
  --soft: color-mix(in srgb, var(--accent) 14%, #f6e6d4);
  --panel: color-mix(in srgb, var(--accent) 20%, #f4dcc6);
  --panel-deep: color-mix(in srgb, var(--accent) 28%, #efd0b2);
  --line: #e4d3c2;
  --text: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wide: 1080px;
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 52ch;
  --section: clamp(104px, 14vw, 152px);
  color-scheme: light;
}
[data-accent='iris'] { --accent: #8b80f9; --on-accent: #1c1612; }
[data-accent='ultramarine'] { --accent: #3d3df2; --on-accent: #ffffff; }
[data-accent='clay'] { --accent: #d97757; --on-accent: #1c1612; }
[data-accent='graphite'] { --accent: #2a2a2e; --on-accent: #ffffff; }
[data-accent='rose'] { --accent: #e7799c; --on-accent: #1c1612; }
/* Graphite has no chroma, so its rooms are warm sand rather than a gray mix of the accent. */
[data-accent='graphite'] {
  --soft: #f3e0cc;
  --panel: #f6dcc0;
  --panel-deep: #efcba6;
}
[data-theme='dark'] {
  --paper: #14110f;
  --ink: #f6f1ea;
  --muted: #d4c2b6;
  --soft: color-mix(in srgb, var(--accent) 22%, #261812);
  --panel: color-mix(in srgb, var(--accent) 30%, #1c1210);
  --panel-deep: color-mix(in srgb, var(--accent) 46%, #140e0c);
  --line: #3d302a;
  color-scheme: dark;
}
[data-theme='dark'][data-accent='graphite'],
[data-theme='dark'] [data-accent='graphite'] { --accent: #e6e6ea; --on-accent: #1c1410; }
[data-theme='dark'][data-accent='graphite'] {
  --soft: #2e241e;
  --panel: #3a2b22;
  --panel-deep: #54382c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
p + p { margin-top: 0.8em; }
button { font: inherit; color: inherit; }
code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--soft); font: 0.9em/1.4 var(--mono); }
.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }

/* Shortcuts read as words, not keycaps. */
kbd, .cap {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: 600 0.95em/inherit var(--text);
  text-transform: none;
  vertical-align: baseline;
  white-space: nowrap;
}
.cap .sym, .cap.sym, kbd.sym { font: 600 1em/inherit var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 15px/1 var(--text);
  text-decoration: none;
}
.button:hover { text-decoration: none; }
.button svg { width: 16px; height: 16px; flex: none; }
.button .arrow { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button.small { height: 36px; padding: 0 14px; font-size: 14px; }
.top .button.small { height: 32px; padding: 0 12px; font-size: 13px; }
.glass { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Header: a short centered cluster. Same-page sections are the side rail, not links here. */
.top { position: sticky; top: 0; z-index: 30; }
.top.wrap { max-width: none; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  max-width: none;
  height: auto;
  min-height: 56px;
  margin: 0 auto;
  padding: 4px 0;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand span { font: 600 16px/1 var(--text); letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: 0; margin-left: 2px; }
.top nav a {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font: 500 14px/1 var(--text);
  text-decoration: none;
}
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--ink); }
.appearance { display: flex; align-items: center; gap: 6px; }
.swatches { display: flex; gap: 0; }
.swatch {
  width: 24px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.swatch::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 50%;
  background: var(--accent);
}
.swatch[aria-pressed='true']::before { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--soft); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .moon { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: none; }
[data-theme='dark'] .theme-toggle .moon { display: block; }
.no-js .appearance { display: none; }

/* Same-page sections. Dots sit in the margin; the name shows on hover or focus. */
.rail {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 18px;
  translate: 0 -50%;
  display: grid;
  gap: 4px;
  justify-items: center;
}
.rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-decoration: none;
}
.rail a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 62%, var(--ink));
  box-shadow: 0 0 0 3px var(--paper);
}
.rail a[aria-current='location']::before {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--ink);
}
.rail a span {
  position: absolute;
  right: 26px;
  top: 50%;
  translate: 6px -50%;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font: 500 13px/1 var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.rail a:hover span,
.rail a:focus-visible span { opacity: 1; translate: 0 -50%; }

/* Sections. Full-bleed rooms, more air inside a room than a hairline between them. */
main { display: block; }
.section { padding: var(--section) 0 0; }
.panel { padding: clamp(72px, 9vw, 112px) 0; background: var(--panel); }
.panel.deep { background: var(--panel-deep); }
.panel .frame,
.panel .cleanup,
.panel .choices button[aria-pressed='true'],
.panel .mode-switch button[aria-pressed='true'] { background: var(--paper); color: var(--ink); }
.section-head { display: grid; gap: 16px; max-width: 36em; }
.display { color: var(--ink); font: 560 clamp(36px, 4.5vw, 52px)/1.12 var(--text); letter-spacing: -0.03em; }
.lede { max-width: var(--measure); color: var(--muted); font-size: 17px; line-height: 1.5; }
.fine { color: var(--muted); font-size: 15px; max-width: var(--measure); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-title { grid-column: 1; font-size: clamp(44px, 6vw, 68px); max-width: 10em; }
.hero-foot { grid-column: 1; display: grid; gap: 24px; margin-top: 24px; }
.hero-cta { display: grid; justify-items: start; gap: 12px; }
.hero > .frame { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 32px; }
.frame {
  max-width: var(--measure);
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--soft);
}
.frame-line { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; letter-spacing: -0.01em; }
.frame-note { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Dictation cleanup: the heard sentence becomes the written one. */
.cleanup { max-width: var(--measure); margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--soft); cursor: default; }
.cleanup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.cleanup-head .names { display: grid; color: var(--muted); font-size: 14px; }
.cleanup-head .names > span { grid-area: 1 / 1; transition: opacity 300ms ease-out; }
.wrote-label, .clean .heard-label { opacity: 0; }
.clean .wrote-label { opacity: 1; }
.cleanup-hint { color: var(--muted); font-size: 14px; transition: opacity 300ms ease-out; }
.clean .cleanup-hint { opacity: 0; }
.cleanup-hint .touch { display: none; }
@media (hover: none) { .cleanup-hint .pointer { display: none; } .cleanup-hint .touch { display: inline; } }
.cleanup-text { color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.clean .cleanup-text { color: var(--ink); }
.cleanup-text .t { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; white-space: pre; width: var(--a, auto); transition: width 460ms var(--ease) var(--d, 0ms); }
.cleanup-text .t > span { display: inline-block; transition: opacity 300ms ease-out var(--d, 0ms); }
.cleanup-text .t > .to { position: absolute; left: 0; top: 0; opacity: 0; }
.cleanup-text .filler > .from { text-decoration: line-through; text-decoration-thickness: 1px; }
.clean .cleanup-text .t { width: var(--b, auto); }
.clean .cleanup-text .t > .from { opacity: 0; }
.clean .cleanup-text .t > .to { opacity: 1; }

.features, .tools, .steps-plain, .spec, .after-list {
  display: grid;
  gap: 32px 48px;
  margin-top: 32px;
}
.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features h3, .steps-plain h3, .spec h3, .after-list h3, .guide h3 { font: 600 17px/1.35 var(--text); }
.features p, .steps-plain p, .spec p, .after-list p, .guide p { margin-top: 4px; color: var(--muted); font-size: 16px; max-width: var(--measure); }
.tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tools > div { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; align-content: start; }
.tools svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tools dt { font: 600 16px/1.35 var(--text); }
.tools dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: var(--measure); }
.more { margin-top: 22px; color: var(--muted); font-size: 15px; }
.steps-plain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.answer { max-width: 36em; margin: 28px 0 0; padding: 0; }
.answer p { font-size: 22px; line-height: 1.4; letter-spacing: -0.02em; }
.spec { max-width: 40em; }
/* One flat accent band per page. Text on it is the accent's own ink, at full strength. */
.band {
  margin-top: 0;
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--accent);
  color: var(--on-accent);
}
.band .display, .band .lede, .band p, .band a { color: var(--on-accent); }
.band .button { background: var(--paper); color: var(--ink); }
/* The ask band’s open side is the notch island. The notch sits on the top edge of the band,
   the way it meets a Mac display. The glass word bubble is only here. */
#commands.band { padding-top: 0; padding-bottom: clamp(28px, 4vw, 48px); }
.band-ask {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 12px 40px;
  align-items: start;
}
.band-ask .section-head { padding-top: clamp(88px, 10vw, 120px); }
.notch-stage {
  --notch-w: 168px;
  --notch-h: 32px;
  --island-ink: #f4f2f8;
  --island-ink-2: #b7b2c2;
  --island-raised: rgb(255 255 255 / 10%);
  position: relative;
  height: 300px;
  overflow: hidden;
  container-type: inline-size;
  color: var(--island-ink);
}
.notch-stage .notch, .notch-stage .island { position: absolute; top: 0; left: 50%; }
.notch-stage .notch { width: var(--notch-w); height: var(--notch-h); translate: -50% 0; border-radius: 0 0 12px 12px; background: #000; }
.notch-stage .notch::before, .notch-stage .notch::after, .notch-stage .island::before, .notch-stage .island::after { content: ''; position: absolute; top: 0; width: var(--shoulder, 8px); height: var(--shoulder, 8px); }
.notch-stage .notch::before, .notch-stage .island::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--shoulder, 8px) - 0.5px), #000 var(--shoulder, 8px)); }
.notch-stage .notch::after, .notch-stage .island::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--shoulder, 8px) - 0.5px), #000 var(--shoulder, 8px)); }
.notch-stage .said {
  position: absolute;
  left: 50%;
  bottom: 72px;
  max-width: 100%;
  padding: 8px 18px 10px;
  border-radius: 999px;
  translate: -50% 0;
  background: rgb(255 255 255 / 55%);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), inset 0 0 0 1px rgb(255 255 255 / 35%);
  color: #1a1822;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 420ms ease-out, width 560ms cubic-bezier(0.22, 0.8, 0.28, 1);
}
.notch-stage .said.on { opacity: 1; }
.notch-stage .said.live { display: flex; justify-content: flex-end; width: 0; padding: 8px 0 10px; overflow: hidden; }
.notch-stage .said.live .track { display: flex; flex: none; padding: 0 16px; }
.notch-stage .said.live .track span { display: block; flex: none; overflow: hidden; margin: 0; color: #1a1822; }
.notch-stage .said.live .track span + span { margin-left: 0.28em; }
.notch-stage .pill {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  width: 148px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  translate: -50% 0;
  background: var(--paper);
  opacity: 0;
  scale: 0.96;
  transition: opacity 480ms ease-out, scale 640ms cubic-bezier(0.22, 0.8, 0.28, 1);
}
.notch-stage .pill.on { opacity: 1; scale: 1; }
.notch-stage .bars { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 16px; }
.notch-stage .bars i { display: block; width: 3px; height: 100%; border-radius: 3px; background: var(--ink); transform: scaleY(var(--v, 0.35)); transition: transform 280ms ease-out; }
.notch-stage .pill.busy .bars i { animation: settle 1.8s ease-in-out infinite alternate; }
.notch-stage .pill.busy .bars i:nth-child(2n) { animation-delay: -0.9s; }
@keyframes settle { from { transform: scaleY(0.4); } to { transform: scaleY(0.62); } }
.notch-stage .island {
  --shoulder: 14px;
  z-index: 2;
  translate: -50% 0;
  opacity: 0;
  color: var(--island-ink);
  font: 400 15px/1.5 var(--text);
  pointer-events: none;
}
.notch-stage .island.on { opacity: 1; }
.notch-stage .island.compact { --shoulder: 8px; }
.notch-stage .island-body { display: flex; justify-content: center; align-items: flex-start; overflow: hidden; border-radius: 0 0 22px 22px; background: #000; }
.notch-stage .island.compact .island-body { border-radius: 0 0 14px 14px; }
.notch-stage .island-body > * { flex: none; opacity: 0; transition: opacity 200ms ease-out; }
.notch-stage .island.on .island-body > * { opacity: 1; transition-duration: 260ms; transition-delay: 170ms; }
.notch-stage .island.closing .island-body > * { opacity: 0; transition-duration: 120ms; transition-delay: 0ms; }
.notch-stage .card { width: min(380px, calc(100cqw - 36px)); padding: calc(var(--notch-h) + 14px) 18px 16px; }
.notch-stage .card p { margin: 0; color: var(--island-ink); font-size: 16px; }
.notch-stage .thinking { color: var(--island-ink-2); font-size: 13px; animation: breathe 1.6s ease-in-out infinite; }
.notch-stage .stream span { display: inline; animation: ink 300ms ease-out both; }
@keyframes ink { from { opacity: 0; } }
@keyframes breathe { 50% { opacity: 0.45; } }
.notch-stage .actions { display: flex; align-items: center; gap: 8px; }
.notch-stage .actions.unfold { max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: max-height 340ms var(--ease), margin-top 340ms var(--ease), opacity 220ms ease-out 120ms; }
.notch-stage .actions.unfold.on { max-height: 32px; margin-top: 14px; opacity: 1; }
.notch-stage .ibtn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--island-raised); color: var(--island-ink); font-size: 13px; }
.notch-stage .ibtn.primary { background: var(--accent); color: var(--on-accent); }
.notch-stage .compact-row { display: flex; align-items: center; width: min(calc(var(--notch-w) + 150px), calc(100cqw - 24px)); height: var(--notch-h); padding: 0 16px; }
.notch-stage .elapsed { color: var(--island-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Appearance */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.choices button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: 500 15px/1 var(--text);
}
.choices button i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.row .version { display: inline; margin-top: 0; }
.choices button[aria-pressed='true'] { background: var(--soft); }
.mode-switch { display: inline-flex; gap: 4px; margin-top: 16px; padding: 0; background: transparent; box-shadow: none; }
.mode-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 15px/1 var(--text);
  cursor: pointer;
}
.mode-switch button[aria-pressed='true'] { background: var(--soft); color: var(--ink); }
.mode-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* Download block on the home page */
.get-home { display: flex; align-items: center; gap: 28px; max-width: 40em; }
.get-home .icon { width: 72px; height: 72px; }
.get-home p { margin-top: 10px; color: var(--muted); }
.get-home .row { margin-top: 18px; }
.version { display: block; min-height: 1.2em; margin-top: 12px; color: var(--muted); font-size: 14px; }
.version:empty { margin-top: 0; }

/* FAQ rows follow the same open pattern as a quiet accordion: a hairline between
   questions, a plus that turns into a cross, and room to read the answer. */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px 56px; align-items: start; margin-top: clamp(72px, 9vw, 120px); }
.faq-list { display: grid; }
.faq details { border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.faq details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 16px 0; font: 500 17px/1.4 var(--text); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker, .faq summary::marker { display: none; content: ''; }
.faq summary svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; transition: transform 360ms cubic-bezier(0.22, 0.85, 0.24, 1); }
.faq details[open] summary svg { transform: rotate(45deg); }
.js .faq details summary svg { transform: none; }
.js .faq details.is-open summary svg { transform: rotate(45deg); }
.faq-panel { overflow: hidden; }
.faq details p { max-width: var(--measure); padding: 0 36px 20px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Footer. The old poster wordmark is not shown. */
.wordmark { display: none; }
footer.site { margin-top: 0; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.foot-brand p { max-width: 24em; margin-top: 10px; color: var(--muted); font-size: 15px; }
.foot-grid h4 { margin-bottom: 8px; font: 600 14px/1.3 var(--text); }
.foot-grid div > a:not(.brand) { display: block; width: fit-content; padding: 3px 0; color: var(--muted); font-size: 15px; text-decoration: none; }
.foot-grid div > a:not(.brand):hover { color: var(--ink); }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.foot-line .made { display: inline-flex; gap: 16px; }
.foot-line a { color: inherit; text-decoration: none; }
.foot-line a:hover { color: var(--ink); }

/* Long-form pages */
article { max-width: 680px; }
article p, article li, article .intro { max-width: var(--measure); }
article > h1 { margin: 0 0 16px; font: 560 clamp(36px, 4vw, 48px)/1.12 var(--text); letter-spacing: -0.03em; }
article h2 { margin: 2em 0 0.45em; font: 600 22px/1.3 var(--text); scroll-margin-top: 96px; }
article h3 { margin: 1.4em 0 0.35em; font: 600 17px/1.35 var(--text); }
article p, article li { color: var(--muted); }
article p + p { margin-top: 0.9em; }
article p, article ul, article ol, article table { margin-bottom: 1em; }
article strong { color: var(--ink); font-weight: 600; }
article a { text-decoration-color: var(--accent); }
article .intro { color: var(--ink); font-size: 18px; line-height: 1.5; }
article .meta { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
article .note { margin: 24px 0; padding: 16px 18px; border-radius: 12px; background: var(--soft); color: var(--ink); }
article ul { padding: 0; list-style: none; }
article ul > li { position: relative; padding-left: 18px; margin-bottom: 0.55em; }
article ul > li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--muted); }
article ol { margin-left: 0; padding-left: 1.3em; list-style: decimal; }
article ol > li { margin-bottom: 0.55em; padding-left: 0.3em; }
article ol > li::before { content: none; }
article table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
article th { padding: 8px 16px 8px 0; color: var(--ink); font: 600 14px/1.3 var(--text); text-align: left; }
article td { padding: 10px 16px 10px 0; color: var(--muted); vertical-align: top; }
.measure { max-width: 720px; }
main > article.measure { padding-top: clamp(40px, 6vw, 72px); }

/* Docs */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-top: clamp(32px, 5vw, 56px); }
.docs .side { position: sticky; top: 68px; align-self: start; display: grid; gap: 2px; }
.docs .side h4 { margin: 18px 0 4px; color: var(--muted); font: 600 13px/1.3 var(--text); }
.docs .side h4:first-child { margin-top: 0; }
.docs .side a { margin: 0; padding: 5px 0; border-radius: 0; color: var(--muted); font-size: 15px; text-decoration: none; background: transparent; box-shadow: none; }
.docs .side a:hover { color: var(--ink); background: transparent; }
.docs .side a[aria-current='page'] { color: var(--ink); font-weight: 600; background: transparent; box-shadow: none; }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.doc-cards a {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}
.doc-cards a:hover { text-decoration: none; }
.doc-cards a:first-child { grid-column: auto; background: var(--accent); color: var(--on-accent); }
.doc-cards strong { font: 600 16px/1.3 var(--text); }
.doc-cards span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.doc-cards a:first-child span, .doc-cards a:first-child strong { color: var(--on-accent); }
.docs-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 8px; }
.docs-next a { color: var(--ink); font: 500 15px/1.4 var(--text); text-decoration: none; }
.docs-next a:hover { text-decoration: underline; }

/* 404 */
.lost { max-width: 36em; padding: clamp(56px, 8vw, 96px) 0 0; }
.lost .display { font-size: clamp(36px, 5vw, 52px); }
.lost p { margin-top: 14px; color: var(--muted); }

/* Download page */
.band.get { margin-top: 0; }
.band.get > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 48px; }
.get .display { font-size: clamp(40px, 5vw, 60px); }
.get-lede { max-width: var(--measure); margin-top: 12px; font-size: 17px; line-height: 1.5; }
.get .row { margin-top: 20px; }
.get .app-icon { width: 96px; height: 96px; }
.band .version { color: var(--on-accent); }
.elsewhere { display: none; max-width: var(--measure); margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.band .elsewhere { color: var(--ink); }
html[data-os='other'] .elsewhere { display: block; }
/* html[data-os] comes from download.js before paint: the visitor's system picks Mac or Windows. */
html[data-os='windows'] [data-for='mac'], html:not([data-os='windows']) [data-for='windows'] { display: none; }
.install { margin-top: var(--section); }
.install.panel { margin-top: 0; }
.install > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.install .guide { margin-top: 0; gap: 24px; }
.guide { display: grid; gap: 18px; max-width: 40em; margin: 22px 0 0; padding: 0; list-style: none; }
.guide li p { margin-top: 4px; }
.after { margin-top: var(--section); }
.after.panel { margin-top: 0; }
.after-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (prefers-reduced-motion: no-preference) {
  body, .panel, .band, footer.site { transition: background-color 320ms var(--ease), color 320ms var(--ease); }
  .rail a span { transition: opacity 160ms ease, translate 160ms var(--ease); }
  .js [data-reveal] { opacity: 0; translate: 0 16px; transition: opacity 600ms var(--ease), translate 600ms var(--ease); }
  .js [data-reveal].in { opacity: 1; translate: 0 0; }
  .js [data-reveal='2'] { transition-delay: 70ms; }
  .js [data-reveal='3'] { transition-delay: 140ms; }
  .js [data-reveal='4'] { transition-delay: 210ms; }
}

@media (max-width: 1220px) {
  .rail { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > .frame { grid-column: 1; grid-row: auto; margin-top: 32px; max-width: var(--measure); padding: 24px; }
  .install > .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq, .docs, .band.get > .wrap, .band-ask { grid-template-columns: minmax(0, 1fr); }
  .notch-stage { order: -1; height: 250px; }
  .band-ask .section-head { padding-top: 4px; }
  .steps-plain, .after-list { grid-template-columns: minmax(0, 1fr); }
  .docs .side { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .docs .side h4 { display: none; }
  .get .app-icon { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .swatches { display: none; }
  .features, .tools, .doc-cards { grid-template-columns: minmax(0, 1fr); }
  .get-home { align-items: flex-start; }
}
@media (max-width: 420px) {
  .top nav a:not(.keep) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cleanup-text .t, .cleanup-text .t > span, .cleanup-head .names > span, .cleanup-hint,
  .faq summary svg, .rail a span, body, .panel, .band, footer.site { transition: none; }
  .notch-stage .stream span, .notch-stage .thinking, .notch-stage .pill.busy .bars i { animation: none !important; }
  .button:hover { translate: none; }
}
