/* The public site. Colours, type and the device drawings are the app's (DESIGN.md). Outside the
   interface fragments the page is flat: no rules, no shadows, tone steps between surfaces. Inside a
   fragment ([data-ui]) the app's own conventions apply: hairlines, labels, live values in the value face. */

@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/MartianMono-Variable.ttf") format("truetype"); font-weight: 100 800; font-display: swap; } /* taste-skill-ignore: DESIGN.md live values / app fragment */

:root {
  /* Paper (DESIGN.md, light theme). */
  --bg: #f7f6f3;
  --surface: #fcfcf9;
  --raised: #efeee9;
  --field: #e8e7e1;
  --line: #dbd9d4;
  --line-strong: #b9b7b1;
  --ink: #201e18;
  --muted: #5a5851;
  --soft: #73716b;
  --accent: #f3c726;
  --on-accent: #231e0d;
  --accent-edge: #c7a01e;
  --accent-ink: #8a6500;
  --throttle: #1b9247;
  --brake: #cc3430;
  --clutch: #1f74bf;
  --warning: #cc6600;
  --focus: var(--accent-ink);
  --device: #303236;

  /* Five steps of type. */
  --step-display: clamp(36px, 3.6vw, 56px);
  --step-head: clamp(28px, 2.4vw, 36px);
  --step-lead: clamp(20px, 1.6vw, 24px);
  --step-body: 18px;
  --step-small: 15px;

  --margin: 32px;
  --gap: 24px;
  --section: clamp(96px, 11vw, 168px);
  --radius: 6px;
  --bar: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Night. */
    --bg: #151411;
    --surface: #1d1c18;
    --raised: #272521;
    --field: #2f2d28;
    --line: #34332e;
    --line-strong: #4f4d46;
    --ink: #eeede8;
    --muted: #b0aea7;
    --soft: #88867f;
    --accent: #efc63a;
    --accent-edge: #efc63a;
    --accent-ink: #efc63a;
    --throttle: #55c975;
    --brake: #f66d62;
    --clutch: #67aaed;
    --warning: #fc9e47;
    --focus: var(--accent);
  }
}

@media (max-width: 720px) {
  :root { --margin: 16px; --gap: 16px; --bar: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) { a:hover { text-decoration-color: currentColor; } }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 12px; z-index: 30; background: var(--surface); padding: 8px 12px; }
.frame { max-width: 1440px; margin: 0 auto; padding-inline: var(--margin); }

/* The one button: flat chrome, square-ish corners. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: var(--step-body); text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) { .button:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); } }
.button--small { height: 40px; padding: 0 16px; font-size: var(--step-small); }

/* Top bar: the wordmark, three links, the action. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--bar); padding-inline: var(--margin);
  background: var(--bg);
}
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--step-body); text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 28px; font-size: var(--step-small); }
.topbar nav a:not(.button) { text-decoration-color: transparent; }
@media (hover: hover) { .topbar nav a:not(.button):hover { text-decoration-color: currentColor; } }
@media (max-width: 720px) {
  .topbar nav { gap: 18px; }
  .topbar nav a:nth-child(2), .topbar nav a:nth-child(3) { display: none; }
}

/* ===== The app's interface, inside fragments ===== */

[data-ui] { font-size: 15px; line-height: 1.4; color: var(--ink); }
.ui-label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.ui-note { font-size: 13px; color: var(--muted); }
.ui-value-l, .ui-value-m, .ui-value-xl { font-family: "Martian Mono", ui-monospace, monospace; font-variation-settings: "wdth" 87.5; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.02em; } /* taste-skill-ignore: DESIGN.md live values / app fragment */
.ui-value-xl { font-size: 64px; font-weight: 600; }
.ui-value-l { font-size: 40px; font-weight: 600; }
.ui-value-m { font-size: 18px; font-weight: 500; }
.ui-button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; flex: none;
  border-radius: 6px; background: var(--raised); border: 1px solid var(--line-strong);
  font: 500 15px/1 "Barlow", sans-serif; color: var(--ink); white-space: nowrap;
}
.ui-button--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent-edge); }
.ui-button svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
button.ui-button { cursor: pointer; transition: transform var(--t-press) var(--ease-out), filter var(--t-hover) ease; }
button.ui-button:active { transform: translateY(1px); }
@media (hover: hover) { button.ui-button:hover { filter: brightness(0.95); } }

.ui-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer; }
.ui-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.ui-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.ui-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.ui-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }

/* ===== Hero: a sentence split by the live rig ===== */

.hero { position: relative; }
.js .hero { height: calc(100svh - var(--bar) + 3 * 40svh); }
.hero__stage {
  --fw: clamp(420px, 35vw, 640px);
  --fh: calc(var(--fw) * 0.5625);
  --reel-gap: max(24px, calc((100svh - var(--bar) - var(--fh)) / 2 - 60px));
  position: sticky; top: var(--bar);
  height: calc(100svh - var(--bar)); min-height: 560px;
  overflow: hidden;
}
.hero__title { position: absolute; inset: 0; pointer-events: none; font-size: var(--step-display); line-height: 1; letter-spacing: -0.025em; }
.hero__title span { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.hero__a { left: var(--margin); }
.hero__b { right: var(--margin); text-align: right; }

.hero__reel { position: absolute; z-index: 1; left: 50%; top: 50%; width: var(--fw); height: var(--fh); transform: translate(-50%, -50%); }
.reel__track {
  --i: 0;
  display: flex; flex-direction: column; gap: var(--reel-gap);
  transform: translateY(calc(var(--i) * -1 * (var(--fh) + var(--reel-gap))));
  transition: transform 700ms var(--ease-expo);
}
.hero__foot { position: absolute; left: var(--margin); bottom: 32px; width: min(420px, calc((100vw - var(--fw)) / 2 - var(--margin) - 32px)); }
.hero__lede { font-size: var(--step-body); margin-bottom: 20px; }

/* A device card, as on the app's rig. */
.card {
  flex: none; height: var(--fh); display: flex; flex-direction: column;
  padding: 16px 20px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.card__head { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; }
.card__name { font-weight: 500; font-size: 15px; }
.card__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(140px, 0.8fr); align-items: center; gap: 16px; }
.card__art { position: relative; height: 100%; max-height: 100%; aspect-ratio: 1; justify-self: center; }
.card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card__values { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card__values .ui-range { margin-top: 6px; }

.wheel { cursor: grab; touch-action: pan-y; user-select: none; }
.wheel.is-grabbed { cursor: grabbing; }
/* A background, not an img: search engines take the site's preview images, not this drawing. */
.wheel__rim { position: absolute; inset: 0; background: center / contain no-repeat; transform: rotate(calc(var(--a, 0) * 1deg)); }

.pedals { aspect-ratio: 600 / 380; height: auto; width: 100%; }
.pedals .pedals__frame { inset: 0; }
.pedals .pedals__pedal { inset: auto; left: calc(var(--x) / 600 * 100%); top: 0; width: 20%; height: 78.9%; }
.bars { flex-direction: row; gap: 18px; align-items: flex-end; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar__track { position: relative; width: 8px; height: 96px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar__fill { position: absolute; inset: 0; transform-origin: bottom; transform: scaleY(var(--v, 0)); border-radius: 4px; }
.bar--clutch .bar__fill { background: var(--clutch); }
.bar--brake .bar__fill { background: var(--brake); }
.bar--throttle .bar__fill { background: var(--throttle); }
.bar .ui-label { font-size: 11px; }

.shifter__gate { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #5d6268; stroke-width: 9; stroke-linecap: round; }
.shifter .shifter__knob { inset: auto; left: 0; top: 0; width: 31.25%; height: 31.25%; transform: translate(calc((var(--kx, 160) / 100 - 0.5) * 100%), calc((var(--ky, 160) / 100 - 0.5) * 100%)); transition: transform 220ms var(--ease-out); }
.handbrake { aspect-ratio: 320 / 380; }
.handbrake .handbrake__lever { transform-origin: 53.1% 62.1%; transform: rotate(calc(var(--h, 0) * 34deg)); }

@media (max-width: 960px) {
  .js .hero { height: auto; }
  .hero__stage { --fw: calc(100vw - 2 * var(--margin)); --fh: calc(var(--fw) * 0.75); --reel-gap: 24px; position: relative; top: auto; height: auto; min-height: 0; display: flex; flex-direction: column; padding: 20px var(--margin) 24px; }
  .hero__title { position: static; font-size: clamp(34px, 9vw, 52px); line-height: 1.05; }
  .hero__title span { position: static; transform: none; display: block; }
  .hero__b { text-align: left; }
  .hero__reel { order: 1; position: relative; left: auto; top: auto; transform: none; margin: 20px 0; flex: none; overflow: hidden; border-radius: 14px; }
  .hero__foot { order: 3; }
  .hero__foot { position: static; width: auto; margin-top: auto; }
  .hero__lede { font-size: 16px; margin-bottom: 16px; }
  .card__body { grid-template-columns: 1fr 120px; }
  .ui-value-l { font-size: 32px; }
  .ui-value-xl { font-size: 52px; }
}

/* ===== The driver, three states ===== */

.showcase { padding-block: var(--section); }
.showcase .frame { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.showcase__title { grid-column: 4 / 10; font-size: var(--step-head); margin-bottom: 72px; }
.states { grid-column: 1 / -1; list-style: none; padding: 0; display: grid; gap: 48px; }
.state { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.state__word { grid-column: 1 / 4; text-align: right; font-size: var(--step-lead); color: var(--soft); }
.state .device-row { grid-column: 4 / 10; }
.showcase__aside { grid-column: 4 / 10; margin-top: 48px; color: var(--muted); max-width: 56ch; }

.device-row {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
}
.device-row__thumb { width: 76px; height: 56px; border-radius: 6px; background: var(--raised); display: flex; padding: 4px; overflow: hidden; flex: none; }
.device-row__thumb img { width: 100%; height: 100%; object-fit: contain; }
/* The plate and its knob in neutral, as the app draws a shifter. */
.thumb-shifter { position: relative; height: 100%; aspect-ratio: 1; margin: 0 auto; }
.thumb-shifter img { position: absolute; inset: 0; }
.thumb-shifter .thumb-shifter__knob { inset: auto; left: 34.4%; top: 34.4%; width: 31.25%; height: 31.25%; }
.device-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.device-row__name { font-weight: 500; font-size: 16px; }
.device-row__sub { font-size: 14px; color: var(--muted); }
.device-row__progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; opacity: 0; transition: opacity var(--t-ui) ease; }
.device-row__progress span { display: block; height: 100%; background: var(--accent-edge); transform-origin: left; transform: scaleX(0); }
.device-row.is-busy .device-row__progress { opacity: 1; }
.device-row.is-busy .device-row__progress span { transform: scaleX(1); transition: transform 2200ms cubic-bezier(0.4, 0, 0.2, 1); }
.device-row.is-done .ui-button--primary { background: var(--raised); color: var(--ink); border-color: var(--line-strong); }
.device-row.is-done .ui-button svg { display: none; }
.is-live { outline: 2px solid var(--accent-edge); outline-offset: 4px; }

@media (max-width: 960px) {
  .showcase__title, .showcase__aside { grid-column: 1 / -1; }
  .state { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .state__word { text-align: left; font-size: var(--step-body); }
  .device-row { grid-template-columns: 56px 1fr; }
  .device-row__thumb { width: 56px; height: 44px; }
  .device-row .ui-button { grid-column: 1 / -1; justify-self: start; }
}

/* ===== Nothing hidden: the settings panel with notes ===== */

.features { padding-block: var(--section); background: var(--raised); }
.features__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.features__title { grid-column: 1 / 5; grid-row: 1; text-align: right; font-size: var(--step-head); align-self: start; }
.panel {
  grid-column: 5 / 9; grid-row: 1 / span 2; justify-self: center; width: 100%; max-width: 400px;
  padding: 22px 22px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.panel__title { font-size: 24px; font-weight: 600; }
.panel__sub { color: var(--ink); }
.panel__sub span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.panel__group { font-weight: 600; font-size: 17px; padding-top: 6px; border-top: 1px solid var(--line); } /* taste-skill-ignore: DESIGN.md live values / app fragment */
.setting { display: flex; flex-direction: column; gap: 8px; border-radius: 6px; transition: box-shadow var(--t-ui) ease; }
.setting__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.setting__name { font-size: 15px; }
.setting__reason { font-size: 13px; color: var(--muted); }
.setting.is-disabled .setting__name { color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--raised); color: var(--ink); cursor: pointer;
  font: 500 13px/1 "Martian Mono", monospace; font-variation-settings: "wdth" 87.5; /* taste-skill-ignore: DESIGN.md live values / app fragment */
}
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chip-quiet { align-self: flex-start; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--raised); font-size: 13px; }
.panel__advanced { display: flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; border-block: 1px solid var(--line); background: none; color: var(--ink); font: 500 15px "Barlow", sans-serif; cursor: pointer; text-align: left; } /* taste-skill-ignore: DESIGN.md live values / app fragment */
.panel__advanced span { color: var(--muted); font-weight: 400; font-size: 13px; }
.panel__advanced svg { fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform var(--t-ui) var(--ease-out); }
.panel__advanced[aria-expanded="true"] svg { transform: rotate(90deg); }
.panel__more { display: flex; flex-direction: column; gap: 10px; }
.panel__more[hidden] { display: none; }
.panel__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); } /* taste-skill-ignore: DESIGN.md live values / app fragment */
.panel__undo { color: var(--muted); }
.panel .is-lit { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-edge); } /* taste-skill-ignore: DESIGN.md live values / app fragment */

.notes { list-style: none; padding: 0; grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); margin-top: 48px; }
.note { font-size: var(--step-small); color: var(--muted); max-width: 30ch; border-radius: 4px; cursor: default; }
.note strong { display: block; font-size: var(--step-body); font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.notes.is-placed { display: block; margin: 0; }
.notes.is-placed .note { position: absolute; width: 26ch; }
.notes.is-placed .note.is-left { right: calc(66.66% + var(--gap) * 0.66); text-align: right; }
.notes.is-placed .note.is-right { left: calc(66.66% + var(--gap) * 0.66 + var(--margin)); }

@media (max-width: 960px) {
  .features__title { grid-column: 1 / -1; text-align: left; margin-bottom: 32px; }
  .panel { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== Real screens ===== */

.screens { padding-block: var(--section); }
.screens__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--gap); align-items: start; }
.screens__text { grid-column: 1 / 5; }
.screens__text h2 { font-size: var(--step-head); margin-bottom: 20px; }
.screens__main { grid-column: 5 / -1; }
/* The captures share the page's ground: a tone step around them shows where they end. */
.screens__main video, .screens__crop picture { display: block; padding: 10px; border-radius: 10px; background: var(--raised); }
.screens__main video, .screens__crop img { width: 100%; height: auto; border-radius: 4px; }
.screens__crop { overflow: hidden; }
/* Cropped at full size, so the interface reads as it does in the app. */
.screens__crop img { aspect-ratio: 4 / 3; object-fit: none; object-position: var(--crop); }
.screens__crop--pedals { grid-column: 1 / 6; }
.screens__crop--base { grid-column: 6 / 10; margin-top: 96px; }
.screens__crop--shifter { grid-column: 10 / -1; margin-top: 32px; }
.screens__crop--shifter img { aspect-ratio: 3 / 4; }
.screens figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

@media (max-width: 960px) {
  .screens__text, .screens__main, .screens__crop--pedals, .screens__crop--base { grid-column: 1 / -1; position: static; margin: 0; }
  .screens__crop--shifter { grid-column: 1 / -1; margin: 0; }
  .screens__crop--shifter img { aspect-ratio: 4 / 3; }
}

/* ===== Supported devices ===== */

.devices { padding-block: var(--section); background: var(--surface); }
.devices__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.devices__intro { grid-column: 1 / 5; position: sticky; top: calc(var(--bar) + 48px); display: flex; flex-direction: column; gap: 16px; }
.devices__intro h2 { font-size: var(--step-head); margin-bottom: 4px; }
.devices__intro .muted { font-size: var(--step-small); }
.devices__list { grid-column: 6 / 12; max-width: 600px; display: flex; flex-direction: column; gap: 40px; }
.devices__group h3 { font-size: var(--step-lead); font-weight: 500; margin-bottom: 6px; }
.devices__group h3 a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.devices__group h3 svg { fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) { .devices__group h3 a:hover svg { transform: translateX(4px); } .devices__group h3 a:hover { text-decoration: underline; } }
.devices__group ul { list-style: none; padding: 0; }
.devices__group li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; min-height: 36px; font-size: var(--step-body); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dot--tested { background: var(--throttle); }
.devices__value { font-size: var(--step-small); color: var(--soft); }
.devices__group li:has(.dot--tested) .devices__value { color: var(--ink); font-weight: 500; }

@media (max-width: 960px) {
  .devices__intro, .devices__list { grid-column: 1 / -1; position: static; }
  .devices__list { margin-top: 40px; }
  .devices__group li { min-height: 44px; }
}

/* ===== Adding a device, stage by stage ===== */

/* Pinned while the scroll walks through the four stages; the slider follows, and can be dragged. */
.js .stages { height: calc(100svh - var(--bar) + 3 * 45svh); }
.stages__pin { display: grid; grid-template-rows: 1fr auto; min-height: 88svh; }
.js .stages__pin { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); min-height: 0; }
.stages__fields { display: grid; grid-template-columns: 1fr 1fr; }
.stages__clause { background: var(--raised); padding: 64px var(--margin); }
.stages__clause { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.stages__clause > div[hidden] { display: none; }
.stages__clause h3 { font-size: var(--step-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em; max-width: 9em; margin-bottom: 28px; }
.stages__clause p { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; color: var(--ink); }
.stages__ui { background: var(--surface); display: grid; place-items: center; padding: 48px var(--margin); }
.step {
  width: min(100%, 440px); padding: 22px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.step[hidden] { display: none; }
.step__head { font-size: 22px; font-weight: 600; }
.step__text { color: var(--ink); }
.step__why { font-size: 13px; color: var(--muted); }
.device-row--compact { width: 100%; grid-template-columns: 56px 1fr auto; padding: 10px; }
.device-row--compact .device-row__thumb { width: 56px; height: 44px; }
.step__gate { display: flex; gap: 6px; }
.step__gate span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--raised); font: 500 15px "Martian Mono", monospace; font-variation-settings: "wdth" 87.5; } /* taste-skill-ignore: DESIGN.md live values / app fragment */
.step__gate .is-done { background: var(--field); color: var(--muted); }
.step__gate .is-now { background: var(--accent); color: var(--on-accent); }
.step__done { display: flex; flex-direction: column; gap: 6px; }

.stages__control { grid-column: 1 / -1; padding: 28px var(--margin) 32px; background: var(--surface); }
.stages__slider { --p: 0; position: relative; height: 32px; }
.stages__slider::before, .stages__slider::after { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 8px; border-radius: 4px; background: var(--line-strong); }
.stages__slider::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); transition: transform var(--t-ui) var(--ease-out); }
.stages__control input {
  position: relative; z-index: 1;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer;
}
.stages__control input::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.stages__control input::-moz-range-track { height: 8px; background: transparent; }
.stages__control input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 6px; background: var(--accent); border: 2px solid var(--accent-edge); }
.stages__control input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 6px; background: var(--accent); border: 2px solid var(--accent-edge); }
.stages__names { list-style: none; padding: 0; margin-top: 12px; display: flex; justify-content: space-between; color: var(--soft); font-size: var(--step-body); }
.stages__names .is-current { color: var(--ink); font-weight: 500; }

@media (max-width: 960px) {
  .stages__fields { grid-template-columns: 1fr; }
  .stages__fields { grid-template-rows: auto 1fr; min-height: 0; }
  .stages__ui { order: -1; min-height: 0; padding: 20px var(--margin); }
  .stages__clause { padding: 20px var(--margin); gap: 12px; }
  .stages__clause h3 { margin-bottom: 12px; }
  .stages__clause p { font-size: var(--step-body); }
  .stages__control { padding: 16px var(--margin) 20px; }
  .stages__clause h3 { font-size: clamp(32px, 9vw, 48px); }
}

/* ===== Built on ===== */

.proof { padding-block: 128px; }
.proof__row { display: flex; align-items: center; gap: 40px; }
.proof h2 { font-size: var(--step-body); font-weight: 400; color: var(--muted); letter-spacing: 0; flex: none; }
.proof ul { list-style: none; padding: 0; flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.proof li a { font-size: var(--step-lead); font-weight: 500; text-decoration-color: transparent; }
@media (hover: hover) { .proof li a:hover { text-decoration-color: currentColor; } }
@media (max-width: 960px) {
  .proof__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .proof ul { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ===== Questions: an index and one answer ===== */

.ask { padding-block: var(--section); background: var(--raised); }
.ask__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.ask__index { grid-column: 1 / 6; }
.ask__index h2 { font-size: var(--step-head); margin-bottom: 28px; }
.ask__index ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ask__index button {
  display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 400 var(--step-body)/1.4 "Barlow", sans-serif; color: var(--muted); text-align: left;
  transition: color var(--t-hover) ease;
}
.ask__index button::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transform: translateY(-2px); transition: background-color var(--t-hover) ease; }
.ask__index button[aria-selected="true"] { color: var(--ink); }
.ask__index button[aria-selected="true"]::before { background: var(--accent-edge); }
@media (hover: hover) { .ask__index button:hover { color: var(--ink); } }
.ask__inline { display: none; }
.ask__all { display: inline-block; margin-top: 28px; font-weight: 500; }
.ask__pane { grid-column: 7 / -1; position: sticky; top: 140px; }
.ask__answer { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.ask__answer p + p { margin-top: 0.7em; }
.ask__answer[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ask__answer:not([hidden]) { animation: fade 160ms ease-out; }
}
@keyframes fade { from { opacity: 0; } }
@media (max-width: 960px) {
  .ask__index { grid-column: 1 / -1; }
  .ask__pane { display: none; }
  .ask__inline:not([hidden]) { display: block; padding: 4px 0 14px 22px; font-size: var(--step-body); color: var(--ink); }
  .ask__inline p + p { margin-top: 0.6em; }
}

/* ===== Install: the sentence with a blank ===== */

.get { padding-block: var(--section); }
.get__sentence { font-size: var(--step-display); line-height: 1.15; letter-spacing: -0.025em; }
.get__sentence select {
  font: inherit; letter-spacing: inherit; color: var(--ink); height: 1.15em; vertical-align: baseline;
  padding: 0 1.1em 0 0.25em; margin: 0 0.05em; border: 0; border-radius: var(--radius); background-color: var(--raised);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373716b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2em center; background-size: 0.55em;
}
.get__go {
  display: inline-block; height: 1.15em; padding: 0 0.3em; border-radius: var(--radius); vertical-align: baseline;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.get__go:active { transform: scale(0.97); }
@media (hover: hover) { .get__go:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); } }
.get__cmd { margin: 40px 0 20px; padding: 18px 22px; border-radius: var(--radius); background: var(--raised); overflow-x: auto; font-size: var(--step-small); }
.get__cmd code { font-family: "Martian Mono", ui-monospace, monospace; font-variation-settings: "wdth" 87.5; } /* taste-skill-ignore: DESIGN.md live values / app fragment */
.get__after { color: var(--muted); max-width: 70ch; }
@media (max-width: 720px) {
  .get__sentence { font-size: clamp(32px, 9vw, 44px); }
}

/* ===== Footer: one quiet line ===== */

.footer { margin-top: 20svh; padding: 0 var(--margin) 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px 24px; font-size: var(--step-small); }
.footer__what { color: var(--muted); }
.footer__links { list-style: none; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { text-decoration-color: transparent; }
@media (hover: hover) { .footer__links a:hover { text-decoration-color: currentColor; } }
.footer__legal { text-align: right; color: var(--muted); }
.footer__marks { grid-column: 1 / -1; color: var(--soft); font-size: var(--step-small); max-width: 72ch; }
@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; gap: 8px; }
  .footer__legal { text-align: left; }
}

/* ===== Pages: brands, install, questions, other tools ===== */

.page-head { padding: clamp(48px, 7vw, 96px) var(--margin) 32px; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.page-head > * { grid-column: 1 / 10; }
.page-head h1 { font-size: var(--step-display); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 20px; }
.page-head .lede { font-size: var(--step-lead); line-height: 1.4; color: var(--muted); max-width: 40ch; }
.page-head--brand { align-items: center; row-gap: 40px; }
.page-head--brand > .page-head__text { grid-column: 1 / 8; }
.page-head--brand > .brand-card { grid-column: 9 / -1; }
.brand-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.brand-card__art { position: relative; aspect-ratio: 1; }
.brand-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brand-card__art .brand-card__knob { inset: auto; left: 34.4%; top: 34.4%; width: 31.25%; height: 31.25%; }
.brand-card__facts { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.brand-card__facts dd { margin: 4px 0 0; font-size: 16px; }
.page-body { max-width: 1440px; margin: 0 auto; padding: 0 var(--margin) var(--section); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.page-body > * { grid-column: 1 / 9; }
.page-body > .callout { grid-column: 1 / 9; }
.page-aside { grid-column: 10 / -1 !important; grid-row: 1 / span 4; position: sticky; top: calc(var(--bar) + 32px); align-self: start; padding: 24px; border-radius: var(--radius); background: var(--raised); }
.page-aside .button { width: 100%; }
@media (max-width: 960px) {
  .page-head > *, .page-body > *, .page-body > .callout, .page-aside { grid-column: 1 / -1 !important; position: static; }
  .page-aside { grid-row: auto; margin-bottom: 40px; }
  .page-aside .aside-list { columns: 2; column-gap: var(--gap); }
  .page-aside .button { width: auto; }
}

.callout { display: flex; gap: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--raised); margin-bottom: 40px; }
.callout svg { flex: none; margin-top: 3px; }
.callout p + p { margin-top: 8px; }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-head); margin: 64px 0 16px; }
.prose h3 { font-size: var(--step-lead); margin: 36px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--soft); }
.prose strong { font-weight: 600; }
.prose pre { margin: 0 0 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--raised); overflow-x: auto; font-size: 15px; line-height: 1.6; }
.prose code { font-family: "Martian Mono", ui-monospace, monospace; font-variation-settings: "wdth" 87.5; font-size: 0.8em; } /* taste-skill-ignore: DESIGN.md live values / app fragment */
.prose pre code { font-size: inherit; }
.prose :not(pre) > code { padding: 1px 5px; border-radius: 4px; background: var(--raised); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: var(--step-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.prose .button { margin-bottom: 32px; }
@media (max-width: 720px) { .prose table.table-scroll { display: block; overflow-x: auto; } }

.aside-list { list-style: none; padding: 0; font-size: var(--step-small); }
.aside-list li + li { margin-top: 10px; }
.aside-list a[aria-current] { font-weight: 600; text-decoration: none; }
.aside-title { font-size: var(--step-body); font-weight: 600; margin-bottom: 14px; }
.aside-cta { margin-top: 28px; }

.faq-list dt { font-size: var(--step-lead); font-weight: 500; margin-top: 48px; letter-spacing: -0.01em; }
.faq-list dd { margin-top: 10px; max-width: 64ch; }
.faq-list dd p + p { margin-top: 10px; }

/* ===== Motion: entrances, once ===== */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
