/* ==========================================================================
   spindle marketing site — "Precision Dark" at marketing scale.

   The palette is copied from the app (web/src/app.css; docs/style-guideline.md
   §1) so the site and the product are the same object: graphite panes, one amber
   accent that means action, monospace for every identifier, colour otherwise
   reserved for state. No gradients, no external fonts, no shadows for depth —
   hairlines and flat panes only. Radius stays at 2–4px on panels and controls.

   Site-only tokens: --site-wrap, --site-top (sticky header height), --site-art
   (the fixed dark ground behind the terminal concept art, in every palette).
   ========================================================================== */

:root {
  color-scheme: light;
  --pd-canvas: #ffffff;
  --pd-surface: #f7f7f6;
  --pd-raised: #efefed;
  --pd-raised-2: #e6e6e3;
  --pd-line: #e2e2df;
  --pd-line-strong: #cfcfca;
  --pd-text: #17181a;
  --pd-text-2: #55585d;
  --pd-muted: #666a6f;
  --pd-dim: #8a8f94;
  --pd-accent: #9a5b00;
  --pd-accent-hover: #7a4600;
  --pd-on-accent: #ffffff;
  --pd-ok: #0f7355;
  --pd-ok-bg: #dbe8e2;
  --pd-warn: #8a5a10;
  --pd-warn-bg: #eee2ca;
  --pd-danger: #b42323;
  --pd-danger-bg: #ecd5d4;
  --pd-link: #17181a;
  --pd-code-bg: #ffffff;
  --pd-kw: #6d28d9;
  --pd-add-bg: #e8f6f0;
  --pd-add-fg: #0b5a43;
  --pd-del-bg: #fdf0f0;
  --pd-del-fg: #8f2020;
  --pd-sel: #fdf0d0;

  --site-wrap: 1180px;
  --site-top: 60px;
  --site-art: #0f1113;
  --r-ctl: 3px;
  --r-panel: 4px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --pd-canvas: #0f1113;
  --pd-surface: #14181b;
  --pd-raised: #1c2125;
  --pd-raised-2: #22282c;
  --pd-line: #232a2e;
  --pd-line-strong: #323a3f;
  --pd-text: #e6eaec;
  --pd-text-2: #a3adb4;
  --pd-muted: #818b93;
  --pd-dim: #525c63;
  --pd-accent: #ffb224;
  --pd-accent-hover: #ffc862;
  --pd-on-accent: #151004;
  --pd-ok: #4ec9a4;
  --pd-ok-bg: #1d3431;
  --pd-warn: #e0a95e;
  --pd-warn-bg: #393227;
  --pd-danger: #e06c6c;
  --pd-danger-bg: #352528;
  --pd-link: #e6eaec;
  --pd-code-bg: #0f1113;
  --pd-kw: #a78bfa;
  --pd-add-bg: rgb(78 201 164 / 0.12);
  --pd-add-fg: #b7e8d8;
  --pd-del-bg: rgb(224 108 108 / 0.12);
  --pd-del-fg: #f2c3c3;
  --pd-sel: #2a2214;
}

:root[data-theme="hc-dark"] {
  color-scheme: dark;
  --pd-canvas: #0f1113;
  --pd-surface: #14181b;
  --pd-raised: #1c2125;
  --pd-raised-2: #22282c;
  --pd-line: #39434b;
  --pd-line-strong: #5b6871;
  --pd-text: #f4f8fa;
  --pd-text-2: #c8d2d9;
  --pd-muted: #a6b1ba;
  --pd-dim: #7d8992;
  --pd-accent: #ffc23e;
  --pd-accent-hover: #ffd06e;
  --pd-on-accent: #151004;
  --pd-ok: #5fd6b0;
  --pd-ok-bg: #1a3a33;
  --pd-warn: #e8ba7c;
  --pd-warn-bg: #3f3626;
  --pd-danger: #f08484;
  --pd-danger-bg: #3d2427;
  --pd-link: #f4f8fa;
  --pd-code-bg: #0f1113;
  --pd-kw: #c0b0ff;
  --pd-add-bg: rgb(78 201 164 / 0.16);
  --pd-add-fg: #c8f2e2;
  --pd-del-bg: rgb(224 108 108 / 0.16);
  --pd-del-fg: #f8d4d4;
  --pd-sel: #33290f;
}

/* ---- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-top) + 24px);
}

body {
  margin: 0;
  background: var(--pd-canvas);
  color: var(--pd-text);
  font: 400 16.5px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pd-text);
}

p { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: 0.9em; }
:not(pre) > code {
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--pd-raised);
  color: var(--pd-text);
  white-space: normal;
  overflow-wrap: anywhere;
}

a {
  color: var(--pd-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--pd-sel); }

:focus-visible {
  outline: 2px solid var(--pd-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--site-wrap);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  background: var(--pd-accent);
  color: var(--pd-on-accent);
  font-weight: 650;
  text-decoration: none;
}
.skip:focus { top: 10px; color: var(--pd-on-accent); }

/* ---- header -------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--pd-surface);
  border-bottom: 1px solid var(--pd-line);
}

/* Anchor targets clear the sticky header (two rows on narrow screens). */
[id] { scroll-margin-top: 76px; }
@media (max-width: 720px) { [id] { scroll-margin-top: 112px; } }

.head-in {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--site-top);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pd-text);
  text-decoration: none;
  font: 600 17px/1 var(--font-mono);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--pd-line-strong);
  border-radius: var(--r-ctl);
  color: var(--pd-text);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-mark .dot { fill: var(--pd-accent); }

.nav { display: flex; gap: 20px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--pd-text-2);
  text-decoration: none;
  font: 500 14px/1 var(--font-sans);
  padding: 5px 0;
}
.nav a:hover { color: var(--pd-text); text-decoration: underline; text-underline-offset: 4px; }

.head-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  color: var(--pd-text-2);
  text-decoration: none;
  font: 500 13px/1 var(--font-mono);
}
.gh-link:hover {
  color: var(--pd-text);
  background: var(--pd-raised);
  border-color: var(--pd-line);
  text-decoration: none;
}
.gh-link svg { width: 15px; height: 15px; }

.theme {
  display: flex;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-raised);
}
.theme button {
  min-width: 34px;
  min-height: 26px;
  padding: 0 5px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--pd-muted);
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.theme button:hover { color: var(--pd-text); }
.theme button[aria-pressed="true"] {
  background: var(--pd-surface);
  color: var(--pd-text);
  box-shadow: inset 0 0 0 1px var(--pd-line-strong);
}
html:not(.js) .theme { display: none; }

@media (max-width: 900px) {
  .head-in {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 20px;
    row-gap: 6px;
  }
  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 3px 0;
    font-size: 13px;
  }
  .nav a { font-size: 13px; }
  html { scroll-padding-top: 108px; }
}
@media (max-width: 430px) {
  .gh-link span { display: none; }
  .gh-link { padding: 0 6px; }
}

/* ---- buttons and section furniture -------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--pd-line-strong);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--pd-text);
  font: 600 14px/1 var(--font-sans);
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.btn:hover { background: var(--pd-raised); text-decoration: none; }
.btn.primary {
  background: var(--pd-accent);
  border-color: var(--pd-accent);
  color: var(--pd-on-accent);
}
.btn.primary:hover {
  background: var(--pd-accent-hover);
  border-color: var(--pd-accent-hover);
}
.btn .arr { margin-left: 8px; font-family: var(--font-mono); }

.section { padding: 76px 0; }
.section.alt {
  background: var(--pd-surface);
  border-top: 1px solid var(--pd-line);
  border-bottom: 1px solid var(--pd-line);
}
@media (max-width: 620px) { .section { padding: 52px 0; } }

.sec-head { max-width: 58rem; }
.sec-head h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}
.sec-lede {
  margin-top: 14px;
  max-width: 44rem;
  color: var(--pd-text-2);
  font-size: 17px;
  line-height: 1.6;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.eyebrow .tick {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--pd-text-2);
}

/* ---- hero ---------------------------------------------------------------- */

.hero { padding: 72px 0 60px; }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 56px;
    align-items: center;
  }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.15rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.hero h1 span {
  display: block;
  margin-top: 0.32em;
  font-size: 0.6em;
  font-weight: 550;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--pd-text-2);
}

.lede {
  margin-top: 22px;
  max-width: 36rem;
  color: var(--pd-text-2);
  font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
  line-height: 1.6;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font: 400 12px/1.5 var(--font-mono);
  color: var(--pd-muted);
}
.hero-meta li { padding: 0 12px; border-left: 1px solid var(--pd-line); }
.hero-meta li:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 560px) {
  .hero-meta { gap: 4px 16px; }
  .hero-meta li { padding: 0; border-left: 0; }
}

/* the bucket-key panel: a diagram of the repository, not a product mockup */
.store {
  margin: 0;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-surface);
  overflow: hidden;
}
.store-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pd-line);
  background: var(--pd-raised);
  font: 400 12px/1 var(--font-mono);
  color: var(--pd-muted);
}
.store-bar .path { color: var(--pd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-bar .marks { letter-spacing: 2px; color: var(--pd-dim); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--pd-line);
  border-radius: 2px;
  background: var(--pd-raised-2);
  color: var(--pd-text-2);
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.store pre {
  margin: 0;
  padding: 14px 18px 16px;
  overflow-x: auto;
  font: 400 12.5px/1.95 var(--font-mono);
  color: var(--pd-text-2);
}
.store .line { display: block; padding: 0 8px; margin: 0 -8px; }
.store .line.hot {
  margin: 0 -8px;
  padding: 0 8px;
  background: var(--pd-raised-2);
  box-shadow: inset 2px 0 0 var(--pd-accent);
  color: var(--pd-text);
}
.store .c { color: var(--pd-muted); }
.store .line.hot .c { color: var(--pd-text-2); }
.store figcaption {
  padding: 0 18px 16px;
  color: var(--pd-muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.store figcaption b { color: var(--pd-text-2); font-weight: 600; }

/* ---- measured strip ------------------------------------------------------ */

.measured {
  border-top: 1px solid var(--pd-line);
  border-bottom: 1px solid var(--pd-line);
  background: var(--pd-line);
}
.measured-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  list-style: none;
  margin: 0 auto;
}
@media (min-width: 960px) { .measured-in { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.measure {
  background: var(--pd-surface);
  padding: 20px 20px;
  min-width: 0;
}
.measure b {
  display: block;
  font: 600 26px/1 var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--pd-text);
}
.measure span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--pd-muted);
}
.measure a {
  display: inline-block;
  padding: 3px 0;
  line-height: 1.5;
  color: var(--pd-text-2);
  font-size: 12.5px;
}
@media (max-width: 959px) { .measure:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .measure { padding: 16px; } }

/* ---- demo ---------------------------------------------------------------- */

.demo { padding: 66px 0 70px; }
.demo-figure { margin: 34px auto 0; max-width: 1060px; }
.demo video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-raised);
}
.demo figcaption {
  margin-top: 12px;
  font: 400 12.5px/1.5 var(--font-mono);
  color: var(--pd-muted);
}
.demo figcaption code { color: var(--pd-text-2); }
.demo-transcript {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--pd-line);
  font: 400 12.5px/1.6 var(--font-mono);
  color: var(--pd-muted);
}
.demo-transcript summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--pd-text-2);
  cursor: pointer;
}
.demo-transcript ol { margin: 6px 0 0; padding-left: 20px; }
.demo-transcript li { margin: 2px 0; }

/* ---- tour ---------------------------------------------------------------- */

.tour { display: grid; gap: 48px; margin-top: 44px; }
.tour-item { display: grid; gap: 22px; align-items: center; min-width: 0; }
@media (min-width: 920px) {
  .tour-item { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 44px; }
  .tour-item.flip { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); }
  .tour-item.flip .tour-media { order: -1; }
}
.tour-text .tour-num {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--pd-muted);
}
.tour-text h3 { margin-top: 12px; font-size: 20px; }
.tour-text p { margin-top: 8px; color: var(--pd-text-2); font-size: 15px; }
.tour-text ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font: 400 12.5px/1.7 var(--font-mono);
  color: var(--pd-muted);
}
.tour-text li { padding-left: 14px; position: relative; }
.tour-text li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--pd-muted);
}

.shot {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-surface);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--pd-line);
  font: 400 12px/1.5 var(--font-mono);
  color: var(--pd-muted);
}

.phone {
  margin: 0 auto;
  width: 100%;
  max-width: 260px;
  padding: 7px;
  border: 1px solid var(--pd-line-strong);
  border-radius: 4px;
  background: var(--pd-surface);
}
.phone img { border-radius: 4px; }
.phone figcaption {
  padding: 8px 2px 1px;
  font: 400 11.5px/1.4 var(--font-mono);
  color: var(--pd-muted);
}

/* ---- concepts ------------------------------------------------------------ */

.concepts { display: grid; gap: 22px; margin-top: 40px; }
@media (min-width: 760px) { .concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.surface { display: grid; gap: 22px; margin-top: 36px; }
@media (min-width: 760px) { .surface { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .surface { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.surface .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.concept {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-surface);
  overflow: hidden;
}
.concept-media {
  position: relative;
  border-bottom: 1px solid var(--pd-line);
  background: var(--site-art);
}
.concept-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--site-art);
}
.concept .anim { display: none; }
.concept.playing .still { display: none; }
.concept.playing .anim { display: block; }
.concept-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--pd-line-strong);
  border-radius: var(--r-ctl);
  background: var(--pd-surface);
  color: var(--pd-text);
  font: 500 11px/1 var(--font-mono);
  cursor: pointer;
}
.concept-play:hover { background: var(--pd-raised); }
.concept-play[aria-pressed="true"] { background: var(--pd-raised-2); }
html:not(.concepts-ready) .concept-play { display: none; }
.concept figcaption {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--pd-text-2);
}
.concept figcaption b { display: block; margin-bottom: 3px; color: var(--pd-text); font-weight: 600; }

/* ---- why ----------------------------------------------------------------- */

.why {
  display: grid;
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-line);
  overflow: hidden;
}
@media (min-width: 760px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .why { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.why-item { background: var(--pd-canvas); padding: 26px 24px; min-width: 0; }
.why-item .idx {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--pd-muted);
}
.why-item h3 { margin-top: 12px; font-size: 16px; letter-spacing: -0.01em; }
.why-item p { margin-top: 8px; font-size: 14px; line-height: 1.62; color: var(--pd-text-2); }
.why-item code {
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--pd-raised);
  color: var(--pd-text);
  font-size: 0.88em;
  white-space: nowrap;
}

.evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--pd-line);
  font: 400 12.5px/1.6 var(--font-mono);
  color: var(--pd-muted);
}
.evidence a { color: var(--pd-text-2); }

/* ---- code blocks --------------------------------------------------------- */

.code {
  margin: 0;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-code-bg);
  overflow: hidden;
}
.code + .code { margin-top: 16px; }
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--pd-line);
  background: var(--pd-raised);
  font: 400 11.5px/1 var(--font-mono);
  color: var(--pd-muted);
}
.code-bar .state { color: var(--pd-text-2); }
.code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font: 400 12.5px/1.75 var(--font-mono);
  color: var(--pd-text-2);
  tab-size: 2;
}
.code .c { color: var(--pd-muted); }
.code .k { color: var(--pd-text); }
.code .a { color: var(--pd-accent); }

/* ---- deploy and CLI ------------------------------------------------------ */

.split { display: grid; gap: 36px; margin-top: 40px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 980px) {
  .split { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.steps .n {
  height: 20px;
  border: 1px solid var(--pd-line-strong);
  border-radius: 2px;
  font: 500 11px/18px var(--font-mono);
  text-align: center;
  color: var(--pd-text-2);
}
.steps h3 { font-size: 15px; }
.steps p { margin-top: 5px; font-size: 14px; line-height: 1.6; color: var(--pd-text-2); }
.steps code { color: var(--pd-text); background: var(--pd-raised); padding: 1px 4px; border-radius: 2px; }

.note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--pd-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--pd-muted);
}

.cli-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cli-list li {
  padding-top: 14px;
  border-top: 1px solid var(--pd-line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--pd-text-2);
}
.cli-list li:first-child { padding-top: 0; border-top: 0; }
.cli-list code { color: var(--pd-text); white-space: nowrap; }
.cli-list b { display: block; margin-bottom: 2px; color: var(--pd-text); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }

/* ---- docs links ---------------------------------------------------------- */

.links {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  background: var(--pd-line);
  overflow: hidden;
}
@media (min-width: 700px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.linkcard {
  display: block;
  min-height: 96px;
  padding: 20px 22px;
  background: var(--pd-canvas);
  color: var(--pd-text);
  text-decoration: none;
}
.linkcard:hover { background: var(--pd-raised); text-decoration: none; }
.linkcard .lc-t {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font: 600 13.5px/1.3 var(--font-mono);
}
.linkcard .arr { color: var(--pd-muted); }
.linkcard p { margin-top: 7px; font-size: 13px; line-height: 1.55; color: var(--pd-text-2); }

/* ---- footer -------------------------------------------------------------- */

.foot {
  padding: 52px 0 34px;
  background: var(--pd-surface);
  border-top: 1px solid var(--pd-line);
}
.foot-in { display: grid; gap: 30px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; } }

.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-mono); }
.foot-brand .brand-mark { width: 26px; height: 26px; }
.foot-brand .brand-mark svg { width: 14px; height: 14px; }
.foot-tag { margin-top: 12px; max-width: 26rem; font-size: 13px; line-height: 1.6; color: var(--pd-muted); }

.foot h2 {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.foot-links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13.5px; }
.foot-links a {
  display: inline-block;
  padding: 3px 0;
  color: var(--pd-text-2);
  text-decoration: none;
}
.foot-links a:hover { color: var(--pd-text); text-decoration: underline; }

.foot-legal { margin-top: 22px; font-size: 13px; line-height: 1.7; color: var(--pd-muted); }
.foot-legal p + p { margin-top: 8px; }
.foot-legal a { color: var(--pd-text-2); }

.foot-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--pd-line);
  font: 400 12px/1.6 var(--font-mono);
  color: var(--pd-muted);
}

/* ---- workflow authoring page --------------------------------------------- */

.nav a[aria-current="page"] {
  color: var(--pd-text);
  text-decoration: underline;
  text-decoration-color: var(--pd-accent);
  text-underline-offset: 4px;
}

.docbody { max-width: 72rem; }

.prose p, .prose ul, .prose ol {
  margin-top: 12px;
  color: var(--pd-text-2);
  font-size: 15px;
  line-height: 1.7;
}
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 5px; }
.prose li > code, .prose p > code {
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--pd-raised);
  color: var(--pd-text);
  white-space: normal;
  overflow-wrap: anywhere;
}
.prose b { color: var(--pd-text); font-weight: 600; }

.tocbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 26px;
  font: 400 12.5px/1.5 var(--font-mono);
}
.tocbar a { color: var(--pd-text-2); text-decoration: none; }
.tocbar a:hover { color: var(--pd-text); text-decoration: underline; text-underline-offset: 3px; }

.tablewrap {
  margin-top: 18px;
  border: 1px solid var(--pd-line);
  border-radius: var(--r-panel);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.ref {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--pd-text-2);
}
table.ref th, table.ref td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pd-line);
}
table.ref th {
  background: var(--pd-raised);
  color: var(--pd-muted);
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.ref tr:last-child td { border-bottom: 0; }
table.ref td:first-child { color: var(--pd-text); white-space: nowrap; }
table.ref code {
  padding: 1px 3px;
  border-radius: 2px;
  background: var(--pd-raised);
  color: var(--pd-text);
  font-size: 0.9em;
  white-space: nowrap;
}

.subhead { margin-top: 34px; font-size: 17px; letter-spacing: -0.01em; }
.subhead + .prose p { margin-top: 8px; }

/* ---- motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .concept-play { display: none; }
  .concept.playing .still { display: block; }
  .concept .anim { display: none !important; }
}
