/* GENERATED by scripts/sync-design-system.sh — edit the sources in
   .claude/skills/husky-digital-design/tokens/ and re-run `npm run ds:sync`. */

/* ---- tokens/fonts.css ---- */
/* Husky Digital type stack — self-hosted.
   Space Grotesk — headlines, eyebrows, numerals at display sizes.
   IBM Plex Sans  — body, UI, forms (Cyrillic subset included for RU).
   IBM Plex Mono  — metrics, CPL/CAC figures, table numerals, code-like proof.

   GENERATED by scripts/fetch-design-system-fonts.mjs — do not hand-edit the
   @font-face blocks. Google Fonts is not linked at runtime: the site's CSP is
   style-src 'self' / font-src 'self', which blocks it. Family variables and the
   fallback stacks live in tokens/typography.css.

   Space Grotesk has no Cyrillic. RU headlines fall back to the system UI face,
   the same as they do under Outfit today. If RU headlines need a real face,
   swap the display family in typography.css for one with Cyrillic. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plex-mono-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- tokens/colors.css ---- */
/* Husky Digital — color. Base scales sampled from the real brand assets
   (logo tile, OG image): ink #0A0B10, navy #15172E, lime #BDF262, indigo #6665F1. */

:root {
  /* Ink / neutral (blue-tinted, matches the brand's near-black) */
  --hd-ink-900: #0a0b10;
  --hd-ink-800: #12131c;
  --hd-navy-700: #15172e;
  --hd-navy-600: #1d2140;
  --hd-steel-500: #4b5666;
  --hd-slate-400: #7b8493;
  --hd-slate-300: #a8b0bc;
  --hd-line-200: #e2e6ec;
  --hd-line-100: #eff2f6;
  --hd-paper-50: #f7f9fb;
  --hd-white: #ffffff;

  /* Lime — the single brand accent. Never used as text on light. */
  --hd-lime-100: #eefbd5;
  --hd-lime-300: #d6f79a;
  --hd-lime-500: #bdf262;
  --hd-lime-600: #a6e03f;
  --hd-lime-700: #7fb524;
  --hd-lime-ink: #3c5a0d; /* accent-colored TEXT on light backgrounds */

  /* Indigo — secondary, for links and analytic/diagram accents */
  --hd-indigo-100: #e9e9fe;
  --hd-indigo-500: #6665f1;
  --hd-indigo-600: #4f4edb;
  --hd-indigo-ink: #2f2eaa;

  /* Signal — audit verdicts and funnel diagnostics. Deliberately not lime,
     so "brand" and "status" never read as the same thing. */
  --hd-good-500: #1f9e6b;
  --hd-good-100: #e2f5ed;
  --hd-warn-500: #c47f00;
  --hd-warn-100: #fdf1da;
  --hd-leak-500: #d8452e;
  --hd-leak-100: #fce9e5;

  /* Signal INK — the same three signals as text on a light background.
     The 500s are chosen to read as fills; as text on white they land at
     3.4 / 3.3 / 4.4:1 and miss AA, so text uses these instead. They flip back
     to the 500s under data-hd-theme="dark", where the 500s clear AA on ink. */
  --hd-good-ink: #146b43;
  --hd-warn-ink: #8f5c00;
  --hd-leak-ink: #bb3a24;

  /* ---- Semantic aliases: use these in components ---- */
  --hd-bg-page: var(--hd-white);
  --hd-bg-subtle: var(--hd-paper-50);
  --hd-bg-inverse: var(--hd-ink-900);
  --hd-surface-card: var(--hd-white);
  --hd-surface-raised: var(--hd-white);
  --hd-surface-inverse: var(--hd-navy-700);
  --hd-surface-accent: var(--hd-lime-100);

  --hd-text-primary: var(--hd-ink-900);
  --hd-text-secondary: var(--hd-steel-500);
  --hd-text-muted: var(--hd-slate-400);
  --hd-text-inverse: var(--hd-white);
  --hd-text-inverse-secondary: #b9c0cc;
  --hd-text-accent: var(--hd-lime-ink);
  --hd-text-link: var(--hd-indigo-600);
  --hd-text-link-hover: var(--hd-indigo-ink);

  --hd-border-subtle: var(--hd-line-200);
  --hd-border-strong: var(--hd-ink-900);
  --hd-border-inverse: #2a2e4a;

  --hd-accent: var(--hd-lime-500);
  --hd-accent-hover: var(--hd-lime-600);
  --hd-accent-ink: var(--hd-ink-900); /* text/icons ON accent */
  --hd-focus-ring: var(--hd-indigo-500);
}

/* Dark sections (hero band, proof band, footer, CTA). Put data-hd-theme="dark"
   on the section — every semantic alias flips, components need no variants. */
[data-hd-theme="dark"] {
  --hd-bg-page: var(--hd-ink-900);
  --hd-bg-subtle: var(--hd-ink-800);
  --hd-bg-inverse: var(--hd-white);
  --hd-surface-card: #14161f;
  --hd-surface-raised: var(--hd-navy-700);
  --hd-surface-inverse: var(--hd-white);
  --hd-surface-accent: rgba(189, 242, 98, 0.12);

  --hd-text-primary: var(--hd-white);
  --hd-text-secondary: #b9c0cc;
  --hd-text-muted: var(--hd-slate-400);
  --hd-text-inverse: var(--hd-ink-900);
  --hd-text-inverse-secondary: var(--hd-steel-500);
  --hd-text-accent: var(--hd-lime-500);
  --hd-text-link: var(--hd-lime-500);
  --hd-text-link-hover: var(--hd-lime-300);

  --hd-border-subtle: #23262f;
  --hd-border-strong: var(--hd-white);
  --hd-border-inverse: var(--hd-line-200);

  --hd-good-100: rgba(31, 158, 107, 0.16);
  --hd-warn-100: rgba(196, 127, 0, 0.18);
  --hd-leak-100: rgba(216, 69, 46, 0.18);

  --hd-good-ink: var(--hd-good-500);
  --hd-warn-ink: var(--hd-warn-500);
  --hd-leak-ink: var(--hd-leak-500);
}

/* ---- tokens/typography.css ---- */
/* Husky Digital — typography. Fluid display sizes, fixed UI sizes.
   Rule of the system: headlines are sentence-case statements, numerals that
   carry proof are mono. */

:root {
  --hd-font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hd-font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --hd-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --hd-weight-regular: 400;
  --hd-weight-medium: 500;
  --hd-weight-semibold: 600;
  --hd-weight-bold: 700;

  /* Fluid display scale (min → max between 360px and 1440px) */
  --hd-size-display-1: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);   /* 40 → 72 */
  --hd-size-display-2: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);  /* 32 → 52 */
  --hd-size-display-3: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem); /* 26 → 40 */
  --hd-size-heading: 1.5rem;   /* 24 — card titles, step titles */
  --hd-size-subheading: 1.25rem; /* 20 */
  --hd-size-body-lg: 1.125rem; /* 18 — lede paragraphs */
  --hd-size-body: 1rem;        /* 16 — default */
  --hd-size-body-sm: 0.9375rem;/* 15 — card copy, form help */
  --hd-size-caption: 0.8125rem;/* 13 — disclaimers, meta */
  --hd-size-eyebrow: 0.75rem;  /* 12 — uppercase label */

  --hd-leading-tight: 1.04;
  --hd-leading-snug: 1.18;
  --hd-leading-normal: 1.45;
  --hd-leading-relaxed: 1.6;

  --hd-tracking-display: -0.03em;
  --hd-tracking-heading: -0.015em;
  --hd-tracking-normal: 0;
  --hd-tracking-eyebrow: 0.12em;

  --hd-measure-lede: 62ch;
  --hd-measure-body: 72ch;
  --hd-measure-card: 46ch;
}

/* ---- tokens/spacing.css ---- */
/* Husky Digital — spacing, radii, layout. 4px base; section rhythm is
   deliberately large so long pages read as chapters, not one text wall. */

:root {
  --hd-space-1: 4px;
  --hd-space-2: 8px;
  --hd-space-3: 12px;
  --hd-space-4: 16px;
  --hd-space-5: 20px;
  --hd-space-6: 24px;
  --hd-space-8: 32px;
  --hd-space-10: 40px;
  --hd-space-12: 48px;
  --hd-space-16: 64px;
  --hd-space-20: 80px;
  --hd-space-24: 96px;
  --hd-space-32: 128px;

  --hd-section-y: clamp(56px, 7vw, 112px);
  --hd-section-y-tight: clamp(40px, 4vw, 64px);
  --hd-container: 1200px;
  --hd-container-narrow: 800px;
  --hd-gutter: clamp(16px, 4vw, 40px);
  --hd-grid-gap: 24px;

  --hd-radius-sm: 6px;
  --hd-radius-md: 10px;
  --hd-radius-lg: 16px;
  --hd-radius-xl: 24px;
  --hd-radius-pill: 999px;

  --hd-border-width: 1px;
  --hd-border-width-strong: 2px;
  --hd-rule-accent: 3px; /* the short lime rule under headings */

  --hd-control-h-sm: 36px;
  --hd-control-h-md: 44px; /* minimum touch target */
  --hd-control-h-lg: 52px;
}

/* ---- tokens/elevation.css ---- */
/* Husky Digital — elevation. Borders do the structural work; shadows only
   lift things that genuinely float (dropdowns, dialogs, sticky CTA). */

:root {
  --hd-shadow-none: none;
  --hd-shadow-xs: 0 1px 2px rgba(10, 11, 16, 0.06);
  --hd-shadow-sm: 0 2px 6px rgba(10, 11, 16, 0.07);
  --hd-shadow-md: 0 8px 24px -8px rgba(10, 11, 16, 0.16);
  --hd-shadow-lg: 0 24px 60px -20px rgba(10, 11, 16, 0.28);
  --hd-shadow-accent: 0 8px 24px -10px rgba(127, 181, 36, 0.5);
  --hd-ring-focus: 0 0 0 3px rgba(102, 101, 241, 0.35);
  --hd-ring-accent: 0 0 0 3px rgba(189, 242, 98, 0.4);
}

/* ---- tokens/motion.css ---- */
/* Husky Digital — motion. Short, mechanical, no bounce: the brand argues
   from measurement, so movement should feel like an instrument, not a toy. */

:root {
  --hd-duration-fast: 120ms;
  --hd-duration-base: 180ms;
  --hd-duration-slow: 320ms;
  --hd-ease-standard: cubic-bezier(0.2, 0, 0.2, 1);
  --hd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hd-transition-control: background-color var(--hd-duration-fast) var(--hd-ease-standard),
    border-color var(--hd-duration-fast) var(--hd-ease-standard),
    color var(--hd-duration-fast) var(--hd-ease-standard),
    transform var(--hd-duration-fast) var(--hd-ease-standard);
  --hd-hover-lift: translateY(-2px);
  --hd-press-scale: 0.985;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --hd-duration-fast: 0ms;
    --hd-duration-base: 0ms;
    --hd-duration-slow: 0ms;
    --hd-hover-lift: none;
    --hd-press-scale: 1;
  }
}

/* ---- base/reset.css ---- */
/* Husky Digital — base reset + global element defaults.
   Safe to paste into an existing site: only element selectors + :root vars. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hd-bg-page);
  color: var(--hd-text-primary);
  font-family: var(--hd-font-body);
  font-size: var(--hd-size-body);
  line-height: var(--hd-leading-relaxed);
  font-weight: var(--hd-weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--hd-space-4);
  font-family: var(--hd-font-display);
  font-weight: var(--hd-weight-bold);
  line-height: var(--hd-leading-snug);
  letter-spacing: var(--hd-tracking-heading);
  color: var(--hd-text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--hd-size-display-1); line-height: var(--hd-leading-tight); letter-spacing: var(--hd-tracking-display); }
h2 { font-size: var(--hd-size-display-2); letter-spacing: var(--hd-tracking-display); }
h3 { font-size: var(--hd-size-display-3); }
h4 { font-size: var(--hd-size-heading); }

p { margin: 0 0 var(--hd-space-4); max-width: var(--hd-measure-body); text-wrap: pretty; }

a { color: var(--hd-text-link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--hd-duration-fast) var(--hd-ease-standard); }
a:hover { color: var(--hd-text-link-hover); }

strong, b { font-weight: var(--hd-weight-semibold); }
small { font-size: var(--hd-size-caption); }

ul, ol { margin: 0 0 var(--hd-space-4); padding-left: var(--hd-space-5); }
li { margin-bottom: var(--hd-space-2); }

img, svg, video { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: var(--hd-border-width) solid var(--hd-border-subtle); margin: var(--hd-space-10) 0; }

table { border-collapse: collapse; width: 100%; }

/* Numerals that carry proof are mono and tabular everywhere. */
.hd-num, code, kbd, samp {
  font-family: var(--hd-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--hd-focus-ring);
  outline-offset: 2px;
  border-radius: var(--hd-radius-sm);
}

::selection { background: var(--hd-lime-500); color: var(--hd-ink-900); }

.hd-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.hd-skip-link {
  position: absolute; left: var(--hd-space-4); top: -100px; z-index: 100;
  background: var(--hd-accent); color: var(--hd-accent-ink);
  padding: var(--hd-space-3) var(--hd-space-5); border-radius: var(--hd-radius-md);
  font-weight: var(--hd-weight-semibold); text-decoration: none;
}
.hd-skip-link:focus { top: var(--hd-space-4); }

/* ---- base/components.css ---- */
/* Husky Digital — component classes. Every rule is token-driven; change a
   token, the whole site follows. Prefix hd- so it can coexist with legacy CSS. */

/* ---------- Layout ---------- */
.hd-container { width: 100%; max-width: var(--hd-container); margin-inline: auto; padding-inline: var(--hd-gutter); }
.hd-container--narrow { max-width: var(--hd-container-narrow); }
.hd-section { padding-block: var(--hd-section-y); background: var(--hd-bg-page); color: var(--hd-text-primary); }
.hd-section--tight { padding-block: var(--hd-section-y-tight); }
.hd-section--subtle { background: var(--hd-bg-subtle); }
.hd-grid { display: grid; gap: var(--hd-grid-gap); grid-template-columns: repeat(var(--hd-cols, 1), minmax(0, 1fr)); }
.hd-grid--2 { --hd-cols: 2; }
.hd-grid--3 { --hd-cols: 3; }
.hd-grid--4 { --hd-cols: 4; }
.hd-stack { display: flex; flex-direction: column; gap: var(--hd-space-4); }
.hd-row { display: flex; flex-wrap: wrap; gap: var(--hd-space-3); align-items: center; }
@media (max-width: 900px) { .hd-grid--3, .hd-grid--4 { --hd-cols: 2; } }
@media (max-width: 620px) { .hd-grid { --hd-cols: 1 !important; } }

/* ---------- Section heads ---------- */
.hd-eyebrow {
  display: inline-flex; align-items: center; gap: var(--hd-space-2);
  font-family: var(--hd-font-display); font-size: var(--hd-size-eyebrow);
  font-weight: var(--hd-weight-semibold); letter-spacing: var(--hd-tracking-eyebrow);
  text-transform: uppercase; color: var(--hd-text-secondary); margin-bottom: var(--hd-space-4);
}
.hd-eyebrow::before { content: ""; width: 18px; height: var(--hd-rule-accent); background: var(--hd-accent); border-radius: 2px; }
.hd-lede { font-size: var(--hd-size-body-lg); line-height: var(--hd-leading-normal); color: var(--hd-text-secondary); max-width: var(--hd-measure-lede); }
.hd-rule { width: 88px; height: var(--hd-rule-accent); background: var(--hd-accent); border-radius: 2px; margin-block: var(--hd-space-6); }
.hd-section-head { max-width: var(--hd-measure-lede); margin-bottom: var(--hd-space-12); }

/* ---------- Buttons ---------- */
.hd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hd-space-2);
  min-height: var(--hd-control-h-md); padding: 0 var(--hd-space-6);
  font-family: var(--hd-font-body); font-size: var(--hd-size-body); font-weight: var(--hd-weight-semibold);
  line-height: 1; text-decoration: none; cursor: pointer;
  border: var(--hd-border-width-strong) solid transparent; border-radius: var(--hd-radius-md);
  transition: var(--hd-transition-control);
}
.hd-btn:active { transform: scale(var(--hd-press-scale)); }
.hd-btn--primary { background: var(--hd-accent); color: var(--hd-accent-ink); }
.hd-btn--primary:hover { background: var(--hd-accent-hover); color: var(--hd-accent-ink); }
.hd-btn--solid { background: var(--hd-bg-inverse); color: var(--hd-text-inverse); }
.hd-btn--solid:hover { background: var(--hd-navy-700); color: var(--hd-white); }
.hd-btn--outline { background: transparent; color: var(--hd-text-primary); border-color: var(--hd-border-strong); }
.hd-btn--outline:hover { background: var(--hd-text-primary); color: var(--hd-bg-page); }
.hd-btn--ghost { background: transparent; color: var(--hd-text-primary); border-color: var(--hd-border-subtle); }
.hd-btn--ghost:hover { border-color: var(--hd-border-strong); }
.hd-btn--lg { min-height: var(--hd-control-h-lg); padding-inline: var(--hd-space-8); font-size: var(--hd-size-body-lg); }
.hd-btn--sm { min-height: var(--hd-control-h-sm); padding-inline: var(--hd-space-4); font-size: var(--hd-size-body-sm); }
.hd-btn--block { width: 100%; }
.hd-btn[disabled], .hd-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.hd-btn-row { display: flex; flex-wrap: wrap; gap: var(--hd-space-3); }

/* Text link with arrow — the "Diagnose this leak →" pattern */
.hd-link-arrow {
  display: inline-flex; align-items: center; gap: var(--hd-space-2);
  font-weight: var(--hd-weight-semibold); font-size: var(--hd-size-body-sm);
  color: var(--hd-text-link); text-decoration: none;
}
.hd-link-arrow::after { content: "→"; transition: transform var(--hd-duration-fast) var(--hd-ease-standard); }
.hd-link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Chips / badges ---------- */
.hd-chip {
  display: inline-flex; align-items: center; min-height: var(--hd-control-h-sm);
  padding: 0 var(--hd-space-4); border-radius: var(--hd-radius-pill);
  border: var(--hd-border-width) solid var(--hd-border-subtle);
  background: var(--hd-surface-card); color: var(--hd-text-primary);
  font-size: var(--hd-size-body-sm); font-weight: var(--hd-weight-medium);
  text-decoration: none; transition: var(--hd-transition-control);
}
.hd-chip:hover { border-color: var(--hd-lime-700); background: var(--hd-surface-accent); color: var(--hd-text-primary); }
.hd-chip[aria-current="page"] { background: var(--hd-accent); border-color: var(--hd-accent); color: var(--hd-accent-ink); }
.hd-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px var(--hd-space-3);
  border-radius: var(--hd-radius-sm); font-family: var(--hd-font-display);
  font-size: var(--hd-size-eyebrow); font-weight: var(--hd-weight-semibold);
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--hd-line-100); color: var(--hd-text-secondary);
}
.hd-badge--good { background: var(--hd-good-100); color: var(--hd-good-ink); }
.hd-badge--warn { background: var(--hd-warn-100); color: var(--hd-warn-ink); }
.hd-badge--leak { background: var(--hd-leak-100); color: var(--hd-leak-ink); }
.hd-badge--accent { background: var(--hd-accent); color: var(--hd-accent-ink); }

/* ---------- Cards ---------- */
.hd-card {
  display: flex; flex-direction: column; gap: var(--hd-space-3);
  padding: var(--hd-space-6); background: var(--hd-surface-card);
  border: var(--hd-border-width) solid var(--hd-border-subtle);
  border-radius: var(--hd-radius-lg); color: inherit;
}
.hd-card--link { text-decoration: none; transition: var(--hd-transition-control), box-shadow var(--hd-duration-base) var(--hd-ease-standard); }
.hd-card--link:hover { border-color: var(--hd-ink-900); transform: var(--hd-hover-lift); box-shadow: var(--hd-shadow-md); color: inherit; }
.hd-card--accent { border-color: var(--hd-lime-700); background: var(--hd-surface-accent); }
.hd-card__index {
  font-family: var(--hd-font-mono); font-size: var(--hd-size-caption);
  font-weight: var(--hd-weight-semibold); color: var(--hd-text-muted); letter-spacing: 0.04em;
}
.hd-card__title { font-family: var(--hd-font-display); font-size: var(--hd-size-heading); font-weight: var(--hd-weight-bold); line-height: var(--hd-leading-snug); letter-spacing: var(--hd-tracking-heading); margin: 0; }
.hd-card__body { font-size: var(--hd-size-body-sm); color: var(--hd-text-secondary); margin: 0; max-width: var(--hd-measure-card); }
.hd-card__foot { margin-top: auto; padding-top: var(--hd-space-4); }
.hd-card__meta { display: flex; flex-wrap: wrap; gap: var(--hd-space-2); font-size: var(--hd-size-caption); color: var(--hd-text-muted); }

/* ---------- Metrics / proof ---------- */
.hd-metric { display: flex; flex-direction: column; gap: 2px; }
.hd-metric__value { font-family: var(--hd-font-mono); font-variant-numeric: tabular-nums; font-size: var(--hd-size-display-3); font-weight: var(--hd-weight-semibold); letter-spacing: -0.02em; color: var(--hd-text-primary); }
.hd-metric__label { font-size: var(--hd-size-caption); text-transform: uppercase; letter-spacing: var(--hd-tracking-eyebrow); color: var(--hd-text-muted); }
.hd-metric__delta { font-family: var(--hd-font-mono); font-size: var(--hd-size-caption); font-weight: var(--hd-weight-medium); }
.hd-metric__delta--good { color: var(--hd-good-ink); }
.hd-metric__delta--leak { color: var(--hd-leak-ink); }
.hd-metric-row { display: flex; flex-wrap: wrap; gap: var(--hd-space-8); }

/* ---------- Audit checklist ---------- */
.hd-audit { border: var(--hd-border-width) solid var(--hd-border-subtle); border-radius: var(--hd-radius-lg); overflow: hidden; background: var(--hd-surface-card); }
.hd-audit__row { display: grid; grid-template-columns: 160px 1fr auto; gap: var(--hd-space-4); align-items: center; padding: var(--hd-space-4) var(--hd-space-6); border-top: var(--hd-border-width) solid var(--hd-border-subtle); }
.hd-audit__row:first-child { border-top: 0; }
.hd-audit__key { font-family: var(--hd-font-display); font-weight: var(--hd-weight-semibold); font-size: var(--hd-size-body-sm); }
.hd-audit__question { font-size: var(--hd-size-body-sm); color: var(--hd-text-secondary); margin: 0; }
@media (max-width: 720px) { .hd-audit__row { grid-template-columns: 1fr; } }

/* ---------- Numbered steps ---------- */
.hd-step { display: grid; grid-template-columns: 56px 1fr; gap: var(--hd-space-5); padding-block: var(--hd-space-6); border-top: var(--hd-border-width) solid var(--hd-border-subtle); }
.hd-step__num { font-family: var(--hd-font-mono); font-size: var(--hd-size-subheading); font-weight: var(--hd-weight-semibold); color: var(--hd-text-muted); }
.hd-step__title { font-family: var(--hd-font-display); font-size: var(--hd-size-subheading); font-weight: var(--hd-weight-bold); margin: 0 0 var(--hd-space-2); }
.hd-step__body { font-size: var(--hd-size-body-sm); color: var(--hd-text-secondary); margin: 0; }

/* ---------- Funnel strip ---------- */
.hd-funnel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hd-space-2); }
.hd-funnel__node { display: inline-flex; align-items: center; padding: 6px var(--hd-space-3); border-radius: var(--hd-radius-sm); background: var(--hd-line-100); font-family: var(--hd-font-mono); font-size: var(--hd-size-caption); color: var(--hd-text-secondary); }
.hd-funnel__node--active { background: var(--hd-accent); color: var(--hd-accent-ink); font-weight: var(--hd-weight-semibold); }
.hd-funnel__node--leak { background: var(--hd-leak-100); color: var(--hd-leak-ink); font-weight: var(--hd-weight-semibold); }
.hd-funnel__arrow { color: var(--hd-slate-300); font-size: var(--hd-size-caption); }

/* ---------- Comparison rows ---------- */
.hd-compare { display: grid; gap: 0; border: var(--hd-border-width) solid var(--hd-border-subtle); border-radius: var(--hd-radius-lg); overflow: hidden; }
.hd-compare__row { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hd-border-width) solid var(--hd-border-subtle); }
.hd-compare__row:first-child { border-top: 0; }
.hd-compare__cell { padding: var(--hd-space-4) var(--hd-space-6); font-size: var(--hd-size-body-sm); }
.hd-compare__cell--them { color: var(--hd-text-muted); text-decoration: line-through; text-decoration-color: var(--hd-slate-300); }
.hd-compare__cell--us { font-weight: var(--hd-weight-semibold); background: var(--hd-surface-accent); border-left: var(--hd-border-width) solid var(--hd-border-subtle); }

/* ---------- FAQ ---------- */
.hd-faq { border-top: var(--hd-border-width) solid var(--hd-border-subtle); }
.hd-faq__item { border-bottom: var(--hd-border-width) solid var(--hd-border-subtle); }
.hd-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--hd-space-4); padding: var(--hd-space-5) 0; cursor: pointer; font-family: var(--hd-font-display); font-size: var(--hd-size-subheading); font-weight: var(--hd-weight-semibold); list-style: none; }
.hd-faq__q::-webkit-details-marker { display: none; }
.hd-faq__q::after { content: "+"; font-family: var(--hd-font-mono); font-size: var(--hd-size-heading); color: var(--hd-text-muted); }
.hd-faq__item[open] .hd-faq__q::after { content: "–"; }
.hd-faq__a { padding-bottom: var(--hd-space-5); font-size: var(--hd-size-body-sm); color: var(--hd-text-secondary); max-width: var(--hd-measure-body); }

/* ---------- Forms ---------- */
.hd-field { display: flex; flex-direction: column; gap: var(--hd-space-2); }
.hd-label { font-size: var(--hd-size-body-sm); font-weight: var(--hd-weight-medium); color: var(--hd-text-primary); }
.hd-label__req { color: var(--hd-leak-ink); }
.hd-input, .hd-select, .hd-textarea {
  width: 100%; min-height: var(--hd-control-h-md); padding: var(--hd-space-3) var(--hd-space-4);
  font-family: var(--hd-font-body); font-size: var(--hd-size-body); color: var(--hd-text-primary);
  background: var(--hd-surface-card); border: var(--hd-border-width) solid var(--hd-border-subtle);
  border-radius: var(--hd-radius-md); transition: var(--hd-transition-control);
}
.hd-input::placeholder, .hd-textarea::placeholder { color: var(--hd-slate-400); }
.hd-input:hover, .hd-select:hover, .hd-textarea:hover { border-color: var(--hd-steel-500); }
.hd-input:focus, .hd-select:focus, .hd-textarea:focus { outline: none; border-color: var(--hd-indigo-500); box-shadow: var(--hd-ring-focus); }
.hd-textarea { min-height: 120px; resize: vertical; line-height: var(--hd-leading-normal); }
.hd-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hd-steel-500) 50%), linear-gradient(135deg, var(--hd-steel-500) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--hd-space-10); }
.hd-input[aria-invalid="true"], .hd-select[aria-invalid="true"] { border-color: var(--hd-leak-500); }
.hd-help { font-size: var(--hd-size-caption); color: var(--hd-text-muted); }
.hd-error { font-size: var(--hd-size-caption); color: var(--hd-leak-ink); font-weight: var(--hd-weight-medium); }
.hd-check { display: flex; align-items: center; gap: var(--hd-space-3); min-height: var(--hd-control-h-md); font-size: var(--hd-size-body-sm); cursor: pointer; }
.hd-check input { width: 20px; height: 20px; accent-color: var(--hd-lime-700); flex: none; }
.hd-note { padding: var(--hd-space-4) var(--hd-space-5); background: var(--hd-bg-subtle); border-radius: var(--hd-radius-md); font-size: var(--hd-size-caption); color: var(--hd-text-muted); max-width: var(--hd-measure-body); }

/* ---------- Progress (multi-step audit) ---------- */
.hd-progress { display: flex; gap: var(--hd-space-2); }
.hd-progress__step { flex: 1; height: 4px; border-radius: 2px; background: var(--hd-line-200); }
.hd-progress__step--done { background: var(--hd-accent); }
.hd-progress__step--current { background: var(--hd-lime-700); }

/* ---------- Marquee ---------- */
.hd-marquee { overflow: hidden; border-block: var(--hd-border-width) solid var(--hd-border-inverse); padding-block: var(--hd-space-4); }
.hd-marquee__track { display: inline-flex; gap: var(--hd-space-8); white-space: nowrap; font-family: var(--hd-font-display); font-size: var(--hd-size-display-3); font-weight: var(--hd-weight-bold); letter-spacing: var(--hd-tracking-display); color: var(--hd-text-primary); animation: hd-marquee 22s linear infinite; }
.hd-marquee__dot { color: var(--hd-accent); }
@keyframes hd-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hd-marquee__track { animation: none; } }

/* ---------- Header ---------- */
.hd-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--hd-bg-page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: var(--hd-border-width) solid var(--hd-border-subtle); }
.hd-header__inner { display: flex; align-items: center; gap: var(--hd-space-6); min-height: 68px; }
.hd-brand { display: inline-flex; align-items: center; gap: var(--hd-space-3); text-decoration: none; color: var(--hd-text-primary); font-family: var(--hd-font-display); font-weight: var(--hd-weight-bold); font-size: var(--hd-size-subheading); letter-spacing: -0.02em; }
.hd-brand img { width: 32px; height: 32px; border-radius: 8px; }
.hd-nav { display: flex; align-items: center; gap: var(--hd-space-5); margin-left: auto; }
.hd-nav__link { font-size: var(--hd-size-body-sm); font-weight: var(--hd-weight-medium); color: var(--hd-text-secondary); text-decoration: none; }
.hd-nav__link:hover { color: var(--hd-text-primary); }
.hd-nav__link[aria-current="page"] { color: var(--hd-text-primary); box-shadow: inset 0 -8px 0 -6px var(--hd-accent); }
.hd-lang { display: inline-flex; border: var(--hd-border-width) solid var(--hd-border-subtle); border-radius: var(--hd-radius-pill); overflow: hidden; }
.hd-lang a { display: inline-flex; align-items: center; min-height: var(--hd-control-h-sm); padding: 0 var(--hd-space-3); font-size: var(--hd-size-caption); font-weight: var(--hd-weight-semibold); text-decoration: none; color: var(--hd-text-muted); }
.hd-lang a[aria-current="true"] { background: var(--hd-text-primary); color: var(--hd-bg-page); }
@media (max-width: 1080px) { .hd-nav { display: none; } }

/* ---------- Mobile header: JS-free disclosure drawer ---------- */
.hd-header__mobile { display: none; margin-left: auto; align-items: center; gap: var(--hd-space-3); }
.hd-nav-mobile { position: relative; }
.hd-nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hd-space-2);
  min-width: 44px; min-height: 44px; padding: 0 var(--hd-space-3); cursor: pointer; list-style: none;
  border: var(--hd-border-width) solid var(--hd-border-subtle); border-radius: var(--hd-radius-md);
  background: var(--hd-surface-card); color: var(--hd-text-primary);
  font-size: var(--hd-size-body-sm); font-weight: var(--hd-weight-semibold);
}
.hd-nav-toggle::-webkit-details-marker { display: none; }
.hd-nav-toggle__bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.hd-nav-toggle__bars::before,
.hd-nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.hd-nav-toggle__bars::before { top: -5px; }
.hd-nav-toggle__bars::after { top: 5px; }
.hd-nav-mobile[open] .hd-nav-toggle { border-color: var(--hd-border-strong); }
.hd-nav-mobile[open] .hd-nav-toggle__bars { background: transparent; }
.hd-nav-mobile[open] .hd-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.hd-nav-mobile[open] .hd-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.hd-nav-drawer {
  position: absolute; right: 0; top: calc(100% + var(--hd-space-3)); z-index: 50;
  width: min(320px, calc(100vw - var(--hd-space-8)));
  display: flex; flex-direction: column; gap: var(--hd-space-2);
  padding: var(--hd-space-4); background: var(--hd-surface-card);
  border: var(--hd-border-width) solid var(--hd-border-subtle);
  border-radius: var(--hd-radius-lg); box-shadow: var(--hd-shadow-lg);
}
.hd-nav-drawer .hd-nav__link {
  display: flex; align-items: center; min-height: var(--hd-control-h-md);
  padding-inline: var(--hd-space-2); border-radius: var(--hd-radius-sm);
  font-size: var(--hd-size-body); color: var(--hd-text-primary);
}
.hd-nav-drawer .hd-nav__link:hover { background: var(--hd-bg-subtle); }
.hd-nav-drawer__divider { height: 1px; background: var(--hd-border-subtle); margin-block: var(--hd-space-2); }
.hd-nav-drawer .hd-btn { width: 100%; }
.hd-nav-drawer .hd-lang a { min-height: var(--hd-control-h-md); padding-inline: var(--hd-space-4); }
@media (max-width: 1080px) { .hd-header__mobile { display: flex; } }
@media (max-width: 420px) { .hd-header__mobile > .hd-btn { display: none; } }

/* ---------- Footer ---------- */
.hd-footer { background: var(--hd-bg-page); color: var(--hd-text-primary); padding-block: var(--hd-space-16) var(--hd-space-8); }
.hd-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--hd-space-10); }
.hd-footer__title { font-family: var(--hd-font-display); font-size: var(--hd-size-eyebrow); text-transform: uppercase; letter-spacing: var(--hd-tracking-eyebrow); color: var(--hd-text-muted); margin-bottom: var(--hd-space-4); }
.hd-footer__links { display: flex; flex-direction: column; gap: var(--hd-space-2); }
.hd-footer__links a { font-size: var(--hd-size-body-sm); color: var(--hd-text-secondary); text-decoration: none; }
.hd-footer__links a:hover { color: var(--hd-text-primary); }
.hd-footer__legal { display: flex; flex-wrap: wrap; gap: var(--hd-space-4); margin-top: var(--hd-space-12); padding-top: var(--hd-space-6); border-top: var(--hd-border-width) solid var(--hd-border-subtle); font-size: var(--hd-size-caption); color: var(--hd-text-muted); }
@media (max-width: 820px) { .hd-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hd-hero { padding-block: clamp(56px, 8vw, 120px) var(--hd-section-y); background: var(--hd-bg-page); color: var(--hd-text-primary); }
.hd-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hd-hero h1 { max-width: 18ch; }
@media (max-width: 980px) { .hd-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Panel (audit snapshot on dark) ---------- */
.hd-panel { padding: var(--hd-space-6); border: var(--hd-border-width) solid var(--hd-border-inverse); border-radius: var(--hd-radius-xl); background: var(--hd-surface-raised); }
.hd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--hd-space-4); margin-bottom: var(--hd-space-5); }
