/* HRjoy — "The brief". Tokens first; see _brand/DESIGN.md. */
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-grotesque.woff2) format("woff2-variations"), url(/fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2-variations"), url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono.woff2) format("woff2-variations"), url(/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* brand — sampled from the logo */
  --blue: #007ef0;          /* logo blue: large type, graphics */
  --blue-field: #006ad1;    /* bands that carry text (white 5.3:1) */
  --blue-ink: #0062c4;      /* links, buttons on white (5.9:1) */
  --blue-ink-hover: #004f9f;
  --coral: #ff6a4a;         /* the smile: decoration only, never text */
  --tint: #eef5fe;
  --tint-2: #f5f9fe;
  --chip-line: #c9dcf4;

  /* neutrals, tinted toward the brand blue */
  --ink: #20242c;
  --muted: #525b6b;
  --line: #e3e9f2;
  --field-line: #c3cedd;
  --white: #fff;
  --bg: #fff;
  --surface: #fff;
  --header-bg: rgba(255,255,255,.92);
  --btn: var(--blue-ink);
  --btn-hover: var(--blue-ink-hover);
  --navy: #0e1b2e;
  --navy-2: #16263d;
  --on-navy: #b9c6d8;
  --sky: #5aa9ff;

  --error: #b42318;
  --error-bg: #fef3f2;
  --success: #0e7a4f;
  --success-bg: #ecfdf3;

  --font-display: "Bricolage", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-doc: 0 1px 2px rgba(14, 27, 46, .06), 0 22px 44px -22px rgba(0, 72, 150, .32);
  --shadow-soft: 0 1px 2px rgba(14, 27, 46, .05), 0 12px 32px -18px rgba(14, 27, 46, .22);

  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  --selection: #cfe4fd;
  --doc-tick: var(--coral);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-ink); text-underline-offset: 4px; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
.band-blue :focus-visible, .band-navy :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
html { scrollbar-color: #b7c6da transparent; }

h1, h2, h3, .h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 94%; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: clamp(32px, 3.6vw, 48px); }
h3, .h3 { font-size: clamp(21px, 1.7vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
p { text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--blue-ink); color: var(--blue-ink); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-ghost { border-color: var(--field-line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: #0062c4; }
.btn-white:hover { background: #e4effc; }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: #dbe8f8; }
.btn[disabled] { opacity: .65; cursor: progress; }

.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--blue-ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .16s var(--ease); }
.text-link:hover { color: var(--blue-ink-hover); }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link.on-blue { color: #fff; text-decoration-color: rgba(255,255,255,.55); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(14,27,46,.4); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 36px; width: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; transition: color .16s var(--ease), background-color .16s var(--ease); }
.main-nav ul a:hover { color: var(--blue-ink); background: var(--tint-2); }
.main-nav ul a[aria-current="page"] { color: var(--blue-ink); box-shadow: inset 0 -2px 0 var(--coral); border-radius: 0; }
.nav-cta { min-height: 44px; padding: 10px 18px; }
.mobile-cta, .menu-btn { display: none; }
.menu-btn { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(36px, 4.5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(46px, 5.6vw, 80px); text-wrap: initial; }
.hl { position: relative; color: var(--blue); white-space: nowrap; display: inline-block; }
.smile { fill: none; stroke: var(--coral); stroke-linecap: round; stroke-width: 7; overflow: visible; }
.hero-smile { position: absolute; left: 4%; right: 10%; bottom: -0.22em; width: 86%; height: .28em; }
.hero .lead { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.creds { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font-size: 15px; font-weight: 500; color: var(--ink); }
.creds li { display: inline-flex; align-items: center; gap: 8px; }
.creds .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.25; }

/* picker */
.picker { background: var(--tint); border-radius: var(--r-lg); padding: clamp(20px, 2.2vw, 28px); }
.picker-title { font-size: 26px; letter-spacing: -0.02em; }
.picker-sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.chip { border: 1.5px solid var(--chip-line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 13px; min-height: 38px; font-size: 14.5px; white-space: nowrap; font-weight: 500; cursor: pointer; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.chip:hover { border-color: var(--blue-ink); }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.doc { background: var(--surface); border-radius: var(--r-md); padding: 18px 22px 16px; box-shadow: var(--shadow-doc); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.doc.is-swapping { opacity: 0; transform: translateY(8px); }
.doc-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.doc-meta span:last-child { color: var(--blue-ink); font-weight: 600; }
.doc-intro { font-size: 16px; margin-top: 14px; line-height: 1.55; }
.doc-label { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.doc-list { margin-top: 6px; }
.doc-list li { display: flex; gap: 10px; padding: 6px 0; font-size: 15.5px; border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.doc-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--coral); stroke-width: 2.5; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 14px; }

/* ---------- bands & sections ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--tint-2); }
.section-flush-top { padding-top: 0; }
.band { padding: var(--section) 0; }
.band-blue { background: var(--blue-field); color: #fff; }
.band-navy { background: var(--navy); color: #fff; }
.on-dark { color: var(--on-navy); }
.sky { color: var(--sky); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 18px; }
.section-head.on-blue p { color: #fff; }

.statement { padding: clamp(56px, 7vw, 88px) 0; }
.statement-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.statement-big { font-family: var(--font-display); font-weight: 700; font-stretch: 94%; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(34px, 4.4vw, 58px); text-wrap: balance; }
.statement-small { font-size: 19px; line-height: 1.55; max-width: 36ch; }

.proof { padding: clamp(40px, 5vw, 64px) 0; }
.proof-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); }
.proof-list li { display: flex; gap: 16px; align-items: flex-start; }
.proof-list .icon { width: 28px; height: 28px; margin-top: 4px; color: #fff; }
.proof-list strong { display: block; font-family: var(--font-display); font-weight: 700; font-stretch: 94%; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 6px; }
.proof-list li > span { font-size: 17px; line-height: 1.5; }
.proof-list [data-count] { font: inherit; font-variant-numeric: tabular-nums; }

/* split: lead + list */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-lead { position: sticky; top: calc(var(--header-h) + 32px); }
.split-lead p { color: var(--muted); font-size: 19px; margin: 20px 0 12px; max-width: 34ch; }

.service-rows { border-bottom: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; grid-template-areas: "icon title arrow" "icon text arrow"; column-gap: 20px; row-gap: 4px; align-items: center; padding: 22px 8px 22px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .2s var(--ease); }
.service-row:hover { background: linear-gradient(90deg, var(--tint-2), transparent 80%); }
.row-icon { grid-area: icon; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--blue-ink); display: grid; place-items: center; align-self: start; margin-top: 2px; }
.row-title { grid-area: title; font-family: var(--font-display); font-weight: 650; font-stretch: 94%; font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; transition: color .16s var(--ease); }
.row-text { grid-area: text; color: var(--muted); font-size: 16px; }
.row-arrow { grid-area: arrow; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--blue-ink); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease); }
.service-row:hover .row-title { color: var(--blue-ink); }
.service-row:hover .row-arrow { background: var(--btn); border-color: var(--btn); color: #fff; transform: rotate(45deg); }

/* software band + demo */
.software-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.software-grid h2 { margin-bottom: 22px; }
.software-grid > div:first-child p { font-size: 18px; max-width: 42ch; margin-bottom: 16px; }
.software-grid .btn { margin-top: 16px; }
.demo { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.demo-brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.demo-brand .icon { color: var(--blue-ink); }
.demo-badge { white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--tint-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.demo-tabs { display: flex; gap: 4px; margin: 18px 22px 0; padding: 4px; background: var(--tint); border-radius: 12px; }
.tab-short { display: none; }
.demo-tabs button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; transition: background-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease); }
.demo-tabs button:hover { color: var(--ink); }
.demo-tabs button[aria-selected="true"] { background: var(--surface); color: var(--blue-ink); box-shadow: 0 1px 2px rgba(14,27,46,.08), 0 4px 12px -6px rgba(14,27,46,.25); }
.demo-panel { padding: 22px 22px 20px; transition: opacity .18s var(--ease); }
.demo-panel.is-swapping { opacity: 0; }
.demo-item { font-size: 24px; }
.demo-desc { color: var(--muted); margin-top: 6px; font-size: 16px; }
.tasks { margin-top: 16px; display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.task:hover { border-color: var(--chip-line); }
.task input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.task .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid var(--field-line); display: grid; place-items: center; color: #fff; transition: background-color .16s var(--ease), border-color .16s var(--ease); }
.task .box .icon { width: 16px; height: 16px; stroke-width: 3; opacity: 0; transform: scale(.6); transition: opacity .16s var(--ease), transform .2s var(--ease); }
.task input:checked + .box { background: var(--btn); border-color: var(--btn); }
.task input:checked + .box .icon { opacity: 1; transform: none; }
.task input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(82,91,107,.5); }
.task:has(input:checked) { background: var(--tint-2); }
.task input:focus-visible + .box { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.demo-status { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; margin-top: 16px; }
.progress { grid-column: 1 / -1; height: 6px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.progress span { width: 25%; display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .35s var(--ease); }
.demo-status p { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.demo-status p .icon { color: var(--success); }
.demo-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--blue-ink); font-weight: 600; font-size: 15px; border-radius: 8px; cursor: pointer; }
.demo-reset:hover { background: var(--tint); }
.demo-reset .icon { width: 16px; height: 16px; }
.demo-owner { grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.demo-owner span { font-size: 13.5px; line-height: 1.4; background: var(--tint-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; color: var(--ink); font-weight: 500; }
.demo-owner .icon { width: 14px; height: 14px; }

/* route (process on a drawn line) */
.route { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 32px; position: relative; margin-bottom: 32px; }
.route-3 { --n: 3; }
.route-4 { --n: 4; }
.route::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--chip-line) 0 8px, transparent 8px 14px); }
.route li { position: relative; }
.route-node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); color: var(--blue-ink); }
.section-tint .route-node { background: var(--tint-2); }
.route-node .icon { width: 24px; height: 24px; }
.route h3 { margin-top: 22px; font-size: clamp(24px, 2.2vw, 30px); }
.route p { color: var(--muted); margin-top: 10px; max-width: 32ch; }
.route-num, .next-steps .route-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--blue-ink); }
.note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--muted); }
.note .icon { color: var(--blue-ink); margin-top: 3px; }

/* buyers */
.buyer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.buyer-grid > div > p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 46ch; }
.cap-card { display: grid; gap: 10px; padding: 32px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-doc); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); border-top: 6px solid var(--blue); }
.cap-card:hover { transform: translateY(-4px); }
.cap-card img { width: 120px; margin-bottom: 18px; }
.cap-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.cap-text { color: var(--muted); }
.cap-foot { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); font-weight: 600; color: var(--blue-ink); }
.checklist { margin-top: 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: center; font-size: 17px; }
.uc-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--blue-ink); display: grid; place-items: center; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.faq-lead p { color: var(--muted); font-size: 18px; margin: 18px 0 26px; max-width: 36ch; }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 19px; line-height: 1.35; transition: color .16s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-ink); }
.faq-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue-ink); display: grid; place-items: center; transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.faq details[open] .faq-toggle { transform: rotate(45deg); background: var(--btn); color: #fff; }
.faq-a { padding: 0 56px 22px 0; color: var(--muted); font-size: 17px; max-width: 64ch; }
.section-tint .faq-toggle { background: var(--surface); }

/* cta band */
.cta-band { background: var(--blue-field); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.cta-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; }
.cta-mark { width: 88px; height: auto; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 46px); }
.cta-band p { font-size: 18px; margin-top: 12px; max-width: 52ch; }

/* footer */
.site-footer { background: var(--navy); color: #fff; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1.1fr .9fr 1.15fr; gap: 40px; }
.footer-brand .logo img { height: 34px; }
.footer-brand p { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.footer-brand p.muted, .site-footer .muted { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--on-navy); letter-spacing: 0; }
.footer-h { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 10px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-navy); text-decoration: none; font-size: 15px; transition: color .16s var(--ease); }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--coral); }
.footer-cta .btn { margin-top: 18px; }
.footer-cta .muted { margin-top: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-2); font-size: 14px; color: var(--on-navy); }

/* ---------- inner pages ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--field-line); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.page-hero { padding: 28px 0 clamp(56px, 7vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 88px); align-items: start; margin-top: clamp(28px, 4vw, 56px); }
.page-hero h1 { font-size: clamp(42px, 5.4vw, 72px); }
.page-hero .creds { margin-top: 32px; }
.page-hero .actions { margin-top: 28px; }
.detail-title { display: grid; gap: 22px; }
.detail-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--blue-field); color: #fff; display: grid; place-items: center; }
.detail-icon .icon { width: 30px; height: 30px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.detail-cols h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 18px; }
.detail-cols .small { margin: -6px 0 14px; font-size: 15.5px; }
.ticks { display: grid; gap: 4px; }
.ticks li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks .icon { color: var(--blue-ink); margin-top: 3px; }
.scope-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--tint); border-radius: var(--r-lg); padding: 30px; }
.scope-card h2 { font-size: 28px; }
.scope-card p { margin-top: 14px; color: var(--muted); }
.scope-card .scope-who { color: var(--ink); }
.scope-card .btn { margin-top: 22px; width: 100%; }
.mini-rows { display: grid; grid-template-columns: 1fr; margin-top: 20px; border-bottom: 1px solid var(--line); max-width: 760px; }
.mini-rows a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .16s var(--ease), color .16s var(--ease); }
.mini-rows a .icon:first-child { color: var(--blue-ink); }
.mini-rows a .arrow { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease), color .16s var(--ease); }
.mini-rows a:hover { color: var(--blue-ink); }
.mini-rows a:hover .arrow { transform: rotate(45deg); color: var(--blue-ink); }

.engage-rows { border-bottom: 1px solid rgba(255,255,255,.3); }
.engage-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) 230px; gap: 12px 40px; align-items: center; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; }
.engage-row h3 { font-size: clamp(24px, 2.4vw, 30px); }
.engage-row p { font-size: 17px; max-width: 48ch; }
.engage-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-decoration-thickness: 2px; text-underline-offset: 6px; white-space: nowrap; }
.engage-cta .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.engage-row:hover .engage-cta .icon { transform: translateX(4px); }
.engage-row:hover h3 { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.3); }
.engage-item { padding: 32px 32px 8px 0; display: flex; flex-direction: column; align-items: flex-start; }
.engage-item + .engage-item { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.3); }
.engage-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; margin-bottom: 22px; }
.engage-item h3 { font-size: 26px; }
.engage-item p { margin: 10px 0 12px; font-size: 17px; }

.cross { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; background: var(--tint-2); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); }
.cross h2 { font-size: clamp(26px, 2.6vw, 34px); }
.cross p { color: var(--muted); margin-top: 10px; }

.usecases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.usecases li { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.usecases h3 { font-size: 22px; }
.usecases p { color: var(--muted); margin-top: 6px; }

.about-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-mark { width: 220px; }
.about-grid h2 { margin-bottom: 20px; }
.about-qs { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 20px; max-width: 30ch; }
.about-grid p:not(.about-qs) { font-size: 18px; max-width: 60ch; margin-top: 12px; }
.principles { border-bottom: 1px solid var(--line); }
.principles > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px clamp(32px, 6vw, 88px); align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.principles dt { font-family: var(--font-display); font-weight: 700; font-stretch: 94%; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; }
.principles dd { color: var(--muted); font-size: 18px; margin: 0; max-width: 46ch; }

/* contact */
.contact { padding: 28px 0 var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact-lead h1 { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(42px, 5vw, 64px); }
.contact-lead .lead { margin-top: 20px; }
.next-steps { margin-top: 36px; display: grid; gap: 18px; }
.next-steps li { display: flex; gap: 16px; align-items: flex-start; }
.next-steps .route-num { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue); display: grid; place-items: center; font-size: 17px; }
.next-steps strong { display: block; }
.next-steps div { color: var(--muted); padding-top: 6px; }
.next-steps div strong { color: var(--ink); }
.caution { display: flex; gap: 12px; margin-top: 32px; padding: 16px 18px; background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--muted); font-size: 15.5px; }
.caution .icon { color: var(--blue-ink); margin-top: 2px; }
.brief-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-soft); margin-top: 8px; }
.brief-form h2 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; position: relative; }
.span-2 { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 15.5px; margin-bottom: 8px; }
.req, .opt { font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-sm); background: var(--surface); font-size: 16.5px; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.field textarea { min-height: 156px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb0c6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(0, 98, 196, .16); }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.err { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--error); margin-top: 8px; font-weight: 500; }
.err .icon { width: 17px; height: 17px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .hint { display: none; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.form-actions [data-submit] .icon { width: 18px; height: 18px; }
.btn.is-loading .icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); font-weight: 500; }
.form-status .icon { margin-top: 2px; }
.form-status.is-success { background: var(--success-bg); color: var(--success); }
.form-status.is-error { background: var(--error-bg); color: var(--error); }
.form-status.is-info { background: var(--tint-2); color: var(--ink); }
.form-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.sent { text-align: left; padding-top: clamp(56px, 8vw, 112px); }
.sent .lead { margin-top: 20px; }
.nf-smile { width: 160px; height: 36px; margin-bottom: 28px; stroke-width: 9; }

/* prose */
.prose-hero { padding-bottom: 40px; }
.prose-hero h1 { margin-top: 32px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; color: var(--ink); margin-top: 12px; }
.prose p.muted { color: var(--muted); margin-top: 40px; }

/* capability sheet */
.capability { padding: 24px 0 var(--section); background: var(--tint-2); }
.cap-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.sheet { color-scheme: light; --ink: #20242c; --muted: #525b6b; --line: #e3e9f2; --blue-ink: #0062c4; color: var(--ink); background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: clamp(28px, 5vw, 64px); max-width: 920px; border-top: 8px solid var(--blue); }
.sheet-head { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.sheet-head img { width: 150px; }
.sheet h1 { font-size: clamp(32px, 4vw, 48px); }
.sheet-head p { margin-top: 10px; color: var(--muted); }
.sheet-creds { font-family: var(--font-mono); font-size: 14px; color: var(--blue-ink) !important; }
.sheet h2 { font-size: 22px; margin: 32px 0 14px; }
.sheet-services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.sheet-services div { padding: 12px 0; border-top: 1px solid var(--line); }
.sheet-services dt { font-weight: 600; }
.sheet-services dd { color: var(--muted); font-size: 15.5px; }
.sheet-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.sheet-two p { color: var(--muted); }
.sheet-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul a { padding: 0 8px; font-size: 15.5px; }
  .main-nav { gap: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .scope-card { position: static; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .logo img { height: 32px; }
  .mobile-cta { display: inline-flex; margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(14,27,46,.35); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; }
  .main-nav.is-open { display: flex; position: fixed; top: var(--header-h); bottom: 0; overflow-y: auto; box-shadow: none; border-bottom: 0; }
  .site-header:has(.main-nav.is-open) .mobile-cta { visibility: hidden; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: flex; width: 100%; min-height: 56px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; }
  .main-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--coral); padding-left: 14px; }
  .nav-cta { min-height: 52px; }
  .hero-grid, .software-grid, .buyer-grid, .faq-grid, .split, .page-hero-grid, .contact-grid, .statement-grid { grid-template-columns: minmax(0, 1fr); }
  .split-lead { position: static; }
  .page-hero-grid { align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: auto 1fr; }
  .cta-grid .btn { grid-column: 1 / -1; justify-self: start; }
  .route-4 { --n: 2; row-gap: 40px; }
  .route-4::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-mark { width: 140px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .creds { gap: 10px 18px; margin-top: 32px; }
  .hero .creds { display: none; }
  .hero .lead { margin-top: 20px; }
  .hero .actions { margin-top: 26px; }
  .route, .route-4 { grid-template-columns: 1fr; gap: 28px; }
  .route::before { display: block; left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--chip-line) 0 8px, transparent 8px 14px); }
  .route li { padding-left: 76px; min-height: 56px; }
  .route-node { position: absolute; left: 0; top: 0; }
  .route h3 { margin-top: 10px; }
  .service-row { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "icon title" "icon text"; column-gap: 16px; padding-right: 0; }
  .row-icon { width: 44px; height: 44px; }
  .row-arrow { display: none; }
  .detail-cols, .usecases, .principles, .sheet-services, .sheet-two, .form-grid { grid-template-columns: 1fr; }
  .principles > div { grid-template-columns: 1fr; }
  .proof-list { grid-template-columns: 1fr; }
  .engage-row { grid-template-columns: 1fr; }
  .engage-cta { justify-self: start; }
  .engage { grid-template-columns: 1fr; }
  .engage-item, .engage-item + .engage-item { padding: 28px 0 8px; border-left: 0; }
  .engage-item + .engage-item { border-top: 1px solid rgba(255,255,255,.3); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer ul a { min-height: 44px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-mark { width: 64px; }
  .faq-a { padding-right: 0; }
  .faq summary { font-size: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(-1 * clamp(22px, 2.6vw, 32px)); padding: 2px clamp(22px, 2.6vw, 32px) 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
  .crumbs a { min-height: 44px; }
  .demo-badge { display: none; }
  .demo-tabs { margin: 14px 14px 0; }
  .demo-tabs button { font-size: 14px; padding: 0 6px; }
  .demo-panel { padding: 18px 16px; }
  .demo-top { padding: 14px 16px; }
  .sheet-head { grid-template-columns: 1fr; gap: 20px; }
  .mini-rows { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .actions .btn { width: 100%; }
  .actions .text-link { margin-inline: auto; }
  .btn-sm.mobile-cta { padding: 8px 12px; font-size: 14.5px; min-height: 44px; }
}

@media (max-width: 480px) {
  .tab-long { display: none; }
  .tab-short { display: inline; }
}

@media (max-width: 380px) {
  .mobile-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .cap-tools, .skip { display: none !important; }
  .capability { background: #fff; padding: 0; }
  .sheet { box-shadow: none; padding: 0; max-width: none; border-top: 0; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 16mm; }
}

/* =====================================================================
   Dark theme — same world at night: navy ground, the logo blue lifts,
   coral stays the smile. Tokens are redefined twice (system + toggle).
   ===================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1422; --surface: #0f1d31; --header-bg: rgba(10, 20, 34, .88);
    --tint: #11233a; --tint-2: #0d1a2c; --chip-line: #2c4566;
    --ink: #e7edf5; --muted: #a2b0c3; --line: #22344d; --field-line: #3a5070;
    --blue: #3d9bff; --blue-field: #0058b0; --blue-ink: #6cb4ff; --blue-ink-hover: #9acbff;
    --btn: #1c6fd6; --btn-hover: #1563c4;
    --navy: #050c17; --navy-2: #13213a;
    --error: #ff8a7a; --error-bg: #2b1515; --success: #5bd6a0; --success-bg: #0d2a20;
    --selection: #1c3a63;
    --shadow-doc: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -24px rgba(0,0,0,.7);
    --shadow-soft: 0 1px 2px rgba(0,0,0,.35), 0 16px 36px -20px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1422; --surface: #0f1d31; --header-bg: rgba(10, 20, 34, .88);
  --tint: #11233a; --tint-2: #0d1a2c; --chip-line: #2c4566;
  --ink: #e7edf5; --muted: #a2b0c3; --line: #22344d; --field-line: #3a5070;
  --blue: #3d9bff; --blue-field: #0058b0; --blue-ink: #6cb4ff; --blue-ink-hover: #9acbff;
  --btn: #1c6fd6; --btn-hover: #1563c4;
  --navy: #050c17; --navy-2: #13213a;
  --error: #ff8a7a; --error-bg: #2b1515; --success: #5bd6a0; --success-bg: #0d2a20;
  --selection: #1c3a63;
  --shadow-doc: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -24px rgba(0,0,0,.7);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.35), 0 16px 36px -20px rgba(0,0,0,.6);
}

/* logo / image pairs per theme (.on-dark is a text colour; these are visibility switches) */
.theme-dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-light-only { display: none; }
  :root:not([data-theme="light"]) .theme-dark-only { display: block; }
}
:root[data-theme="dark"] .theme-light-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: block; }
.site-header { -webkit-backdrop-filter: none; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
.site-header { background: transparent; }
.demo { border: 1px solid var(--line); }
.band-navy .demo { border-color: transparent; }
.sheet .theme-dark-only { display: none !important; }
.sheet .theme-light-only { display: block !important; }

/* theme toggle */
.theme-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease), transform .3s var(--ease); }
.theme-btn:hover { border-color: var(--blue-ink); color: var(--blue-ink); }
.theme-btn .icon { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .45s var(--ease), opacity .25s var(--ease); }
.theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
}
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.header-row .theme-btn { order: 3; }
.main-nav { order: 2; }
@media (min-width: 981px) { .header-row .theme-btn { margin-left: -8px; } }
/* Mobile: logo on the left; brief button, theme and menu grouped on the right. */
@media (max-width: 980px) {
  .header-row { gap: 10px; }
  .header-row .logo { margin-right: auto; }
  .mobile-cta, .theme-btn, .menu-btn { margin-left: 0; }
  .mobile-cta { order: 2; margin-right: 4px; }
  .header-row .theme-btn { order: 3; width: 48px; height: 48px; }
  .menu-btn { order: 4; }
}

/* mobile menu: lock the page on <html> (body locking breaks the sticky header) */
html.is-locked { overflow: hidden; }
@media (max-width: 980px) {
  .main-nav { background: var(--bg); }
  .main-nav.is-open { animation: sheet-in .32s var(--ease) both; }
  .main-nav.is-open ul li { animation: rise-in .4s var(--ease) both; }
  .main-nav.is-open ul li:nth-child(2) { animation-delay: .04s; }
  .main-nav.is-open ul li:nth-child(3) { animation-delay: .08s; }
  .main-nav.is-open ul li:nth-child(4) { animation-delay: .12s; }
  .main-nav.is-open ul li:nth-child(5) { animation-delay: .16s; }
  .main-nav.is-open .nav-cta { animation: rise-in .4s .2s var(--ease) both; }
}

/* the HRjoy mark (ring + smile) */
.mark { overflow: visible; }
.mark-ring { fill: none; stroke: currentColor; stroke-width: 11; }
.mark-smile { fill: none; stroke: var(--coral); stroke-width: 10; stroke-linecap: round; }
.cta-mark { width: 92px; height: 92px; color: #fff; }
.about-mark { width: 220px; height: 220px; color: #fff; }

/* ---------- small additions ---------- */
.helpful { margin-top: 36px; }
.helpful-h { font-weight: 600; margin-bottom: 4px; }
.prose-list { margin-top: 12px; display: grid; gap: 10px; }
.prose-list li { position: relative; padding-left: 22px; max-width: 66ch; }
.prose-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.prose a { font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.prose-hero .lead { margin-top: 18px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { color: var(--on-navy); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-legal a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--coral); }
.footer-base { align-items: center; }
.section-title { margin-bottom: 28px; }

/* ---------- agents page ---------- */
.connect-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.connect-lead { position: sticky; top: calc(var(--header-h) + 32px); }
.connect-lead p { font-size: 18px; margin: 16px 0 14px; }
.connect-steps h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin: 34px 0 12px; }
.connect-steps h3:first-child { margin-top: 0; }
.connect-steps h3 .icon { width: 22px; height: 22px; color: var(--sky); }
.connect-steps p { margin-bottom: 4px; }
.code { border-radius: var(--r-md); background: #0a1322; border: 1px solid #22344d; overflow: hidden; color: #e7edf5; }
.band-navy .code { background: #0b1729; border-color: #1f3150; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-bottom: 1px solid #1f3150; font-size: 13px; color: #a2b0c3; font-family: var(--font-mono); }
.code-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid #2c4566; background: transparent; color: #e7edf5; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.code-copy:hover { background: #13253d; }
.code-copy .icon { width: 15px; height: 15px; }
.code-copy.is-done { border-color: #5bd6a0; color: #5bd6a0; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; tab-size: 2; }
.code pre:focus-visible { outline-offset: -3px; }
.tools-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.side-note { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 32ch; }
.defs { border-bottom: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 6px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.defs dt code, .defs dt a { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--blue-ink); }
.defs dt a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 5px; }
.defs dd { color: var(--muted); }
.example-h { font-weight: 600; margin: 32px 0 12px; }
@media (max-width: 980px) { .connect-grid, .tools-grid { grid-template-columns: minmax(0, 1fr); } .connect-lead { position: static; } }
@media (max-width: 720px) { .defs > div { grid-template-columns: 1fr; } .code pre { font-size: 13px; } }

/* =====================================================================
   Motion — one grammar: things rise into place on an exponential
   ease-out; the smile draws itself. Content is always visible without
   JS and without animation support; reduced motion turns it all off.
   ===================================================================== */
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes sheet-in { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { scale: .6; opacity: 0; } 70% { scale: 1.08; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes reveal { from { opacity: .12; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wink { 0%, 100% { scale: 1 1; } 50% { scale: 1 .82; } }

@media (prefers-reduced-motion: no-preference) {
  /* page-to-page: the header stays, the page underneath cross-fades */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: .18s var(--ease) both vt-out; }
  ::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

  /* hero entrance */
  .hero-title .w { display: inline-block; animation: rise-in .55s var(--ease) both; }
  .hero-title .w:nth-child(2) { animation-delay: .03s; }
  .hero-title .w:nth-child(3) { animation-delay: .06s; }
  .hero-title .w:nth-child(4) { animation-delay: .09s; }
  .hero-title .w:nth-child(5) { animation-delay: .12s; }
  .smile path { stroke-dasharray: 1; }
  .hero-smile path { animation: draw .5s .4s cubic-bezier(.65, 0, .35, 1) both; }
  .hero .lead { animation: rise-in .5s .15s var(--ease) both; }
  .hero .actions { animation: rise-in .5s .2s var(--ease) both; }
  .hero .creds li { animation: rise-in .45s var(--ease) both; }
  .hero .creds li:nth-child(1) { animation-delay: .25s; }
  .hero .creds li:nth-child(2) { animation-delay: .28s; }
  .hero .creds li:nth-child(3) { animation-delay: .31s; }
  .hero .picker { animation: rise-in .6s .1s var(--ease) both; }
  .page-hero h1, .contact-lead h1 { animation: rise-in .7s var(--ease) both; }
  .page-hero .lead, .page-hero .actions, .page-hero .creds, .contact-lead .lead { animation: rise-in .7s .12s var(--ease) both; }
  .detail-icon { animation: pop .6s .1s var(--ease) both; }
  .nf-smile path { animation: draw .9s .2s cubic-bezier(.65, 0, .35, 1) both; }

  /* picker: the new brief's lines arrive one by one */
  .doc.is-fresh .doc-list li { animation: rise-in .45s var(--ease) both; }
  .doc.is-fresh .doc-list li:nth-child(2) { animation-delay: .06s; }
  .doc.is-fresh .doc-list li:nth-child(3) { animation-delay: .12s; }
  .doc.is-fresh .doc-list li:nth-child(4) { animation-delay: .18s; }
  .doc.is-fresh .doc-meta span:last-child { animation: rise-in .4s var(--ease) both; }
  .chip:active, .btn:active { transform: scale(.97); }

  /* demo: ticks draw, rows settle */
  .task .box .icon path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s .05s var(--ease); }
  .task input:checked + .box .icon path { stroke-dashoffset: 0; }
  .task input:checked + .box { animation: pop .35s var(--ease); }
  .demo-panel.is-fresh .tasks li { animation: rise-in .4s var(--ease) both; }
  .demo-panel.is-fresh .tasks li:nth-child(2) { animation-delay: .05s; }
  .demo-panel.is-fresh .tasks li:nth-child(3) { animation-delay: .1s; }
  .demo-panel.is-fresh .tasks li:nth-child(4) { animation-delay: .15s; }
  .demo-status p .icon { animation: pop .45s var(--ease) both; }

  /* FAQ opens smoothly where the browser can animate to height:auto */
  .faq details::details-content { height: 0; overflow: clip; transition: height .32s var(--ease), content-visibility .32s allow-discrete; }
  .faq details[open]::details-content { height: auto; }

  /* marks: the smile draws, the ring settles */
  .mark .mark-smile { stroke-dasharray: 1; }

  /* scroll-linked reveals, only where the browser runs them on the compositor */
  @supports (animation-timeline: view()) {
    .section-head, .split-lead, .faq-lead, .buyer-grid > div:first-child, .software-grid > div:first-child,
    .service-rows li, .route li, .usecases li, .proof-list li, .engage-rows li, .principles > div,
    .faq details, .cap-card, .demo, .checklist li, .ticks li, .scope-card, .mini-rows li,
    .cross, .about-grid > div, .connect-steps > *, .sheet, .statement-grid > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .route::before { transform-origin: left center; animation: grow-x linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .route-node { animation: pop linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .proof-list .icon, .row-icon, .uc-icon, .engage-icon { animation: pop linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .cta-band .mark-smile, .about-mark .mark-smile { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }
    .cta-band .mark-ring, .about-mark .mark-ring { transform-box: fill-box; transform-origin: center; animation: pop linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .cta-band h2, .cta-band p, .cta-band .btn { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  @media (max-width: 720px) {
    @supports (animation-timeline: view()) {
      .route::before { transform-origin: center top; animation-name: grow-y; }
    }
  }

  /* gentle hover life */
  .cap-card:hover { box-shadow: 0 1px 2px rgba(14,27,46,.06), 0 30px 60px -26px rgba(0, 72, 150, .45); }
  .cap-card:hover .cap-foot .icon { animation: wink .5s var(--ease); }
  .service-row:hover .row-icon { background: var(--btn); color: #fff; rotate: -6deg; }
  .row-icon { transition: background-color .25s var(--ease), color .25s var(--ease), rotate .35s var(--ease); }
  .cta-band:hover .mark-smile { animation: none; }
  .logo:hover img { animation: wink .5s var(--ease); transform-origin: 50% 80%; }
}

/* theme switch: let the circular reveal own the frame */
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
.theme-switching::view-transition-old(root) { animation: none; }
.theme-switching::view-transition-new(root) { animation: none; }
.theme-switching .site-header { view-transition-name: none; }

/* touch targets ≥ 44px on phones */
.logo { min-height: 44px; align-items: center; }
.defs dt a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 720px) {
  .chip { min-height: 44px; padding: 9px 15px; }
  .code-copy { min-height: 44px; }
  .defs > div { padding: 8px 0 14px; gap: 0; }
}

/* contact: links sit under the intro on desktop, after the form on phones */
@media (min-width: 981px) {
  .contact-grid { grid-template-rows: auto 1fr; }
  .contact-grid > .brief-form { grid-column: 2; grid-row: 1 / span 2; }
  .contact-grid > .helpful { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }
}

/* menu open: the header becomes solid so nothing shows through */
.site-header:has(.main-nav.is-open)::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* dark: the software band is a lifted field, and the demo keeps its edge */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-navy { background: #0d1a2c; }
  :root:not([data-theme="light"]) .band-navy .demo { border-color: var(--chip-line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.85); }
}
:root[data-theme="dark"] .band-navy { background: #0d1a2c; }
:root[data-theme="dark"] .band-navy .demo { border-color: var(--chip-line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.85); }

.form-note { margin-top: 12px; }
.agents-hero .hl { color: inherit; }

/* header: near-solid ground so nothing reads through it (blur kept as a subtle finish) */
.site-header { background: var(--header-bg); }
.site-header::before { background: transparent; }
:root { --header-bg: rgba(255, 255, 255, .97); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --header-bg: rgba(10, 20, 34, .97); } }
:root[data-theme="dark"] { --header-bg: rgba(10, 20, 34, .97); }
.form-status .status-btn { display: flex; width: fit-content; margin-top: 12px; color: #fff; }

/* =====================================================================
   Answers and HR news
   ===================================================================== */
.answer-search { position: relative; margin-top: 28px; max-width: 560px; }
.answer-search .icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.answer-search input { width: 100%; min-height: 56px; padding: 14px 16px 14px 48px; border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--surface); font-size: 17px; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.answer-search input:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(0, 98, 196, .16); }
.search-status { min-height: 24px; margin-top: 10px; color: var(--muted); font-size: 15px; }
.answers-cat { padding: clamp(48px, 6vw, 80px) 0; }
.answers-cat + .answers-cat { border-top: 1px solid var(--line); }
.answer-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "title arrow" "text arrow"; padding-left: 0; }
.answer-row .row-title { font-size: clamp(19px, 1.7vw, 22px); }
.answer-row .row-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.answer-rows.compact .answer-row { padding: 16px 0; }
[data-answer-group][hidden], .answer-rows li[hidden] { display: none; }

.dates-doc { align-self: end; }
.date-list { margin-top: 6px; }
.date-list li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.date-list li:first-child { border-top: 0; }
.date-list time { font-family: var(--font-mono); font-size: 13.5px; color: var(--blue-ink); font-weight: 600; padding-top: 2px; }
.date-list a { font-weight: 600; white-space: nowrap; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.doc-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }

.answer-hero { padding-bottom: clamp(32px, 4vw, 48px); }
.answer-head { margin-top: clamp(24px, 3vw, 40px); max-width: 900px; }
.answer-head h1 { font-size: clamp(36px, 4.6vw, 60px); }
.answer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 15px; margin-top: 14px; }
.news-post .answer-meta { margin: 0 0 14px; }
.answer-meta .icon { width: 17px; height: 17px; color: var(--blue-ink); }
.short-answer { margin-top: 28px; max-width: 900px; }
.short-answer-text { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin-top: 12px; }
.answer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 5vw, 72px); align-items: start; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.answer-body h2 { font-size: clamp(24px, 2.2vw, 30px); }
.answer-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.answer-aside .scope-card { position: static; }
.answer-aside .scope-card .text-link { margin-top: 6px; }
.law-ref { margin: 16px 0 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--tint-2); border: 1px solid var(--line); }
.law-ref blockquote { margin: 0; font-size: 17px; }
.law-ref figcaption { margin-top: 8px; font-size: 14.5px; }
.law-ref figcaption a { font-weight: 600; }
.sources { display: grid; gap: 10px; margin-top: 12px; }
.sources li { display: flex; gap: 12px; align-items: flex-start; }
.sources .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--blue-ink); }
.sources a { font-weight: 600; }
.prose .note { margin-top: 32px; }
.by { white-space: nowrap; color: var(--ink); }

.news-list { border-bottom: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 10em minmax(0, 1fr); grid-template-areas: "date title" "date text" "date chips"; gap: 6px 28px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-row time { grid-area: date; font-family: var(--font-mono); font-size: 13.5px; color: var(--blue-ink); font-weight: 600; padding-top: 5px; }
.news-row .row-title { grid-area: title; font-family: var(--font-display); font-weight: 650; font-stretch: 94%; font-size: clamp(20px, 1.9vw, 24px); letter-spacing: -0.02em; line-height: 1.2; transition: color .16s var(--ease); }
.news-row .row-text { grid-area: text; color: var(--muted); }
.news-row .chips-static { grid-area: chips; }
.news-row:hover .row-title { color: var(--blue-ink); }
.news-list.compact .news-row { grid-template-columns: 1fr; grid-template-areas: "date" "title" "text"; padding: 18px 0; gap: 4px; }
.news-list.compact .chips-static { display: none; }
.chips-static { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-static span { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); border: 1px solid var(--chip-line); }
.empty { padding: 48px 0 24px; max-width: 640px; }
.empty h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.empty p { color: var(--muted); }
.empty a { font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

.latest-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.latest-grid .dates-doc { position: sticky; top: calc(var(--header-h) + 24px); }
.latest-h { font-size: 20px; margin: 0 0 8px; }
.latest-h ~ .latest-h { margin-top: 40px; }
.latest .text-link { margin-top: 10px; }

@media (max-width: 980px) {
  .answer-grid, .latest-grid { grid-template-columns: minmax(0, 1fr); }
  .answer-aside, .latest-grid .dates-doc { position: static; }
}
@media (max-width: 720px) {
  .news-row { grid-template-columns: 1fr; grid-template-areas: "date" "title" "text" "chips"; gap: 6px; }
  .date-list li { grid-template-columns: 1fr; }
  .answer-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "text"; }
  .answer-row .row-arrow { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .news-list li, .answer-rows li, .law-ref, .sources li, .date-list li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}

/* comparisons */
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 20px; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; background: var(--tint-2); font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.cmp tbody th { font-weight: 600; width: 18%; color: var(--ink); }
.cmp td { color: var(--muted); }
.cmp .is-us { background: var(--tint); color: var(--ink); }
.cmp thead .is-us { color: var(--blue-ink); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.fit { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fit h2 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.fit-us { background: var(--tint); border-color: var(--chip-line); }
.fit-us .btn { margin-top: 20px; }
.prod-h { font-size: 22px; margin: 24px 0 6px; }
.prod-h:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .fit-grid { grid-template-columns: 1fr; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tbody tr { padding: 14px 18px; border-top: 1px solid var(--line); }
  .cmp tbody tr:first-child { border-top: 0; }
  .cmp tbody th { padding: 0 0 8px; border: 0; width: auto; font-family: var(--font-display); font-size: 18px; }
  .cmp td { padding: 8px 0; border: 0; }
  .cmp td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
  .cmp .is-us { background: transparent; border-left: 3px solid var(--coral); padding-left: 12px; }
}

/* ---------- tribunal tracker ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; align-self: start; }
.stat { background: var(--surface); padding: 18px 20px; }
.stat:first-child { grid-column: 1 / -1; }
.stat dt { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 650; font-stretch: 94%; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.stat dd span { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat .stat-hero { font-size: clamp(48px, 6vw, 68px); letter-spacing: -0.04em; }
.stat .stat-text { font-size: 20px; line-height: 1.2; }
.stat .stat-text span { display: block; margin-top: 4px; }

.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.chart { margin: 0; padding: clamp(18px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.chart figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.chart-title { font-family: var(--font-display); font-weight: 700; font-stretch: 94%; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.chart-sub { font-size: 14.5px; color: var(--muted); }
.chart-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.chart-note .icon { width: 18px; height: 18px; flex: none; color: var(--blue); }

/* columns: one series, so no legend; the latest and the peak carry direct labels */
.cols { padding-left: 40px; }
.cols-plot { position: relative; height: 220px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 2px; border-bottom: 1px solid var(--muted); }
.grid-line { position: absolute; left: -40px; right: 0; bottom: var(--p); height: 0; border-top: 1px solid var(--line); pointer-events: none; }
.grid-line.p0 { border-top: 0; }
.grid-line em { position: absolute; left: 0; bottom: 3px; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); line-height: 1; font-variant-numeric: tabular-nums; }
.col { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px; outline-offset: 2px; cursor: default; }
.col-fill { position: relative; display: block; width: min(24px, 80%); height: var(--p); background: color-mix(in srgb, var(--blue) 50%, var(--surface)); border-radius: 4px 4px 0 0; transition: background-color .16s var(--ease); }
.col.is-latest .col-fill, .col:hover .col-fill, .col:focus-visible .col-fill { background: var(--blue); }
.col-val { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cols-x { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; margin-top: 6px; }
.cols-x span { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.cols-x em { display: block; font-style: normal; }

/* bars */
.bars { display: grid; gap: 4px; }
.bars li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.2em 3em; gap: 12px; align-items: center; min-height: 34px; border-radius: 6px; outline-offset: 2px; }
.bar-label { font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.bar { display: block; height: 16px; }
.bar-fill { display: block; height: 100%; width: var(--p); min-width: 2px; background: var(--blue); border-radius: 0 4px 4px 0; }
.bars li:hover .bar-label, .bars li:focus-visible .bar-label { color: var(--blue-ink); }
.bar-val { font-weight: 600; font-size: 14.5px; text-align: right; font-variant-numeric: tabular-nums; }
.bar-delta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.data-table { margin-top: 20px; }
.data-table summary { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--blue-ink); }
.data-table summary .icon { width: 18px; height: 18px; }
.data-table .cmp-wrap { margin-top: 16px; }
.data-table .cmp td { font-variant-numeric: tabular-nums; }
.data-table .cmp tbody th { width: auto; }
.data-table .is-total th, .data-table .is-total td { font-weight: 700; background: var(--tint-2); }

/* decisions */
.decisions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.decision { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.decision-who { font-family: var(--font-display); font-weight: 650; font-stretch: 94%; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.decision-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.decision-meta time { color: var(--blue-ink); font-weight: 600; }
.decision-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.decision-link .icon { width: 16px; height: 16px; }
.trib-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; }
.tribunal-recent .note { margin-top: 20px; max-width: none; }

/* Tribunal watch */
.watch-list { display: grid; gap: 28px; max-width: 860px; }
.watch-item { padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); border-top: 4px solid var(--blue); }
.watch-item h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 6px 0 10px; }
.watch-item > p { margin-top: 14px; }
.watch-topic { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-ink); font-weight: 600; }
.lesson { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 8px; padding: 16px 18px; border-radius: var(--r-md); background: var(--tint); }
.lesson .icon { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

/* tooltip for chart marks (main.js) */
.tip { position: fixed; z-index: 80; pointer-events: none; max-width: 260px; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500; line-height: 1.35; box-shadow: var(--shadow-soft); opacity: 0; translate: 0 4px; transition: opacity .12s var(--ease), translate .12s var(--ease); }
.tip.is-on { opacity: 1; translate: 0 0; }

@media (max-width: 980px) {
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cols-plot { height: 190px; }
  .cols { padding-left: 34px; }
  .grid-line { left: -34px; }
  .cols-x span { font-size: 10px; }
  .bars li { grid-template-columns: minmax(0, 1fr) 3em 2.6em; grid-template-areas: "label val delta" "bar bar bar"; gap: 4px 10px; padding: 6px 0; }
  .bar-label { grid-area: label; } .bar { grid-area: bar; } .bar-val { grid-area: val; } .bar-delta { grid-area: delta; }
  .stat .stat-hero { font-size: 52px; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .col-fill { transform-origin: bottom; animation: grow-y linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .bar-fill { transform-origin: left; animation: grow-x linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .decision, .watch-item, .stat { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* percentage steps for chart marks (the CSP forbids inline styles) */
.p0{--p:0%} .p1{--p:1%} .p2{--p:2%} .p3{--p:3%} .p4{--p:4%} .p5{--p:5%} .p6{--p:6%} .p7{--p:7%} .p8{--p:8%} .p9{--p:9%} .p10{--p:10%} .p11{--p:11%} .p12{--p:12%} .p13{--p:13%} .p14{--p:14%} .p15{--p:15%} .p16{--p:16%} .p17{--p:17%} .p18{--p:18%} .p19{--p:19%} .p20{--p:20%} .p21{--p:21%} .p22{--p:22%} .p23{--p:23%} .p24{--p:24%} .p25{--p:25%} .p26{--p:26%} .p27{--p:27%} .p28{--p:28%} .p29{--p:29%} .p30{--p:30%} .p31{--p:31%} .p32{--p:32%} .p33{--p:33%} .p34{--p:34%} .p35{--p:35%} .p36{--p:36%} .p37{--p:37%} .p38{--p:38%} .p39{--p:39%} .p40{--p:40%} .p41{--p:41%} .p42{--p:42%} .p43{--p:43%} .p44{--p:44%} .p45{--p:45%} .p46{--p:46%} .p47{--p:47%} .p48{--p:48%} .p49{--p:49%} .p50{--p:50%} .p51{--p:51%} .p52{--p:52%} .p53{--p:53%} .p54{--p:54%} .p55{--p:55%} .p56{--p:56%} .p57{--p:57%} .p58{--p:58%} .p59{--p:59%} .p60{--p:60%} .p61{--p:61%} .p62{--p:62%} .p63{--p:63%} .p64{--p:64%} .p65{--p:65%} .p66{--p:66%} .p67{--p:67%} .p68{--p:68%} .p69{--p:69%} .p70{--p:70%} .p71{--p:71%} .p72{--p:72%} .p73{--p:73%} .p74{--p:74%} .p75{--p:75%} .p76{--p:76%} .p77{--p:77%} .p78{--p:78%} .p79{--p:79%} .p80{--p:80%} .p81{--p:81%} .p82{--p:82%} .p83{--p:83%} .p84{--p:84%} .p85{--p:85%} .p86{--p:86%} .p87{--p:87%} .p88{--p:88%} .p89{--p:89%} .p90{--p:90%} .p91{--p:91%} .p92{--p:92%} .p93{--p:93%} .p94{--p:94%} .p95{--p:95%} .p96{--p:96%} .p97{--p:97%} .p98{--p:98%} .p99{--p:99%} .p100{--p:100%}
.prose h3 { margin-top: 28px; }
.prose h3:first-child { margin-top: 0; }

/* ---------- HR software we work with ---------- */
.partner-doc .partner-summary { margin: 12px 0 4px; font-weight: 600; color: var(--ink); }
.partner-doc .ticks li { font-size: 15.5px; }
.together td.is-us { font-weight: 500; }
.partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-bottom: 28px; }
.partner-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .16s var(--ease), translate .2s var(--ease), box-shadow .2s var(--ease); }
.partner-card:hover { border-color: var(--blue-ink); translate: 0 -2px; box-shadow: var(--shadow-soft); }
.partner-name { font-family: var(--font-display); font-weight: 700; font-stretch: 94%; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.partner-card .row-text { color: var(--muted); }
.partner-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-ink); }
.partner-more .icon { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.partner-card:hover .partner-more .icon { translate: 4px 0; }

.stat-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat-row .stat:first-child { grid-column: auto; }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-bottom: 28px; counter-reset: none; }
.steps-row li { padding: 24px; border-radius: var(--r-md); background: var(--tint); border: 1px solid var(--line); }
.steps-row h3 { margin: 12px 0 8px; }
.steps-row p { color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-field); color: #fff; font-weight: 700; font-family: var(--font-mono); }
.partner-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--chip-line); }
.partner-band p { color: var(--muted); max-width: 60ch; margin-top: 6px; }
.partner-band-links { display: flex; flex-wrap: wrap; gap: 12px; }
