/* CUE — landing page.
   Tokens are the product's own (src/styles/tokens.css): warm charcoal, amber
   means time, cyan means ink, and cyan is never used decoratively. */

:root {
  --bg: #0f0f0f;
  --bg-sunken: #0a0a0a;
  --surface: #181818;
  --elevated: #1f1f1f;
  --hover: #262626;
  --active: #2c2c2c;
  --line: #2a2a2a;
  --line-strong: #363636;

  --ink-1: #f1f1f1;
  --ink-2: #aaaaaa;
  --ink-3: #909090;
  --ink-4: #8c8c8c;   /* muted text: 4.9:1 on --elevated, 5.6:1 on --bg */
  --ink-5: #5a5a5a;   /* decorative marks only, never text */

  --amber: #ff9f1c;
  --amber-dim: rgba(255, 159, 28, .16);
  --amber-glow: rgba(255, 159, 28, .30);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, .14);
  --teal: #2ec4b6;
  --red: #e71d36;

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --font-page: "Courier Prime", "Courier New", Courier, monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms; --t-base: 200ms; --t-slow: 320ms;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) var(--bg); accent-color: var(--amber); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font: 400 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.022em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #0f0f0f; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: var(--r-sm); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--amber); color: #0f0f0f; padding: 12px 16px; border-radius: var(--r-pill); font-weight: 600;
}
.skip:focus { top: 14px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.label {
  font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
}

/* A cue mark on every section rule. */
.section { padding: 104px 0; border-top: 1px solid var(--line); position: relative; }
.section::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px;
  background: var(--amber); border-radius: 2px;
}
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; }
.section-head p { color: var(--ink-2); font-size: 16.5px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--elevated); border: 1px solid var(--line-strong); color: var(--ink-1);
  font-weight: 500; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--hover); border-color: var(--line-strong); }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: #0f0f0f; font-weight: 600; }
.btn-primary:hover { background: #ffb347; border-color: #ffb347; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink-1); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; position: relative; }
/* The header button stays compact; its hit area does not. */
.btn-sm::after { content: ""; position: absolute; inset: -4px -2px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 15, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.lockup { height: 26px; width: auto; color: var(--ink-1); }
.lockup.sm { height: 20px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark:hover .lockup { color: var(--amber); }
.lockup { transition: color var(--t-base) var(--ease); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--ink-1); background: var(--surface); }
.site-nav .btn { margin-left: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 620px;
  background: radial-gradient(48% 60% at 28% 0%, rgba(255, 159, 28, .085), transparent 72%);
  pointer-events: none;
}
.hero-copy { max-width: 800px; position: relative; }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 82px); line-height: .98; letter-spacing: -.04em; font-weight: 600;
}
.hero-sub { color: var(--ink-2); font-size: clamp(16.5px, 1.65vw, 19px); margin: 24px 0 30px; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--ink-4); font-size: 13.5px; }

/* ---------- The app mock ---------- */
.stage-wrap { margin-top: 64px; position: relative; }
.stage {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 6px 0 -2px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.stage-fit { overflow: hidden; }
.app {
  width: 1160px; transform-origin: 0 0;
  display: grid; grid-template-columns: 64px 1fr;
  grid-template-areas: "rail body" "status status";
  background: var(--bg); font-size: 13px;
}

.rail {
  grid-area: rail; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0;
}
.rail-mark { color: var(--amber); margin-bottom: 12px; }
.rail-mark svg { height: 22px; width: auto; }
.rtool {
  width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--ink-4);
}
.rtool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rtool.on { background: var(--amber-dim); color: var(--amber); }

.app-body {
  grid-area: body; display: grid;
  grid-template-columns: 1fr 340px; grid-template-rows: 48px 1fr;
  grid-template-areas: "top top" "viewer drawer";
}
.topbar {
  grid-area: top; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.tb-left { display: flex; align-items: center; gap: 10px; }
.prod { font-weight: 600; font-size: 14px; }
.cut-chip {
  font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); padding: 3px 10px;
}
.tb-right { display: flex; align-items: center; gap: 12px; }
.mini { font-size: 11.5px; color: var(--ink-4); font-family: var(--font-mono); }
.mini-btn {
  font-size: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 4px 12px; color: var(--ink-2);
}
.avatars { display: flex; }
.avatars i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9.5px; font-style: normal; font-weight: 600; color: #0f0f0f;
  border: 2px solid var(--surface); margin-left: -7px; background: var(--amber);
}
.avatars i:nth-child(2) { background: #6fc3ff; }
.avatars i:nth-child(3) { background: var(--teal); }
.avatars i.more { background: var(--active); color: var(--ink-2); }

.viewer { grid-area: viewer; display: flex; flex-direction: column; background: var(--bg-sunken); min-width: 0; }
.well { padding: 18px 18px 8px; }
.frame-img {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md);
  background: #08080a;
}
.frame-img .lit {
  position: absolute; inset: 0;
  background:
    radial-gradient(34% 52% at 66% 34%, rgba(255, 186, 110, .5), transparent 70%),
    radial-gradient(60% 70% at 20% 90%, rgba(40, 60, 90, .45), transparent 72%),
    linear-gradient(180deg, #101217, #0a0b0e);
}
.frame-img .sil {
  position: absolute; left: 50%; bottom: 12.8%; width: 26%; height: 52%;
  background: #05060a; border-radius: 40% 40% 12% 12% / 26% 26% 6% 6%;
  transform: translateX(-16%);
}
.frame-img .sil::before {
  content: ""; position: absolute; left: 50%; top: -22%; width: 46%; aspect-ratio: 1;
  transform: translateX(-50%); background: #05060a; border-radius: 50% 50% 45% 45%;
}
.frame-img .rain {
  position: absolute; inset: 0; opacity: .16;
  background: repeating-linear-gradient(74deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 7px);
}
.frame-img .bar { position: absolute; left: 0; right: 0; height: 12.8%; background: #000; }
.frame-img .bar.top { top: 0; } .frame-img .bar.bottom { bottom: 0; }
.ink-layer { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.ink-stroke {
  stroke: var(--cyan); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7));
}
.ink-stroke.thin { stroke-width: 2.6; }
.tc-badge {
  position: absolute; left: 12px; bottom: calc(12.8% + 10px);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--amber);
  background: rgba(0, 0, 0, .62); border: 1px solid var(--amber-dim); border-radius: var(--r-sm); padding: 3px 8px;
}
.ink-badge {
  position: absolute; right: 12px; bottom: calc(12.8% + 10px);
  font-size: 11px; color: var(--cyan); background: rgba(0, 0, 0, .6);
  border: 1px solid var(--cyan-dim); border-radius: var(--r-pill); padding: 3px 10px;
}

.transport { display: flex; align-items: center; gap: 10px; padding: 6px 18px 4px; }
.tbtn {
  width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--ink-3); font-size: 12px; background: var(--elevated); border: 1px solid var(--line);
}
.tbtn.play { background: var(--amber); color: #0f0f0f; border-color: var(--amber); }
.tbtn.sm { width: 28px; height: 28px; font-size: 10px; }
.tc { font-family: var(--font-mono); font-weight: 500; font-size: 22px; color: var(--amber); letter-spacing: -.01em; margin-left: 6px; }
.fps { font-size: 11px; color: var(--ink-4); font-family: var(--font-mono); }
.t-spacer { flex: 1; }

.scrub { padding: 4px 18px 16px; }
.track { position: relative; height: 26px; border-radius: var(--r-sm); background: var(--elevated); border: 1px solid var(--line); }
.played { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: var(--amber-dim); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.pip { position: absolute; top: 6px; width: 3px; height: 14px; border-radius: 2px; background: var(--ink-3); transform: translateX(-1.5px); }
.pip.ink { background: var(--cyan); }
.pip.done { background: var(--teal); }
.head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--amber); left: 34%; }
.head::before {
  content: ""; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--amber);
}
.scrub-foot { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }

.drawer { grid-area: drawer; border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.seg { display: flex; gap: 2px; background: var(--bg); border-radius: var(--r-pill); padding: 2px; font-size: 11px; }
.seg b, .seg span { padding: 3px 10px; border-radius: var(--r-pill); color: var(--ink-4); font-weight: 500; }
.seg b { background: var(--active); color: var(--ink-1); }
.notes { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.note { background: var(--elevated); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 11px; }
.note.open { border-color: rgba(231, 29, 54, .35); }
.note.done { opacity: .62; }
.note.guest { border-color: rgba(255, 159, 28, .22); }
.note .who { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.av {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 8.5px; font-style: normal; font-weight: 700; color: #0f0f0f; flex: none;
}
.av.lm { background: var(--amber); } .av.tm { background: #6fc3ff; }
.av.sn { background: var(--teal); } .av.gu { background: var(--ink-3); }
.note .who b { font-size: 12px; font-weight: 600; }
.note .role { font-size: 10.5px; color: var(--ink-4); }
.note .stamp { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--amber); }
.note p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.note .tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px 7px; }
.tag.ink { color: var(--cyan); border-color: var(--cyan-dim); }
.tag.rev { color: var(--red); border-color: rgba(231, 29, 54, .4); }
.tag.ok { color: var(--teal); border-color: rgba(46, 196, 182, .4); }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.c-tc { font-family: var(--font-mono); font-size: 10.5px; color: var(--amber); }
.c-in { flex: 1; font-size: 11.5px; color: var(--ink-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; }
.c-go { width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: #0f0f0f; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.statusbar {
  grid-area: status; display: flex; align-items: center; gap: 18px; height: 30px; padding: 0 14px;
  border-top: 1px solid var(--line); background: var(--surface); font-size: 10.5px; color: var(--ink-4);
}
.statusbar .spacer { flex: 1; }
.statusbar .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 6px; }
.statusbar .mono { color: var(--ink-3); }

/* ---------- The thread ---------- */
.thread { padding: 96px 0; border-top: 1px solid var(--line); position: relative; }
.thread::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--amber); border-radius: 2px; }
.thread-lede { max-width: 760px; color: var(--ink-2); font-size: 17px; margin-bottom: 48px; }
.thread-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.thread-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px;
  background: linear-gradient(90deg, var(--amber), rgba(255, 159, 28, .18));
}
.thread h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; margin-bottom: 18px; }
.thread-line li { padding: 0 26px 0 0; position: relative; }
.thread-line .n {
  display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--amber); color: var(--amber);
  font-family: var(--font-mono); font-size: 11px; position: relative; z-index: 1; margin-bottom: 16px;
}
.thread-line h3 { font-size: 19px; margin-bottom: 8px; }
.thread-line p { color: var(--ink-3); font-size: 14px; margin: 0; }

/* ---------- Features ---------- */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature:nth-of-type(even) .f-art { order: 2; }
.f-copy h3 { font-size: clamp(22px, 2.4vw, 29px); line-height: 1.15; margin-bottom: 14px; }
.f-copy p { color: var(--ink-2); font-size: 15.5px; }
.f-copy p b { color: var(--ink-1); font-weight: 600; }
.f-copy .caveat { color: var(--ink-4); font-size: 14px; margin-top: 18px; }
.f-copy .mono { font-size: .92em; color: var(--ink-3); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-b { padding: 14px; }
.chip { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px 10px; }
.chip.local { color: var(--teal); border-color: rgba(46, 196, 182, .4); }

/* Phone (review) */
.f-art { position: relative; }
.phone {
  width: 268px; margin: 0 auto 0 8px; background: #000; border: 8px solid #1c1c1c; border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.phone-screen { background: var(--bg); border-radius: 22px; overflow: hidden; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; font-size: 12px; font-weight: 600; }
.ph-chip { font-size: 10px; color: var(--ink-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px 8px; font-weight: 500; }
.ph-frame { position: relative; margin: 0 10px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #08080a; }
.ph-frame .lit.sm { position: absolute; inset: 0; background: radial-gradient(38% 56% at 66% 34%, rgba(255, 186, 110, .5), transparent 70%), linear-gradient(180deg, #101217, #0a0b0e); }
.ph-frame .sil.sm { position: absolute; left: 52%; bottom: 0; width: 30%; height: 62%; background: #05060a; border-radius: 40% 40% 0 0 / 28% 28% 0 0; }
.tc-badge.sm { font-size: 9.5px; left: 7px; bottom: 7px; padding: 2px 6px; }
.ph-scrub { position: relative; height: 4px; margin: 10px 10px 0; border-radius: 2px; background: var(--elevated); }
.ph-scrub i { position: absolute; top: -2px; width: 3px; height: 8px; border-radius: 2px; background: var(--cyan); }
.ph-scrub b { position: absolute; top: -4px; width: 2px; height: 12px; background: var(--amber); }
.ph-note { margin: 12px 10px 0; background: var(--elevated); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 10px; }
.ph-note .who { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ph-note b { font-size: 11.5px; }
.ph-note .stamp { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--amber); }
.ph-note p { margin: 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.ph-bar { display: flex; gap: 6px; padding: 12px 10px 14px; }
.pill { font-size: 11px; color: var(--ink-4); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; }
.pill.on { background: var(--cyan-dim); color: var(--cyan); border-color: var(--cyan-dim); }

.float-card {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 262px;
  background: var(--elevated); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 13px 14px; box-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 6px 0 -2px rgba(0, 0, 0, .3);
}
.fc-h { display: block; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.fc-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 11.5px; }
.fc-k { color: var(--ink-4); }
.fc-v { color: var(--ink-2); }
.fc-v.no { color: var(--teal); font-weight: 600; }
.fc-foot { display: block; margin-top: 10px; font-size: 11px; color: var(--ink-4); line-height: 1.4; }

/* The page */
.paper-art { display: flex; flex-direction: column; align-items: center; }
/* The sheet is sized in its own em so the whole page scales as one object:
   at a phone width the type shrinks and the margins shrink with it, instead of
   a 57-character line forcing the layout wider than the screen. */
.sheet {
  width: 100%; max-width: 480px; background: #f3f0e9; color: #16161a; border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .3) inset;
  font-size: clamp(6.5px, 1.9vw, 10px);
  padding: 2.6em 3.4em 2em 5.4em; position: relative; overflow: hidden;
}
.sheet-head {
  display: flex; justify-content: space-between; font-family: var(--font-page); font-size: 1em;
  color: #6a6559; letter-spacing: .06em; margin-bottom: 1.8em;
}
.script {
  margin: 0; font-family: var(--font-page); font-size: 1em; line-height: 1;
  white-space: pre; color: #16161a;
}
.script.next { color: #6a6559; }
.page-rule {
  position: relative; margin: 1.6em -3.4em 1.4em -5.4em; border-top: 1px dashed #b9b2a2;
  text-align: center;
}
.page-rule span {
  position: relative; top: -.7em; background: #f3f0e9; padding: 0 1em;
  font-family: var(--font-page); font-size: .8em; letter-spacing: .04em; color: #6a6559;
}
.paper-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.paper-meta span {
  font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px;
}
.paper-meta b { color: var(--amber); font-family: var(--font-mono); font-weight: 500; }

/* Cards */
.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.card-tile {
  background: var(--elevated); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.card-tile.live { border-color: rgba(255, 159, 28, .35); }
.card-tile b { font-family: var(--font-mono); font-size: 14px; }
.card-tile span { font-size: 11px; color: var(--ink-4); }
.bar-done { height: 4px; border-radius: 2px; background: var(--bg); margin-top: 4px; overflow: hidden; }
.bar-done i { display: block; height: 100%; background: var(--amber); }
.card-tile .st { font-size: 11px; color: var(--amber); }
.card-tile .st.ok { color: var(--teal); }
.card-tile .st.dim { color: var(--ink-4); }
.pattern { display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; }
.pat { font-size: 11.5px; color: var(--ink-2); }
.pat em { font-style: normal; color: var(--amber); }
.renames { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.renames > div { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.renames .old { color: var(--ink-4); }
.renames .arr { color: var(--ink-4); }
.renames .new { color: var(--ink-2); }
.manifest { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 11px; }

/* Stripboard */
.day-h { display: flex; align-items: baseline; gap: 10px; padding: 10px 2px 8px; font-size: 11px; color: var(--ink-4); }
.day-h b { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber); }
.day-h .mono { margin-left: auto; }
.strip {
  display: grid; grid-template-columns: 26px 1fr 18px 44px 42px; gap: 8px; align-items: center;
  background: var(--elevated); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 5px; font-size: 11.5px;
}
/* A stripboard strip is coloured all the way across, as the paper ones are. */
.strip.v1 { background: rgba(255, 159, 28, .08); border-color: rgba(255, 159, 28, .24); }
.strip.v2 { background: rgba(111, 195, 255, .08); border-color: rgba(111, 195, 255, .24); }
.strip .sc { font-family: var(--font-mono); color: var(--ink-3); }
.strip .hd { color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .dn { color: var(--ink-4); text-align: center; }
.strip .pg { color: var(--ink-3); text-align: right; font-size: 11px; }
.strip .cast { color: var(--ink-3); text-align: right; font-size: 11px; }
.call-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-4); }
.call-strip b { color: var(--ink-2); font-weight: 500; }

/* ---------- Kickstart ---------- */
.kick { background: linear-gradient(180deg, rgba(255, 159, 28, .045), transparent 55%); }
.kick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.kick-copy h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; margin-bottom: 18px; }
.kick-copy p { color: var(--ink-2); font-size: 16px; }
.kick-copy p b { color: var(--ink-1); font-weight: 600; }
.kick-rule { border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink-2); margin-top: 20px; }
.kick-rule b { color: var(--ink-1); }
.kick-art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; }
.kick-btn {
  background: var(--amber); color: #0f0f0f; font-weight: 600; font-size: 15px;
  border-radius: var(--r-pill); height: 48px; display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 22px -8px rgba(0, 0, 0, .7);
}
.kick-out { margin-top: 26px; display: flex; flex-direction: column; }
.kick-out > div { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.kick-out .n { font-family: var(--font-mono); font-size: 20px; color: var(--amber); min-width: 46px; text-align: right; }
.kick-out span:last-child { color: var(--ink-2); font-size: 14px; }
.kick-foot { display: block; margin-top: 18px; font-size: 12.5px; color: var(--ink-4); }

/* ---------- Production types ---------- */
.types { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.type-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); }
.type-tabs button {
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  min-height: 44px; padding: 0 16px; font-size: 13.5px; color: var(--ink-3); cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.type-tabs button:hover { color: var(--ink-1); background: var(--hover); }
.type-tabs button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #0f0f0f; font-weight: 600; }
.type-body { padding: 22px 22px 26px; }
.type-blurb { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 8px; }
.tool {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--elevated); font-size: 13.5px; color: var(--ink-4);
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.tool .tick { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 9px; color: transparent; }
.tool.on { color: var(--ink-1); border-color: rgba(255, 159, 28, .3); }
.tool.on .tick { background: var(--amber); border-color: var(--amber); color: #0f0f0f; }
.tool.always { color: var(--ink-1); border-color: var(--line-strong); }
.tool.always .tick { background: var(--teal); border-color: var(--teal); color: #0f0f0f; }
.tool.off { background: transparent; border-style: dashed; }

/* ---------- Lanes ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.lane-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.ldot { width: 9px; height: 9px; border-radius: 50%; }
.ldot.local { background: var(--teal); }
.ldot.cloud { background: var(--amber); }
.ldot.guest { background: var(--ink-3); }
.lane li { color: var(--ink-3); font-size: 13.5px; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); position: relative; }
.lane li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 1px; background: var(--ink-5); }
.lanes-note { margin-top: 24px; color: var(--ink-4); font-size: 13.5px; max-width: 900px; }
.lanes-note b { color: var(--ink-2); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 24px; position: relative; }
.plan.featured { border-color: rgba(255, 159, 28, .4); background: linear-gradient(180deg, rgba(255, 159, 28, .06), var(--surface) 42%); }
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .for { color: var(--ink-4); font-size: 13.5px; min-height: 40px; }
.amount { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 20px; }
.price { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.amount small { color: var(--ink-4); font-size: 13px; }
.plan ul { margin-bottom: 22px; }
.plan li { font-size: 13.5px; color: var(--ink-2); padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.plan li b { color: var(--amber); font-family: var(--font-mono); font-weight: 500; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line-strong); }
.pricing-note { margin-top: 24px; color: var(--ink-4); font-size: 13.5px; max-width: 840px; }
.pricing-note b { color: var(--amber); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 16.5px; font-weight: 500; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 27px; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform var(--t-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--amber); }
.faq p { color: var(--ink-2); font-size: 15px; padding: 0 40px 22px 0; margin: 0; max-width: 720px; }

/* ---------- End ---------- */
.end { border-top: 1px solid var(--line); }
.end-card {
  background: linear-gradient(160deg, rgba(255, 159, 28, .09), var(--surface) 55%);
  border: 1px solid rgba(255, 159, 28, .22); border-radius: var(--r-xl); padding: 52px 44px; text-align: center;
}
.end-card h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.08; max-width: 740px; margin: 0 auto 16px; }
.end-card > p { color: var(--ink-2); font-size: 16.5px; max-width: 620px; margin: 0 auto 26px; }
.end-card .hero-cta { justify-content: center; }
.end-card .end-note { margin: 26px auto 0; color: var(--ink-4); font-size: 13px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 48px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-foot .copy { display: flex; align-items: center; gap: 14px; color: var(--ink-4); font-size: 13px; }
.site-foot nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-4); font-size: 13px; padding: 0 10px; border-radius: var(--r-pill); }
.site-foot nav a:hover { color: var(--ink-1); background: var(--surface); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 70ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 210ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature:nth-of-type(even) .f-art { order: 0; }
  .kick-grid { grid-template-columns: 1fr; gap: 36px; }
  .lanes { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .float-card { position: static; transform: none; width: 100%; max-width: 400px; margin: 22px auto 0; }
  .phone { margin: 0 auto; }
}
@media (max-width: 860px) {
  .thread-line { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .thread-line::before { display: none; }
}
@media (max-width: 560px) {
  /* The mock is scaled past the frame on a phone; fade the cut edge. */
  .stage::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 54px; z-index: 2;
    background: linear-gradient(90deg, rgba(15, 15, 15, 0), var(--bg));
    pointer-events: none;
  }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .thread { padding: 60px 0; }
  .hero { padding: 48px 0 36px; }
  .stage-wrap { margin-top: 44px; }
  .hero-sub { margin: 20px 0 26px; }
  .site-nav a:not(.btn) { display: none; }
  .section-head { margin-bottom: 34px; }
  .thread-lede { margin-bottom: 32px; }
  .thread-line { gap: 24px 18px; }
  .thread-line li { padding-right: 0; }
  .thread-line h3 { font-size: 17px; margin-bottom: 4px; }
  .thread-line .n { margin-bottom: 10px; }
  .feature { padding: 44px 0; gap: 28px; }
  .kick-art { padding: 20px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool { font-size: 13px; padding: 10px 11px; }
  .lane { padding: 18px; }
  .plan { padding: 22px 20px; }
  .plan .for { min-height: 0; }
  .stage { border-radius: var(--r-md); }
  .end-card { padding: 36px 22px; }
  .faq summary { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
