/* Launch Day page. Tokens: TOKENS row 15 and the brief's Design block. Structure from shared base.css. */
:root {
  color-scheme: dark;
  --space: #00030C;
  --indigo: #111A3A;
  --ink: #FFFFFF;
  --muted: #A9B0C8;
  --sun: #FF7A2F;
  --btn-ink: #0A0B14;
  --ember: #E8527A;
  --horizon: #2E7BFF;
  --hair: rgba(46, 123, 255, .34);

  --lk-bg: var(--space);
  --lk-panel: var(--indigo);
  --lk-ink: var(--ink);
  --lk-muted: var(--muted);
  --lk-line: var(--hair);
  --lk-main: var(--sun);
  --lk-on-main: var(--btn-ink);
  --lk-link: var(--ink);
  --lk-focus: var(--ink);
  --lk-accent: var(--sun);
  --lk-font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-font-display: "Archivo", "Geist", system-ui, sans-serif;
  --lk-radius: 12px;
  --lk-max: 1120px;

  --hh: max(600px, min(calc(100svh - var(--lk-bar)), 860px));
  --ease: cubic-bezier(.16, 1, .3, 1);
}

body { background: var(--space); color: var(--ink); font-size: 18px; line-height: 1.6; }
a:hover { color: var(--sun); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--lk-font-mono); font-size: .88em; }

/* ---- Top bar: wordmark ---- */
.ld-main { position: relative; }
.ld-top { position: absolute; z-index: 3; top: 16px; left: 14%; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.ld-mark { width: 22px; height: 22px; overflow: visible; }
.ld-mark path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.ld-mark circle { fill: var(--sun); }
.ld-word { font: 800 15px/1 var(--lk-font-display); font-stretch: 125%; letter-spacing: -0.01em; }

/* ---- Hero ---- */
.ld-hero { position: relative; height: var(--hh); overflow: hidden; background: var(--space); container-type: inline-size; }
.ld-sky { position: absolute; inset: 0; overflow: hidden; }
.ld-plate, .ld-plate img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ld-plate img { object-fit: cover; object-position: 74% 42%; }
.ld-gl { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.ld-sky.is-gl .ld-plate { visibility: hidden; }
.ld-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 3, 12, .55) 0%, rgba(0, 3, 12, 0) 55%); }
.ld-sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(0, 3, 12, 0), var(--space)); z-index: 2; }

/* sun group: sun at 74% / 42%; the rim sits 1% of the drawn plate height below it */
.ld-sky { --sx: 74%; --sy: 42%; --rim: calc(var(--hh) * .42 + max(var(--hh), 56.25cqw) * .01); }
.ld-clip { position: absolute; inset: 0; clip-path: inset(0 0 calc(100% - var(--rim)) 0); mix-blend-mode: screen; }
.ld-clip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 34% 26% at var(--sx) var(--sy), rgba(255, 122, 47, .55) 0%, rgba(255, 122, 47, .18) 55%, rgba(255, 122, 47, 0) 100%); }
.ld-core { position: absolute; left: var(--sx); top: var(--sy); width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: radial-gradient(circle closest-side, #FFFFFF 0 34%, var(--sun) 66%, rgba(255, 122, 47, 0) 100%); }
.ld-rays { position: absolute; left: var(--sx); top: var(--sy); width: 520px; height: 520px; max-width: none; margin: -260px 0 0 -260px; mix-blend-mode: screen; transform-origin: 50% 50%; }
.ld-rays polygon { fill: url(#ld-rg); }
.ld-streak { position: absolute; left: 49%; top: var(--sy); width: calc(var(--sx) - 49%); height: calc(88% - var(--sy)); max-width: none; mix-blend-mode: screen; overflow: visible; filter: blur(6px); }
.ld-streak polygon { fill: url(#ld-sg); }
.ld-streak .ld-streak-soft { opacity: .5; }

@keyframes ld-rise { from { transform: translate(6px, 24px); } to { transform: none; } }
@keyframes ld-core { from { transform: translate(6px, 24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes ld-rays { from { transform: translate(6px, 24px) scale(.85); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .lk-js .ld-core { animation: ld-core 2400ms var(--ease) 300ms both; }
  .lk-js .ld-rays { animation: ld-rays 2400ms var(--ease) 300ms both; }
  .lk-js .ld-streak { animation: ld-rise 2400ms var(--ease) 300ms both; }
}

.ld-copy { position: absolute; z-index: 2; left: 14%; top: 28%; width: 46%; height: calc(36% + 52px); display: flex; flex-direction: column; }
.ld-h1 { margin: 0; }
.ld-name { display: block; font: 600 16px/1.3 var(--lk-font-body); color: var(--muted); margin-bottom: calc(var(--hh) * .05 - 21px); }
.ld-headline { display: block; max-width: 11ch; font: 800 clamp(56px, 6.12vw, 88px)/.92 var(--lk-font-display); font-stretch: 125%; letter-spacing: -0.02em; color: var(--ink); }
.ld-one { margin-top: 24px; max-width: 46ch; font-size: 21px; line-height: 1.45; color: var(--muted); }
.ld-actions { position: relative; margin-top: auto; min-height: 52px; display: flex; align-items: center; gap: 24px; }
.ld-status { position: absolute; left: 0; top: 100%; margin-top: 10px; }

.lk-btn.ld-btn { min-height: 0; padding: 14px 26px; border: 0; border-radius: 12px; background: var(--sun); color: var(--btn-ink); font: 600 17px/1.2 var(--lk-font-body); gap: 10px; transition: transform .15s ease; }
.lk-btn.ld-btn:hover { transform: translateY(-1px); color: var(--btn-ink); }
.lk-btn.ld-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ld-arrow { font-weight: 600; }
.ld-link { color: var(--ink); font-weight: 500; font-size: 17px; }
.ld-link:hover { color: var(--sun); }

/* countdown card */
.ld-card { position: absolute; z-index: 2; left: min(66%, calc(100% - 404px)); top: 60%; width: 380px; padding: 24px; border-radius: 16px; background: rgba(17, 26, 58, .9); border-top: 1px solid var(--horizon); }
.ld-field label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.ld-field input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--space); color: var(--ink); font: 500 16px/1.2 var(--lk-font-body); }
.ld-field input:hover { border-color: var(--horizon); }
.ld-field input:focus, .ld-field input:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--horizon); }
.ld-readout { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ld-readout-v { font: 500 32px/1.1 var(--lk-font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ld-readout-note { font-size: 13px; color: var(--muted); }
.ld-strip { position: relative; height: 46px; margin-top: 14px; }
.ld-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--horizon); }
.ld-seg { position: absolute; top: 19px; height: 3px; border-radius: 2px; background: var(--muted); }
.ld-seg b { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 500 11px/1 var(--lk-font-mono); color: var(--muted); }
.ld-seg[data-seg="0"] { left: 0; width: 25%; }
.ld-seg[data-seg="1"] { left: 50%; width: 12.5%; }
.ld-seg[data-seg="2"] { left: 64.29%; width: 10.71%; }
.ld-seg[data-seg="3"] { left: 76.79%; width: 23.21%; }
.ld-seg.is-on { background: var(--sun); }
.ld-seg.is-on b { color: var(--sun); }
.ld-tick { position: absolute; top: 28px; font: 500 11px/1 var(--lk-font-mono); color: var(--muted); }
.ld-tick--a { left: 0; }
.ld-tick--b { left: 75%; transform: translateX(-50%); }
.ld-tick--c { right: 0; }
.ld-pin { position: absolute; top: 16px; left: var(--x, 0%); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--indigo); transition: left .6s var(--ease); }
.ld-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 10px; font: 500 11px/1.35 var(--lk-font-mono); color: var(--muted); counter-reset: seg; }
.ld-legend li { counter-increment: seg; white-space: nowrap; }
.ld-legend li::before { content: counter(seg) " "; }
.ld-legend span { color: var(--ink); font-family: var(--lk-font-body); font-weight: 600; }
.ld-legend li.is-on::before { color: var(--sun); }

/* ---- Fixed sections ---- */
.ld-sec { margin-top: 136px; }
.ld-h2 { font: 800 52px/1 var(--lk-font-display); font-stretch: 125%; letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; }
.ld-h3 { font: 600 20px/1.25 var(--lk-font-display); font-stretch: 100%; margin-bottom: 12px; }
.ld-lede { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 58ch; }
.ld-sec p + p { margin-top: 1em; }

/* what + why: one 7/5 band split by a hairline */
.ld-band { display: grid; grid-template-columns: 7fr 5fr; }
.ld-band-a { padding-right: 56px; }
.ld-band-b { padding-left: 56px; border-left: 1px solid var(--horizon); }
.ld-band p { max-width: 62ch; }

/* when: orbit arc with stations */
.ld-orbit { --ha: 200px; margin-top: 56px; }
.ld-arc { position: relative; height: var(--ha); }
.ld-arc svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.ld-arc path { fill: none; vector-effect: non-scaling-stroke; }
.ld-arc-line { stroke: var(--horizon); stroke-width: 1; }
.ld-arc-ember { stroke: var(--ember); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4000 4000; stroke-dashoffset: 0; }
.ld-arc-today { position: absolute; z-index: 2; left: var(--x, 0%); top: var(--y, 0%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--space); }
.lk-phases.ld-stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; }
.lk-phase.ld-st { --y: .71875; position: relative; padding: 18px 12px 0; border: 0; border-radius: 0; background: none; text-align: center; }
.lk-phase.ld-st:nth-child(2), .lk-phase.ld-st:nth-child(3) { --y: .46875; }
.ld-st::before { content: ""; position: absolute; left: 50%; top: calc(var(--ha) * (var(--y) - 1)); height: calc(var(--ha) * (1 - var(--y)) + 10px); width: 1px; background: var(--hair); }
.ld-st-dot { position: absolute; left: 50%; top: calc(var(--ha) * (var(--y) - 1)); width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1px solid var(--horizon); border-radius: 50%; background: var(--space); }
.ld-st-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
.lk-phase .ld-st-n { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--ha) * (1 - var(--y)) + 16px); margin: 0; color: var(--ink); font-size: inherit; }
.ld-st-n > span { display: block; color: var(--ink); font: 800 44px/1 var(--lk-font-display); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.ld-st-n small { display: block; margin-top: 4px; font: 500 12px/1 var(--lk-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lk-phase .ld-st-name { display: block; margin: 0; font: 600 20px/1.25 var(--lk-font-display); color: var(--ink); }
.ld-notes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.ld-notes li { padding: 0 14px; font-size: 16px; line-height: 1.55; color: var(--muted); text-align: center; }
.ld-notes strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* agent + you: one run-sheet panel */
.ld-sheet { display: grid; grid-template-columns: 1fr 1fr; background: var(--indigo); border-radius: 16px; border-top: 1px solid var(--horizon); }
.ld-sheet-col { padding: 40px 40px 32px; }
.ld-sheet-col + .ld-sheet-col { border-left: 1px solid var(--hair); }
.ld-sheet-k { font: 500 13px/1 var(--lk-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.ld-h2--sheet { font-size: 30px; line-height: 1.1; margin-bottom: 20px; }
.ld-rows { list-style: none; }
.ld-rows li { padding: 14px 0; border-top: 1px solid var(--hair); }
.ld-rows li:last-child { border-bottom: 1px solid var(--hair); }
.ld-sheet .ld-rows li:last-child { border-bottom: 0; }

/* money */
.ld-money { margin-top: 32px; }
.ld-money .lk-table-wrap { background: var(--indigo); border-color: var(--hair); border-radius: 16px; }
.ld-money .lk-money th { background: var(--indigo); color: var(--muted); border-bottom: 1px solid var(--horizon); }
.ld-money .lk-money a { color: var(--ink); }
.ld-money .lk-money a:hover { color: var(--sun); }
.ld-money .lk-money td[data-label="Checked"] { white-space: nowrap; }
.ld-money .lk-money td[data-label="Source"] { width: 20%; word-break: break-all; }

/* end, run, items, terms, next */
.ld-rows--end { max-width: 760px; margin-top: 8px; }
.ld-prompt { margin-top: 28px; }
.ld-prompt .lk-prompt-text { background: var(--indigo); border-color: var(--hair); color: var(--ink); white-space: pre-wrap; }
.ld-run-grid { margin-top: 40px; }
.ld-list { list-style: none; }
.ld-list li { position: relative; padding-left: 20px; }
.ld-list li + li { margin-top: 8px; }
.ld-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--sun); }
.ld-note { margin-top: 12px; color: var(--muted); font-size: 16px; }
.lk-filter, .lk-chip { color: var(--ink); border-radius: 12px; }
.lk-filter:hover { border-color: var(--sun); }
.lk-items .lk-id { color: var(--sun); }
.lk-next a { color: var(--ink); }
.lk-footer { margin-top: 136px; }
.lk-footer a { color: var(--ink); }
.lk-popover { background: var(--indigo); color: var(--ink); border: 1px solid var(--hair); }

/* ---- Between desktop and phone ---- */
@media (max-width: 1100px) and (min-width: 641px) {
  .ld-copy { left: 6%; width: 56%; }
  .ld-top { left: 6%; }
}

/* ---- Phones ---- */
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.55; }
  .ld-top { left: 16px; }
  .ld-hero { height: auto; padding: 236px 16px 8px; }
  .ld-sky { inset: 0 0 auto 0; height: 300px; --sx: 73%; --rim: 131px; }
  .ld-plate img { object-position: 73% 42%; }
  .ld-scrim { display: none; }
  .ld-rays { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .ld-copy { position: relative; left: auto; top: auto; width: auto; height: auto; display: block; }
  .ld-name { margin-bottom: 8px; }
  .ld-headline { font-size: 44px; }
  .ld-one { margin-top: 16px; font-size: 17px; }
  .ld-actions { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 14px; }
  .lk-btn.ld-btn { width: 100%; }
  .ld-link { align-self: flex-start; }
  .ld-status { position: static; margin-top: 0; }
  .ld-card { position: relative; left: auto; top: auto; width: auto; margin-top: 32px; }
  .ld-readout-v { font-size: 26px; }

  .ld-sec { margin-top: 80px; }
  .ld-h2 { font-size: 30px; margin-bottom: 16px; }
  .ld-h3 { font-size: 18px; }
  .ld-lede { font-size: 17px; }
  .ld-band { grid-template-columns: 1fr; }
  .ld-band-a { padding: 0 0 32px; }
  .ld-band-b { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--horizon); }

  .ld-orbit { --ha: 96px; margin-top: 96px; }
  .lk-phase.ld-st { padding: 14px 2px 0; }
  .ld-st-n > span { font-size: 26px; }
  .ld-st-n small { font-size: 10px; letter-spacing: .02em; }
  .lk-phase .ld-st-name { font-size: 14px; max-width: 7ch; margin-inline: auto; text-wrap: balance; }
  .ld-money .lk-money td[data-label="Source"] { width: auto; word-break: normal; overflow-wrap: anywhere; }
  .lk-phase .ld-st-n { bottom: calc(100% + var(--ha) * (1 - var(--y)) + 12px); }
  .ld-notes { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .ld-notes li { padding: 0; text-align: left; }
  .ld-notes strong { display: inline; }

  .ld-sheet { grid-template-columns: 1fr; }
  .ld-sheet-col { padding: 28px 20px 20px; }
  .ld-sheet-col + .ld-sheet-col { border-left: 0; border-top: 1px solid var(--horizon); }
  .ld-h2--sheet { font-size: 24px; }
  .lk-footer { margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .ld-pin { transition: none; }
  .lk-btn.ld-btn { transition: none; }
}

/* =====================================================================
   Below the hero: run sheet under a rising sun
   ===================================================================== */
:root { --sky: #8FB4FF; --rh: calc(100vh - 150px); }
.ld-main { counter-reset: sec gate; overflow-x: clip; }
.ld-try-off { margin-top: 16px; color: var(--muted); }
.lk-js .ld-try-off { display: none; }

/* page-wide sun rail and horizon glow (built by JS) */
.ld-glow { position: fixed; z-index: -1; left: 0; right: 0; bottom: 0; height: 60vh; pointer-events: none; opacity: var(--p, 0); background: radial-gradient(ellipse 70% 100% at 74% 100%, rgba(255, 122, 47, .17), rgba(232, 82, 122, .06) 45%, rgba(0, 3, 12, 0) 72%); }
.ld-rail { position: fixed; z-index: 2; left: 24px; top: 110px; height: var(--rh); width: 1px; background: linear-gradient(to top, var(--sun), var(--hair) 40%, rgba(46, 123, 255, .08)); pointer-events: none; display: none; }
.ld-rail-sun { position: absolute; left: -6px; bottom: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 122, 47, .22), 0 0 28px 6px rgba(255, 122, 47, .55); transform: translateY(calc(var(--p, 0) * var(--rh) * -1)); }
@media (min-width: 1320px) { .ld-rail { display: block; } }
@keyframes ld-sunup { from { transform: translateY(0); } to { transform: translateY(calc(var(--rh) * -1)); } }
@keyframes ld-glowup { from { opacity: 0; } to { opacity: 1; } }
@supports (animation-timeline: scroll()) {
  .ld-rail-sun { transform: none; animation: ld-sunup linear both; animation-timeline: scroll(root); }
  .ld-glow { opacity: 1; animation: ld-glowup linear both; animation-timeline: scroll(root); }
}

/* reveal: final state is the default; only JS-armed elements start hidden */
@keyframes ld-up { from { transform: translateY(28px) scale(.985); } to { transform: none; } }
@keyframes ld-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ld-rvt:not(.in) { transform: translateY(28px) scale(.985); }
.ld-rvt.in { animation: ld-up .8s var(--ease) var(--d, 0ms) backwards; }

/* section furniture */
.ld-sec { margin-top: clamp(96px, 11vw, 168px); counter-increment: sec; position: relative; }
.ld-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 500 13px/1 var(--lk-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.ld-eyebrow::before { content: counter(sec, decimal-leading-zero); color: var(--ink); padding: 5px 7px; border: 1px solid var(--horizon); border-radius: 6px; letter-spacing: .04em; }
.ld-eyebrow::after { content: ""; width: 96px; height: 1px; background: linear-gradient(90deg, var(--sun), rgba(255, 122, 47, 0)); transform-origin: left; }
.ld-rvt.in.ld-eyebrow::after { animation: ld-line 1s var(--ease) .2s backwards; }
.ld-h2 { font: 800 clamp(34px, 5.4vw, 76px)/.98 var(--lk-font-display); font-stretch: 125%; letter-spacing: -0.025em; margin-bottom: 28px; max-width: 16ch; text-wrap: balance; }
.ld-lede { font-size: clamp(17px, 1.6vw, 21px); }
.lk-term { text-decoration: underline dotted var(--sun); text-underline-offset: 4px; }
.lk-term:hover { color: var(--sun); }

/* ---------- #try: the dated run sheet tool ---------- */
.ld-tool { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "form out" "act out" "fine out"; gap: 28px 40px; align-items: start; }
.ld-form { grid-area: form; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; background: var(--indigo); border-radius: 16px; border-top: 1px solid var(--horizon); }
.ld-fld { display: grid; gap: 6px; }
.ld-fld--wide { grid-column: 1 / -1; }
.ld-fld label { font: 500 13px/1.2 var(--lk-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ld-fld input { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--space); color: var(--ink); font: 500 16px/1.2 var(--lk-font-body); transition: border-color .2s, box-shadow .2s; }
.ld-fld input::placeholder { color: #8C94B0; }
.ld-fld input:hover { border-color: var(--horizon); }
.ld-fld input:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--sun); }
.ld-fld--who { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-pill { min-height: 40px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 4px; background: transparent; color: var(--ink); font: 500 14px/1 var(--lk-font-body); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.ld-pill:hover { border-color: var(--sun); transform: translateY(-1px); }
.ld-pill[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--btn-ink); }
.ld-pill:focus-visible, .ld-ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ld-tool-actions { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ld-ghost { min-height: 48px; padding: 0 18px; border: 1px solid var(--horizon); border-radius: 12px; background: transparent; color: var(--ink); font: 600 15px/1 var(--lk-font-body); cursor: pointer; transition: background .2s, transform .15s, border-color .2s; }
.ld-ghost:hover { background: rgba(46, 123, 255, .14); border-color: var(--sky); transform: translateY(-1px); }
.ld-ghost:active, .lk-btn.ld-btn:active, .ld-pill:active { transform: translateY(1px) scale(.98); }
.lk-btn.ld-btn { transition: transform .15s ease, background .2s, box-shadow .25s; }
.lk-btn.ld-btn:hover { box-shadow: 0 8px 28px -6px rgba(255, 122, 47, .65); }
.lk-btn.ld-btn.is-done { background: #FFFFFF; }
.lk-btn.ld-btn.is-done .ld-arrow { display: none; }
.lk-btn.ld-btn.is-done::after { content: "\2713"; font-weight: 800; }
.ld-tool .lk-copy-status { color: var(--sky); font: 500 14px/1.3 var(--lk-font-mono); }
.ld-fine { grid-area: fine; font-size: 14px; color: var(--muted); }
.ld-sheetout { grid-area: out; position: relative; padding: 28px 28px 20px; background: var(--indigo); border-radius: 16px; border-top: 1px solid var(--horizon); min-height: 320px; }
.ld-sheet-head { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px dashed var(--hair); }
.ld-sheet-name { font: 800 22px/1.1 var(--lk-font-display); font-stretch: 125%; flex-basis: 100%; overflow-wrap: anywhere; }
.ld-sheet-goal, .ld-sheet-day { font: 500 13px/1.4 var(--lk-font-mono); color: var(--muted); overflow-wrap: anywhere; }
.ld-sheet-day { color: var(--sun); }
.ld-ph { position: relative; padding: 18px 0 6px 28px; animation: ld-up .55s var(--ease) calc(var(--i, 0) * 80ms) backwards; }
.ld-ph::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.ld-ph::after { content: ""; position: absolute; left: 0; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: var(--indigo); border: 2px solid var(--sun); }
.ld-ph-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ld-ph-t { font: 500 13px/1 var(--lk-font-mono); color: var(--sun); letter-spacing: .06em; }
.ld-ph-n { font: 700 19px/1.2 var(--lk-font-display); }
.ld-ph-d { font: 500 13px/1 var(--lk-font-mono); color: var(--sky); margin-left: auto; }
.ld-ph-l { list-style: none; margin-top: 8px; display: grid; }
.ld-ph-i { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; transition: background .15s; font-size: 15px; line-height: 1.35; }
.ld-ph-i:hover { background: rgba(46, 123, 255, .12); }
.ld-ph-id { font: 500 12px/1.4 var(--lk-font-mono); color: var(--muted); }
.ld-ph-w { font: 600 11px/1 var(--lk-font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; }
.ld-ph-w--agent { color: var(--sky); border: 1px solid rgba(143, 180, 255, .45); }
.ld-ph-w--founder { color: var(--sun); border: 1px solid rgba(255, 122, 47, .5); }
.ld-ph-none { color: var(--muted); font-size: 14px; padding: 6px 0; }

/* ---------- #when: arc, living ---------- */
.ld-arc-today { animation: ld-pulse 2.4s ease-out infinite; }
@keyframes ld-pulse { 0% { box-shadow: 0 0 0 3px var(--space), 0 0 0 3px rgba(255, 122, 47, .7); } 100% { box-shadow: 0 0 0 3px var(--space), 0 0 0 20px rgba(255, 122, 47, 0); } }
.ld-st-dot { transition: transform .3s var(--ease), box-shadow .3s; }
.ld-st:hover .ld-st-dot { transform: scale(1.5); box-shadow: 0 0 22px 4px rgba(255, 122, 47, .6); }
.ld-st:hover .ld-st-n > span { color: var(--sun); }
.ld-st-n > span { transition: color .25s; }
.ld-notes { gap: 0; margin-top: 40px; }
.ld-notes li { padding: 18px 14px 0; border-top: 1px solid var(--hair); transition: border-color .25s, transform .3s var(--ease); }
.ld-notes li:hover { border-top-color: var(--sun); transform: translateY(-3px); }
.ld-notes strong { transition: color .25s; }
.ld-notes li:hover strong { color: var(--sun); }

/* ---------- #items: ticket stubs ---------- */
.lk-items { border-top: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-top: 36px; }
.lk-items .lk-cat { grid-column: 1 / -1; counter-increment: gate; display: flex; align-items: center; gap: 14px; padding: 40px 0 6px; font: 800 clamp(22px, 2.8vw, 34px)/1.1 var(--lk-font-display); font-stretch: 125%; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.lk-items .lk-cat:first-child { padding-top: 8px; }
.lk-items .lk-cat::before { content: "GATE " counter(gate, decimal-leading-zero); flex: none; font: 500 12px/1 var(--lk-font-mono); font-stretch: 100%; letter-spacing: .12em; color: var(--sun); padding: 6px 8px; border: 1px solid rgba(255, 122, 47, .5); border-radius: 6px; }
.lk-items .lk-cat::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), rgba(46, 123, 255, 0)); }
.lk-items .lk-item { position: relative; display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: "id title title" "id who when"; gap: 10px 14px; align-items: center; padding: 18px 16px 18px 0; border: 1px solid var(--hair); border-radius: 12px; background: var(--indigo); transition: transform .3s var(--ease), border-color .25s, box-shadow .3s; }
.lk-items .lk-item .lk-id { grid-area: id; align-self: stretch; display: grid; place-items: center; padding: 0 6px; border-right: 2px dashed var(--hair); font: 800 22px/1 var(--lk-font-display); font-stretch: 125%; color: var(--sun); transition: border-color .25s, color .25s; }
.lk-items .lk-item .lk-title { grid-area: title; font: 600 18px/1.25 var(--lk-font-display); color: var(--ink); }
.lk-items .lk-item .lk-who { grid-area: who; justify-self: start; font: 600 11px/1 var(--lk-font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; }
.lk-items .lk-item[data-who="agent"] .lk-who { color: var(--sky); border: 1px solid rgba(143, 180, 255, .45); }
.lk-items .lk-item[data-who="founder"] .lk-who { color: var(--sun); border: 1px solid rgba(255, 122, 47, .5); }
.lk-items .lk-item .lk-when { grid-area: when; justify-self: end; font: 500 12px/1 var(--lk-font-mono); color: var(--muted); letter-spacing: .04em; }
.lk-items .lk-item::before, .lk-items .lk-item::after { content: ""; position: absolute; left: 77px; width: 14px; height: 14px; border-radius: 50%; background: var(--space); border: 1px solid var(--hair); z-index: 1; }
.lk-items .lk-item::before { top: -8px; clip-path: inset(50% 0 0 0); }
.lk-items .lk-item::after { bottom: -8px; clip-path: inset(0 0 50% 0); }
.lk-items .lk-item:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--sun); box-shadow: 0 14px 36px -14px rgba(255, 122, 47, .5); }
.lk-items .lk-item:hover .lk-id { border-right-color: var(--sun); color: #fff; }
.lk-filters { padding: 14px 16px; background: var(--indigo); border-radius: 12px; border-top: 1px solid var(--horizon); margin-top: 28px; }
.lk-filter { transition: border-color .2s, background .2s, transform .15s; }
.lk-filter:active { transform: scale(.96); }
.lk-filter[aria-pressed="true"] { background: var(--sun); color: var(--btn-ink); border-color: var(--sun); }
.lk-filter:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- what + why ---------- */
.ld-band { display: grid; grid-template-columns: 1fr; }
.ld-band-a { padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; }
.ld-band-a .ld-eyebrow { grid-column: 1; grid-row: 1; }
.ld-band-a .ld-h2 { grid-column: 1; grid-row: 2; }
.ld-band-a > p:not(.ld-eyebrow) { grid-column: 2; max-width: 60ch; }
.ld-band-a > p:nth-of-type(2) { grid-row: 1 / 3; font-size: clamp(18px, 1.7vw, 22px); color: var(--ink); }
.ld-band-a > p:nth-of-type(3) { grid-row: 3; margin-top: 1.2em; color: var(--muted); }
.ld-band-b { position: relative; margin-top: 120px; padding: 48px 0 0; border-left: 0; border-top: 1px solid var(--horizon); }
.ld-band-b::after { content: ""; position: absolute; right: 9%; bottom: 100%; width: clamp(120px, 20vw, 240px); aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: radial-gradient(ellipse 100% 100% at 50% 100%, #fff 0 10%, var(--sun) 32%, rgba(232, 82, 122, .55) 62%, rgba(232, 82, 122, 0) 100%); }
.ld-js-rv .ld-band-b::after { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease) .15s; }
.ld-js-rv .ld-band-b.in::after { clip-path: inset(0 0 0 0); }
.ld-band-b .ld-h2 { max-width: 14ch; }
.ld-band-b > p:not(.ld-eyebrow) { max-width: 28ch; font: 600 clamp(22px, 2.9vw, 38px)/1.25 var(--lk-font-display); font-stretch: 112%; letter-spacing: -0.01em; color: var(--ink); }

/* ---------- go / no-go station board ---------- */
.ld-sheet { position: relative; overflow: hidden; }
.ld-sheet::before { content: "STATION BOARD  /  GO - NO-GO"; grid-column: 1 / -1; display: block; padding: 12px 40px; border-bottom: 1px solid var(--hair); font: 500 12px/1 var(--lk-font-mono); letter-spacing: .18em; color: var(--muted); }
.ld-board .ld-eyebrow { display: none; }
.ld-sheet-k { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.ld-sheet-k::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 0 18px 2px currentColor; animation: ld-lamp 2.6s ease-in-out infinite; }
.ld-board--agent .ld-sheet-k { color: var(--sky); }
.ld-board--agent .ld-sheet-k::after { content: "GO: agent"; }
.ld-board--you .ld-sheet-k::after { content: "YOURS: only you"; }
@keyframes ld-lamp { 50% { opacity: .45; } }
.ld-h2--sheet { font-size: clamp(26px, 2.6vw, 36px); max-width: none; letter-spacing: -0.015em; }
.ld-board { counter-reset: row; }
.ld-sheet .ld-rows li { position: relative; counter-increment: row; padding: 14px 40px 14px 44px; margin: 0 -8px; border-radius: 8px; transition: background .2s, transform .25s var(--ease); }
.ld-sheet .ld-rows li::before { content: counter(row, decimal-leading-zero); position: absolute; left: 8px; top: 17px; font: 500 12px/1.4 var(--lk-font-mono); color: var(--muted); }
.ld-sheet .ld-rows li::after { content: ""; position: absolute; right: 12px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--horizon); transition: background .5s, box-shadow .5s; transition-delay: var(--d, 0ms); }
.ld-board--you .ld-rows li::after { background: var(--sun); }
.ld-js-rv .ld-sheet .ld-rows li:not(.in)::after { background: #3A4468; box-shadow: none; }
.ld-sheet .ld-rows li.in::after { box-shadow: 0 0 12px 2px currentColor; }
.ld-board--agent .ld-rows li.in::after { color: rgba(46, 123, 255, .8); }
.ld-board--you .ld-rows li.in::after { color: rgba(255, 122, 47, .8); }
.ld-sheet .ld-rows li:hover { background: rgba(46, 123, 255, .1); transform: translateX(4px); }
.ld-sheet .ld-rows li:hover::before { color: var(--sun); }

/* ---------- money: comms code table ---------- */
.ld-money { margin-top: 36px; }
.ld-money .lk-table-wrap { background: transparent; border: 0; border-top: 2px solid var(--horizon); border-radius: 0; }
.ld-money .lk-money { counter-reset: code; }
.ld-money .lk-money th { background: transparent; color: var(--sky); font-size: 12px; letter-spacing: .12em; padding: 16px 14px; }
.ld-money .lk-money tbody tr { counter-increment: code; transition: background .2s, box-shadow .2s; }
.ld-money .lk-money tbody tr:hover { background: rgba(46, 123, 255, .1); box-shadow: inset 3px 0 0 var(--sun); }
.ld-money .lk-money td:first-child { font: 700 18px/1.25 var(--lk-font-display); color: var(--ink); }
.ld-money .lk-money td:first-child::after { content: "C-" counter(code, decimal-leading-zero); display: block; margin-top: 6px; font: 500 11px/1 var(--lk-font-mono); letter-spacing: .12em; color: var(--sun); }
.ld-money .lk-money small { color: var(--muted); }

/* ---------- end: after sunrise ---------- */
#end { padding: clamp(72px, 9vw, 128px) 0; background: linear-gradient(rgba(0, 3, 12, 1) 0, rgba(0, 3, 12, .35) 38%, rgba(0, 3, 12, .6) 100%), url("art/plate.webp") 74% 40% / cover no-repeat; border-block: 1px solid var(--hair); }
.ld-rows--end { max-width: 880px; margin-top: 24px; counter-reset: end; display: grid; gap: 12px; }
.ld-rows--end li { counter-increment: end; display: flex; align-items: baseline; gap: 20px; padding: 20px 24px; border: 1px solid var(--hair); border-radius: 14px; background: rgba(0, 3, 12, .78); font: 600 clamp(19px, 2.4vw, 28px)/1.25 var(--lk-font-display); font-stretch: 105%; transition: transform .3s var(--ease), border-color .25s; }
.ld-rows--end li:last-child { border-bottom: 1px solid var(--hair); }
.ld-rows--end li::before { content: counter(end, decimal-leading-zero); font: 500 14px/1 var(--lk-font-mono); color: var(--sun); }
.ld-rows--end li:hover { transform: translateX(8px); border-color: var(--sun); }

/* ---------- run ---------- */
.ld-prompt { position: relative; margin-top: 32px; padding: 3px; border-radius: 16px; gap: 0; background: linear-gradient(120deg, rgba(255, 122, 47, .7), rgba(46, 123, 255, .5), rgba(232, 82, 122, .6), rgba(255, 122, 47, .7)); background-size: 300% 100%; }
.ld-prompt .lk-prompt-text { border: 0; border-radius: 13px 13px 0 0; padding: 22px 24px; font-size: clamp(14px, 1.5vw, 17px); }
.ld-prompt .lk-prompt-row { padding: 14px 18px; background: var(--space); border-radius: 0 0 13px 13px; }
@keyframes ld-sweep { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: no-preference) { .ld-prompt { animation: ld-sweep 12s linear infinite; } }
.ld-run-grid { margin-top: 56px; gap: 40px; }
.ld-list { counter-reset: li; }
.ld-list li { counter-increment: li; padding-left: 44px; transition: transform .25s var(--ease); }
.ld-list li::before { content: counter(li, decimal-leading-zero); width: auto; height: auto; top: .25em; background: none; font: 500 12px/1.4 var(--lk-font-mono); color: var(--sun); }
.ld-list li:hover { transform: translateX(4px); }
.ld-list code { padding: 2px 7px; border: 1px solid var(--hair); border-radius: 6px; background: var(--indigo); color: var(--ink); overflow-wrap: anywhere; }
.ld-h3 { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }

/* ---------- terms: comms codes ---------- */
.lk-terms { margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; counter-reset: term; }
.lk-terms > div { counter-increment: term; padding: 20px 0 22px; border-top: 1px solid var(--hair); transition: border-color .25s, transform .3s var(--ease); }
.lk-terms > div:hover { border-top-color: var(--sun); transform: translateX(4px); }
.lk-terms dt { display: flex; align-items: baseline; gap: 12px; font: 700 20px/1.2 var(--lk-font-display); color: var(--ink); }
.lk-terms dt::before { content: "W-" counter(term, decimal-leading-zero); font: 500 11px/1 var(--lk-font-mono); letter-spacing: .12em; color: var(--sun); flex: none; }
.lk-terms dd { margin-top: 8px; color: var(--muted); font-size: 16px; }
@keyframes ld-flash { from { background: rgba(255, 122, 47, .35); } to { background: transparent; } }
.lk-terms dt:target { animation: ld-flash 1.6s ease-out; }

/* ---------- next ---------- */
.lk-next { margin-top: 24px; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lk-next > div { padding: 28px; background: var(--indigo); border-radius: 16px; border-top: 1px solid var(--horizon); transition: transform .3s var(--ease), box-shadow .3s; }
.lk-next > div:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(46, 123, 255, .6); }
.lk-next h3 { font-size: 13px; color: var(--sun); letter-spacing: .14em; }
.lk-next li { font: 700 clamp(22px, 2.6vw, 32px)/1.2 var(--lk-font-display); font-stretch: 112%; }
.lk-next li + li { margin-top: 10px; }
.lk-next p { color: var(--muted); }
.lk-next a { transition: color .2s; }
.lk-next a:hover { color: var(--sun); }
.lk-next a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 900px) {
  .ld-tool { grid-template-columns: 1fr; grid-template-areas: "form" "out" "act" "fine"; }
  .ld-band-a { grid-template-columns: 1fr; }
  .ld-band-a > p, .ld-band-a > p:nth-of-type(2), .ld-band-a > p:nth-of-type(3), .ld-band-a .ld-eyebrow, .ld-band-a .ld-h2 { grid-column: 1; grid-row: auto; }
  .lk-terms, .lk-next { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ld-sec { margin-top: 80px; }
  .ld-h2 { font-size: clamp(32px, 9.5vw, 44px); margin-bottom: 20px; }
  .ld-form { grid-template-columns: 1fr; padding: 18px; }
  .ld-sheetout { padding: 20px 16px 14px; }
  .ld-ph-i { grid-template-columns: 46px 1fr; }
  .ld-ph-w { grid-column: 2; justify-self: start; }
  .ld-ph-d { margin-left: 0; flex-basis: 100%; }
  .ld-tool-actions .lk-btn, .ld-tool-actions .ld-ghost { flex: 1 1 100%; justify-content: center; }
  .lk-items .lk-item { grid-template-columns: 70px 1fr auto; }
  .lk-items .lk-item::before, .lk-items .lk-item::after { left: 63px; }
  .lk-items .lk-item .lk-id { font-size: 18px; }
  .ld-sheet::before { padding: 12px 20px; font-size: 11px; }
  .ld-band-b { margin-top: 110px; }
  .ld-rows--end li { flex-direction: column; gap: 8px; padding: 16px 18px; }
  .lk-next > div { padding: 22px; }
  .lk-terms dt { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ld-rvt:not(.in) { transform: none; }
  .ld-rvt.in, .ld-ph, .ld-arc-today, .ld-sheet-k::before, .ld-prompt { animation: none; }
  .ld-js-rv .ld-band-b::after { clip-path: none; transition: none; }
  .lk-items .lk-item, .lk-items .lk-item:hover, .ld-sheet .ld-rows li, .ld-rows--end li, .lk-next > div, .lk-terms > div, .ld-notes li, .ld-list li { transition: none; transform: none !important; }
  .ld-rail-sun { animation: none; }
}

/* ---------- print: the run sheet alone ---------- */
@media print {
  body { background: #fff; color: #000; }
  .ld-main > :not(#try), .ld-top, .ld-rail, .ld-glow, .lk-footer, #zm-bar-slot { display: none !important; }
  #try { margin: 0; }
  #try .ld-lede, .ld-form, .ld-tool-actions, .ld-fine { display: none; }
  .ld-tool { display: block; margin: 0; }
  .ld-h2, .ld-eyebrow { color: #000; }
  .ld-eyebrow::before { color: #000; border-color: #000; }
  .ld-sheetout { background: #fff; color: #000; border: 1px solid #000; }
  .ld-ph-n, .ld-ph-ti, .ld-sheet-name { color: #000; }
  .ld-ph-t, .ld-ph-d, .ld-ph-id, .ld-sheet-goal, .ld-sheet-day, .ld-ph-w { color: #000; border-color: #000; }
}

/* ---------- Shared copy dock: sun orange with the button ink ---------- */
:root { --lk-dock-bg: var(--sun); --lk-dock-ink: var(--btn-ink); }
