/* One visual world: large quiet type, grey paper, black stage for the hero, one blue for anything you can act on.
   The colour-bar test frames are the only loud thing on the page. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --surface: #ffffff;
  --night: #000000;
  --night-raised: #1d1d1f;
  --night-text: #f5f5f7;
  --night-muted: #a1a1a6;
  --accent: #0071e3;
  --accent-on-night: #2997ff;
  --hairline: #d2d2d7;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.47 var(--body); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
code { font: 0.92em var(--mono); }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(22, 22, 23, 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 0 22px; min-height: 48px; display: flex; align-items: center; gap: 24px; font-size: 13px; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--night-text); font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.logo { display: block; flex: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #d6d6d9; }
.nav-links a:hover, .nav-links a.on { color: #fff; text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 980px; font-weight: 500; }
.nav-cta:hover { background: #0077ed; text-decoration: none; }

.hero { background: var(--night); color: var(--night-text); padding: 56px 0 0; overflow: hidden; }
.hero-copy { max-width: 880px; margin: 0 auto; padding: 0 22px; text-align: center; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--night-muted); margin: 0 0 10px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero-sub { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3; color: var(--night-muted); max-width: 720px; margin: 16px auto 0; letter-spacing: -0.02em; }
.hero-sub b { color: var(--night-text); font-weight: 600; }

.install { max-width: 720px; margin: 28px auto 0; text-align: left; background: var(--night-raised); border-radius: 22px; padding: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 2px; }
.tabs button { flex: none; background: none; border: 0; color: var(--night-muted); font: 500 13px var(--body); padding: 8px 14px; border-radius: 980px; cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-pressed="true"] { background: #424245; color: #fff; }
.code { position: relative; background: var(--night); border-radius: 14px; margin-top: 8px; }
.code pre { margin: 0; padding: 18px 76px 18px 18px; overflow-x: auto; font: 13.5px/1.6 var(--mono); color: var(--night-text); white-space: pre-wrap; overflow-wrap: anywhere; letter-spacing: 0; }
.code.wrap pre { padding-right: 18px; padding-top: 48px; }
.copy { position: absolute; top: 10px; right: 10px; background: #2c2c2e; color: #f5f5f7; border: 0; border-radius: 980px; font: 500 12px var(--body); padding: 6px 12px; cursor: pointer; }
.copy:hover { background: #3a3a3c; }
.install-note { color: var(--night-muted); font-size: 13px; margin: 10px 8px 6px; }
.install-note code { color: var(--night-text); }

.usage { display: flex; justify-content: center; gap: 44px; margin: 28px 0 0; }
.usage dd { margin: 0; font: 700 34px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.usage dt { color: var(--night-muted); font-size: 13px; margin-top: 2px; }
.strip { margin-top: 36px; display: flex; gap: 8px; width: max-content; animation: drift 90s linear infinite; }
.strip:hover { animation-play-state: paused; }
.strip a { position: relative; display: block; width: 256px; flex: none; border-radius: 10px; overflow: hidden; }
.strip img { width: 256px; height: 144px; object-fit: cover; }
.strip span { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 980px; }
.strip-note { background: var(--night); color: var(--night-muted); text-align: center; font-size: 12px; padding: 12px 22px 14px; margin: 0; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip { animation: none; } }

.section { padding: 80px 22px; }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; }
.section .lede { font-size: clamp(19px, 2vw, 21px); line-height: 1.38; color: var(--muted); margin: 14px 0 0; max-width: 640px; }
.white { background: var(--surface); }

.showcase-tabs { margin-top: 28px; }
.showcase-stage { margin-top: 24px; }
.section .showcase-stage > * { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }
.section .showcase-stage .player-note, .section .showcase-stage .footage-line { margin-top: 12px; margin-bottom: 0; }
.showcase-stage .edit-steps { display: none; }
.built-from { font-size: 14px; margin-top: 10px; margin-bottom: 0; }
.built-from span { color: var(--muted); }
.showcase-more { margin: 28px 0 0; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.step { display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; padding: 28px; min-width: 0; }
.step b { display: block; font: 600 21px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.step .n { display: block; font: 600 15px/1 var(--display); color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step p { margin: 0 0 20px; color: var(--muted); }
.step-show { display: block; margin-top: auto; font-size: 14px; line-height: 1.35; }
code.step-show { background: var(--night); color: var(--night-text); border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; }
.bubble { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; quotes: none; }
.bubble::before, .bubble::after { content: none; }
.found { display: flex; flex-wrap: wrap; gap: 6px; }
.found a { background: var(--surface); border-radius: 980px; padding: 5px 12px; color: var(--ink); }
.found a:hover { color: var(--accent); text-decoration: none; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; }
.tile { background: var(--surface); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile.dark { background: var(--night); color: var(--night-text); }
.tile.dark p { color: var(--night-muted); }
.tile.dark a { color: var(--accent-on-night); }
.w2 { grid-column: span 2; } .w3 { grid-column: span 3; } .w4 { grid-column: span 4; }
.tile h3 { font-size: 24px; line-height: 1.16; font-weight: 600; letter-spacing: -0.022em; }
.tile p { margin: 0; color: var(--muted); }
.big { font: 700 clamp(52px, 7vw, 76px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: auto; padding-top: 14px; }
.cats a { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--hairline); color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.cats a span { color: var(--muted); }
.ask { background: #f5f5f7; border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.hits { display: grid; gap: 8px; }
.hit { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 500; }
.hit:hover { color: var(--accent); text-decoration: none; }
.hit .preview { flex: none; width: 96px; border-radius: 8px; }
.tile-link { margin-top: auto; padding-top: 6px; }
#home-wave .wave { margin: 4px 0; }
.spec { display: grid; gap: 6px; margin: auto 0 0; padding-top: 6px; font-size: 14px; }
.spec div { display: flex; justify-content: space-between; gap: 12px; background: var(--paper); border-radius: 10px; padding: 8px 12px; }
.spec dt { font-weight: 500; }
.spec dd { margin: 0; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pills span { background: var(--paper); border-radius: 980px; padding: 5px 12px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); border-radius: 980px; padding: 7px 14px; font: 400 14px var(--body); cursor: pointer; letter-spacing: -0.01em; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-note { color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] .chip-note { color: #d2d2d7; }
.chip small { font-size: 12px; opacity: 0.65; margin-left: 4px; font-variant-numeric: tabular-nums; }

.cta { background: var(--night); color: var(--night-text); text-align: center; }
.cta .lede { color: var(--night-muted); margin-left: auto; margin-right: auto; }
.pill { display: inline-block; background: var(--accent); color: #fff; padding: 11px 22px; border-radius: 980px; font-size: 17px; margin-top: 26px; }
.pill:hover { background: #0077ed; text-decoration: none; }
.cta-second { display: inline-block; margin-left: 22px; color: var(--accent-on-night); font-size: 17px; }

.page { max-width: 1040px; margin: 0 auto; padding: 56px 22px 88px; }
.path { font: 12.5px var(--mono); color: var(--muted); margin: 0 0 12px; overflow-wrap: anywhere; }
.page h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.032em; }
.page .lede { font-size: clamp(19px, 2vw, 21px); line-height: 1.38; color: var(--muted); margin: 14px 0 0; max-width: 680px; }
.page h2 { font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -0.026em; margin: 56px 0 12px; }
.page h3 { font-size: 19px; font-weight: 600; margin: 24px 0 6px; letter-spacing: -0.016em; }
.prose { max-width: 680px; }
.prose p, .prose li { color: #3a3a3c; }
.page .install { margin: 16px 0 0; }

.field { width: 100%; font: 400 19px var(--body); padding: 14px 18px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); color: var(--ink); letter-spacing: -0.016em; }
.field:focus { outline: 3px solid rgba(0, 113, 227, 0.35); border-color: var(--accent); }
.controls { display: grid; gap: 14px; margin-top: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
select { font: 400 15px var(--body); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); max-width: 100%; }
.count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 24px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.preview { display: block; width: 100%; aspect-ratio: 16 / 9; }
.preview.large { border-radius: 14px; }
.back-link { display: inline-block; font-size: 14px; margin-bottom: 14px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 19px; line-height: 1.2; font-weight: 600; margin: 0; letter-spacing: -0.018em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.meta { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 980px; background: #e8e8ed; color: var(--ink); font-weight: 500; }
.tag.ok { background: #e3f5e7; color: #0b6b2a; }
.tag.warn { background: #fdf0d9; color: #7a4d00; }
.sounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sound { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border-radius: 16px; padding: 16px 20px; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); cursor: pointer; position: relative; }
.play:hover { background: #0077ed; }
.play::before { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play.on::before { box-sizing: border-box; left: 15px; top: 14px; width: 14px; height: 16px; border: 0; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.sound-title { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sound-title b { font-weight: 600; letter-spacing: -0.016em; }
.sound-main p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sound-main code { display: block; overflow-wrap: anywhere; margin-top: 4px; }
.wave { display: block; width: 100%; height: 32px; margin-top: 8px; fill: #c7c7cc; }
.wave rect { transition: fill 0.35s ease-out; }
.wave rect.lit { fill: var(--accent); transition: none; }
.sound-side { display: grid; gap: 6px; justify-items: end; }
.download { font-size: 14px; }
@media (max-width: 560px) { .sound { grid-template-columns: 44px minmax(0, 1fr); } .sound-side { grid-column: 2; display: flex; justify-content: space-between; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
.more { display: block; margin: 28px auto 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: 980px; font: 400 15px var(--body); padding: 10px 20px; cursor: pointer; color: var(--ink); }
.empty { background: var(--surface); padding: 28px; border-radius: 18px; color: var(--muted); }

/* Library: a shelf to scan. Section list on the side, many small items, no descriptions. */
.shelf { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 36px; scroll-margin-top: 64px; }
.shelf-side { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; font-size: 14px; }
.side-group { display: grid; gap: 1px; }
.side-link { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; background: none; border: 0; border-radius: 8px; padding: 6px 10px; font: 400 14px var(--body); letter-spacing: -0.01em; color: var(--ink); text-align: left; cursor: pointer; }
.side-link small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.side-link:hover { background: #e8e8ed; }
.side-link[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 500; }
.side-link[aria-pressed="true"] small { color: #d2d2d7; }
.side-label { font-size: 12px; color: var(--muted); margin: 18px 10px 6px; }
.field-small { font-size: 16px; padding: 10px 14px; border-radius: 10px; }
.shelf-main .count { margin-top: 14px; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 14px; }
.shelf-item { display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.shelf-item:hover { text-decoration: none; }
.shelf-item:hover h3 { color: var(--accent); }
.shelf-item .preview { border-radius: 10px; }
.page .shelf-item h3 { font-size: 14px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; margin: 8px 0 1px; }
.shelf-item .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-grid .empty { grid-column: 1 / -1; }

/* Explore: one question on the black stage, answered with a ranked list. */
.ask-stage { background: var(--night); color: var(--night-text); padding: 64px 22px 56px; text-align: center; }
.ask-inner { max-width: 760px; margin: 0 auto; }
.ask-stage .path { color: var(--night-muted); }
.ask-stage h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.034em; }
.ask-sub { font-size: clamp(17px, 2vw, 21px); line-height: 1.35; color: var(--night-muted); margin: 14px 0 0; letter-spacing: -0.018em; }
.ask-field { width: 100%; margin-top: 32px; font: 400 clamp(17px, 2.2vw, 21px) var(--body); letter-spacing: -0.018em; padding: 18px 26px; border: 1px solid #424245; border-radius: 980px; background: var(--night-raised); color: var(--night-text); color-scheme: dark; }
.ask-field::placeholder { color: var(--night-muted); }
.ask-field:focus { outline: 3px solid rgba(41, 151, 255, 0.45); border-color: var(--accent-on-night); }
.page.ask-page { padding-top: 12px; }
.ask-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
#ex-count { scroll-margin-top: 60px; }
.ask-back { background: none; border: 0; padding: 0; color: var(--accent); font: 400 14px var(--body); cursor: pointer; }
.ask-back:hover { text-decoration: underline; }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.goal { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 124px; background: var(--surface); border: 0; border-radius: 18px; padding: 20px 22px; text-align: left; color: var(--ink); cursor: pointer; font: inherit; transition: box-shadow 0.2s ease; }
.goal:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.goal-q { font: 600 21px/1.2 var(--display); letter-spacing: -0.02em; }
.matches { display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 22px; align-items: center; background: var(--surface); border-radius: 18px; padding: 12px; color: var(--ink); transition: box-shadow 0.2s ease; }
.match:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.match .preview { border-radius: 10px; }
.match-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 12px; }
.page .match h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.match p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.match .why { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .goal, .match { transition: none; } }

.page.tech { padding-top: 24px; }
.page.tech h1 { font-size: clamp(32px, 4.5vw, 46px); }
.page.tech .lede { font-size: 17px; margin-top: 8px; }
.page.tech .back-link { margin-bottom: 8px; }
.tech-head .tags { margin-top: 10px; }
.tech-stage { margin-top: 20px; }
.tech-stage .compare, .tech-stage .player-row, .tech-stage .player-note, .tech-stage .edit-steps, .tech-stage .footage-line, .tech-stage .audio-pair { max-width: none; }
.figure.tech-figure { max-width: none; text-align: center; }
.tech-figure img, .tech-figure .preview { border-radius: 22px; width: 100%; max-height: 560px; object-fit: contain; background: var(--night); }
.tech-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 40px; }
.page .tech-body h2 { margin-top: 0; }
.tech-side { display: grid; gap: 14px; position: sticky; top: 64px; }
.side-box { background: var(--surface); border-radius: 18px; padding: 16px 18px; }
.page .side-box h3 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 8px; }
.side-box p { font-size: 14px; line-height: 1.4; margin: 0; }
.side-box .code pre { font-size: 12.5px; padding: 12px 66px 12px 12px; }
.side-box .code { margin-top: 0; }
.param-list { display: flex; flex-wrap: wrap; gap: 6px; }
.param-list code { font-size: 12.5px; }
.edit-links { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 4px; }
.tech-recipe { margin-top: 18px; }
.tech-recipe summary { cursor: pointer; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .tech-body { grid-template-columns: minmax(0, 1fr); } .tech-side { position: static; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.figure { margin: 0; max-width: 640px; }
.figure img { border-radius: 14px; width: 100%; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.why { font-size: 12px; color: var(--muted); margin-top: 6px; }

.compare { position: relative; max-width: 960px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--night); }
.compare-poster, .compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare.ready .compare-poster { visibility: hidden; }
/* Kept in the layout rather than hidden, because phones stop decoding a video they think is hidden. */
.compare video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.compare .slider { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.compare .knob::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 18px; line-height: 1; }
.compare .slider:focus-visible ~ .line .knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.compare .label { position: absolute; top: 12px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 980px; pointer-events: none; transition: opacity 0.15s; }
.compare .label.l { left: 12px; } .compare .label.r { right: 12px; }
.compare .spinner { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: 28px 0 0 -14px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; pointer-events: none; }
.compare.ready:not(.buffering) .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; max-width: 960px; }
.player-row [data-play] { min-width: 68px; }
.seek { flex: 1 1 160px; min-width: 0; accent-color: var(--ink); }
.player-note { max-width: 960px; margin-top: 10px; }
.audio-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 960px; }
.audio-pair audio { width: 100%; margin-top: 8px; }
.card-clip { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); pointer-events: none; }
.demo-jump { margin: 18px 0 4px; }
.demo-jump .chip { text-decoration: none; }
.demo-lede { margin: 0 0 16px; }
.edit-steps { max-width: 960px; margin: 12px 0; padding: 0 0 0 22px; }
.edit-steps li { margin: 6px 0; }
.edit-steps span { color: var(--muted); margin-left: 8px; }
.footage-line { max-width: 960px; margin-top: 10px; }
.credits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 20px; }
.credits li { display: flex; flex-direction: column; font-size: 14px; }
.credits span { color: var(--muted); }
.demo-card { padding: 0; border: 0; text-align: left; font: inherit; cursor: pointer; }
.demo-recipe { max-width: 760px; margin-top: 14px; }
.page .demo-recipe pre { padding-top: 18px; padding-right: 76px; }
.compare-info { margin: 32px 0 14px; }
.compare-info h2 { margin: 0; }

.table { overflow-x: auto; background: var(--surface); border-radius: 16px; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid #ececf0; }
thead th { border-top: 0; font-size: 12px; color: var(--muted); font-weight: 500; }
td code { white-space: nowrap; }
.callout { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin-top: 14px; }
.callout p { margin: 0; }
.page .code { margin-top: 12px; }

.footer { background: var(--surface); border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 32px 22px 44px; display: flex; flex-wrap: wrap; gap: 28px 64px; }
.footer-brand { display: grid; gap: 4px; margin-right: auto; align-content: start; }
.footer-logo { display: inline-flex; align-items: center; gap: 6px; }
.footer-col { display: grid; gap: 6px; align-content: start; }
.footer b { color: var(--ink); font-weight: 600; }
.footer a { color: var(--muted); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px; }
  .cta-second { display: block; margin: 16px 0 0; }
  .w2, .w3, .w4 { grid-column: span 6; }
  .section { padding: 56px 18px; }
  .page { padding: 40px 18px 64px; }
  .hero { padding-top: 48px; }
  .tile { padding: 24px; }
  .cats { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 16px; gap: 14px; }
  .nav-links { gap: 14px; }
  .install { border-radius: 18px; margin-left: -6px; margin-right: -6px; }
  .compare { border-radius: 14px; }
  .shelf { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 24px; }
  .shelf-side { position: static; max-height: none; overflow: visible; min-width: 0; }
  .side-group { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; }
  .side-link { width: auto; flex: none; border: 1px solid var(--hairline); border-radius: 980px; background: var(--surface); }
  .side-label { margin: 12px 0 6px; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .ask-stage { padding: 40px 18px 40px; }
  .goals { grid-template-columns: minmax(0, 1fr); }
  .goal { min-height: 0; }
  .match { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px; }
  .page .match h3 { font-size: 17px; }
  .match p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
}
@media (max-width: 400px) {
  .nav-cta { display: none; }
  .nav-links { gap: 12px; }
}
