/* WarrantHound - dark-first investigative tool. Graphite, steel blue, one signal-amber accent.
   Self-hosted assets only (CSP: 'self', no inline styles). Barlow Condensed for display,
   JetBrains Mono for metadata, system sans for body. Every colour is a custom property below.
   Default theme is dark; data-theme="light" switches to the light palette. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Dark (default) */
  --bg: #0a0d12;
  --bg-alt: #0e1219;
  --panel: #161c26;
  --surface: #11161e;
  --ink: #e9eef4;
  --body: #aab5c3;
  --muted: #7f8c9c;
  --rule: rgba(169, 190, 214, .1);
  --rule-strong: rgba(169, 190, 214, .22);
  --accent: #ffb224;          /* signal amber */
  --accent-hover: #ffc457;
  --accent-ink: #ffb224;
  --on-accent: #0a0d12;
  --steel: #7c9cc2;
  --steel-dim: #3a5370;
  --link: #ffc457;
  --grid: rgba(124, 156, 194, .07);

  /* "Band" tokens (hero, footer) - the same graphite in both themes. */
  --band: #07090d;
  --band-2: #0f141b;
  --band-rule: rgba(169, 190, 214, .14);
  --on-band: #e9eef4;
  --on-band-muted: #9aa7b6;
  --band-accent: #ffb224;
  --band-btn: #ffb224;
  --band-btn-hover: #ffc457;
  --on-band-btn: #0a0d12;

  --cta-bg: #ffb224; --cta-hover: #ffc457; --on-cta: #0a0d12;
  --mark-bg: #161c26;
  --mark-fg: #e9eef4;
  --mark-ear: #ffb224;

  --ok-bg: #0f2a1d; --ok-text: #9fe0bb;
  --warn-bg: #2e2208; --warn-text: #ffd27a;
  --err-bg: #34141a; --err-text: #ffaab4;
  --focus: #ffb224;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 30px -18px rgba(0, 0, 0, .8);
  --shadow-lift: 0 18px 40px -20px rgba(0, 0, 0, .9);
  --max: 1200px;
  --gutter: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f4f7; --bg-alt: #e8ecf1; --panel: #dde3ea; --surface: #ffffff;
  --ink: #0b0f15; --body: #36424f; --muted: #5a6776;
  --rule: rgba(11, 15, 21, .1); --rule-strong: rgba(11, 15, 21, .22);
  --accent: #ffb224; --accent-hover: #f0a000; --accent-ink: #8a5700; --on-accent: #0a0d12;
  --steel: #3c5f87; --steel-dim: #9db1c8; --link: #8a5700; --grid: rgba(60, 95, 135, .08);
  --mark-bg: #0b0f15;
  --ok-bg: #e2f3ea; --ok-text: #14532d; --warn-bg: #fdf1d6; --warn-text: #6b4500;
  --err-bg: #fbe7ea; --err-text: #8a1c2a; --focus: #8a5700;
  --shadow: 0 1px 2px rgba(11, 15, 21, .06), 0 10px 26px -16px rgba(11, 15, 21, .25);
  --shadow-lift: 0 18px 36px -18px rgba(11, 15, 21, .35);
  color-scheme: light;
}
@media (min-width: 400px) { :root { --gutter: 20px; } }
@media (min-width: 640px) { :root { --gutter: 28px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible, .announce :focus-visible { outline-color: var(--band-accent); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; margin: 0; }
h1, h2, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); line-height: .95; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); line-height: 1; }
h3 { font-family: var(--sans); font-weight: 650; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.25rem; }
li { margin: .25em 0; }
code { font-family: var(--mono); font-size: .9em; }
strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; z-index: 100; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--band); color: var(--on-band-muted); font: 11.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 9px var(--gutter); border-bottom: 1px solid var(--band-rule); }
.announce a { color: var(--band-accent); margin-left: .8rem; white-space: nowrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .6em; translate: 0 -1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark .m-bg { fill: var(--mark-bg); }
.brand-mark .m-fg { fill: var(--mark-fg); }
.brand-mark .m-cut { fill: var(--mark-bg); }
.brand-mark .m-acc { fill: var(--mark-ear); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand-tag { margin-top: 4px; font: 10.5px/1 var(--mono); color: var(--muted); white-space: nowrap; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 640px) { .brand-mark { width: 40px; height: 40px; } .brand-name { font-size: 28px; } }

.nav { display: flex; align-items: center; gap: 6px 22px; font: 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.nav a { color: var(--body); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.nav form { display: inline; margin: 0; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.nav .linkish { background: none; border: 0; color: var(--body); font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 6px 0; cursor: pointer; }
.nav .linkish:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--rule-strong);
  background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--panel); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* Theme toggle: dark (default) <-> light. Shows the icon of the theme it switches TO. */
[data-theme-toggle] .ti { display: none; }
[data-theme-toggle][data-mode="dark"] .ti-light, [data-theme-toggle][data-mode="light"] .ti-dark { display: block; }
[data-theme-toggle] .ti svg { width: 18px; height: 18px; display: block; }
.drawer-theme { width: 100%; margin-bottom: 12px; }

@media (max-width: 999px) {
  .site-header .wrap { flex-wrap: wrap; }
  .js .site-header .wrap { flex-wrap: nowrap; }
  .js .nav-links { display: none; }
  .js .menu-btn { display: inline-grid; }
  html:not(.js) .nav { flex-wrap: wrap; width: 100%; order: 3; }
}
@media (max-width: 559px) {
  .theme-head { display: none !important; }
  .brand-tag { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 23px; }
  .btn.header-cta { padding: 8px 11px; font-size: 13px; min-height: 40px; }
  .header-actions { gap: 8px; }
}
@media (min-width: 560px) { .drawer-theme { display: none !important; } }
@media (max-width: 429px) { .btn.header-cta { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(2, 4, 8, .7); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 86%; max-width: 360px; background: var(--bg); border-left: 1px solid var(--rule-strong);
  display: flex; flex-direction: column; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--rule); }
.drawer-head span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.drawer nav { display: flex; flex-direction: column; padding: 8px 24px; }
.drawer nav a, .drawer nav .linkish { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 13px 0;
  border-bottom: 1px solid var(--rule); text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; width: 100%; }
.drawer nav form { margin: 0; }
.drawer nav a[aria-current="page"] { color: var(--accent-ink); }
.drawer-foot { margin-top: auto; padding: 16px 24px 32px; }
.drawer-foot .btn { width: 100%; text-align: center; }
.drawer-foot p { text-align: center; margin: 14px auto 0; font-size: 14px; }
body.drawer-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 12px 22px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); font: 600 14px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .2s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.secondary:hover { background: var(--panel); border-color: var(--steel); }
.btn.dark { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--on-cta); }
.btn.dark:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.small { min-height: 40px; padding: 9px 15px; font-size: 12.5px; }
.btn.danger { background: var(--err-text); border-color: var(--err-text); color: var(--bg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.band .btn, .site-footer .btn { background: var(--band-btn); border-color: var(--band-btn); color: var(--on-band-btn); }
.band .btn:hover, .site-footer .btn:hover { background: var(--band-btn-hover); border-color: var(--band-btn-hover); }
.band .btn.secondary, .site-footer .btn.secondary { background: transparent; color: var(--on-band); border-color: rgba(233, 238, 244, .28); }
.band .btn.secondary:hover, .site-footer .btn.secondary:hover { background: rgba(233, 238, 244, .06); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn .arrow { transition: translate .2s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover .arrow { translate: 3px 0; }
  .lift { transition: translate .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s, border-color .25s; }
  .lift:hover { translate: 0 -2px; box-shadow: var(--shadow-lift); border-color: var(--rule-strong); }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section.tight { padding: 52px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .section { padding: 104px 0; } .section.tight { padding: 64px 0; } }
.kicker { display: block; margin: 0 0 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.band .kicker, .site-footer .kicker { color: var(--band-accent); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { max-width: 22ch; }
.section-head p { margin-top: 16px; font-size: 17px; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.55; }

.band { background: var(--band); color: var(--on-band-muted); }
.band h1, .band h2, .band h3, .band strong { color: var(--on-band); }
.band a:not(.btn) { color: var(--band-accent); }

/* ---------- Scroll hero ----------
   A full-viewport stage with the WARRANTHOUND wordmark as its centrepiece. Static by default
   (finished state, one screen tall). site.js sets html[data-hero-motion="on"] when JS runs and
   reduced motion is not requested; only then does the section grow tall, the stage pin and the
   files appear. On the homepage the announcement bar + header overlay the top of the stage. */
.home .chrome { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.home .site-header { background: transparent; border-bottom-color: transparent; }
.home .announce { background: rgba(7, 9, 13, .6); }
.home .site-header .nav a:not(.btn), .home .site-header .nav .linkish { color: var(--on-band-muted); }
.home .site-header .nav a:not(.btn):hover { color: var(--on-band); }
.home .brand, .home .site-header .icon-btn { color: var(--on-band); }
.home .site-header .icon-btn { border-color: var(--band-rule); }
.home .site-header .icon-btn:hover { background: rgba(233, 238, 244, .06); }
.home .brand-tag { color: var(--on-band-muted); }
.home .brand-mark .m-bg, .home .brand-mark .m-cut { fill: #161c26; }
.home .brand-mark .m-fg { fill: #e9eef4; }

.hero-scroll { position: relative; background: var(--band); color: var(--on-band-muted); --fill: 1; }
.hero-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; }
html[data-hero-motion="on"] .hero-scroll { height: 240vh; --fill: 0; }
html[data-hero-motion="on"] .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
@media (max-width: 639px) { html[data-hero-motion="on"] .hero-scroll { height: 210vh; } }

.hero-grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 50%, rgba(124, 156, 194, .15), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--band); }
.hero-grid-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 13, .55), transparent 22%, transparent 80%, var(--band)); }

.hero-mark { position: relative; width: 100%; padding: 0 2.5vw; }
.hero-mark .wm-box { z-index: 1; }
/* The status line sits above the flying files so the counter always reads. */
.hero-mark .wm-status { position: relative; z-index: 3; width: max-content; max-width: 100%; padding: 6px 12px; background: rgba(7, 9, 13, .82); }
.wm-box { position: relative; width: max-content; max-width: 100%; margin: 0 auto; }
/* One line on wide screens, sized to the width (and capped by height); two stacked lines on phones. */
.wm { display: flex; flex-direction: row; font: 700 min(16.2vw, 42vh)/.84 var(--display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; user-select: none; }
.wm-outline { color: transparent; -webkit-text-stroke: 1px rgba(124, 156, 194, .45); }
.wm-fill { position: absolute; inset: 0; color: var(--on-band); clip-path: inset(0 calc((1 - var(--fill)) * 100%) 0 0); }
@media (max-width: 639px), (max-aspect-ratio: 4/5) {
  .wm { flex-direction: column; align-items: center; font-size: min(25.5vw, 28vh); line-height: .86; }
}
.wm-beam { position: absolute; top: -4%; bottom: -4%; left: 0; width: 2px; background: var(--accent);
  box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0;
  translate: calc(var(--fill) * var(--wm-w, 0px)) 0; }
html[data-hero-motion="on"] .wm-beam { opacity: calc(min(1, var(--fill) * 12) * min(1, (1 - var(--fill)) * 12)); }
.wm-status { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 22px auto 0;
  font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-band-muted); flex-wrap: wrap; }
.wm-status b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.wm-bar { width: min(220px, 30vw); height: 2px; background: rgba(124, 156, 194, .22); position: relative; overflow: hidden; }
.wm-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill)); }
@media (max-width: 639px) { .wm-status { flex-direction: column; gap: 6px; } .wm-bar { display: none; } }

/* The first section after the hero: headline, subhead, CTAs. */
.intro { background: var(--band); color: var(--on-band-muted); padding: 64px 0 80px; border-bottom: 1px solid var(--band-rule); }
.intro-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .intro { padding: 96px 0 104px; } .intro-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: end; } }
.intro h1 { color: var(--on-band); max-width: 12ch; }
.intro .lede { color: var(--on-band-muted); max-width: 46ch; margin: 0 0 24px; }
.intro .btn.secondary { color: var(--on-band); border-color: rgba(233, 238, 244, .28); }
.intro .btn.secondary:hover { background: rgba(233, 238, 244, .06); }
.kicker.status { color: var(--on-band); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 22px 0 0; font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.hero-facts li { margin: 0; }
.hero-facts li::before { content: "/ "; color: var(--accent); }

.artifacts { display: none; }
html[data-hero-motion="on"] .artifacts { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.af { position: absolute; left: 0; top: 0; will-change: transform, opacity; opacity: 0; white-space: nowrap;
  font: 12px/1.2 var(--mono); color: var(--on-band); }
.hero-ready .af { opacity: 1; }
.af.file { display: flex; align-items: center; gap: 8px; padding: 8px 11px 8px 9px; background: rgba(17, 22, 30, .92); border: 1px solid rgba(124, 156, 194, .3); border-radius: 2px;
  box-shadow: 0 10px 24px -14px #000; }
.af.file .ic { display: grid; place-items: center; width: 22px; height: 22px; color: var(--accent); }
.af.file .ic svg { width: 18px; height: 18px; }
.af.meta { padding: 5px 8px; color: var(--steel); border: 1px dashed rgba(124, 156, 194, .35); background: rgba(7, 9, 13, .7); font-size: 11px; }
.af.chat { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; background: #1b2330; border-radius: 10px 10px 10px 2px; font-size: 10.5px; color: var(--muted); }
.af.chat em { font: 13px/1.3 var(--sans); font-style: normal; color: var(--on-band); }
.af.chat.me { background: #3a2c0e; border-radius: 10px 10px 2px 10px; color: #c9a868; }
.af.photo { width: 104px; padding: 5px 5px 6px; background: #e3e7ec; border-radius: 2px; box-shadow: 0 14px 28px -14px #000; color: #2a333e; font-size: 9.5px; }
.af.photo i { display: block; height: 70px; margin-bottom: 5px; }
.af.photo.p1 i { background: linear-gradient(180deg, #5d7fa6 0 45%, #9fb4c4 45% 52%, #46553f 52%); }
.af.photo.p2 i { background: radial-gradient(circle at 70% 30%, #f2c46b 0 12%, transparent 13%), linear-gradient(180deg, #2c3c55, #6a5a7a 60%, #2a2f2a 60%); }
.af.photo.p3 i { background: linear-gradient(135deg, #3b4652 0 50%, #59687a 50%); position: relative; }
.af.photo.p3 i::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -40% -50%; border: 11px solid transparent; border-left: 17px solid rgba(255, 255, 255, .85); border-right: 0; }
.af.photo.p4 i { background: repeating-linear-gradient(90deg, #8b9aa8 0 14px, #6f7f8f 14px 28px); }
.af.zipf { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 7px; background: rgba(17, 22, 30, .9); border: 1px solid rgba(232, 178, 58, .35); border-radius: 2px;
  box-shadow: 0 10px 24px -14px #000; font-size: 11.5px; }
.af.zipf .zf { width: 28px; height: 23px; flex: none; }
/* "Far" objects: smaller, flatter and behind the near ones - reads as depth and is cheaper to draw. */
.af.far { scale: .78; z-index: 0; box-shadow: none; }
.af:not(.far) { z-index: 1; }
.af.far.file, .af.far.zipf, .af.far.meta { background: rgba(12, 16, 22, .88); color: var(--on-band-muted); }
.af.far.photo { filter: brightness(.82); }
@media (max-width: 639px) { .af.lg { display: none !important; } .af { font-size: 10.5px; } .af.photo { width: 80px; } .af.photo i { height: 52px; } .af.chat em { font-size: 12px; } }

.scroll-hint { display: none; }
html[data-hero-motion="on"] .scroll-hint { display: block; position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 3;
  font: 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: var(--hint, 1); }
html[data-hero-motion="on"] .scroll-hint::after { content: ""; display: block; width: 1px; height: 22px; margin: 6px auto 0; background: linear-gradient(var(--accent), transparent); }

/* ---------- App mock (illustrative, synthetic data) ---------- */
.app { margin: 0 0 48px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--rule); background: var(--bg-alt);
  font: 11.5px var(--mono); letter-spacing: .04em; color: var(--muted); }
.tag-illus { color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 3px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 1fr; min-height: 320px; }
.app-side { display: none; }
.app-side span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 2px; font-size: 14px; color: var(--body); }
.app-side span svg { width: 16px; height: 16px; color: var(--steel); flex: none; }
.app-side span b { margin-left: auto; font: 11px var(--mono); color: var(--muted); font-weight: 400; }
.app-side span.on { background: var(--panel); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.app-side span.on svg { color: var(--accent); }
.app-side .app-case { display: block; padding: 4px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); font: 600 13px var(--mono); color: var(--ink); }
.app-side .app-case small { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); font-size: 11px; }
.app-thread { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.thread-head { font: 11.5px var(--mono); color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 78%; }
.msg p { margin: 0; padding: 8px 12px; background: var(--panel); color: var(--ink); border-radius: 10px 10px 10px 2px; font-size: 14.5px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me p { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-radius: 10px 10px 2px 10px; }
.msg .ts { font: 10.5px var(--mono); color: var(--muted); }
.msg .att { width: 150px; height: 96px; border-radius: 6px; background: linear-gradient(180deg, #4e6d91 0 45%, #8fa5b6 45% 52%, #3f4d39 52%); border: 1px solid var(--rule-strong); }
.msg.tagged p { outline: 1px solid var(--accent); outline-offset: 2px; }
.tagchip { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 2px 6px; border-radius: 2px; }
.app-inspect { display: none; }
.app-inspect h4 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.app-inspect dl { margin: 0; display: grid; gap: 4px; }
.app-inspect dt { font: 10.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.app-inspect dd { margin: 0; font: 12.5px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 720px) { .app-body { grid-template-columns: 220px 1fr; } .app-side { display: block; padding: 14px 10px; border-right: 1px solid var(--rule); background: var(--bg-alt); } }
@media (min-width: 1040px) { .app-body { grid-template-columns: 220px 1fr 250px; } .app-inspect { display: block; padding: 16px; border-left: 1px solid var(--rule); } }

/* ---------- Features ---------- */
.features { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat { background: var(--bg); padding: 24px 22px 26px; }
.feat .ico { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--accent-ink); margin-bottom: 18px; }
.feat .ico svg { width: 19px; height: 19px; }
.feat h3 { margin-bottom: 6px; }
.feat p { margin: 0; font-size: 15px; }

/* ---------- Compatibility + facts ---------- */
.spec { display: grid; gap: 36px; }
@media (min-width: 960px) { .spec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; } }
.providers-row { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0 0 14px; }
.providers-row li { margin: 0; font: 600 clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--display); text-transform: uppercase; color: var(--ink); letter-spacing: .01em; }
.providers-row small { display: block; margin-top: 6px; font: 11px var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: none; }
.mono-note { font: 12px var(--mono); color: var(--muted); margin: 0; letter-spacing: .04em; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts li { margin: 0; background: var(--bg-alt); padding: 20px; display: grid; gap: 12px; align-content: start; }
.facts svg { width: 20px; height: 20px; color: var(--accent-ink); }
.facts h3 { margin-bottom: 4px; font-size: 1rem; }
.facts p { margin: 0; font-size: 14.5px; }

/* Legacy card grid (pricing page, portal) */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ncard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 22px 26px; }
.ncard .num { font: 500 13px var(--mono); color: var(--accent-ink); display: block; margin-bottom: 10px; letter-spacing: .08em; }
.ncard h3 { margin-bottom: 8px; }
.ncard p { font-size: 15px; margin: 0; color: var(--body); }
.ncard .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 2px; border: 1px solid var(--rule-strong); color: var(--accent-ink); margin-bottom: 16px; }
.ncard .ico svg { width: 19px; height: 19px; }
.ncard .tag { display: inline-block; margin-top: 14px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }

/* ---------- Pricing ---------- */
.price-layout { display: grid; gap: 8px; }
@media (min-width: 900px) { .price-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; } .price-layout .section-head { margin-bottom: 0; } }
.plans { display: grid; gap: 16px; max-width: 520px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 30px 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--on-accent); font: 600 10.5px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; }
.plan h2, .plan h3 { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price { font: 700 4.2rem/1 var(--display); color: var(--ink); margin: 14px 0 6px; }
.price small { font: 400 13px var(--mono); color: var(--muted); margin-left: 6px; letter-spacing: .02em; }
.plan .note { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; }
.plan li { padding-left: 24px; position: relative; margin: 9px 0; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); rotate: -45deg; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; } .faq-layout .sticky { position: sticky; top: 32px; align-self: start; } }
.faq-list { border-top: 1px solid var(--rule-strong); }
details.faq { border-bottom: 1px solid var(--rule-strong); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; font: 400 20px/1 var(--mono); color: var(--accent-ink); width: 20px; text-align: center; }
details.faq[open] summary::after { content: "\2212"; }
details.faq summary:hover { color: var(--accent-ink); }
details.faq > p { margin: 0 0 20px; max-width: 64ch; }

/* ---------- Inner page head ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--rule); padding: 56px 0 44px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin: 16px 0 0; max-width: 62ch; }
@media (min-width: 900px) { .page-head { padding: 80px 0 60px; } }
.page { padding-top: 48px; padding-bottom: 88px; }
.page > h1:first-child, .page > .tabs:first-child + h1 { margin-bottom: 24px; }
.page h2 { margin: 48px 0 18px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.page .card h2 { margin: 0 0 14px; font-size: 1.6rem; }

/* Two-column form layout (request access) */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } .split .sticky { position: sticky; top: 32px; align-self: start; } }
.form-card { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 34px 32px; } }
.form-card h2 { margin: 0 0 8px; font-size: 1.9rem; }
.section.request { border-top: 1px solid var(--rule); }
.vsteps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.vsteps li { counter-increment: s; position: relative; padding: 0 0 20px 48px; margin: 0; }
.vsteps li::before { content: "0" counter(s); position: absolute; left: 0; top: 1px; font: 500 14px var(--mono); color: var(--accent-ink); }
.vsteps li strong { display: block; font-weight: 650; margin-bottom: 2px; }

/* Centered single card (sign in, check email, errors) */
.auth { padding-top: 56px; padding-bottom: 96px; }
.auth-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .auth { padding-top: 88px; padding-bottom: 120px; } .auth-card { padding: 44px 40px; } }
.auth-card h1 { font-size: clamp(2rem, 1.7rem + 1vw, 2.6rem); margin-bottom: 14px; }
.auth-card .icon-top { width: 46px; height: 46px; border-radius: 2px; border: 1px solid var(--rule-strong); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 20px; }
.auth-card .icon-top svg { width: 22px; height: 22px; }
.auth-card .foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- Forms ---------- */
form.stack { display: grid; gap: 20px; max-width: 680px; }
.form-card form.stack { max-width: none; }
.field label, .field .label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm); padding: 11px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--steel); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 7rem; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err-text); }
.error-text { color: var(--err-text); font-size: 14px; margin: 6px 0 0; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.check label { font-weight: 400; font-size: 14.5px; color: var(--body); margin: 0; }
fieldset { border: 0; border-top: 1px solid var(--rule); padding: 18px 0 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
legend { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); padding: 0 12px 0 0; }
.card fieldset { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 14px; gap: 10px; }
.two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }

/* ---------- Flash, badges ---------- */
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 20px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); }
.flash.error { background: var(--err-bg); color: var(--err-text); }
.flash.warn, .draft { background: var(--warn-bg); color: var(--warn-text); }
.flash strong, .draft strong { color: inherit; }
.flashes { padding-top: 20px; }
.draft { border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--warn-text) 30%, transparent); margin: 0 0 24px; }
.badge { display: inline-block; font: 500 11.5px var(--mono); letter-spacing: .04em; border-radius: 2px; padding: 3px 8px; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.badge.err { background: var(--err-bg); color: var(--err-text); border-color: transparent; }

/* ---------- Portal / admin ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card + .card { margin-top: 0; }
.page > .card { margin-bottom: 16px; }
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--panel) 45%, transparent); }
th { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
td form { margin: 0; }
td .btn { min-height: 36px; padding: 6px 12px; font-size: 12px; }
dl.kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 10px 20px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 14px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
pre.detail { white-space: pre-wrap; margin: 0; font-family: var(--mono); font-size: 13px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tabs a { text-decoration: none; padding: 7px 13px; border-radius: 2px; border: 1px solid var(--rule-strong); color: var(--ink); font: 12.5px var(--mono); letter-spacing: .04em; }
.tabs a:hover { background: var(--panel); }
.tabs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 10px; } }

.prose { max-width: 72ch; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin: .55em 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--on-band-muted); border-top: 1px solid var(--band-rule); }
.pitch { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.pitch h2 { color: var(--on-band); max-width: 20ch; margin: 0 auto 14px; }
.pitch p { margin: 0 auto 28px; font-size: 17px; max-width: 52ch; }
.pitch .btn-row { justify-content: center; }
.footer-base { border-top: 1px solid var(--band-rule); }
.pitch + .footer-base { border-top: 1px solid var(--band-rule); }
.footer-grid { display: grid; gap: 32px; padding: 44px 0 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h3 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-band); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; font-size: 14.5px; }
.site-footer a { color: var(--on-band-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-band); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--on-band); font: 700 24px var(--display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.footer-brand svg { width: 32px; height: 32px; }
.site-footer .brand-mark .m-bg, .site-footer .brand-mark .m-cut { fill: #161c26; }
.site-footer .brand-mark .m-fg { fill: #e9eef4; }
.footer-brand + p { font-size: 14px; max-width: 40ch; }
.footer-legal { border-top: 1px solid var(--band-rule); padding: 20px 0 28px; font: 11.5px/1.6 var(--mono); color: var(--muted); }
.footer-legal p { max-width: none; margin: 0 0 6px; }

/* ---------- Motion ----------
   The hidden half of the reveal applies only once site.js has set data-motion="on". */
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] [data-reveal] { opacity: 0; transform: translateY(16px); }
  html[data-motion="on"] [data-reveal].is-in { opacity: 1; transform: none;
    transition: opacity 500ms cubic-bezier(.22, .61, .36, 1) var(--d, 0ms), transform 500ms cubic-bezier(.22, .61, .36, 1) var(--d, 0ms); }
  [data-reveal].d1 { --d: 70ms; } [data-reveal].d2 { --d: 140ms; } [data-reveal].d3 { --d: 210ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .announce, .site-header, .site-footer, .skip, .artifacts, .scroll-hint { display: none; }
  .band, .hero-scroll { background: none; color: #000; }
}

.app-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
