:root {
  --bg: #FBFBFE; --surface: #FFFFFF; --sunken: #F3F3F9;
  --ink: #16172A; --ink-muted: #565877; --ink-subtle: #8A8CA6;
  --line: #E7E7F1; --line-strong: #D5D6E6;
  --accent: #4F46E5; --accent-hover: #4338CA; --accent-weak: #EDECFF; --on-accent: #FFFFFF;
  --warm: #C77D28; --warm-weak: #F6ECDC;
  --bad: #C0384C; --bad-weak: #FAE9EC;
  --shadow: 0 1px 2px rgba(20,20,45,.04), 0 8px 24px -12px rgba(20,20,45,.14);
  --shadow-lg: 0 2px 4px rgba(20,20,45,.05), 0 30px 60px -22px rgba(30,28,80,.28);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D18; --surface: #16172A; --sunken: #101021;
    --ink: #ECEDF9; --ink-muted: #A9ABC9; --ink-subtle: #71739A;
    --line: #262844; --line-strong: #363963;
    --accent: #8078FF; --accent-hover: #968FFF; --accent-weak: #1E1F3C; --on-accent: #0D0D18;
    --warm: #E0A24E; --warm-weak: #2A2338;
    --bad: #F0798C; --bad-weak: #331F27;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 40px 70px -24px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #0D0D18; --surface: #16172A; --sunken: #101021;
  --ink: #ECEDF9; --ink-muted: #A9ABC9; --ink-subtle: #71739A;
  --line: #262844; --line-strong: #363963;
  --accent: #8078FF; --accent-hover: #968FFF; --accent-weak: #1E1F3C; --on-accent: #0D0D18;
  --warm: #E0A24E; --warm-weak: #2A2338;
  --bad: #F0798C; --bad-weak: #331F27;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 40px 70px -24px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }

header.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: inline-grid; place-items: center; align-self: center; flex: none; }
.brand .mark svg { width: 15px; height: 15px; color: var(--on-accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links .lnk { font-size: 15px; color: var(--ink-muted); font-weight: 500; }
.nav-links .lnk:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .lnk { display: none; } }

.hero { padding: 56px 0 36px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 28px; } }
.hero h1 { font-size: clamp(40px, 6vw, 62px); font-weight: 800; margin-top: 20px; }
.hero h1 .em { color: var(--accent); }
.hero p.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-muted); max-width: 30ch; margin: 22px 0 32px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .assurance { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-subtle); letter-spacing: .02em; }

.board { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.board-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.board-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.board-top .title { margin-inline-start: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-subtle); letter-spacing: .04em; }
.board-top .solved { margin-inline-start: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent); background: var(--accent-weak); padding: 4px 9px; border-radius: 999px; }
.grid { display: grid; grid-template-columns: 68px 1fr 1fr 1fr; font-size: 13px; }
.grid .gh { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); padding: 12px 10px 8px; }
.grid .gd { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); padding: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; }
.grid .cell { padding: 7px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); min-height: 46px; }
.tag { display: flex; align-items: center; gap: 7px; background: var(--sunken); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: 7px; padding: 6px 9px; font-weight: 500; font-size: 12.5px; color: var(--ink); opacity: 0; transform: translateY(6px); animation: pop .5s ease forwards; }
.tag.weekend { border-inline-start-color: var(--warm); }
.tag .av { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-weak); color: var(--accent); font-size: 10px; font-weight: 600; display: grid; place-items: center; flex: none; font-family: var(--mono); }
.tag.weekend .av { background: var(--warm-weak); color: var(--warm); }
.tag .wk { margin-inline-start: auto; font-family: var(--mono); font-size: 9px; color: var(--warm); letter-spacing: .05em; }
@keyframes pop { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .tag { animation: none; opacity: 1; transform: none; } }

section { padding: 36px 0; }
.sec-head { max-width: 40ch; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.sec-head p { color: var(--ink-muted); font-size: 17px; margin: 16px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 20px; margin: 14px 0 8px; }
.step p { color: var(--ink-muted); font-size: 15px; margin: 0; }
.step .rule { height: 2px; width: 34px; background: var(--accent); margin-top: 18px; border-radius: 2px; opacity: .5; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feat { background: var(--surface); padding: 28px 26px; }
.feat .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { font-size: 17px; margin-bottom: 7px; }
.feat p { color: var(--ink-muted); font-size: 14.5px; margin: 0; }

.fair { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; overflow: hidden; }
@media (max-width: 820px) { .fair { grid-template-columns: 1fr; } }
.fair-copy { padding: 40px; }
.fair-copy h2 { font-size: clamp(26px, 3.5vw, 36px); }
.fair-copy p { color: var(--ink-muted); font-size: 16px; margin: 16px 0 0; }
.fair-panel { background: var(--sunken); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 12px; font-size: 13px; }
.bar-row .who { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }
.bar-track { height: 9px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.bar-row .pts { font-family: var(--mono); font-size: 12px; color: var(--ink); text-align: end; font-variant-numeric: tabular-nums; }
.fair-panel .note { font-family: var(--mono); font-size: 11px; color: var(--ink-subtle); letter-spacing: .03em; margin-top: 4px; }

.sec-head.wide { max-width: 54ch; }
.horizons { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.horizon { background: var(--surface); display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(230px, 300px); gap: 28px; align-items: center; padding: 26px 28px; }
.hz-mark { display: flex; flex-direction: column; gap: 11px; }
.hz-scope { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hz-span { flex: none; height: 2px; background: var(--accent); border-radius: 2px; opacity: .5; }
.hz-range { font-family: var(--mono); font-size: 11px; color: var(--ink-subtle); letter-spacing: .04em; }
.hz-copy h3 { font-size: 19px; margin-bottom: 8px; }
.hz-copy p { color: var(--ink-muted); font-size: 15px; margin: 0; }
.hz-viz { background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.viz-note { font-family: var(--mono); font-size: 10.5px; color: var(--ink-subtle); letter-spacing: .04em; margin: 12px 0 0; }
.hz-foot { background: var(--surface); padding: 18px 28px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-subtle); letter-spacing: .04em; }

.wk-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wk-d { font-family: var(--mono); font-size: 10.5px; color: var(--ink-subtle); text-align: center; padding: 9px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.wk-d.night { background: var(--accent-weak); border-color: transparent; color: var(--accent); font-weight: 600; }
.wk-d.wknd { background: var(--warm-weak); border-color: transparent; color: var(--warm); font-weight: 600; }

.close-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 7px 0; font-family: var(--mono); font-size: 11.5px; }
.close-row + .close-row { border-top: 1px solid var(--line); }
.close-row .lbl { color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .06em; }
.close-row .val { color: var(--ink); font-variant-numeric: tabular-nums; }
.close-row .ok { color: var(--accent); }

.led-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 62px; }
.led-zero { position: absolute; top: 50%; left: 0; right: 0; border-top: 1px dashed var(--line-strong); }
.led-col { position: relative; }
.led-bar { position: absolute; left: 50%; width: 14px; transform: translateX(-50%); }
.led-bar.up { bottom: 50%; background: var(--warm); border-radius: 3px 3px 0 0; }
.led-bar.down { top: 50%; background: var(--accent); border-radius: 0 0 3px 3px; }
.led-bar.level { top: 50%; height: 3px; background: var(--ink-subtle); border-radius: 2px; transform: translate(-50%, -50%); }
.led-axis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-align: center; }
.led-axis .over { color: var(--warm); }
.led-axis .under { color: var(--accent); }
.led-axis .even { color: var(--ink-subtle); }

.hol + .hol { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.hol-date { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-subtle); }
.hol-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 7px; font-size: 12.5px; }
.hol-p { display: inline-flex; align-items: baseline; gap: 5px; color: var(--ink); font-weight: 500; }
.hol-p.past { color: var(--ink-subtle); font-weight: 400; }
.hol-yr { font-family: var(--mono); font-size: 10px; color: var(--ink-subtle); }
.hol-ar { color: var(--accent); }

@media (max-width: 880px) {
  .horizon { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .hz-mark { flex-direction: row; align-items: center; gap: 12px; }
  .hz-foot { padding: 18px 24px; }
}

.cta-band { background: var(--accent); border-radius: 22px; padding: 60px 48px; text-align: center; }
.cta-band h2 { color: var(--on-accent); font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: color-mix(in srgb, var(--on-accent) 82%, var(--accent)); font-size: 17px; margin: 16px auto 30px; max-width: 44ch; }
.cta-band .btn-primary { background: var(--on-accent); color: var(--accent); }
.cta-band .btn-primary:hover { background: color-mix(in srgb, var(--on-accent) 90%, var(--accent)); }

footer { border-top: 1px solid var(--line); margin-top: 16px; padding: 32px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--ink-subtle); font-size: 13.5px; }
.foot-in .foot-links { display: flex; gap: 22px; }
.foot-in .foot-links a:hover { color: var(--ink); }

.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   NAV: multi-page links, sign-in link, mobile drawer
   ============================================================ */
.nav-links { gap: 22px; }
.nav-links .lnk { font-size: 14.5px; white-space: nowrap; }
.nav-links .lnk.active { color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 0; border-radius: 9px; background: transparent; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-drawer { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.nav-drawer.open { display: block; }
.nav-drawer .wrap { display: flex; flex-direction: column; padding-block: 10px 16px; }
.nav-drawer a { padding: 12px 2px; font-size: 15.5px; font-weight: 500; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--ink); }

@media (max-width: 900px) {
  .nav-links .lnk { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links { gap: 12px; }
  .nav-links .btn { padding: 10px 15px; font-size: 14px; }
}
@media (min-width: 901px) { .nav-drawer { display: none !important; } }

/* ============================================================
   SHARED: sub-page headers, section intros, small print
   ============================================================ */
.page-head { padding: 56px 0 8px; max-width: 62ch; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-top: 16px; }
.page-head p { color: var(--ink-muted); font-size: clamp(16px, 2vw, 19px); margin: 20px 0 0; max-width: 56ch; }
.sec-head.mid { margin-inline: auto; text-align: center; max-width: 46ch; }

/* proof line under the hero */
.proof { border-block: 1px solid var(--line); background: var(--sunken); }
.proof p { margin: 0; padding: 16px 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; color: var(--ink-muted); text-align: center; }
.proof .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-inline-end: 9px; vertical-align: middle; }

/* ============================================================
   THE PAIN: broken roster board
   ============================================================ */
.pain { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .pain { grid-template-columns: 1fr; gap: 32px; } }
.pain h2 { font-size: clamp(26px, 3.6vw, 38px); }
.pain p { color: var(--ink-muted); font-size: 16.5px; margin: 18px 0 0; max-width: 44ch; }
.board-top .broken { margin-inline-start: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--bad); background: var(--bad-weak); padding: 4px 9px; border-radius: 999px; }
.tag.bad { border-inline-start-color: var(--bad); }
.tag.bad .av { background: var(--bad-weak); color: var(--bad); }
.cell.empty { display: grid; place-items: center; }
.cell.empty span { font-family: var(--mono); font-size: 10.5px; color: var(--bad); letter-spacing: .04em; }
.flags { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.flag { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--bad); border-radius: 8px; padding: 10px 13px; }
.flag .x { flex: none; width: 15px; height: 15px; color: var(--bad); }

/* ============================================================
   FLOW: inputs -> algorithm -> plan
   ============================================================ */
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.flow-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 14px; }
.inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .inputs { grid-template-columns: 1fr; } }
.inp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.inp .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.inp .ic svg { width: 18px; height: 18px; }
.inp h3 { font-size: 16.5px; margin-bottom: 8px; }
.inp p { color: var(--ink-muted); font-size: 14px; margin: 0; }
.inp ul { margin: 10px 0 0; padding: 0; list-style: none; }
.inp li { position: relative; padding-inline-start: 14px; font-size: 13.5px; color: var(--ink-muted); margin-top: 6px; }
.inp li::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .55; }
.down { display: grid; place-items: center; height: 34px; color: var(--line-strong); }
.down svg { width: 20px; height: 20px; }
.engine { background: var(--accent); border-radius: 16px; padding: 28px 30px; color: var(--on-accent); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
@media (max-width: 700px) { .engine { grid-template-columns: 1fr; gap: 16px; } }
.engine .ring { width: 46px; height: 46px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-accent) 45%, transparent); display: grid; place-items: center; flex: none; }
.engine .ring svg { width: 22px; height: 22px; }
.engine h3 { color: var(--on-accent); font-size: 20px; margin-bottom: 7px; }
.engine p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--on-accent) 84%, var(--accent)); }
.outcome { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .outcome { grid-template-columns: 1fr; } }
.outcome h3 { font-size: 20px; margin-bottom: 7px; }
.outcome p { color: var(--ink-muted); font-size: 15px; margin: 0; max-width: 52ch; }
.stamp { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-weak); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.vs { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1px; }
.vs > * { background: var(--surface); padding: 16px 20px; display: flex; align-items: center; font-size: 14.5px; }
.vs .vh { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-subtle); background: var(--sunken); }
.vs .vh.us { color: var(--accent); }
.vs .rowlbl { color: var(--ink); font-weight: 600; }
.vs .man { color: var(--ink-muted); }
.vs .us { color: var(--ink); background: color-mix(in srgb, var(--accent-weak) 55%, var(--surface)); }
.vs .us b { font-weight: 600; }
@media (max-width: 760px) {
  .vs { grid-template-columns: 1fr 1fr; }
  .vs .rowlbl { grid-column: 1 / -1; background: var(--sunken); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 500; padding: 11px 20px; }
  .vs .vh { display: none; }
  .vs .man::before { content: "By hand"; }
  .vs .us::before { content: "With Skedge"; color: var(--accent); }
  .vs .man::before, .vs .us::before { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 6px; }
  .vs .man, .vs .us { display: block; }
}

/* ============================================================
   WHO GAINS WHAT
   ============================================================ */
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .gains { grid-template-columns: 1fr; } }
.gain { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.gain .who { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gain h3 { font-size: 19px; margin: 12px 0 14px; }
.gain ul { margin: 0; padding: 0; list-style: none; }
.gain li { position: relative; padding-inline-start: 22px; font-size: 14.5px; color: var(--ink-muted); margin-top: 11px; line-height: 1.5; }
.gain li svg { position: absolute; inset-inline-start: 0; top: 3px; width: 14px; height: 14px; color: var(--accent); }

/* ============================================================
   TERMS CLOUD
   ============================================================ */
.terms { display: flex; flex-wrap: wrap; gap: 10px; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; color: var(--ink); box-shadow: var(--shadow); }
.term.hi { background: var(--accent-weak); border-color: transparent; color: var(--accent); font-weight: 500; }
.terms-note { margin: 24px 0 0; font-size: 16px; color: var(--ink-muted); }

/* ============================================================
   SECURITY
   ============================================================ */
.sec3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 760px) { .sec3 { grid-template-columns: 1fr; } }
.sec3 > div { background: var(--surface); padding: 26px; display: flex; align-items: center; gap: 14px; }
.sec3 .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; flex: none; }
.sec3 .ic svg { width: 17px; height: 17px; }
.sec3 p { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 500; }

/* ============================================================
   FOOTER (columns)
   ============================================================ */
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 14px; }
.foot-col a, .foot-col p { display: block; font-size: 14px; color: var(--ink-muted); margin: 0 0 9px; }
.foot-col a:hover { color: var(--ink); }
.foot-col .person { color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.foot-col .role { font-family: var(--mono); font-size: 11px; color: var(--ink-subtle); margin-bottom: 3px; }
.foot-col .mail { color: var(--accent); margin-bottom: 16px; }
.foot-blurb { font-size: 14px; color: var(--ink-muted); margin: 12px 0 0; max-width: 30ch; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-subtle); font-size: 13px; }

/* ============================================================
   RULES LIBRARY (what it handles)
   ============================================================ */
.rgroup { margin-top: 40px; }
.rgroup:first-of-type { margin-top: 0; }
.rgroup-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.rgroup-head h2 { font-size: 22px; }
.rgroup-head .count { font-family: var(--mono); font-size: 11px; color: var(--ink-subtle); letter-spacing: .06em; }
/* gap grid, not the hairline-divider trick: groups hold 5 cards, so a divider
   grid would render an empty tinted cell at the end of every group. */
.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 880px) { .rcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .rcards { grid-template-columns: 1fr; } }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.rcard h3 { font-size: 15px; margin-bottom: 6px; }
.rcard p { margin: 0; font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }
.rclose { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.rclose h2 { font-size: clamp(22px, 3vw, 30px); max-width: 30ch; }
.rclose p { color: var(--ink-muted); font-size: 16px; margin: 14px 0 0; max-width: 56ch; }

/* ============================================================
   THE WORKFLOW
   ============================================================ */
.tour-step { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; padding: 36px 0; }
.tour-step.flip .tour-copy { order: 2; }
@media (max-width: 940px) { .tour-step, .tour-step.flip { grid-template-columns: 1fr; gap: 28px; } .tour-step.flip .tour-copy { order: 0; } }
.tour-step.wide { grid-template-columns: 1fr; }
.tour-step.wide .tour-copy { max-width: 62ch; margin-inline: auto; text-align: center; }
.tour-copy h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 12px; }
.tour-copy p { color: var(--ink-muted); font-size: 16px; margin: 16px 0 0; max-width: 46ch; }
.tour-step.wide .tour-copy p { max-width: none; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.mock-top .title { font-family: var(--mono); font-size: 12px; color: var(--ink-subtle); letter-spacing: .04em; }
.mock-top .pill { margin-inline-start: auto; font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-weak); padding: 4px 9px; border-radius: 999px; }
.mock-body { padding: 18px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); font-size: 13.5px; }
.trow:first-child { border-top: 0; }
.trow .nm { color: var(--ink); font-weight: 500; }
.trow .sub { font-family: var(--mono); font-size: 11px; color: var(--ink-subtle); }
.trow .rt { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.switch { width: 34px; height: 19px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2.5px; inset-inline-end: 2.5px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-accent); }
.switch.off { background: var(--line-strong); }
.switch.off::after { inset-inline-end: auto; inset-inline-start: 2.5px; background: var(--surface); }
.chip { font-family: var(--mono); font-size: 10.5px; padding: 4px 9px; border-radius: 999px; letter-spacing: .04em; }
.chip.ok { color: var(--accent); background: var(--accent-weak); }
.chip.warn { color: var(--warm); background: var(--warm-weak); }
.chip.mut { color: var(--ink-subtle); background: var(--sunken); }
.phone { max-width: 268px; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 26px; padding: 10px; background: var(--surface); box-shadow: var(--shadow-lg); }
.phone-in { background: var(--sunken); border-radius: 18px; padding: 16px 14px; }
.phone .notch { width: 52px; height: 4px; border-radius: 999px; background: var(--line-strong); margin: 2px auto 12px; }
.preq { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 9px; }
.preq .t { font-size: 13px; color: var(--ink); font-weight: 500; }
.preq .d { font-family: var(--mono); font-size: 10.5px; color: var(--ink-subtle); margin-top: 3px; }
.preq .s { margin-top: 8px; }
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
.kpi .k { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.kpi .v { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 5px; letter-spacing: -0.02em; }
.kpi .v small { font-size: 12px; font-weight: 500; color: var(--ink-subtle); font-family: var(--mono); }
.mock-body .bar-row { padding: 6px 0; }

/* On narrow phones the 4-column roster board is wider than the viewport.
   Let it scroll inside itself rather than being clipped by body overflow-x. */
@media (max-width: 640px) {
  .board { overflow-x: auto; overflow-y: hidden; }
  .grid { min-width: 460px; }
}
