/* TorniLabs — waitlist site. Direction A "Fjord". Layout: a left rail of section titles, content on an 8-column measure, hairlines instead of cards. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/fonts/atkinson-hyperlegible-mono.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #f2f5f6;
  --surface: #ffffff;
  --sunken: #e9eef1;
  --line: #d3dbe1;
  --line-strong: #768898;
  --ink: #10263a;
  --muted: #4a5d6e;
  --action: #1f5f8b;
  --action-hover: #184d72;
  --on-action: #ffffff;
  --action-tint: #e3eef5;
  --share: #25775a;
  --on-share: #ffffff;
  --share-tint: #e4f2eb;
  --attention-ink: #8f5408;
  --attention-tint: #fbf1de;
  --danger: #b3283c;
  --focus: #1f5f8b;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0c1c2b;
    --surface: #132738;
    --sunken: #091621;
    --line: #25394b;
    --line-strong: #6f8799;
    --ink: #e6edf1;
    --muted: #a9b8c4;
    --action: #6fa8d6;
    --action-hover: #8dbbe0;
    --on-action: #0c1c2b;
    --action-tint: #17344c;
    --share: #5cc49b;
    --on-share: #0c1c2b;
    --share-tint: #143829;
    --attention-ink: #f0b85a;
    --attention-tint: #3a2c12;
    --danger: #f08a98;
    --focus: #9cc6ea;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--action); color: var(--on-action); }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 20; padding: 12px 16px; border-radius: var(--radius-md); background: var(--ink); color: var(--ground); }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.nav a { text-decoration: none; font-size: 1rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .nav-link { display: none; }
@media (min-width: 760px) { .nav .nav-link { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-md); border: 1.5px solid transparent;
  font: 600 1.0625rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); }
.btn-quiet { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.nav a.btn-primary { color: var(--on-action); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--action); text-decoration: none; min-height: 44px; }
.arrow-link::after { content: "→"; transition: transform 0.15s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- hero: copy left, a looping scene right ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 9fr) minmax(0, 13fr); gap: 24px; } }
.kicker { font-size: 1.125rem; color: var(--muted); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 4.7vw, 4.25rem); line-height: 1; letter-spacing: -0.04em;
  max-width: 12ch; text-wrap: balance;
}
.hero h1 .next-door { color: var(--share); display: block; }
.hero .lede { margin-top: clamp(20px, 2.4vw, 30px); max-width: 40ch; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--muted); }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .actions { margin-top: clamp(26px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero .status { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); }
.hero .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--share); flex: none; }
.hero-visual { min-width: 0; }
@media (min-width: 1000px) { .hero-visual { margin-right: clamp(-56px, -3.5vw, 0px); } }
@media (max-width: 999px) { .hero-visual { margin-inline: -8px; } }

/* ---------- four short promises ---------- */
.strip { border-block: 1px solid var(--line); }
.strip ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip li { padding: 18px 16px 18px 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; display: flex; align-items: center; gap: 14px; }

.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--sunken); }
.film figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.film details { max-width: 68ch; }
.film summary { cursor: pointer; min-height: 32px; }
.film details p { margin-top: 8px; }

/* ---------- sections: a heading, then content that uses the full width ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.sec-head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec-head p { margin-top: 12px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--muted); }
.split { display: grid; gap: clamp(36px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; } }
.lead { margin-top: 18px; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.45; color: var(--muted); max-width: 34ch; }
.ticks { margin-top: 26px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.ticks li::before { content: ""; width: 14px; height: 2px; background: var(--share); flex: none; transform: translateY(-4px); }

/* ---------- the price band: the one loud moment on the page ---------- */
.band { background: #10263a; color: #f2f5f6; padding-block: var(--section); }
.band-kicker { font-family: var(--mono); font-size: 0.9375rem; color: #a9b8c4; }
.band-prices { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 72px); max-width: 980px; }
.band-size { font-family: var(--mono); font-size: clamp(1rem, 1.8vw, 1.375rem); color: #a9b8c4; }
.band-num { font-family: var(--display); font-weight: 700; font-size: clamp(3.25rem, 11.5vw, 9.5rem); line-height: 0.95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.band-per { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: var(--radius-sm); background: #e8a838; color: #10263a; font-family: var(--mono); font-weight: 600; font-size: clamp(0.875rem, 1.5vw, 1.125rem); }
.band-line { margin-top: clamp(32px, 5vw, 56px); max-width: 26ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.band-line span { color: #6fd0a8; display: block; margin-top: 0.3em; }
.band-note { margin-top: 24px; font-size: 0.9375rem; color: #a9b8c4; }
.band + .section { border-top: 0; }

/* rows separated by hairlines */
.rows > li { display: grid; gap: 8px 32px; grid-template-columns: minmax(0, 1fr); padding-block: 28px; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows > li:last-child { padding-bottom: 0; }
@media (min-width: 640px) { .rows > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.rows h3 { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -0.01em; }
.rows p { color: var(--muted); max-width: 46ch; }

/* steps are a real sequence, so they are numbered */
.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; gap: 6px 24px; grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: 28px; border-top: 1px solid var(--line); }
.steps > li:first-child { border-top: 0; padding-top: 0; }
.steps > li::before { content: counter(step); font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); padding-top: 0.45rem; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, 2.1vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; }
.steps p { grid-column: 2; color: var(--muted); max-width: 40ch; }

/* ---------- specimen label: the signature object ---------- */
.label { position: relative; margin-top: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); max-width: 440px; }
.label-tab { position: absolute; left: 16px; top: -13px; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.label dl.prices { display: grid; grid-template-columns: auto 1fr auto; gap: 0 18px; padding: 20px 18px 14px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.label dl.prices > div { display: contents; }
.label dl.prices dt, .label dl.prices dd { padding-block: 8px; border-top: 1px solid var(--line); }
.label dl.prices > div:first-child dt, .label dl.prices > div:first-child dd { border-top: 0; }
.label dd.price { font-weight: 600; text-align: right; }
.label dd.per { color: var(--attention-ink); text-align: right; }
.note { margin-top: 12px; font-size: 0.875rem; color: var(--muted); max-width: 46ch; }

.label.wide { max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { padding: 22px 18px 16px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
@media (max-width: 639px) { .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin-top: 2px; font-family: var(--mono); font-size: 1rem; }

.ledger { margin-top: 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.ledger li { display: grid; grid-template-columns: 6.5ch minmax(0, 1fr) auto; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.ledger .when { color: var(--muted); }
.ledger .state { color: var(--share); }

/* ---------- product fragment ---------- */
.fragment { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(16px, 2.4vw, 28px); }
.frag-search { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: var(--radius-md); font-family: var(--mono); font-size: 1.125rem; }
.frag-search svg { flex: none; }
.frag-h { margin: 22px 2px 8px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.frag-h.share { color: var(--share); }
.frag-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.frag-row + .frag-row { margin-top: 8px; }
.frag-row b { font-weight: 600; }
.frag-row .sub { display: block; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.frag-row .price { font-family: var(--display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.frag-row.share { border: 1.5px solid var(--share); background: var(--share-tint); }
.frag-row .pill { padding: 8px 14px; border-radius: var(--radius-sm); background: var(--share); color: var(--on-share); font-weight: 600; font-size: 0.9375rem; }

/* ---------- two sides of the marketplace ---------- */
.sides { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.side { padding-block: 8px 40px; }
.side + .side { border-top: 1px solid var(--line); padding-top: 40px; }
@media (min-width: 760px) {
  .side { padding: 0 clamp(24px, 4vw, 56px) 0 0; }
  .side + .side { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 clamp(24px, 4vw, 56px); }
}
.side .who { font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); }
.side h3 { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 16ch; }
.side ul { margin-top: 22px; }
.side li { padding-block: 13px; border-top: 1px solid var(--line); }
.side li b { font-weight: 600; }
.side li span { color: var(--muted); }
.side .arrow-link { margin-top: 18px; }

/* ---------- quote ---------- */
blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 4.4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
blockquote footer { margin-top: 20px; color: var(--muted); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-col { min-width: 0; }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; cursor: pointer; list-style: none; font: 600 1.125rem/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.25rem; color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; max-width: 58ch; color: var(--muted); }

/* ---------- waitlist form: the one raised surface on the page ---------- */
.join { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3.4vw, 40px); }
.form { display: grid; gap: 22px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.field label, .roles legend { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font: 400 1.0625rem/1.4 var(--sans);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.roles { border: 0; margin: 0; padding: 0; min-width: 0; }
.roles .set { display: flex; flex-wrap: wrap; gap: 8px; }
.roles label { position: relative; margin: 0; font-weight: 400; }
.roles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.roles span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); }
.roles input:hover + span { border-color: var(--ink); }
.roles input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); font-weight: 600; }
.roles input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: 1rem; }
.consent input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--action); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-msg { font-size: 1rem; min-height: 1.6em; }
.form-msg.is-error { color: var(--danger); }
.done h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
.done p { margin-top: 10px; color: var(--muted); max-width: 48ch; }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px 56px; font-size: 0.9375rem; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.site-foot .wordmark { color: var(--ink); }
.site-foot p { margin-top: 8px; max-width: 44ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; }

/* ---------- plain document pages (privacy, terms) ---------- */
.doc { padding-block: clamp(48px, 8vw, 104px) var(--section); }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -0.04em; }
.doc .updated { margin-top: 14px; font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); }
.doc .body { margin-top: clamp(32px, 5vw, 56px); max-width: 66ch; }
.doc h2 { margin-top: 2.2em; font: 700 1.375rem/1.25 var(--display); letter-spacing: -0.02em; }
.doc p, .doc ul { margin-top: 0.9em; }
.doc ul { list-style: disc; padding-left: 1.2em; }
.doc li + li { margin-top: 0.4em; }
.doc a { color: var(--action); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ================= Variant B (search first): additions ================= */
.hero h1 { max-width: 13ch; }
.hero h1 .accent { color: var(--action); display: block; }
.who, .sec-head .who { font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); margin: 0 0 12px; }
@media (min-width: 900px) { .split-wide { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }

/* small check marks instead of dashes */
.ticks li::before { width: 6px; height: 11px; background: none; border: solid var(--action); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); margin-inline: 4px 2px; }

/* the problem: three supplier websites, three answers */
.tabs { display: grid; padding: 10px 6px 4px; }
.win { grid-area: 1 / 1; width: 76%; align-self: start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 10px 24px rgba(16, 38, 58, 0.1); overflow: hidden; }
.win-1 { transform: rotate(-2.4deg); }
.win-2 { margin: 122px 0 0 12%; transform: rotate(1.6deg); }
.win-3 { margin: 244px 0 0 24%; transform: rotate(-0.8deg); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--sunken); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); opacity: 0.6; flex: none; }
.win-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 14px 16px 18px; }
.win-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.win-name { font-weight: 600; }
.win-price { font-family: var(--display); font-weight: 700; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.win-ship { margin-top: 2px; font-family: var(--mono); font-size: 0.875rem; color: var(--attention-ink); }
.win-lines { margin-top: 14px; display: grid; gap: 8px; }
.win-lines i { height: 8px; border-radius: 4px; background: var(--sunken); }
.win-lines i:last-child { width: 60%; }

.pains > li { padding-block: 24px; border-top: 1px solid var(--line); }
.pains > li:first-child { border-top: 0; padding-top: 0; }
.pains h3, .gains h3, .sub-h { font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, 2.1vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; }
.pains p, .gains p { margin-top: 6px; color: var(--muted); max-width: 42ch; }

/* search results: suppliers first, labs nearby after */
.frag-end { display: inline-flex; align-items: baseline; gap: 14px; }
.frag-row .ship { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); min-width: 6.5ch; text-align: right; }
.frag-row.pick { border: 1.5px solid var(--action); background: var(--action-tint); }
.frag-row.pick .ship { color: var(--action); font-weight: 700; }
.frag-row.spare { border-style: dashed; border-color: var(--line-strong); }
.frag-row .ask { font-weight: 600; font-size: 0.9375rem; color: var(--share); }

/* an order, as the lab and as the supplier see it */
.ticket { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(16px, 2.4vw, 28px); }
.ticket-flag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--action-tint); color: var(--action); font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ticket-head b { font-weight: 600; font-size: 1.125rem; }
.ticket .sub { display: block; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.ticket .price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ticket-facts { margin-top: 16px; border-top: 1px solid var(--line); }
.ticket-facts > div { display: grid; grid-template-columns: 10ch minmax(0, 1fr); gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.ticket-facts dt { color: var(--muted); font-size: 0.9375rem; }
.ticket-facts dd { font-family: var(--mono); font-size: 0.9375rem; }
.ticket-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: var(--radius-md); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: 0.9375rem; }
.chip-btn.primary { background: var(--action); border-color: var(--action); color: var(--on-action); }

.track { margin-top: 22px; display: grid; font-size: 0.9375rem; }
.track li { position: relative; display: flex; align-items: center; gap: 12px; padding-block: 7px; color: var(--muted); }
.track li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); flex: none; position: relative; z-index: 1; }
.track li::after { content: ""; position: absolute; left: 6px; top: -50%; width: 2px; height: 100%; background: var(--line); }
.track li:first-child::after { display: none; }
.track .is-done, .track .is-now { color: var(--ink); }
.track .is-done::before { background: var(--action); border-color: var(--action); }
.track .is-done::after, .track .is-now::after { background: var(--action); }
.track .is-now { font-weight: 700; }
.track .is-now::before { border-color: var(--action); box-shadow: 0 0 0 4px var(--action-tint); }
@media (min-width: 560px) {
  .track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .track li { flex-direction: column; gap: 8px; padding: 0; text-align: center; font-size: 0.875rem; }
  .track li::after { left: -50%; top: 6px; width: 100%; height: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .track .is-now::before { animation: track-now 2.4s ease-in-out infinite; }
}
@keyframes track-now { 0%, 100% { box-shadow: 0 0 0 3px var(--action-tint); } 50% { box-shadow: 0 0 0 8px var(--action-tint); } }

/* for labs */
.gains { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@media (min-width: 760px) { .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); } }
.gains > li { padding-block: 24px; border-top: 1px solid var(--line); }
.nearby { margin-top: clamp(48px, 6vw, 80px); padding: clamp(20px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .nearby { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nearby .lead { max-width: 38ch; }
.nearby .ticks li::before { border-color: var(--share); }

/* for suppliers */
.points { margin-top: 26px; margin-bottom: 18px; }
.points li { padding-block: 13px; border-top: 1px solid var(--line); }
.points li b { font-weight: 600; }
.points li span { color: var(--muted); }
