/*
THESIS: a trade buyer already knows the shelf-edge ticket means "this is the one"; the page is rails and
tickets, refusing the SaaS hero-with-screenshot and icon-card grid.
OWN-WORLD: racking-blue rails, white snap-in tickets, one yellow match ticket, red gap tags, Archivo condensed.
STORY: the manager sees the buyer moment, sees what comes back (sample), sees the owner's terms, emails one family.
FIRST VIEWPORT: blue rack field; buyer question as display type; yellow ticket button; the selector result
sits as a drawn pump selector with the match ticket on a rail, below (phone) or right (desktop).
FORM: shelf-edge ticket rail, candidate 5 of 7; seed: 8f2ae565 (key as printed by concept-seed); staging: plain stacked sequence.
*/
@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --rack: #1c3d96;
  --rack-deep: #12296b;
  --rack-edge: #4a6cc4;
  --floor: #e9ecef;
  --floor-2: #dde2e7;
  --line: #c9cfd6;
  --ticket: #ffffff;
  --ink: #111418;
  --muted: #4a5361;
  --on-rack: #ffffff;
  --on-rack-2: #d5def5;
  --tag: #ffc629;
  --tag-deep: #e8ad00;
  --flag: #b3261e;
  --chip: #eef1f6;
  --arrow: #1c3d96;
  --shadow: 0 2px 0 rgba(10, 20, 50, .28), 0 10px 24px -12px rgba(10, 20, 50, .35);
  --r: 3px;
  --gut: 16px;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rack: #18306f;
    --rack-deep: #0f2154;
    --rack-edge: #3456a8;
    --floor: #0d1322;
    --floor-2: #141c30;
    --line: #2a3550;
    --ticket: #f3f4f1;
    --ink: #111418;
    --muted: #b6bfcf;
    --on-rack: #ffffff;
    --on-rack-2: #c9d4ef;
    --chip: #e3e7ee;
    --arrow: #8fa6e0;
    --shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 12px 28px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --rack: #18306f; --rack-deep: #0f2154; --rack-edge: #3456a8; --floor: #0d1322; --floor-2: #141c30;
  --line: #2a3550; --ticket: #f3f4f1; --muted: #b6bfcf; --on-rack-2: #c9d4ef; --chip: #e3e7ee; --arrow: #8fa6e0;
  --shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 12px 28px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font: 400 1.0625rem/1.5 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  overflow-x: hidden;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { color: #e7eaf0; } }
:root[data-theme="dark"] body { color: #e7eaf0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-stretch: 68%; font-weight: 820; letter-spacing: -0.01em; line-height: 1; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; border-radius: 2px; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 9; min-height: 44px; background: var(--tag); color: var(--ink); padding: 12px 16px; }

/* ---------- rack field (hero, close, footer) ---------- */
.rack { background: var(--rack); color: var(--on-rack); }
.rack a { color: var(--on-rack); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none;
  font-stretch: 72%; font-weight: 850; font-size: 1.15rem; letter-spacing: .01em;
}
.logo b {
  background: var(--tag); color: var(--ink); padding: 6px 9px 5px; border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 var(--rack-deep);
}
.navlink {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  font-weight: 600; text-underline-offset: 4px;
}
.navlink:hover { text-decoration-thickness: 2px; }

.hero { padding-block: 20px 0; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.45rem, 7.2vw, 5.2rem); }
.hero .sub { margin-top: 14px; font-size: 1.15rem; color: var(--on-rack-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 20px; border-radius: var(--r); border: 0;
  background: var(--tag); color: var(--ink) !important; text-decoration: none;
  font: inherit; font-stretch: 78%; font-weight: 820; font-size: 1.2rem; line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 3px 0 var(--tag-deep), 0 10px 22px -10px rgba(0,0,0,.5);
  cursor: pointer; transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 4px 0 var(--tag-deep), 0 14px 26px -10px rgba(0,0,0,.55); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 0 var(--tag-deep); }
.btn svg { width: 20px; height: 20px; flex: none; }

.copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid currentColor; border-radius: var(--r);
  color: inherit; font: inherit; font-size: .95rem; cursor: pointer;
}
.copy:hover { background: rgba(255,255,255,.1); }
.copy[data-done] { border-style: dashed; }


.rail {
  position: relative; background: var(--rack-deep);
  border-top: 2px solid var(--rack-edge); border-bottom: 3px solid rgba(0,0,0,.35);
}


/* ---------- tickets ---------- */
.tk {
  position: relative; background: var(--ticket); color: var(--ink); border-radius: var(--r);
  padding: 8px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow);
}
.tk.match { background: var(--tag); }
.tk small { display: block; font-size: .8rem; font-weight: 600; color: #3b4350; }
.tk.match small { color: #2b2a1f; }
.code { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: .85rem; }
.tk .name { display: block; font-stretch: 75%; font-weight: 800; font-size: 1.25rem; line-height: 1.05; }
.bars {
  position: absolute; right: 10px; top: 9px; width: 34px; height: 18px; opacity: .8;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 3px, #111 3px 4px, transparent 4px 6px, #111 6px 9px, transparent 9px 10px);
}
.label-tk { font-size: .82rem; font-weight: 600; padding: 4px 10px; }

/* ---------- sections ---------- */
.sec { padding-block: 64px; }
.sec + .sec { padding-top: 8px; }
.sec h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 18ch; }
.sec .lede { margin-top: 12px; color: var(--muted); max-width: 52ch; font-size: 1.1rem; }

/* hero scene: the selector, drawn */
.scene { margin: 0; }
.sel { background: var(--ticket); color: var(--ink); border-radius: 8px 8px 0 0; overflow: hidden; border: 5px solid #10141b; border-bottom: 0; }
.sel-top { display: flex; align-items: center; gap: 5px; background: #10141b; color: #c9d0da; font-size: .72rem; padding: 2px 6px 7px; }
.sel-top i { width: 7px; height: 7px; border-radius: 50%; background: #4a5361; }
.sel-top span { margin-left: 8px; background: #252b35; border-radius: 99px; padding: 2px 10px; }
.sel-body { padding: 14px 14px 12px; display: grid; gap: 10px; }
.sel-title { font-stretch: 72%; font-weight: 850; font-size: 1.35rem; line-height: 1; }
.sel-q span { display: block; font-size: .85rem; font-weight: 600; color: #3b4350; margin-bottom: 5px; }
.sel-q p { display: flex; flex-wrap: wrap; gap: 6px; }
.sel-q b { border: 1.5px solid #c3cbd6; border-radius: 5px; padding: 4px 10px; font-size: .9rem; font-weight: 600; background: #fff; }
.sel-q b.on { background: var(--ink); color: var(--tag); border-color: var(--ink); font-weight: 800; }
.scene-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 12px 14px; }
.scene-tk { padding: 10px 56px 10px 14px; flex: 1 1 220px; }
.scene-tk .name { font-size: 1.5rem; }

/* 3-step picture */
.flow3 { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.flow3 li { position: relative; }
.flow3 li:not(:last-child)::after {
  content: ""; position: absolute; right: -18px; top: 48px; width: 14px; height: 18px; background: var(--arrow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.flow3 p { margin-top: 10px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.mini { background: var(--ticket); color: var(--ink); border-radius: 6px; box-shadow: var(--shadow); height: 112px; display: grid; place-items: center; align-content: center; gap: 6px; }
.mini em { font-style: normal; font-size: .75rem; font-weight: 700; color: #3b4350; }
.sheet-ico { position: relative; width: 52px; height: 62px; border-radius: 3px; background: #1f7a3c; }
.sheet-ico::after { content: ""; position: absolute; inset: 12px 8px 8px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 8px), repeating-linear-gradient(90deg, transparent 0 11px, rgba(255,255,255,.6) 11px 12px); }
.sheet-ico.flagged i { position: absolute; z-index: 1; width: 16px; height: 10px; background: var(--flag); border-radius: 2px; right: -8px; box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.sheet-ico.flagged i:nth-child(1) { top: 14px; }
.sheet-ico.flagged i:nth-child(2) { top: 30px; right: 18px; }
.sheet-ico.flagged i:nth-child(3) { top: 46px; }
.slips { display: grid; gap: 3px; width: 64px; }
.slips i { height: 13px; border-radius: 2px; background: var(--tag); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.slips i.r { background: var(--flag); }

/* sample result: the centrepiece */
.sample { margin-top: 32px; background: var(--ticket); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.sample-head { background: var(--rack); color: #fff; padding: 16px 18px; display: grid; gap: 6px; }
.sample-head h3 { font-size: 1.7rem; }
.sample-head p { color: #d5def5; font-size: .95rem; }
.sample-sum { padding: 16px 18px; border-bottom: 1px solid #dfe3e8; font-weight: 600; }
.qs { list-style: none; margin: 0; padding: 0; }
.q { display: grid; gap: 12px; padding: 18px; border-bottom: 1px solid #dfe3e8; }
.q blockquote { margin: 0; font-stretch: 85%; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.q blockquote::before { content: "A buyer asks"; display: block; font-stretch: 100%; font-weight: 600; font-size: .78rem; color: #4a5361; margin-bottom: 4px; }
.path { display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.path li { position: relative; background: var(--chip); border: 1px solid #c3cbd6; border-radius: 999px; padding: 4px 9px; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.path li + li::before { content: "→"; position: absolute; left: -16px; top: 50%; translate: 0 -52%; color: #4a5361; font-weight: 700; }
.q .lands { background: var(--rack-deep); box-shadow: inset 0 2px 0 var(--rack-edge), inset 0 -3px 0 rgba(0,0,0,.35); padding: 12px 10px 13px; }
.q .tk { padding-right: 56px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .q .lands .tk { animation: snap linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    @keyframes snap {
      from { transform: translateX(42%) rotate(1.5deg); opacity: .2; clip-path: inset(0 0 0 30%); }
      to { transform: none; opacity: 1; clip-path: inset(0); }
    }
  }
}

.gaps { padding: 18px; background: #fbfbfa; }
.gaps h4 { margin: 0 0 12px; font-stretch: 75%; font-weight: 820; font-size: 1.35rem; }
.gaplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gaplist li { display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: 12px; }
.gaplist b {
  position: relative; background: var(--flag); color: #fff; border-radius: var(--r); text-align: center;
  font-stretch: 70%; font-weight: 850; font-size: 1.7rem; line-height: 1; padding: 8px 4px 8px 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.gaplist b::before { content: ""; position: absolute; left: 5px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fbfbfa; }
.gaplist span { font-size: 1rem; line-height: 1.35; }
.gaplist em { font-style: normal; color: #4a5361; display: block; font-size: .9rem; }
.fixfile { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; background: #e6f0e6; color: #144d27; padding: 8px 12px; border-radius: var(--r); }

/* owner rail */
.ownerrail { list-style: none; margin: 24px 0 0; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: 4px; }
.ownerrail .tk { padding: 12px; }
.ownerrail .tk .name { font-size: 1.35rem; }
.ownerrail .tk p { margin-top: 4px; font-size: .9rem; line-height: 1.35; color: #2f3640; }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; font-size: 1rem; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 800; font-size: 1.15rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .facts b { color: #fff; } }
:root[data-theme="dark"] .facts b { color: #fff; }

/* browser band */
.win { background: var(--ticket); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; max-width: 420px; }
.win .bar { height: 26px; background: #10141b; display: flex; gap: 6px; align-items: center; padding-left: 10px; }
.win .bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a5361; }
.xls { width: 36px; height: 44px; flex: none; background: #1f7a3c; border-radius: 3px; position: relative; }
.xls::after { content: ""; position: absolute; inset: 10px 7px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 7px); opacity: .85; }

/* video */
.video { margin-top: 28px; max-width: 720px; }
.poster {
  position: relative; display: block; border-radius: 8px; overflow: hidden; text-decoration: none;
  background: var(--ticket); box-shadow: var(--shadow); border: 6px solid var(--ticket);
}
.poster img { width: 100%; height: auto; border-radius: 3px; }
.playbar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px 2px; color: var(--ink); font-weight: 700; font-size: 1rem; }
.play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--rack); display: grid; place-items: center; transition: transform .15s ease-out; }
.poster:hover .play { transform: scale(1.08); }
.play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.poster.playing { aspect-ratio: 16 / 9; border: 0; }
.poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: .95rem; color: var(--muted); }
.vmeta a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: inherit; }

/* close + footer */
.close { padding-block: 56px; }
.close h2 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; }
.close .sub { margin-top: 12px; color: var(--on-rack-2); max-width: 44ch; }
.foot { border-top: 1px solid rgba(255,255,255,.18); padding-block: 22px 30px; font-size: .9rem; color: var(--on-rack-2); display: grid; gap: 4px; }

/* partners page */
.steps { list-style: none; margin: 30px 0 0; padding: 12px; display: grid; gap: 10px; border-radius: 4px; counter-reset: st; }
.steps .tk { padding: 14px 54px 14px 64px; min-height: 84px; counter-increment: st; }
.steps .ico { position: absolute; right: 12px; top: 12px; margin: 0; width: 26px; height: 32px; }
.steps .ico-code { width: auto; height: auto; }
.steps .ico-check::after { left: 8px; top: 6px; width: 8px; height: 14px; border-width: 0 3px 3px 0; }
.steps .tk::before {
  content: counter(st); position: absolute; left: 12px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rack); color: #fff; display: grid; place-items: center; font-stretch: 70%; font-weight: 850; font-size: 1.4rem;
}
.steps .who { display: block; font-size: .82rem; font-weight: 700; color: #3b4350; }
.steps .name { font-size: 1.3rem; }

.split { margin-top: 26px; padding: 14px; display: grid; gap: 14px; border-radius: 4px; }
.side h3 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.tks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tks .tk { font-stretch: 80%; font-weight: 800; font-size: 1.15rem; padding: 10px 14px; }
.gapline {
  align-self: center; justify-self: center; text-align: center; max-width: 22ch; color: #fff; font-weight: 700;
  padding: 10px 12px; border: 2px dashed rgba(255,255,255,.55); border-radius: 4px;
}
.ico { display: block; width: 34px; height: 40px; margin-bottom: 10px; border-radius: 3px; font-style: normal; }
.ico-xls { background: #1f7a3c; position: relative; }
.ico-xls::after { content: ""; position: absolute; inset: 9px 7px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 7px); opacity: .85; }
.ico-check { background: var(--flag); position: relative; }
.ico-check::after { content: ""; position: absolute; left: 11px; top: 9px; width: 10px; height: 18px; border: solid #fff; border-width: 0 4px 4px 0; rotate: 45deg; }
.ico-code { width: auto; height: auto; display: inline-block; background: #111418; color: var(--tag); font-weight: 800; padding: 6px 9px; font-size: .95rem; }
.chain { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chain .tk { font-stretch: 75%; font-weight: 820; font-size: 1.35rem; padding: 10px 16px; }
.chain .tk.mid { background: var(--rack); color: #fff; box-shadow: inset 0 0 0 2px var(--rack-edge), var(--shadow); }
.chain i { font-style: normal; font-weight: 800; font-size: 1.5rem; color: var(--muted); }

.outage { margin-top: 24px; max-width: 520px; }
.outage .win .page { padding: 14px; display: grid; gap: 8px; }
.outage .ln { height: 9px; border-radius: 3px; background: #dfe3e8; }
.outage .ln.s { width: 60%; }
.fallback { border: 2px solid var(--ink); border-radius: 6px; padding: 12px; display: grid; gap: 2px; color: var(--ink); }
.fallback b { font-stretch: 75%; font-weight: 820; font-size: 1.15rem; }
.fallback span { font-size: .95rem; color: #3b4350; }

.diff { margin-top: 20px; max-width: 62ch; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.thanks { margin-top: 24px; display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; max-width: 560px; }
.thanks .tk { font-stretch: 70%; font-weight: 850; font-size: 1.6rem; line-height: 1; padding: 12px 16px; }
.thanks p { font-weight: 600; }

.vids { margin-top: 28px; display: grid; gap: 30px; }
.vids h3 { font-size: 1.8rem; margin-bottom: 12px; }
.disclaim { margin-top: 6px; font-size: .9rem; color: var(--muted); }

.steps-cap { margin-top: 30px; color: var(--on-rack-2); font-weight: 600; }
.hero-steps { margin-top: 10px; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  :root { --gut: 32px; }
  .q { grid-template-columns: 1.15fr 1.1fr .95fr; align-items: center; gap: 20px; }
  .gaplist { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .ownerrail { grid-template-columns: repeat(4, 1fr); padding: 12px; gap: 10px; }
  .ownerrail .tk .name { font-size: 1.6rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps .tk { padding: 64px 14px 16px; min-height: 190px; }
  .steps .ico { top: 14px; }
  .hero-steps .tk { min-height: 150px; }
  .split { grid-template-columns: 1fr auto 1fr; align-items: start; gap: 24px; padding: 18px 22px 22px; }
  .vids { grid-template-columns: 1fr 1fr; }
  .sample-head { grid-template-columns: 1fr auto; align-items: end; }
  .flow3 { gap: 56px; max-width: 900px; }
  .flow3 li:not(:last-child)::after { right: -36px; top: 70px; width: 18px; height: 24px; }
  .mini { height: 150px; }
  .flow3 p { font-size: 1.05rem; }
  .sel-body { padding: 18px 20px 16px; gap: 12px; }
}
@media (min-width: 1040px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); align-items: end; gap: 56px; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.6rem); }
  .hero-copy { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
