/* Staplegun — marketing site (landing, docs, legal, recover).
   Builds on base.css tokens. Posters are artwork: they never re-theme. */

:root {
  --tape: rgba(233, 222, 190, 0.86);
  --wall-marks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220'%3E%3Cg fill='none' stroke='%2315130f' stroke-opacity='.16' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 30h9'/%3E%3Cpath d='M141 18l8 3'/%3E%3Cpath d='M212 64h9'/%3E%3Cpath d='M78 96l9-2'/%3E%3Cpath d='M180 140h8'/%3E%3Cpath d='M34 170l8 2'/%3E%3Cpath d='M118 198h9'/%3E%3Cpath d='M240 188l7-4'/%3E%3C/g%3E%3Cg fill='%2315130f' fill-opacity='.08'%3E%3Ccircle cx='62' cy='46' r='1.6'/%3E%3Ccircle cx='196' cy='104' r='1.6'/%3E%3Ccircle cx='98' cy='150' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --code-bg: #15130f;
  --code-ink: #efe8da;
  --code-dim: #9d9483;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --tape: rgba(200, 188, 150, 0.55);
    --wall-marks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220'%3E%3Cg fill='none' stroke='%23efe8da' stroke-opacity='.12' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 30h9'/%3E%3Cpath d='M141 18l8 3'/%3E%3Cpath d='M212 64h9'/%3E%3Cpath d='M78 96l9-2'/%3E%3Cpath d='M180 140h8'/%3E%3Cpath d='M34 170l8 2'/%3E%3Cpath d='M118 198h9'/%3E%3Cpath d='M240 188l7-4'/%3E%3C/g%3E%3C/svg%3E");
    --code-bg: #0c0b09;
  }
}
:root[data-theme='dark'] {
  --tape: rgba(200, 188, 150, 0.55);
  --wall-marks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220'%3E%3Cg fill='none' stroke='%23efe8da' stroke-opacity='.12' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 30h9'/%3E%3Cpath d='M141 18l8 3'/%3E%3Cpath d='M212 64h9'/%3E%3Cpath d='M78 96l9-2'/%3E%3Cpath d='M180 140h8'/%3E%3Cpath d='M34 170l8 2'/%3E%3Cpath d='M118 198h9'/%3E%3Cpath d='M240 188l7-4'/%3E%3C/g%3E%3C/svg%3E");
  --code-bg: #0c0b09;
}

/* base --ink-3 is ~3.9:1 on paper — fine for large type, too light for the small
   labels and captions used here. Nudge it darker (lighter in dark mode) on site pages. */
body.site { --ink-3: #6b6458; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) body.site { --ink-3: #a39b8c; } }
:root[data-theme='dark'] body.site { --ink-3: #a39b8c; }

html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* While a poster loads it's a blank sheet on the wall, not a black box. */
.site .poster { background: var(--paper-3); }

/* ---------- section scaffolding ---------- */
.sec { padding-top: clamp(80px, 11vw, 144px); }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-rule {
  display: flex; align-items: baseline; gap: 14px;
  border-top: 3px solid var(--rule-strong);
  padding-top: 12px; margin-bottom: clamp(18px, 2.4vw, 28px);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.sec-no { color: var(--signal); font-weight: 600; }
.sec-title { max-width: 21ch; text-wrap: balance; }
.sec-intro { margin-top: clamp(16px, 2vw, 24px); max-width: 38em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.sec-intro p { margin: 0; }
.sec-intro strong { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(28px, 4.5vw, 64px) 0 clamp(24px, 4vw, 48px);
  background-image: var(--wall-marks);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-label { margin: 0 0 18px; color: var(--ink-2); }
.hero-title {
  font-size: clamp(54px, 5.9vw, 76px);
  line-height: 0.88;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.tape {
  position: relative;
  display: inline-block;
  padding: 0.04em 0.14em 0;
  margin: 0 -0.04em;
  background: var(--signal);
  color: #15130f;
  transform: rotate(-2.2deg) translateY(-0.02em);
  box-shadow: 0.05em 0.06em 0 rgba(21, 19, 15, 0.18);
}
.tape::before, .tape::after {
  content: '';
  position: absolute;
  top: 0.1em;
  width: 0.26em;
  height: 0.075em;
  min-height: 5px;
  border: 2px solid #8f8b82;
  border-bottom: 0;
  background: linear-gradient(#e2dfd8, #a9a59b);
  background-clip: padding-box;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}
.tape::before { left: 0.12em; transform: rotate(-5deg); }
.tape::after { right: 0.12em; transform: rotate(4deg); }
.hero-lede { margin: 26px 0 0; max-width: 33em; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 30px; }
.hero-fine { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); max-width: 34em; }

/* the wall: absolutely placed collage in a fixed-ratio box */
.wall { position: relative; margin: 0; aspect-ratio: 1 / 1.02; }
.wall > * { position: absolute; }
.w-cal { left: 0; top: 8%; width: 49%; z-index: 3; transform: rotate(-2deg); }
.w-week { left: 46%; top: 5%; width: 43%; z-index: 2; }
.w-story { left: 73%; top: 40%; width: 27%; z-index: 4; }
.w-og { left: 22%; top: 70%; width: 44%; z-index: 5; transform: rotate(var(--tilt, 0deg)); }
.hand {
  z-index: 6;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.2;
  color: #15130f; background: var(--highlight); padding: 3px 7px 2px; white-space: nowrap;
}
.hand-a { left: 2%; top: 2.5%; transform: rotate(-3deg); }
.hand-b { left: 52%; top: 0; transform: rotate(2deg); }
.hand::after { content: ' ↓'; }
.scrap { background: var(--paper-3); }
.scrap-a {
  left: 6%; top: 84%; width: 22%; height: 12%; transform: rotate(-4deg);
  clip-path: polygon(0 18%, 9% 4%, 21% 14%, 33% 0, 47% 12%, 60% 2%, 74% 16%, 86% 3%, 100% 12%, 100% 100%, 0 100%);
}
.scrap-b {
  left: 82%; top: 12%; width: 16%; height: 22%; transform: rotate(5deg);
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 88%, 76% 70%, 62% 96%, 48% 76%, 34% 100%, 20% 80%, 8% 94%, 0 78%);
}

/* calendar card — "as typed by the booker" */
.cal-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-poster);
  padding: 14px 12px 6px 14px;
  font-size: 12.5px;
  line-height: 1.3;
}
.cal-card::before {
  content: '';
  position: absolute;
  top: -11px; left: 50%;
  width: 92px; height: 24px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(2% 8%, 0 30%, 3% 52%, 0 76%, 2% 100%, 98% 92%, 100% 70%, 97% 48%, 100% 24%, 98% 0);
}
.cal-head { display: flex; gap: 9px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.cal-head svg { color: var(--signal); flex: none; }
.cal-name { font-weight: 700; font-size: 13px; }
.cal-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.cal-days { list-style: none; margin: 0; padding: 0; }
.cal-day { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.cal-day:last-child { border-bottom: 0; }
.cal-date { display: grid; justify-items: center; align-content: start; line-height: 1; }
.cal-date span { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; color: var(--ink-3); letter-spacing: 0.04em; }
.cal-date b { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; font-size: 13px; font-weight: 600; }
.cal-day.is-today .cal-date span { color: var(--signal); }
.cal-day.is-today .cal-date b { background: var(--signal); color: #fff; }
.cal-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.cal-day ul > li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px; align-items: baseline; }
.cal-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.cal-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* link-preview card (hero + outputs) */
.link-card, .bubble-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-poster);
}
.link-card img, .bubble-card img { width: 100%; height: auto; }
.link-meta { display: grid; gap: 1px; padding: 9px 12px 10px; font-size: 13px; line-height: 1.3; border-top: 1px solid var(--rule); }
.link-meta b { font-weight: 600; }
.link-meta span { font-size: 12px; color: var(--ink-3); }

/* ---------- 01 demo ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}
.ledger {
  background: var(--card);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(16px, 2.4vw, 26px);
}
.ledger-name { display: grid; gap: 6px; margin-bottom: 18px; }
.ledger-name .input { font-weight: 600; }
.ledger-rows { border: 0; margin: 0; padding: 0; min-width: 0; }
.ledger-rows legend { padding: 0; margin-bottom: 8px; }
.ledger-row {
  display: grid;
  grid-template-columns: 112px 132px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.ledger-row:last-child { border-bottom: 1px solid var(--rule); }
.ledger .input, .ledger .select {
  min-height: 42px;
  border-width: 1.5px;
  border-color: var(--rule);
  background: var(--paper);
  padding: 0.5em 0.65em;
}
.ledger .input:hover, .ledger .select:hover { border-color: var(--ink-3); }
.ledger .input:focus, .ledger .select:focus { border-color: var(--signal); }
.ledger .select { appearance: none; -webkit-appearance: none; padding-right: 26px; font-weight: 600;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.ledger input[type='time'] { font-family: var(--font-mono); font-size: 15px; }
.ledger-title { font-size: 15px; }
.ledger-legend { margin: 14px 0 0; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.ledger-legend code { font-size: 12.5px; background: var(--highlight); color: #15130f; border-color: transparent; white-space: nowrap; }

.demo-controls { display: grid; gap: 18px; margin-top: 28px; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 8px; }
.seg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer; user-select: none;
  transition: background-color 100ms ease;
}
.seg-opt span:hover { background: var(--paper-2); }
.seg-opt input:checked + span { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--signal); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

.demo-out { position: sticky; top: 92px; }
.demo-poster {
  --tilt: 0.8deg;
  aspect-ratio: 1080 / 1350;
  background: #1c1a16;
  margin: 0 auto;
  width: 100%;
  transition: width 200ms ease;
}
.demo-out[data-size='story'] .demo-poster { aspect-ratio: 1080 / 1920; width: min(100%, 64%); }
.demo-out[data-size='square'] .demo-poster { aspect-ratio: 1; }
.demo-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 160ms ease, filter 160ms ease; }
.demo-inking {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  opacity: 0; transition: opacity 160ms ease;
}
.demo-inking span {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; letter-spacing: 0.06em;
  color: #f1ece1; border: 3px solid currentColor; padding: 4px 14px; transform: rotate(-6deg);
}
.demo-poster[aria-busy='true'] .demo-inking { opacity: 1; }
.demo-poster[aria-busy='true'] > img { opacity: 0.28; filter: grayscale(1); }
.demo-status { margin: 22px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); text-align: center; min-height: 1.6em; }
.demo-status.is-warn { color: var(--warn); }
.demo-after { margin: 6px auto 0; font-size: 15px; color: var(--ink-3); text-align: center; max-width: 30em; }

.demo-mini {
  position: fixed; right: 14px; bottom: 14px; z-index: 30;
  width: 96px; padding: 0; border: 2px solid var(--ink); border-radius: 3px; background: #1c1a16;
  box-shadow: 4px 4px 0 var(--signal), var(--shadow);
  cursor: pointer; transform: rotate(2deg);
  transition: opacity 160ms ease, transform 160ms ease;
}
.demo-mini img { width: 100%; height: auto; }
.demo-mini span {
  display: block; padding: 4px 0 3px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.demo-mini[hidden] { display: none; }
.demo-mini.is-busy img { opacity: 0.4; }
@media (min-width: 901px) { .demo-mini { display: none; } }

/* ---------- 02 how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step { position: relative; padding-top: 4px; }
.step-no {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(88px, 10vw, 140px); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  margin-bottom: 18px;
}
.step:nth-child(1) .step-no { color: var(--signal); -webkit-text-stroke: 0; }
.step h3 { margin-bottom: 12px; }
.step p { margin: 0; color: var(--ink-2); max-width: 30em; }

.ticket {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  margin-top: clamp(56px, 7vw, 88px);
  background: var(--card);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--signal);
  position: relative;
}
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-right: 2px dashed var(--rule-strong);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  padding: 16px 6px;
}
.ticket-stub b { font-family: var(--font-display); font-weight: 900; font-size: 44px; letter-spacing: 0; line-height: 0.9; color: var(--ink); }
.ticket-stub span:last-child { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 8px; color: var(--ink-3); }
.ticket-body { padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 36px); min-width: 0; }
.ticket-body > .label { margin: 0 0 14px; }
.url {
  margin: 0;
  padding-top: 22px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(15px, 2.2vw, 27px); line-height: 1.9; letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.url-host { color: var(--ink-3); }
.url-part {
  --u: var(--rule-strong);
  position: relative; padding-bottom: 3px;
  background: linear-gradient(var(--u), var(--u)) 0 100% / calc(100% - 5px) 2px no-repeat;
}
.url-part::before {
  content: attr(data-n);
  position: absolute; left: calc(50% - 2.5px); top: -1.45em; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 600; letter-spacing: 0; line-height: 1;
}
.url-hot { color: var(--signal); --u: var(--signal); }
.url-hot::before { background: var(--signal); color: #fff; }
.url-legend {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px;
  counter-reset: leg;
}
.url-legend li { counter-increment: leg; display: grid; gap: 3px; padding-left: 30px; position: relative; font-size: 14px; line-height: 1.4; }
.url-legend li::before {
  content: counter(leg);
  position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.url-legend li:nth-child(2)::before { background: var(--signal); color: #fff; }
.url-legend b { font-weight: 700; }
.url-legend span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ticket-foot { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-2); max-width: 44em; }

/* ---------- 03 templates ---------- */
.tpl-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px);
}
.tpl { display: grid; align-content: start; gap: 22px; }
.tpl-poster { aspect-ratio: 1080 / 1350; }
.tpl-poster img { transition: opacity 160ms ease; }
.tpl-poster.is-loading img { opacity: 0.4; }
.tpl-meta { display: grid; gap: 8px; align-content: start; }
.tpl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.tpl-no { margin: 0; color: var(--signal); }
.tpl-name { font-size: clamp(26px, 2.4vw, 32px); }
.tpl-blurb { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.tpl-best { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tpl-best .label { display: block; font-size: 10.5px; margin-bottom: 2px; }
.swatches { display: flex; gap: 6px; }
.swatch {
  position: relative;
  width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0;
  background: radial-gradient(circle, var(--sw-accent) 0 30%, var(--sw-bg) 32%);
  box-shadow: inset 0 0 0 1px rgba(128, 120, 108, 0.45);
  transition: transform 100ms ease;
}
.swatch::after { content: ''; position: absolute; inset: -10px -3px; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed='true'] { box-shadow: inset 0 0 0 1px rgba(128, 120, 108, 0.45), 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

/* ---------- 04 outputs: a proof sheet ---------- */
.proof {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
  align-items: end;
}
.proof-item { margin: 0; display: grid; gap: 14px; align-content: end; min-width: 0; }
.p-post { grid-column: 1 / span 4; }
.p-story { grid-column: 5 / span 3; }
.p-print { grid-column: 8 / span 5; }
.p-og { grid-column: 1 / span 4; align-self: start; }
.p-widget { grid-column: 5 / span 5; align-self: start; }
.p-bio { grid-column: 10 / span 3; align-self: start; }
.crop {
  --cm: var(--ink-3);
  --o: 14px;
  position: relative;
  padding: var(--o);
  background:
    linear-gradient(var(--cm), var(--cm)) 0 var(--o) / 9px 1px,
    linear-gradient(var(--cm), var(--cm)) var(--o) 0 / 1px 9px,
    linear-gradient(var(--cm), var(--cm)) 100% var(--o) / 9px 1px,
    linear-gradient(var(--cm), var(--cm)) calc(100% - var(--o)) 0 / 1px 9px,
    linear-gradient(var(--cm), var(--cm)) 0 calc(100% - var(--o)) / 9px 1px,
    linear-gradient(var(--cm), var(--cm)) var(--o) 100% / 1px 9px,
    linear-gradient(var(--cm), var(--cm)) 100% calc(100% - var(--o)) / 9px 1px,
    linear-gradient(var(--cm), var(--cm)) calc(100% - var(--o)) 100% / 1px 9px;
  background-repeat: no-repeat;
}
.proof-item figcaption { font-size: 15px; line-height: 1.45; color: var(--ink-2); padding: 0 var(--o, 14px); }
.proof-item figcaption .label { display: block; margin-bottom: 6px; color: var(--ink); }
.proof-item figcaption b { color: var(--ink); font-weight: 600; }
.proof-item figcaption code { display: table; margin-top: 8px; font-size: 12px; color: var(--ink-2); }

.bubble { display: grid; gap: 8px; padding: 6px 0; max-width: 380px; }
.bubble-text {
  justify-self: end; margin: 0; padding: 8px 14px; border-radius: 18px 18px 4px 18px;
  background: var(--ink); color: var(--paper); font-size: 14px;
}
.bubble-card { box-shadow: var(--shadow); border-radius: 16px 16px 16px 4px; }

.browser { background: var(--card); border: 1.5px solid var(--rule-strong); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-3); border: 1px solid var(--rule); }
.browser-bar span { margin-left: 8px; flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); background: var(--card); border-radius: 4px; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-page { padding: 18px 18px 14px; }
.site-h { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: 0.01em; }
.widget { list-style: none; margin: 0; padding: 0; }
.widget li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); }
.wd-date { display: grid; justify-items: center; line-height: 1; font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; color: var(--ink-3); gap: 2px; }
.wd-date b { font-family: var(--font-display); font-weight: 900; font-size: 24px; color: var(--ink); }
.wd-main { display: grid; line-height: 1.25; min-width: 0; }
.wd-main b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-main span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-main small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.wd-sold { font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--signal); padding: 3px 6px; border-radius: 2px; }
.wd-attr { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); text-align: right; }

.phone {
  width: 100%; max-width: 260px; margin: 0 auto;
  border: 2px solid var(--ink); border-radius: 30px; padding: 10px;
  background: var(--ink); box-shadow: var(--shadow);
}
.bio { background: #15130f; color: #efe8da; border-radius: 21px; padding: 20px 14px 16px; display: grid; gap: 10px; text-align: center; }
.bio-kicker { margin: 0; font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #ffb429; }
.bio-name { margin: -4px 0 2px; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 0.95; text-transform: uppercase; }
.bio img { border-radius: 4px; }
.bio-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.bio-list li { display: grid; gap: 1px; padding: 6px 2px; border-top: 1px solid rgba(239, 232, 218, 0.14); font-size: 13px; line-height: 1.2; }
.bio-list span { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #a39a8a; }
.bio-btn { display: block; margin-top: 2px; padding: 9px; border-radius: 6px; background: #ffb429; color: #15130f; font-weight: 700; font-size: 13px; }

/* ---------- 05 who ---------- */
.who-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.who-item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5.4fr) 132px;
  gap: 12px clamp(20px, 3.4vw, 48px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--rule-strong);
}
.who-name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 3.6vw, 50px); line-height: 0.92; letter-spacing: -0.005em; text-wrap: balance; }
.who-body { display: grid; gap: 10px; }
.who-line { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; max-width: 34em; }
.who-uses { margin: 0; }
.who-thumb { width: 132px; aspect-ratio: 1; }
.who-thumb::before, .who-thumb::after { top: 6px; width: 14px; height: 5px; }

/* ---------- 06 developers ---------- */
.dev-grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.dev-copy > p { color: var(--ink-2); max-width: 34em; font-size: 18px; }
.dev-links { margin-top: 28px; }
.dev-more { margin-top: 22px; font-size: 15px; color: var(--ink-3); }
.dev-code { display: grid; gap: 16px; }
.code { background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); }
.code-bar { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid rgba(239, 232, 218, 0.1); }
.code-bar .label { color: var(--code-dim); font-size: 11px; }
.code-bar .label.muted { color: #6f6758; text-transform: none; letter-spacing: 0; }
.code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; tab-size: 2; }
.code code { font-size: inherit; background: none; border: 0; padding: 0; color: inherit; }

/* ---------- 07 pricing: ticket stubs ---------- */
.stubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.stub {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.stub-main { padding: clamp(22px, 3vw, 36px); display: grid; align-content: start; gap: 4px; }
.stub-kicker { margin: 0; }
.stub-name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 6vw, 84px); line-height: 0.85; margin: 6px 0 10px; }
.stub-price { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stub-price b { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; }
.stub-price span { font-size: 16px; color: var(--ink-2); }
.stub-alt { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.stub-list { list-style: none; margin: 22px 0 28px; padding: 0; border-top: 1px solid var(--rule); }
.stub-list li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 16px; line-height: 1.4; }
.stub-list li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }
.stub-list li.stub-catch { color: var(--ink-2); }
.stub-list li.stub-catch::before { content: '*'; border: 0; transform: none; top: 8px; left: 3px; width: auto; height: auto; color: var(--ink-3); font-family: var(--font-mono); font-size: 18px; }
.stub-main .btn { justify-self: start; }
.catch-lens {
  display: block; position: relative; overflow: hidden;
  width: 100%; max-width: 340px; aspect-ratio: 340 / 58; margin-top: 10px;
  background: #0f0d0b; border-radius: 3px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 18px -10px rgba(0, 0, 0, 0.5);
}
.catch-lens img { position: absolute; width: 317.6%; max-width: none; height: auto; right: -25%; bottom: -160%; }
.stub-tear {
  position: relative;
  border-left: 2px dashed var(--rule-strong);
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  padding: 30px 0;
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.stub-tear b { font-family: var(--font-display); font-weight: 900; font-size: 40px; letter-spacing: 0; color: var(--ink); writing-mode: vertical-rl; }
.stub-tear::before, .stub-tear::after {
  content: ''; position: absolute; left: -13px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--rule-strong);
}
.stub-tear::before { top: -13px; }
.stub-tear::after { bottom: -13px; }
.stub-pro { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 8px 8px 0 var(--signal); }
.stub-pro .label, .stub-pro .stub-price span, .stub-pro .stub-alt, .stub-pro .stub-tear { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
.stub-pro .stub-list, .stub-pro .stub-list li { border-color: color-mix(in srgb, var(--paper) 18%, transparent); }
.stub-pro .stub-tear { border-left-color: color-mix(in srgb, var(--paper) 55%, transparent); }
.stub-pro .stub-tear b { color: var(--paper); }
.stub-pro .stub-tear::before, .stub-pro .stub-tear::after { border-color: var(--ink); }
.pricing-foot { margin: 28px 0 0; font-size: 15px; color: var(--ink-3); max-width: 50em; }

/* ---------- 08 faq ---------- */
.faq-list { max-width: 880px; margin-left: auto; }
.qa { border-top: 1px solid var(--rule-strong); }
.qa:last-child { border-bottom: 1px solid var(--rule-strong); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; font-family: var(--font-mono); font-size: 22px; line-height: 1; color: var(--signal); transition: transform 120ms ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover span { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.qa-a { padding: 0 40px 14px 0; color: var(--ink-2); max-width: 44em; }
.qa-a b { color: var(--ink); font-weight: 600; }

/* ---------- final CTA ---------- */
.final {
  margin-top: clamp(96px, 12vw, 160px);
  margin-bottom: -96px; /* sit on the footer rule */
  background: var(--signal);
  color: #15130f;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  clip-path: polygon(0 14px, 4% 4px, 9% 12px, 15% 2px, 22% 10px, 28% 0, 35% 9px, 41% 3px, 48% 12px, 55% 2px, 61% 9px, 68% 0, 75% 11px, 81% 3px, 88% 10px, 94% 1px, 100% 9px, 100% 100%, 0 100%);
}
.final + * { margin-top: 0; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; }
.final-title { font-size: clamp(52px, 8vw, 116px); line-height: 0.86; text-wrap: balance; }
.final-side p { margin: 0 0 20px; font-size: 18px; max-width: 22em; }
.final-btn { --b-bg: #15130f; --b-fg: #f1ece1; box-shadow: 4px 4px 0 #f1ece1; }
.final-btn:hover { box-shadow: 5px 5px 0 #f1ece1; }
.final-btn:active { box-shadow: 1px 1px 0 #f1ece1; }
.final .btn:focus-visible { outline-color: #15130f; }
.landing .footer { margin-top: 96px; }

/* base.css's `.footer-grid a { display:block }` outranks `.brand` and stacks the logo; keep it inline. */
.footer-grid a.brand { display: inline-flex; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .p-post { grid-column: 1 / span 5; }
  .p-story { grid-column: 6 / span 3; }
  .p-print { grid-column: 9 / span 4; }
  .p-og { grid-column: 1 / span 6; }
  .p-widget { grid-column: 7 / span 6; }
  .p-bio { grid-column: 1 / span 5; }
  .who-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 110px; }
  .who-thumb { width: 110px; }
  .url-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: clamp(50px, 10.5vw, 88px); }
  .wall { max-width: 620px; width: 100%; margin: 12px auto 0; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-out { position: static; max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; }
  .step-no { grid-row: span 2; font-size: 96px; margin: 0; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .stubs { grid-template-columns: minmax(0, 1fr); max-width: 580px; }
  .final-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-list { margin-left: 0; }
}

@media (max-width: 640px) {
  .sec { padding-top: 76px; }
  .hero { padding-top: 24px; }
  .hero-label { font-size: 11px; margin-bottom: 14px; }
  .hero-lede { margin-top: 20px; font-size: 18px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .wall { aspect-ratio: 1 / 1.3; margin-top: 22px; }
  .w-cal { top: 3.5%; width: 62%; font-size: 11.5px; padding: 10px 8px 4px 11px; }
  .w-cal .cal-day:nth-child(-n + 3) { display: none; }
  .w-cal .cal-day ul > li { grid-template-columns: 40px minmax(0, 1fr); }
  .w-week { left: 42%; top: 38%; width: 57%; z-index: 4; }
  .w-story { display: none; }
  .w-og { left: 0; top: 63%; width: 47%; z-index: 5; }
  .w-og .link-meta { padding: 5px 8px 6px; font-size: 10.5px; }
  .w-og .link-meta span { font-size: 10px; }
  .hand { font-size: 10px; padding: 2px 6px 1px; }
  .hand-a { left: 1%; top: 0; }
  .hand-b { left: 47%; top: 33%; }
  .scrap-a { display: none; }
  .scrap-b { left: 84%; top: 29%; width: 15%; height: 11%; }
  .ledger { box-shadow: 4px 4px 0 var(--ink); }
  .ledger-row { grid-template-columns: 112px minmax(0, 1fr); }
  .ledger-title { grid-column: 1 / -1; }
  .seg-opt span { min-height: 40px; padding: 0 11px; font-size: 14px; }
  .step { grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; }
  .step-no { font-size: 76px; }
  .ticket { grid-template-columns: minmax(0, 1fr); box-shadow: 5px 5px 0 var(--signal); }
  .ticket-stub { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 10px; border-right: 0; border-bottom: 2px dashed var(--rule-strong); padding: 10px 18px; }
  .ticket-stub b { font-size: 26px; }
  .ticket-stub span:last-child { writing-mode: horizontal-tb; transform: none; margin: 0 0 0 auto; }
  .url { font-size: 16px; line-height: 2.3; }
  .url-host { display: block; line-height: 1.4; }
  .url-part { display: inline-block; line-height: 1.5; }
  .url-part::before { width: 17px; height: 17px; font-size: 10px; top: -1.2em; }
  .url-legend { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 16px; }
  .tpl { gap: 16px; }
  .tpl-name { font-size: 24px; }
  .tpl-blurb, .tpl-best { font-size: 14px; }
  .swatch { width: 22px; height: 22px; }
  .tpl:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 44px 10px; align-items: start; }
  .proof-item { align-content: start; }
  .p-post { grid-column: 1; }
  .p-story { grid-column: 2; }
  .p-print, .p-og, .p-widget, .p-bio { grid-column: 1 / -1; }
  .p-post .crop, .p-story .crop { --o: 10px; }
  .p-post figcaption, .p-story figcaption { font-size: 14px; }
  .p-post figcaption .label, .p-story figcaption .label { font-size: 10.5px; letter-spacing: 0.04em; }
  .proof-item figcaption code { overflow-wrap: anywhere; font-size: 11px; }
  .p-print .crop { max-width: 76%; }
  .p-bio .crop { max-width: 290px; }
  .widget li:nth-child(n + 5) { display: none; }
  .who-item { grid-template-columns: minmax(0, 1fr) 84px; gap: 10px 16px; align-items: start; }
  .who-name { grid-column: 1; font-size: 34px; }
  .who-body { grid-column: 1 / -1; }
  .who-thumb { grid-column: 2; grid-row: 1; width: 84px; justify-self: end; }
  .dev-copy > p { font-size: 17px; }
  .code pre { font-size: 12.5px; }
  .stub { grid-template-columns: minmax(0, 1fr) 54px; }
  .stub-tear b { font-size: 30px; }
  .stub-main .btn { justify-self: stretch; white-space: normal; text-align: center; }
  .qa-a { padding-right: 0; }
  .final { clip-path: polygon(0 10px, 8% 2px, 17% 9px, 27% 0, 38% 8px, 49% 2px, 60% 10px, 71% 1px, 82% 8px, 91% 0, 100% 7px, 100% 100%, 0 100%); }
  .final-btn { width: 100%; }
}

@media (max-width: 370px) {
  .tpl-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================================================
   Docs
   ====================================================================== */
.docs-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 32px); }
.docs-hero h1 { font-size: clamp(48px, 7vw, 96px); }
.docs-hero .lede { margin: 18px 0 0; }
.docs-hero .row { margin-top: 24px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(16px, 3vw, 32px); }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding: 4px 0 24px; font-size: 14.5px; }
.toc .label { margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); line-height: 1.3; }
.toc li a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.toc li a[aria-current='true'] { color: var(--ink); font-weight: 600; border-left-color: var(--signal); }
.toc ol ol { border: 0; }
.toc ol ol a { padding-left: 26px; font-size: 13.5px; }

.doc { min-width: 0; max-width: 820px; }
.doc > section { padding-bottom: clamp(40px, 5vw, 64px); }
.doc h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 4vw, 48px); line-height: 0.95; margin: 0 0 18px; padding-top: 18px; border-top: 3px solid var(--rule-strong); }
.doc h2 .no { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--signal); margin-bottom: 12px; }
.doc h3 { font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 34px 0 10px; text-transform: none; }
.doc h3 code { font-size: 0.82em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p strong, .doc li strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li + li { margin-top: 4px; }
.doc a { text-decoration-color: var(--signal); }
.doc :not(pre) > code { border-color: transparent; background: var(--paper-2); padding: 0.08em 0.3em; white-space: nowrap; }
.doc :not(pre) > code.wrap { white-space: normal; overflow-wrap: anywhere; }
.doc h3 .endpoint { gap: 10px; }
.endpoint code, .doc .endpoint code { background: none; border: 0; padding: 0; font-weight: 600; font-size: 16px; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.doc h3 .verb { font-size: 12px; padding: 4px 8px; }
.doc .code { margin: 14px 0 20px; }
.doc .code pre { font-size: 13px; }
.endpoint { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; }
.verb { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 2px; border: 1.5px solid var(--rule-strong); background: var(--card); color: var(--ink); }
.verb.post { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.verb.patch { background: var(--signal); color: #fff; border-color: var(--signal); }
.verb.delete { color: var(--danger); border-color: var(--danger); }
.key-badge { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); border: 1px dashed var(--ink-3); padding: 2px 6px; border-radius: 2px; }

.table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.doc th { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { white-space: nowrap; }
.doc td code { white-space: nowrap; }
.doc td { color: var(--ink-2); }

.callout { margin: 18px 0 22px; padding: 14px 16px; border-left: 4px solid var(--signal); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15.5px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.quick { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: start; margin: 18px 0; }
.quick .poster { margin-top: 6px; }
.copy-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent; color: var(--code-dim); border: 1px solid rgba(239, 232, 218, 0.22); border-radius: 3px; padding: 2px 8px; cursor: pointer;
}
.copy-btn:hover { color: var(--code-ink); border-color: var(--code-ink); }
.copy-btn.is-done { color: #9ee2b8; border-color: #9ee2b8; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding: 0 0 8px; border-bottom: 1px solid var(--rule); }
  .toc > ol { columns: 2; column-gap: 24px; }
  .toc ol ol { display: none; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .quick .poster { max-width: 200px; }
}
@media (max-width: 480px) {
  .toc > ol { columns: 1; }
}

/* ======================================================================
   Legal + recover
   ====================================================================== */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(48px, 7vw, 96px); }
.page-head .lede { margin: 16px 0 0; }
.legal-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 300px); justify-content: space-between; gap: 48px; align-items: start; }
.prose { max-width: 720px; min-width: 0; }
.gist { position: sticky; top: 96px; margin-top: 8px; padding: 20px 22px; background: var(--card); border: 2px solid var(--rule-strong); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--signal); }
.gist .label { margin: 0 0 10px; color: var(--ink); }
.gist ul { list-style: none; margin: 0; padding: 0; }
.gist li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.4; }
.gist-other { margin: 12px 0 0; font-size: 14px; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .gist { position: static; order: -1; margin: 0; }
}
.prose h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 3vw, 34px); line-height: 1; margin: 44px 0 12px; padding-top: 14px; border-top: 2px solid var(--rule-strong); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.draft-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 8px 0 8px; padding: 14px 16px;
  border: 2px dashed var(--warn); border-radius: var(--radius);
  background: color-mix(in srgb, var(--highlight) 22%, var(--card));
  font-size: 15px; color: var(--ink);
}
.draft-note b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); white-space: nowrap; padding-top: 3px; }
.updated { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 32px; }

.recover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 24px; }
.recover-card { background: var(--card); border: 2px solid var(--rule-strong); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: clamp(20px, 3vw, 32px); }
.recover-card form { display: grid; gap: 16px; }
.recover-card .btn { justify-self: start; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 2px solid; font-size: 15.5px; margin-bottom: 18px; }
.notice p { margin: 0; }
.notice-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--card)); }
.notice-unavailable, .notice-slow { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--card)); }
.notice-error { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--card)); }
.notice b { display: block; margin-bottom: 2px; color: var(--ink); }
.recover-side ol { padding-left: 1.2em; color: var(--ink-2); }
.recover-side li + li { margin-top: 8px; }
@media (max-width: 800px) {
  .recover { grid-template-columns: minmax(0, 1fr); }
  .recover-card .btn { justify-self: stretch; }
}
