/* The Nomad Ops, Site C: landing and guide pages (Agent 2).
   Sits on top of c.css (tokens, .bar, .btn, .link, .close, .byline, .micro).
   Long-form first: one reading column, a quiet rail, dark panels for proof and for the one working demo. */

:root {
  --lx-measure: 38em;
  --lx-line: rgba(20, 19, 15, .12);
  --lx-line-strong: rgba(20, 19, 15, .22);
  --lx-card: #FFFDF9;
  --lx-soft: #5A544C;          /* ink-soft, 7.1:1 on cream */
  --lx-red-text: #A42714;      /* red for small text on cream, 6.4:1 */
  --lx-ok: #2F6B47;
}

/* ---------- Hero: dark plate, film photo, the page's one claim on a card ---------- */
.lh { position: relative; background: var(--night); color: var(--bone); overflow: hidden; isolation: isolate; }
.lh-photo { position: absolute; inset: 0 0 0 30%; z-index: -2; }
.lh-photo picture { height: 100%; }
.lh-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.lh-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(20, 19, 15, .92) 14%, rgba(20, 19, 15, .55) 46%, rgba(20, 19, 15, .18) 78%, rgba(20, 19, 15, .1) 100%),
    linear-gradient(0deg, rgba(20, 19, 15, .78) 0%, rgba(20, 19, 15, 0) 42%);
}
.lh-in { position: relative; min-height: min(86svh, 820px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: end; padding-top: calc(var(--nav-h) + clamp(40px, 8svh, 96px)); padding-bottom: clamp(40px, 7svh, 80px); }
.lh .crumbs { margin-bottom: 22px; color: var(--bone); }
.lh .crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--display); font-weight: 520; font-size: 14px; }
.lh .crumbs li { display: flex; align-items: center; gap: 10px; opacity: .8; }
.lh .crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.lh .crumbs a { text-decoration: none; }
.lh .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lh .crumbs [aria-current] { opacity: 1; }
.lh h1 {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 100;
  font-size: clamp(38px, 4.6vw, 70px); line-height: .98; letter-spacing: -.03em; max-width: 15ch; text-wrap: balance;
}
.lh h1 .h1-2 { display: block; font-weight: 640; font-variation-settings: "wdth" 96; font-size: .62em; line-height: 1.08; letter-spacing: -.02em; margin-top: .3em; max-width: 22ch; color: var(--bone); }
.lh-lede { margin-top: 24px; font-size: clamp(19px, 1.45vw, 21px); line-height: 1.5; max-width: 34em; color: var(--bone); text-wrap: pretty; }
.lh-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.lh .link { color: var(--bone); }
.lh-by { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-family: var(--display); font-size: 14.5px; font-weight: 500; color: var(--bone-soft); }
.lh-by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.lh-by a { color: var(--bone); }

/* The hero card: the same card that sits on the plate in the homepage story */
.lh-card {
  justify-self: end; align-self: end; width: min(100%, 360px);
  background: var(--lx-card); color: var(--ink); border-radius: 12px; padding: 18px 20px 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 28px 50px -24px rgba(0, 0, 0, .7);
  transform: rotate(-1.2deg);
}
.lh-card-k { display: flex; align-items: center; gap: 8px; font-family: var(--device); font-size: 12.5px; font-weight: 600; color: var(--lx-soft); }
.lh-card-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--lx-ok); flex: none; }
.lh-card-v { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 104; font-size: 30px; line-height: 1.02; letter-spacing: -.02em; margin: 10px 0 6px; }
.lh-card-n { font-family: var(--device); font-size: 14px; line-height: 1.4; color: var(--lx-soft); }

/* ---------- Article: rail plus one reading column ---------- */
.lx { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: clamp(32px, 4.4vw, 80px); padding-top: clamp(56px, 9svh, 110px); padding-bottom: clamp(40px, 6svh, 80px); }
.rail { position: relative; }
.rail-in { position: sticky; top: calc(var(--nav-h) + 28px); }
.rail h2 { font-family: var(--display); font-weight: 650; font-size: 14px; letter-spacing: .005em; color: var(--lx-soft); margin-bottom: 12px; }
.rail ol { border-left: 1.5px solid var(--lx-line); }
.rail a {
  display: block; position: relative; padding: 7px 0 7px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent;
  font-family: var(--display); font-weight: 520; font-size: 14.5px; line-height: 1.3; color: var(--lx-soft); text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.rail a:hover { color: var(--ink); }
.rail a.is-on { color: var(--ink); border-left-color: var(--red); font-weight: 620; }
.rail-time { margin-top: 18px; font-family: var(--display); font-size: 13.5px; color: var(--lx-soft); }
.toc-m { display: none; }

.flow { min-width: 0; max-width: 1000px; }
.lp-sec { padding-bottom: clamp(48px, 7svh, 84px); scroll-margin-top: calc(var(--nav-h) + 20px); }
.lp-sec > * { max-width: var(--lx-measure); }
.lp-sec > .wide, .lp-sec > .lp-panel, .lp-sec > .lp-tbl, .lp-sec > .dv-wrap, .lp-sec > .cs-wrap { max-width: none; }
.lp-sec h2 {
  font-family: var(--display); font-weight: 780; font-variation-settings: "wdth" 102;
  font-size: clamp(28px, 2.6vw, 40px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 22px;
}
.lp-sec h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; margin: 30px 0 10px; }
.lp-sec p { font-size: 19.5px; line-height: 1.62; margin-bottom: 18px; text-wrap: pretty; }
.lp-sec p.lp-intro { font-size: 23px; line-height: 1.48; color: var(--ink); }
.lp-sec a:not(.btn):not(.link) { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lp-sec a:not(.btn):not(.link):hover { color: var(--lx-red-text); }
.lp-sec ul.lp-dots, .lp-sec ol.lp-steps { margin: 6px 0 22px; display: grid; gap: 10px; }
.lp-sec ul.lp-dots li { position: relative; padding-left: 24px; font-size: 19px; line-height: 1.55; }
.lp-sec ul.lp-dots li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 10px; height: 1.5px; background: var(--red); }
.lp-sec ol.lp-steps { counter-reset: st; }
.lp-sec ol.lp-steps > li { counter-increment: st; position: relative; padding-left: 44px; font-size: 19px; line-height: 1.55; }
.lp-sec ol.lp-steps > li::before {
  content: counter(st); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13.5px;
  background: var(--ink); color: var(--cream);
}
.lp-sec strong { font-weight: 600; }
.lp-formula { font-family: var(--display); font-weight: 650; font-size: 20px !important; line-height: 1.4 !important; padding: 18px 22px; border-radius: 10px; background: var(--paper); border-left: 3px solid var(--red); }

/* Leaks: cards on your plate */
.lp-leaks { display: grid; gap: 10px; margin: 8px 0 26px; }
.lp-leaks li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start;
  background: var(--lx-card); border-radius: 10px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--lx-line) inset, 0 10px 24px -20px rgba(40, 24, 10, .5);
}
.lp-leaks .chip-l, .lp-leaks .chip-ok, .lp-leaks .chip-h { grid-row: span 2; margin-top: 3px; justify-self: start; }
.lp-leaks h3, .lp-fixes h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.lp-leaks h3 { margin: 0 !important; font-size: 19px !important; line-height: 1.3 !important; }
.lp-leaks p { margin: 0 !important; font-size: 17.5px !important; line-height: 1.5 !important; color: var(--lx-soft); }
.chip-l, .chip-ok {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; white-space: nowrap;
  font-family: var(--device); font-size: 12px; font-weight: 650; line-height: 1.2;
}
.chip-l { background: #F7E3DE; color: var(--lx-red-text); }
.chip-l::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.chip-h { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; white-space: nowrap; font-family: var(--device); font-size: 12px; font-weight: 650; line-height: 1.2; background: #F6E7C8; color: #6E4D0E; }
.chip-h::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D9A13B; }
.chip-ok { background: #DDEBE1; color: #24553A; }
.chip-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lx-ok); }
a.chip-l { text-decoration: none; }

/* Fixes: what I build, a hairline ledger */
.lp-fixes { margin: 8px 0 26px; border-top: 1px solid var(--lx-line); }
.lp-fixes li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 14px; padding: 18px 0; border-bottom: 1px solid var(--lx-line); }
.lp-fixes svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: var(--lx-ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lp-fixes h3 { margin: 0 !important; font-size: 19.5px !important; }
.lp-fixes p { margin: 4px 0 0 !important; font-size: 18px !important; line-height: 1.55 !important; color: var(--ink); }

/* Who it is for */
.lp-for { font-family: var(--display); font-weight: 560; font-size: 21px !important; line-height: 1.42 !important; padding: 20px 24px; border-radius: 12px; background: var(--paper); }

/* Sample message */
.lp-sample { position: relative; background: var(--lx-card); border-radius: 14px 14px 14px 4px; padding: 16px 20px; box-shadow: 0 0 0 1px var(--lx-line) inset; font-family: var(--device); font-size: 16px !important; line-height: 1.5 !important; max-width: 34em; }
.lp-sample b { display: block; font-family: var(--display); font-weight: 650; font-size: 13px; color: var(--lx-soft); margin-bottom: 6px; }

/* Procedure sheet */
.lp-proc { background: var(--lx-card); border-radius: 12px; padding: 22px 24px 18px; box-shadow: 0 0 0 1px var(--lx-line) inset, 0 20px 40px -32px rgba(40, 24, 10, .5); margin: 10px 0 26px; max-width: 40em; }
.lp-proc-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--lx-line); }
.lp-proc-top b { font-family: var(--display); font-weight: 760; font-size: 20px; }
.lp-proc-top span { font-family: var(--device); font-size: 13px; color: var(--lx-soft); }
.lp-proc p { font-size: 17.5px !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
.lp-proc .lp-k { display: inline-block; min-width: 6.4em; font-family: var(--display); font-weight: 650; font-size: 14px; color: var(--lx-red-text); }
.lp-proc ol.lp-steps { margin: 6px 0 14px; }
.lp-proc ol.lp-steps > li { font-size: 17.5px; }

/* Tables */
.lp-tbl { overflow-x: auto; margin: 10px 0 28px; border-radius: 12px; background: var(--lx-card); box-shadow: 0 0 0 1px var(--lx-line) inset; -webkit-overflow-scrolling: touch; }
.lp-tbl:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.lp-tbl table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: 15.5px; line-height: 1.4; }
.lp-tbl th, .lp-tbl td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--lx-line); }
.lp-tbl thead th { font-weight: 650; font-size: 13.5px; color: var(--lx-soft); background: var(--paper); position: sticky; top: 0; }
.lp-tbl tbody tr:last-child > * { border-bottom: 0; }
.lp-tbl tbody th { font-weight: 520; }
.lp-tbl td.n { font-weight: 650; color: var(--lx-red-text); width: 3em; }
.lp-tbl.cl td.c, .lp-tbl.cl th.c { text-align: center; width: 6.6em; }
.lp-tbl.cl td.y span[aria-hidden] { color: var(--lx-ok); font-weight: 800; font-size: 17px; }
.lp-tbl.cl td.a { font-size: 13px; font-weight: 600; color: var(--lx-red-text); }
.lp-tbl .s { display: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.lp-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 99px; background: var(--lx-card); box-shadow: 0 0 0 1px var(--lx-line-strong) inset; font-family: var(--display); font-weight: 560; font-size: 14.5px; text-decoration: none !important; }
.lp-jump a:hover { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.lp-room { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* Product box (no price on the page) */
.lp-buy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; background: var(--lx-card); border-radius: 14px; padding: 18px; box-shadow: 0 0 0 1px var(--lx-line) inset; max-width: none !important; }
.lp-buy img { border-radius: 8px; width: 100%; height: auto; }
.lp-buy p { font-size: 17.5px !important; line-height: 1.5 !important; }
.lp-buy-act { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }

/* ---------- Dark panels: proof, and the one working demo ---------- */
.lp-panel { background: var(--night); color: var(--bone); border-radius: 16px; padding: clamp(26px, 3.4vw, 48px); margin: 6px 0 clamp(48px, 7svh, 84px); scroll-margin-top: calc(var(--nav-h) + 20px); box-shadow: 0 40px 70px -50px rgba(20, 15, 10, .8); }
.lp-panel h2 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 104; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.02; letter-spacing: -.03em; max-width: 20ch; text-wrap: balance; }
.lp-panel-k { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--red-hi); margin-bottom: 12px; }
.lp-panel-sub { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--bone-soft); max-width: 40em; }
.lp-panel a:not(.btn) { color: var(--bone); text-decoration-color: var(--red-hi); text-underline-offset: 3px; }
.lp-panel :focus-visible { outline-color: var(--red-hi); }
.lp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(28px, 4svh, 44px); }
.lp-nums li { border-top: 1px solid rgba(243, 237, 226, .16); padding-top: 18px; }
.lp-num { font-family: var(--display); font-weight: 820; font-variation-settings: "wdth" 108; font-size: clamp(48px, 5vw, 80px); line-height: .92; letter-spacing: -.035em; white-space: nowrap; }
.lp-num small { font-size: .36em; font-weight: 650; letter-spacing: -.01em; margin-left: .18em; color: var(--bone-soft); font-variation-settings: "wdth" 100; }
.lp-nums p { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--bone-soft); }
.lp-panel-text { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(243, 237, 226, .14); font-size: 18px; line-height: 1.6; color: var(--bone); max-width: 44em; }
.lp-panel-text p + p { margin-top: 14px; }
.lp-panel .lp-leaks li { background: #1F1D18; box-shadow: 0 0 0 1px rgba(243, 237, 226, .1) inset; }
.lp-panel .lp-leaks p { color: var(--bone-soft); }
.lp-panel .chip-l { background: rgba(238, 106, 82, .16); color: #F59A86; }
.lp-panel .lp-sample { background: #1F1D18; color: var(--bone); box-shadow: 0 0 0 1px rgba(243, 237, 226, .12) inset; }
.lp-panel .lp-sample b { color: var(--bone-soft); }

/* ---------- Device frame (the demo) ---------- */
.dv-wrap { margin-top: clamp(24px, 3.4svh, 36px); }
.dv { background: var(--ui-bg); color: var(--ui-ink); border-radius: 12px; overflow: hidden; font-family: var(--device); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.dv-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ui-side); border-bottom: 1px solid var(--ui-line); font-size: 13px; }
.dv-dots { display: flex; gap: 6px; }
.dv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D9D1C4; }
.dv-title { font-weight: 650; }
.dv-me { margin-left: auto; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line) inset; color: var(--ui-soft); }
.dv-body { padding: 16px; }
.dv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; border-top: 1px solid var(--ui-line); background: #fff; }
.dv-status { font-size: 13.5px; color: var(--ui-soft); min-height: 1.4em; }
.dv-status b { color: var(--ui-ink); }
.dv .btn { font-size: 15px; min-height: 44px; padding: 12px 18px; }
.btn-q { background: transparent; color: var(--ui-ink); box-shadow: 0 0 0 1.5px var(--ui-ink) inset; }
.btn-q::after { display: none; }
@media (hover: hover) and (pointer: fine) { .btn-q:hover { background: rgba(20, 19, 15, .06); } }
.btn-q:active { background: rgba(20, 19, 15, .1); }
.dv-note { margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--bone-soft); font-family: var(--display); }

/* The hand-off: a job card and the system it goes to */
.lp-ho { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 18px; align-items: start; }
.lp-ho.is-handed { grid-template-columns: minmax(0, 1fr); }
.lp-hcard {
  background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--ui-line) inset, 0 8px 18px -12px rgba(40, 24, 10, .45);
  cursor: grab; touch-action: none; user-select: none; transition: transform .35s var(--ease), opacity .3s ease, box-shadow .2s ease;
}
.lp-hcard:active { cursor: grabbing; }
.lp-hcard.is-drag { box-shadow: 0 0 0 1.5px var(--red) inset, 0 24px 40px -18px rgba(40, 24, 10, .6); transition: none; z-index: 5; position: relative; }
.lp-hcard.is-gone { opacity: 0; transform: translateX(30px) scale(.94); pointer-events: none; }
.lp-hcard .lp-ct { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ui-soft); margin-bottom: 6px; }
.lp-hcard .lp-ch { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.lp-hcard .lp-cs { font-size: 13px; color: var(--ui-soft); margin-top: 4px; line-height: 1.35; }
.lp-hcard .lp-cg { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--ui-soft); }
.lp-hcard .lp-cg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.lp-hsys { border-radius: 10px; padding: 12px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line) inset; transition: box-shadow .2s ease, background-color .2s ease; }
.lp-hsys.is-over { box-shadow: 0 0 0 2px var(--red) inset; background: #FFF8F5; }
.lp-hsys-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--ui-soft); margin-bottom: 10px; }
.lp-hsys-h i { width: 8px; height: 8px; border-radius: 50%; background: #C9C1B4; }
.lp-hsys.is-busy .lp-hsys-h i { background: #D9A13B; animation: lx-pulse 1s ease-in-out infinite; }
.lp-hsys.is-done .lp-hsys-h i { background: var(--lx-ok); }
@keyframes lx-pulse { 50% { opacity: .35; } }
.lp-hempty { font-size: 13.5px; color: var(--ui-soft); padding: 18px 8px; text-align: center; border: 1.5px dashed rgba(20, 19, 15, .16); border-radius: 8px; }

/* Rows that resolve one by one */
.lp-rows { display: grid; gap: 6px; }
.lp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 8px; background: var(--ui-bg); font-size: 13.5px; line-height: 1.35; transition: background-color .3s ease; }
.lp-row .r-m { color: var(--ui-soft); font-size: 12.5px; }
.lp-row .r-s { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: #ECE6DB; color: var(--ui-soft); white-space: nowrap; }
.lp-row.ok .r-s { background: #DDEBE1; color: #24553A; }
.lp-row.flag { background: #FBEDE9; }
.lp-row.flag .r-s { background: #F3D3CB; color: var(--lx-red-text); }
.lp-row.wait .r-s { background: #F6E7C8; color: #6E4D0E; }
.lp-row.pending { opacity: .5; }
.lp-row.tick { animation: lx-tick .5s var(--ease); }
@keyframes lx-tick { from { transform: translateX(-6px); } to { transform: none; } }

/* ---------- Range control (rebalance, rounds) ---------- */
.lp-rng { display: grid; gap: 8px; margin: 4px 0 2px; }
.lp-rng label { font-size: 13.5px; font-weight: 650; }
.lp-rng input[type="range"] { width: 100%; accent-color: var(--red); height: 32px; cursor: pointer; }
.lp-rng-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--ui-soft); }

/* Rebalance bars */
.lp-rb { display: grid; gap: 16px; padding-top: 18px; }
.lp-rb-day { display: grid; grid-template-columns: 6.6em minmax(0, 1fr) 4.4em; gap: 12px; align-items: center; font-size: 14px; }
.lp-rb-day b { font-weight: 650; }
.lp-rb-track { position: relative; height: 30px; border-radius: 6px; background: #EEE8DE; overflow: visible; }
.lp-rb-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--ink); transition: width .45s var(--ease), background-color .3s ease; }
.lp-rb-fill.over { background: var(--red); }
.lp-rb-mark { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px dashed var(--ui-soft); }
.lp-rb-mark span { position: absolute; top: -20px; right: 5px; font-size: 11.5px; color: var(--ui-soft); white-space: nowrap; }
.lp-rb-mark.hi { border-left-color: var(--red); }
.lp-rb-mark.hi span { color: var(--lx-red-text); right: auto; left: 5px; }
.lp-rb-n { font-weight: 700; text-align: right; font-size: 16px; }
.lp-rb-log { display: grid; gap: 6px; margin-top: 6px; }

/* Owners: who owns what */
.lp-own { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-own th, .lp-own td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--ui-line); vertical-align: middle; }
.lp-own thead th { font-size: 12px; color: var(--ui-soft); font-weight: 650; }
.lp-own .lp-who { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; background: #ECE6DB; font-weight: 600; font-size: 13px; transition: background-color .35s ease, color .35s ease; white-space: nowrap; }
.lp-own .lp-who i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; }
.lp-own .lp-who.you { background: #F7E3DE; color: var(--lx-red-text); }
.lp-own .lp-who.you i { background: var(--red); }
.lp-own td.lp-when { color: var(--ui-soft); font-size: 13px; }
.lp-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: #ECE6DB; gap: 2px; }
.lp-seg button { border: 0; background: transparent; min-height: 40px; padding: 8px 16px; border-radius: 99px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ui-ink); cursor: pointer; }
.lp-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lp-meter-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.lp-meter-row .lp-mn { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.lp-meter-row .lp-ml { font-size: 13px; color: var(--ui-soft); }

/* Signals self-check */
.lp-sig { display: grid; gap: 8px; }
.lp-sig label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line) inset; cursor: pointer; font-size: 15px; line-height: 1.4; transition: box-shadow .2s ease, background-color .2s ease; }
.lp-sig label:hover { box-shadow: 0 0 0 1.5px var(--ui-ink) inset; }
.lp-sig input { width: 22px; height: 22px; margin: 0; accent-color: var(--red); cursor: pointer; }
.lp-sig label.is-on { background: #FFF8F5; box-shadow: 0 0 0 1.5px var(--red) inset; }
.lp-sig b { display: block; font-weight: 650; }
.lp-sig span span { display: block; color: var(--ui-soft); font-size: 13.5px; margin-top: 2px; }
.lp-verdict { border-radius: 10px; padding: 14px 16px; background: var(--ui-side); font-size: 15px; line-height: 1.45; min-height: 5.2em; }
.lp-verdict b { display: block; font-size: 17px; margin-bottom: 4px; }
.lp-verdict.hot { background: #FBEDE9; }
.lp-verdict.hot b { color: var(--lx-red-text); }

/* Phone frame (calls, follow-ups, wire) */
.ph-frame { width: min(100%, 320px); margin-inline: auto; border-radius: 36px; padding: 10px; background: #0E0D0B; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 60px -30px rgba(0, 0, 0, .9); }
.ph-scr { border-radius: 28px; overflow: hidden; background: var(--ui-bg); min-height: 460px; display: flex; flex-direction: column; font-family: var(--device); }
.ph-top { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-size: 12.5px; font-weight: 650; }
.ph-head { text-align: center; padding: 4px 12px 10px; border-bottom: 1px solid var(--ui-line); font-size: 13px; }
.ph-head b { display: block; font-size: 14.5px; }
.ph-head span { color: var(--ui-soft); font-size: 12px; }
.ph-msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.lp-bub { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.38; animation: lx-in .4s var(--ease) both; }
.lp-bub.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.lp-bub.them { align-self: flex-start; background: #fff; box-shadow: 0 0 0 1px var(--ui-line) inset; border-bottom-left-radius: 5px; }
.lp-bub.sys { align-self: center; max-width: 100%; background: transparent; color: var(--ui-soft); font-size: 12px; padding: 2px 6px; text-align: center; }
.lp-bub.draft { align-self: flex-end; background: #fff; color: var(--ui-ink); box-shadow: 0 0 0 1.5px dashed var(--red) inset, 0 0 0 1.5px var(--red) inset; border-bottom-right-radius: 5px; }
.lp-bub .lp-bl { display: block; font-size: 11px; font-weight: 650; color: var(--lx-red-text); margin-bottom: 3px; }
@keyframes lx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Day stepper */
.lp-days { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-days button { border: 0; min-height: 44px; min-width: 64px; padding: 8px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line) inset; font-family: var(--display); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ui-ink); }
.lp-days button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.lp-days button small { display: block; font-weight: 500; font-size: 11.5px; opacity: .75; }

/* Test-run tally */
.lp-tally { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; margin: 10px 0 8px; }
.lp-tally i { height: 34px; border-radius: 4px; background: #E4DDD1; transition: background-color .4s ease; }
.lp-tally i.p { background: var(--lx-ok); }
.lp-tally i.h { background: #D9A13B; }
.lp-tally i.f { background: var(--red); }
.lp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ui-soft); }
.lp-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lp-legend .lg-p::before { background: var(--lx-ok); }
.lp-legend .lg-h::before { background: #D9A13B; }
.lp-legend .lg-f::before { background: var(--red); }

/* Two-column demo layout inside a device */
.dv-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; align-items: start; }

/* ---------- FAQ ---------- */
.lp-faq { margin-top: 4px; border-top: 1px solid var(--lx-line); max-width: 44em !important; }
.lp-faq details { border-bottom: 1px solid var(--lx-line); }
.lp-faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center;
  padding: 20px 0; font-family: var(--display); font-weight: 650; font-size: 19px; line-height: 1.3;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; width: 14px; height: 14px; justify-self: end; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.lp-faq details p { margin: 0 0 22px !important; font-size: 18.5px !important; }

/* ---------- Related and "same systems" ---------- */
.lp-rel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--lx-line); max-width: none !important; }
.lp-rel a { display: grid; gap: 4px; padding: 18px 28px 18px 0; border-bottom: 1px solid var(--lx-line); text-decoration: none !important; position: relative; }
.lp-rel a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: translateY(-50%) rotate(45deg); transition: right .25s var(--ease); }
.lp-rel a:hover::after { right: 0; }
.lp-rel .lp-rt { font-family: var(--display); font-weight: 650; font-size: 17.5px; color: var(--ink); }
.lp-rel .lp-rd { font-size: 16px; color: var(--lx-soft); line-height: 1.4; }
.lp-same { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: 14px; background: var(--paper); max-width: 44em !important; }
.lp-same img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.lp-same p { font-size: 18.5px !important; margin-bottom: 10px !important; }
.lp-same p:last-child { margin-bottom: 0 !important; }

/* ---------- Crew sheet ---------- */
.cs-wrap { margin-top: 8px; }
.cs-tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 16px; }
.cs-type { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cs-type label { position: relative; }
.cs-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-type span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--lx-line-strong) inset; font-family: var(--display); font-weight: 600; font-size: 15px; cursor: pointer; }
.cs-type input:checked + span { background: var(--ink); color: var(--cream); box-shadow: none; }
.cs-type input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.cs-prog { font-family: var(--display); font-size: 14.5px; color: var(--lx-soft); }
.cs-prog b { color: var(--ink); }
.cs-bar { height: 4px; border-radius: 4px; background: var(--lx-line); overflow: hidden; margin-top: 6px; width: 220px; }
.cs-bar i { display: block; height: 100%; width: 0; background: var(--lx-ok); transition: width .3s var(--ease); }
.cs { background: #fff; color: var(--ink); border-radius: 10px; padding: 26px 28px; box-shadow: 0 0 0 1px var(--lx-line) inset, 0 24px 50px -36px rgba(40, 24, 10, .55); font-family: var(--display); }
.cs-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cs-title { font-weight: 800; font-size: 22px; letter-spacing: -.015em; }
.cs-brand { font-size: 12px; color: var(--lx-soft); }
.cs-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; padding: 14px 0; }
.cs-field { font-size: 12px; color: var(--lx-soft); padding: 18px 0 4px; border-bottom: 1px solid var(--lx-line-strong); }
.cs-kind { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; font-weight: 600; }
.cs-kind label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.cs-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 30px; }
.cs-room h3 { margin: 16px 0 6px !important; font-size: 15px !important; font-weight: 750; padding-bottom: 4px; border-bottom: 1px solid var(--lx-line); display: flex; justify-content: space-between; gap: 10px; }
.cs-room h3 small { font-weight: 500; font-size: 12px; color: var(--lx-soft); }
.cs-room li label { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 5px 0; font-size: 14px; line-height: 1.35; cursor: pointer; transition: opacity .25s ease; }
.cs-room input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--lx-ok); cursor: pointer; }
.cs-room input:checked + span { text-decoration: line-through; text-decoration-color: rgba(20, 19, 15, .4); color: var(--lx-soft); }
.cs-room .tag { font-size: 10.5px; font-weight: 650; color: var(--lx-red-text); background: #F7E3DE; padding: 2px 6px; border-radius: 4px; white-space: nowrap; align-self: center; }
.cs-room li.is-out label { opacity: .32; }
.cs-room li.is-out input { pointer-events: none; }
.cs-notes { margin-top: 18px; }
.cs-line { height: 26px; border-bottom: 1px solid var(--lx-line-strong); }
.cs-sign { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; padding: 12px 14px 14px; border-radius: 8px; background: var(--paper); }
.cs-label { grid-column: 1 / -1; font-weight: 750; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lx { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .toc-m { display: block; margin-bottom: 40px; border-radius: 12px; background: var(--paper); }
  .toc-m summary { cursor: pointer; padding: 16px 18px; min-height: 48px; font-family: var(--display); font-weight: 650; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--lx-red-text); }
  .toc-m[open] summary::after { content: "\2212"; }
  .toc-m ol { padding: 0 18px 14px; display: grid; gap: 2px; }
  .toc-m a { display: block; padding: 8px 0; font-family: var(--display); font-size: 15.5px; text-decoration: none; }
}
@media (max-width: 900px) {
  .lh-in { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; }
  .lh-photo { inset: 0; }
  .lh-photo::after { background: linear-gradient(180deg, rgba(20, 19, 15, .82) 0%, rgba(20, 19, 15, .7) 45%, rgba(20, 19, 15, .92) 100%); }
  .lh-card { justify-self: start; transform: rotate(-.8deg); margin-top: 8px; }
  .lp-ho, .dv-2 { grid-template-columns: minmax(0, 1fr); }
  .lp-buy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lh h1 { font-size: clamp(34px, 9.4vw, 46px); }
  .lh-in { padding-top: calc(var(--nav-h) + 28px); }
  .lh-lede { font-size: 18px; }
  .lh-act .btn { font-size: 15px; padding: 14px 18px; }
  .lp-sec p { font-size: 18px; }
  .lp-sec p.lp-intro { font-size: 20px; }
  .lp-sec ul.lp-dots li, .lp-sec ol.lp-steps > li { font-size: 17.5px; }
  .lp-nums { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-panel { border-radius: 12px; margin-inline: calc(var(--gut) * -.5); padding: 24px 18px; }
  .lp-rel { grid-template-columns: minmax(0, 1fr); }
  .lp-same { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .lp-tbl.cl .l { display: none; }
  .lp-tbl.cl .s { display: inline; }
  .lp-tbl.cl td.c, .lp-tbl.cl th.c { width: 3.6em; padding-inline: 6px; }
  .lp-tbl th, .lp-tbl td { padding: 10px 12px; }
  .cs { padding: 18px 16px; }
  .cs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-rooms { grid-template-columns: minmax(0, 1fr); }
  .cs-sign { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-body { padding: 12px; }
  .lp-rb-day { grid-template-columns: 5.4em minmax(0, 1fr) 3.6em; font-size: 13px; }
  .lp-own { min-width: 520px; }
}

/* Reduced motion: nothing moves on its own */
.rm .lh-card { transform: none; }
.rm .lp-bub, .rm .lp-row.tick { animation: none !important; }

/* No JS: demos show their finished state, controls hide */
html:not(.js) [data-js-only] { display: none !important; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .bar, .skip, .grain, .rail, .toc-m, .site-foot, .sticky-cta, .close, .dv-wrap, .lp-panel .dv-wrap, [data-js-only], .lh-photo, .lh-card, .lh-act, .cs-tools, .lp-rel, .lp-same { display: none !important; }
  .lh { background: #fff; color: #000; }
  .lh-in { min-height: 0; padding: 0 0 12pt; display: block; }
  .lh h1, .lh h1 .h1-2, .lh-lede, .crumbs, .lh-by { color: #000 !important; }
  .lx { display: block; padding: 0; }
  .lp-panel { background: #fff; color: #000; box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .lp-panel .lp-num small, .lp-nums p, .lp-panel-sub, .lp-panel-text { color: #000 !important; }
  .lp-faq details { break-inside: avoid; }
  .lp-faq details:not([open]) > *:not(summary) { display: block; }
  .lp-tbl { overflow: visible; box-shadow: none; }
  .lp-tbl thead th { position: static; }
  a { color: #000 !important; }

  /* "Print the crew sheet": the sheet alone, on one page */
  html.print-sheet body > *:not(main), html.print-sheet main > *:not(.lx), html.print-sheet .lx > *:not(.flow), html.print-sheet .flow > *:not(#crew-sec), html.print-sheet #crew-sec > *:not(.cs-wrap), html.print-sheet .cs-wrap > *:not(.cs) { display: none !important; }
  html.print-sheet .cs { box-shadow: none; padding: 0; border-radius: 0; font-size: 9pt; }
  html.print-sheet .cs-title { font-size: 14pt; }
  html.print-sheet .cs-fields { grid-template-columns: repeat(4, 1fr); padding: 6pt 0; }
  html.print-sheet .cs-field { padding-top: 12pt; font-size: 8pt; }
  html.print-sheet .cs-rooms { grid-template-columns: 1fr 1fr; gap: 0 18pt; }
  html.print-sheet .cs-room h3 { margin: 8pt 0 3pt !important; font-size: 10pt !important; }
  html.print-sheet .cs-room h3 small { display: none; }
  html.print-sheet .cs-room li label { padding: 1.5pt 0; font-size: 8.5pt; grid-template-columns: 12pt 1fr auto; gap: 4pt; }
  html.print-sheet .cs-room li.is-out label { opacity: 1; }
  html.print-sheet .cs-room input { width: 9pt; height: 9pt; }
  html.print-sheet .cs-room .tag { font-size: 7pt; background: none; color: #000; border: .5pt solid #777; padding: 0 3pt; }
  html.print-sheet .cs-room input:checked + span { text-decoration: none; color: #000; }
  html.print-sheet .cs-notes { margin-top: 8pt; }
  html.print-sheet .cs-line { height: 16pt; }
  html.print-sheet .cs-sign { background: none; border: .75pt solid #000; margin-top: 8pt; padding: 6pt 8pt; }
  html.print-sheet .cs-sign .cs-field { padding-top: 12pt; }
  html.print-sheet .cs, html.print-sheet #crew-sec { break-inside: avoid; }
  html.print-sheet .lp-sec, html.print-sheet .flow, html.print-sheet main { padding: 0 !important; margin: 0 !important; }
}

/* Consent banner from analytics.js (fallback until the shared system styles it) */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 260; max-width: 440px; padding: 18px 20px; border-radius: 12px; background: var(--night); color: var(--bone); font-family: var(--display); font-size: 14.5px; line-height: 1.45; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); }
.consent-banner a { color: var(--bone); }
.consent-actions { display: flex; gap: 10px; margin-top: 12px; }
.consent-actions button { min-height: 44px; padding: 10px 18px; border-radius: var(--r); border: 1.5px solid rgba(243, 237, 226, .5); background: transparent; color: var(--bone); font-family: var(--display); font-weight: 640; font-size: 14.5px; cursor: pointer; }
.consent-actions .consent-accept { background: var(--bone); color: var(--ink); border-color: var(--bone); }
@media print { .consent-banner { display: none !important; } }

/* Close: c.css's close, sized for an inner page */
.close.close-lx { min-height: 76svh; }
.close-lx .close-in { padding-top: 12svh; padding-bottom: 12svh; }
.close-lx h2 { max-width: 14ch; margin-bottom: 18px; }
.close-sub { font-size: 20px; line-height: 1.5; max-width: 32em; color: var(--bone); margin-bottom: 30px; }
.close-sub a { color: var(--bone); }
@media (max-width: 760px) { .close-sub { font-size: 17.5px; } }
.lp-fixes.is-not svg { stroke: var(--red); }
