/*
  Design tokens — aSpace static rebuild
  Brand source of truth: planning/ref/aSpace-Brand-Manual.pdf
  (+ .cursor/rules/brand-manual.mdc). Prefer the brand manual over
  older planning/design-system.md notes when they conflict.

  Colors are declared in two tiers:
    1. Brand palette  — the raw, approved aSpace values. Never used directly
                        by components.
    2. Semantic roles — what components actually reference. Rebranding means
                        remapping this tier, not editing components.
  Values suffixed -dark/-light/-soft are tints or shades derived from the
  brand palette to meet WCAG AA contrast in a specific role.
*/

:root {
  /* ---------------------------------------------------------
     Tier 1 — aSpace brand palette
     Updated to match brand-manual / landing reference (2026-09)
  --------------------------------------------------------- */
  --brand-blue: #293fc4;
  --brand-blue-deep: #18329f;
  --brand-black: #152047; /* deep blue-neutral ink — not pure black */
  --brand-grey: #8b90a8;
  --brand-off-white: #f4f4f7;

  /* Button / accent spectrum — brand swatch 2026-09-11 */
  --brand-lime: #b2f704;
  --brand-coral: #fd3b31;
  --brand-green: #22c55e;
  --brand-orange: #fc8902;
  --brand-yellow: #fdd30a;
  --brand-red: #fd3b31;

  /* Derived shades — required for hover, borders and accessible text */
  --brand-blue-dark: #18329f;   /* button/link hover */
  --brand-blue-bright: #3a52d4; /* optional lift */
  --brand-blue-lift: #4a62e0;
  --brand-grey-dark: #425078;   /* muted ink on light surfaces */
  --brand-grey-light: #c5c8d6;  /* hairline borders (non-brand) */
  --brand-grey-wash: #e8e8ee;
  --brand-red-dark: #c94a46;    /* AA error text on light surfaces */

  /* Explicit aliases from redesign brief */
  --color-brand-blue: var(--brand-blue);
  --color-brand-blue-deep: var(--brand-blue-deep);
  --color-brand-lime: var(--brand-lime);
  --color-brand-coral: var(--brand-coral);
  --color-page: var(--brand-off-white);

  /* Button accent spectrum (brand swatch) */
  --btn-accent-coral: var(--brand-coral);
  --btn-accent-orange: var(--brand-orange);
  --btn-accent-yellow: var(--brand-yellow);
  --btn-accent-lime: var(--brand-lime);

  /* ---------------------------------------------------------
     Tier 2 — semantic roles
  --------------------------------------------------------- */
  --color-primary: var(--brand-blue);
  --color-primary-hover: var(--brand-blue-dark);
  --color-accent: var(--brand-lime);

  /* Neutrals — ink is deep branded blue, not #000 */
  --color-ink: #152047;
  --color-ink-muted: #425078;
  --color-muted: var(--color-ink-muted);
  /* Site-wide hairlines stay quiet; landing cards use --color-border-brand */
  --color-border: var(--brand-grey-light);
  --color-border-brand: var(--brand-blue);
  --color-border-subtle: var(--brand-grey-light);
  --color-surface: var(--brand-off-white);
  --color-surface-elevated: #ffffff;
  --color-footer: var(--brand-blue);
  --color-footer-text: #ffffff;

  /* Text on dark or saturated backgrounds */
  --color-on-dark: #ffffff;
  --color-on-dark-soft: rgba(255, 255, 255, 0.92);
  --color-on-dark-muted: rgba(255, 255, 255, 0.82);
  --color-footer-text-muted: rgba(255, 255, 255, 0.8);
  --color-footer-rule: rgba(255, 255, 255, 0.2);

  /* Status */
  --color-info: var(--brand-blue);
  --color-info-surface: #edf0f9;
  --color-success: var(--brand-green);
  --color-warning: var(--brand-orange);
  --color-highlight: var(--brand-yellow);
  --color-error: var(--brand-red-dark);
  --color-error-surface: #fff1f1;
  --color-problem: var(--brand-coral);

  /* Overlays */
  --color-focus: var(--brand-blue);

  /* Brand gradients — used sparingly; landing prefers flat colour */
  --gradient-hero: linear-gradient(
    160deg,
    var(--brand-blue) 0%,
    var(--brand-blue-bright) 45%,
    var(--brand-blue-lift) 100%
  );
  --gradient-hero-simple: linear-gradient(
    160deg,
    var(--color-surface) 0%,
    var(--brand-grey-wash) 100%
  );

  /* ---------------------------------------------------------
     Typography
  --------------------------------------------------------- */
  /* Archivo for UI; Space Mono for buttons + tags */
  --font-heading: "Archivo", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Archivo", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-serif: "Archivo", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui-label: var(--font-mono);
  --text-ui-label: 14pt;

  /* Mobile-first type scale */
  --text-xs: 0.875rem;   /* 14px */
  --text-sm: 1rem;       /* 16px */
  --text-base: 1.125rem; /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 1.875rem;  /* 30px */
  --text-3xl: 2.25rem;   /* 36px */
  --text-4xl: 2.75rem;   /* 44px */
  --text-brand: clamp(1.75rem, 4vw, 2.5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-relaxed: 1.65;

  --measure-narrow: 65ch;

  /* ---------------------------------------------------------
     Spacing (4px base scale)
  --------------------------------------------------------- */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-9: 6rem;     /* 96px */

  /* Layout widths — chrome/body align to 1920px content shell */
  --width-narrow: 45rem;   /* 720px — prose / legal measure */
  --width-content: 1920px; /* final site content width */
  --width-wide: 1920px;
  --width-page-pad: clamp(1rem, 3vw, 2rem);

  /* Section rhythm (mobile defaults; bumped at --bp-md) */
  --section-pad-y: var(--space-7);
  --stack-gap: var(--space-5);

  /* ---------------------------------------------------------
     Radius & elevation
  --------------------------------------------------------- */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 12px;
  --radius-btn: 2px;

  --shadow-1: 0 1px 3px rgba(5, 7, 13, 0.1);

  /* ---------------------------------------------------------
     Motion
  --------------------------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* ---------------------------------------------------------
     Z-index scale
  --------------------------------------------------------- */
  --z-header: 100;
  --z-mobile-nav: 90;
  --z-skip-link: 200;
}

/* ---------------------------------------------------------
   Breakpoints (documented for reference — media queries use
   raw px values since CSS custom properties cannot be used
   inside @media conditions)
   sm: 640px | md: 960px | lg: 1200px
--------------------------------------------------------- */

@media (min-width: 960px) {
  :root {
    --section-pad-y: var(--space-9);
    --stack-gap: var(--space-6);
    --text-2xl: 2rem;      /* 32px */
    --text-3xl: 2.75rem;   /* 44px */
    --text-4xl: 3.25rem;   /* 52px */
  }
}

/*
  Base — reset, fonts, global typography, links, focus.
  Source of truth: planning/design-system.md §2 Typography, §17 Accessibility
*/

/* ---------------------------------------------------------
   Fonts (self-hosted, variable, subset: latin)
--------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/Archivo-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/SpaceMono-Regular.woff2") format("woff2");
}

/* Source Serif 4 retired — brand manual specifies Archivo for body/UI */

/* ---------------------------------------------------------
   Reset
--------------------------------------------------------- */

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

/* ---------------------------------------------------------
   Typography
--------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-body);
  line-height: var(--leading-snug);
}

p {
  max-width: var(--measure-narrow);
}

p + p,
p + ul,
p + ol,
ul + p,
ol + p {
  margin-top: 1em;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

strong {
  font-weight: 700;
}

/* ---------------------------------------------------------
   Links
--------------------------------------------------------- */

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-hover);
}

main a:not(.btn):not(.lp-btn):not(.lp-pill) {
  text-decoration: underline;
}

nav a,
.btn,
.card a {
  text-decoration: none;
}

/* ---------------------------------------------------------
   Focus
--------------------------------------------------------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------
   Skip link
--------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-skip-link);
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: var(--color-on-dark);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-3);
}

/* Visually hidden, but available to assistive technology */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   Selection
--------------------------------------------------------- */

::selection {
  background: var(--color-accent);
  color: var(--color-ink);
}

/* ---------------------------------------------------------
   Reduced motion
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*
  Layout — containers, sections, grids.
  Source of truth: planning/design-system.md §4 Spacing, §13 Responsive rules
*/

/* ---------------------------------------------------------
   Containers
--------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--width-page-pad);
}

.container--narrow {
  max-width: var(--width-narrow);
}

/* ---------------------------------------------------------
   Page skeleton
--------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */

.section {
  padding-block: var(--section-pad-y);
}

.section--surface {
  background-color: var(--color-surface);
}

.section--elevated {
  background-color: var(--color-surface-elevated);
}

/* Slim band for ancillary strips such as the logo ribbon, which would
   look stranded inside a full-height section */
.section--band {
  padding-block: var(--space-6);
}

@media (min-width: 960px) {
  .section--band {
    padding-block: var(--space-7);
  }
}

.section--primary {
  background-color: var(--color-primary);
  color: var(--color-on-dark);
}

.section--primary h2,
.section--primary h3 {
  color: var(--color-on-dark);
}

.section--primary .lead {
  color: var(--color-on-dark-soft);
}

.section--primary .stat__value {
  color: var(--color-on-dark);
}

.section--primary .stat__label {
  color: var(--color-on-dark-muted);
}

.section > .container > * + * {
  margin-top: var(--stack-gap);
}

.section-heading {
  max-width: var(--width-narrow);
  margin-bottom: var(--space-6);
}

.section-heading > * + * {
  margin-top: var(--space-3);
}

.section-eyebrow,
.feature-item__eyebrow {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ---------------------------------------------------------
   Stacks & flow
--------------------------------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.stack--tight {
  gap: var(--space-3);
}

/* ---------------------------------------------------------
   Grids
--------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .grid {
    gap: var(--space-6);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Two-column layout with a sidebar-style visual (e.g. audience + sticky image) */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split--reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

/*
  Components — buttons, forms, navigation, footer, cards, hero,
  tables, alerts, FAQ, and CTA bands.
  Source of truth: planning/design-system.md
*/

/* ===========================================================
   Buttons — §5
=========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-family: var(--font-ui-label, var(--font-mono));
  font-weight: 400;
  font-size: var(--text-ui-label, 14pt);
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

@media (max-width: 639px) {
  .btn {
    white-space: normal;
    text-align: center;
    text-wrap: balance;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-on-dark);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-primary-hover);
  color: var(--color-on-dark);
}

.btn--secondary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-on-dark);
}

.btn--on-dark.btn--secondary {
  border-color: var(--color-on-dark);
  color: var(--color-on-dark);
}

.btn--on-dark.btn--secondary:hover,
.btn--on-dark.btn--secondary:focus-visible {
  background-color: var(--color-on-dark);
  color: var(--color-primary);
}

.btn--tertiary {
  background-color: var(--color-surface-elevated);
  border-color: var(--color-border);
  color: var(--color-ink);
}

.btn--tertiary:hover,
.btn--tertiary:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 16px;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: var(--text-base);
  font-weight: 700;
}

.btn--full {
  width: 100%;
}

@media (min-width: 640px) {
  .btn--full {
    width: auto;
  }
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ===========================================================
   Site header & navigation — §9
=========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-surface-elevated);
  border-bottom: 1px solid var(--color-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 64px;
  max-width: var(--width-wide);
  margin-inline: auto;
  padding-block: var(--space-3);
  padding-inline: var(--width-page-pad);
}

@media (min-width: 960px) {
  .site-header__bar {
    min-height: 72px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand__mark {
  display: block;
  height: 50px;
  width: auto;
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  opacity: 0.85;
}

.nav-primary {
  display: none;
}

@media (min-width: 960px) {
  .nav-primary {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-left: auto;
  }

  .nav-primary__list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .nav-primary.is-claim-hover .nav-primary__list,
  .nav-primary:has(.header-claim:hover) .nav-primary__list,
  .nav-primary:has(.header-claim:focus-visible) .nav-primary__list {
    transform: translateX(-0.75rem);
  }

  .nav-primary__link {
    position: relative;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-ink);
    padding-block: var(--space-1);
  }

  .nav-primary__link:hover,
  .nav-primary__link:focus-visible {
    color: var(--color-primary);
  }

  .nav-primary__link[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 700;
  }

  .nav-primary__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 1px;
  }

  .header-claim {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 2.75rem;
    padding: 0 1.75rem;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-btn, 2px);
    color: var(--color-primary);
    font-family: var(--font-ui-label, var(--font-mono));
    font-size: var(--text-ui-label, 14pt);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.35s ease, background-color 0.2s ease, color 0.2s ease,
      border-color 0.2s ease;
  }

  .header-claim:hover,
  .header-claim:focus-visible,
  .header-claim.is-hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-dark);
    text-decoration: none;
  }

  .header-claim__idle,
  .header-claim__hover {
    display: block;
    white-space: nowrap;
    transition: opacity 0.28s ease, transform 0.35s ease;
  }

  .header-claim__hover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    opacity: 0;
    pointer-events: none;
  }

  .header-claim.is-hover .header-claim__idle,
  .header-claim:hover .header-claim__idle,
  .header-claim:focus-visible .header-claim__idle {
    opacity: 0;
    transform: translateX(-0.5rem);
  }

  .header-claim.is-hover .header-claim__hover,
  .header-claim:hover .header-claim__hover,
  .header-claim:focus-visible .header-claim__hover {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.header-ctas {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .header-ctas {
    display: flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--color-primary);
}

@media (min-width: 960px) {
  body:not(.page-home):not(.page-interior) .nav-toggle {
    display: none;
  }
}

.nav-toggle__icon {
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle__icon span:nth-child(1) {
  top: 0;
}

.nav-toggle__icon span:nth-child(2) {
  top: 7px;
}

.nav-toggle__icon span:nth-child(3) {
  top: 14px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: 4.75rem;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-mobile-nav);
  background-color: var(--color-surface-elevated);
  overflow-y: auto;
  padding: var(--space-6) var(--width-page-pad) var(--space-8);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.nav-mobile__link {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile__link[aria-current="page"] {
  color: var(--color-primary);
}

.nav-mobile__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Claim CTA inside mobile drawer (desktop claim lives in .nav-primary) */
.header-claim--nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  height: auto;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--color-brand-blue, var(--color-primary));
  border-radius: var(--radius-btn, 2px);
  background: transparent;
  color: var(--color-brand-blue, var(--color-primary));
  font-family: var(--font-ui-label, var(--font-mono));
  font-size: var(--text-ui-label, 14pt);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  overflow: visible;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-claim--nav:hover,
.header-claim--nav:focus-visible {
  background: var(--color-brand-blue, var(--color-primary));
  color: #fff;
  border-color: var(--color-brand-blue, var(--color-primary));
  text-decoration: none;
}

/* Default pages hide drawer at 960; home/interior keep hamburger until 1100 */
@media (min-width: 960px) {
  body:not(.page-home):not(.page-interior) .nav-mobile {
    display: none !important;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ===========================================================
   Site footer — brand ink layout
=========================================================== */

.site-footer {
  background-color: var(--color-brand-blue);
  color: #fff;
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  overflow: hidden;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.2vw, 1.5rem);
  container-type: inline-size;
  container-name: site-footer;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.site-footer__copy {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

/* Blue card holding olive/halftone banner (light areas read as blue) */
.site-footer__banner {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--color-brand-blue);
  /* Half the previous 1024/234 frame — clips the image, does not scale it */
  aspect-ratio: 1024 / 117;
  min-height: 3.75rem;
}

.site-footer__banner img {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
}

.site-footer__wordmark {
  margin: 0;
  width: 100%;
  padding-bottom: clamp(0.15rem, 1vw, 0.45rem);
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 12vw, 10.5rem);
  font-size: 13.55cqi;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.82;
  color: #fff;
  white-space: nowrap;
  overflow: visible;
}

.site-footer__dot {
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-inline: 0.04em;
  border-radius: 1px;
  background: var(--brand-lime, var(--color-brand-lime));
  vertical-align: 0.18em;
}

@media (max-width: 639px) {
  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__nav ul {
    gap: 0.15rem 0.85rem;
  }

  .site-footer__wordmark {
    font-size: clamp(2rem, 13vw, 4rem);
    font-size: 12.8cqi;
    letter-spacing: -0.05em;
  }

  .site-footer {
    overflow: visible;
  }

  .site-footer__banner {
    overflow: hidden;
  }
}

/* ===========================================================
   Hero sections — §8
=========================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-on-dark);
  background: var(--gradient-hero);
  padding-block: var(--space-7);
}

@media (min-width: 960px) {
  .hero {
    padding-block: var(--space-8);
    min-height: 70vh;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--width-page-pad);
  width: 100%;
}

.hero__brand {
  font-family: var(--font-heading);
  font-size: var(--text-brand);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 var(--space-5);
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--color-on-dark);
  border-radius: 999px;
  color: var(--color-on-dark);
  font-family: var(--font-ui-label, var(--font-mono));
  font-size: var(--text-ui-label, 14pt);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 899px) {
  .hero__pill {
    white-space: normal;
    text-wrap: balance;
  }
}

.hero__heading {
  color: var(--color-on-dark);
  font-size: var(--text-3xl);
  max-width: 28ch;
}

@media (min-width: 960px) {
  .hero__heading {
    font-size: var(--text-4xl);
    max-width: 28ch;
  }
}

.hero__support {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  max-width: 55ch;
  color: var(--color-on-dark-soft);
}

.hero__ctas {
  margin-top: var(--space-6);
}

.hero__ctas .btn {
  border-radius: var(--radius-btn, 2px);
  gap: 0.55rem;
}

.hero__ctas .btn__mark {
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  background: var(--color-accent);
}

.hero__ctas .btn__arrow {
  font-weight: 700;
  line-height: 1;
}

/* Simple hero variant — contact, legal, blog index */
.hero--simple {
  min-height: auto;
  background: var(--gradient-hero-simple);
  color: var(--color-ink);
  padding-block: var(--space-7);
}

.hero--simple .hero__heading {
  color: var(--color-ink);
  max-width: 28ch;
}

.hero--simple .hero__support {
  color: var(--color-muted);
}

/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.eyebrow--on-dark {
  color: var(--color-on-dark-soft);
}

/* ===========================================================
   Cards — §7 (interaction only — post, dataset, pricing offer)
=========================================================== */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

@media (min-width: 960px) {
  .card {
    padding: var(--space-6);
  }
}

.card__title {
  margin-top: 0;
}

.card__meta {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.card__action {
  margin-top: auto;
  padding-top: var(--space-3);
}

.card--elevated {
  box-shadow: var(--shadow-1);
}

.card--featured {
  border-color: var(--color-primary);
}

/* ===========================================================
   Forms — §6
=========================================================== */

.form {
  max-width: 35rem; /* 560px */
}

.form-field + .form-field {
  margin-top: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-error);
}

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.form-input,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-ink);
  transition: border-color var(--transition-fast);
}

.form-textarea {
  min-height: 144px;
  resize: vertical;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-focus);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-actions {
  margin-top: var(--space-6);
}

/* Honeypot — hidden from sighted users, present for bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===========================================================
   Tables — §11
=========================================================== */

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.table {
  min-width: 100%;
  font-size: var(--text-sm);
}

.table caption {
  text-align: left;
  padding: var(--space-4);
  font-weight: 600;
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-weight: 600;
  color: var(--color-ink);
  background-color: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:nth-child(even) {
  background-color: var(--color-surface);
}

/* ===========================================================
   Alerts — §12
=========================================================== */

.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
  font-size: var(--text-sm);
}

.alert--info {
  background-color: var(--color-info-surface);
  border-left-color: var(--color-info);
}

.alert--error {
  background-color: var(--color-error-surface);
  border-left-color: var(--color-error);
}

/* ===========================================================
   FAQ — §16
=========================================================== */

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-1);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__content {
  padding: 0 var(--space-1) var(--space-4);
  color: var(--color-muted);
  max-width: var(--measure-narrow);
}

/* ===========================================================
   CTA band — §16
=========================================================== */

.cta-band {
  text-align: center;
}

.cta-band__content {
  max-width: var(--width-narrow);
  margin-inline: auto;
}

.cta-band__content > * + * {
  margin-top: var(--space-4);
}

.cta-band .btn-group {
  justify-content: center;
  margin-top: var(--space-6);
}

/* ===========================================================
   Process steps / feature list — §16
=========================================================== */

.process-steps,
.feature-list {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.process-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-footer);
  font-weight: 700;
  font-family: var(--font-heading);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.metrics-prompt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 36rem;
}

.manifesto {
  max-width: 36rem;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.manifesto p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-snug, 1.35);
  color: var(--color-ink);
}

.quote-block {
  margin: 0;
  max-width: 40rem;
}

.quote-block__text {
  margin: 0;
}

.quote-block__text p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug, 1.4);
  color: var(--color-ink);
}

.quote-block__who {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ===========================================================
   Stat grid — coverage / trust sections
=========================================================== */

.stat-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: var(--leading-tight);
}

.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ===========================================================
   Logo ribbon — "Trusted by" partner / accreditation strip

   Reusable: drop the markup into any light section. Add or
   remove an organisation by adding or removing one <li>; the
   row re-flows and re-centres on its own, so no CSS change is
   needed. Sized for light surfaces only.
=========================================================== */

.logo-ribbon__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: var(--space-5);
}

/* auto-fit collapses unused tracks, so any number of logos spreads evenly
   across the row instead of leaving an orphan on a second line */
.logo-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  align-items: center;
  justify-items: center;
  gap: var(--space-5) var(--space-6);
}

.logo-ribbon__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed height with auto width keeps mixed-aspect logos optically
   balanced without cropping or distortion. */
.logo-ribbon__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

@media (min-width: 640px) {
  .logo-ribbon__logo {
    height: 44px;
  }
}

/* ===========================================================
   Check list — plan inclusions, feature checklists
=========================================================== */

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.check-list li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-footer);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===========================================================
   Pricing offer — §5/§7 (interaction: plan + CTA)
=========================================================== */

.pricing-offer {
  max-width: 26rem;
}

.pricing-offer .btn--full {
  width: 100%;
}

.pricing-offer__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
}

.pricing-offer__price span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
}

/* ===========================================================
   ROI calculator — §11 (slider + savings math)
=========================================================== */

.roi-calculator {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .roi-calculator {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  appearance: none;
  -webkit-appearance: none;
  margin-top: var(--space-3);
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface-elevated);
  box-shadow: var(--shadow-1);
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-surface-elevated);
  box-shadow: var(--shadow-1);
  cursor: pointer;
}

.range-slider:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.roi-result {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.roi-result__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px dashed var(--color-border);
  font-size: var(--text-sm);
}

.roi-result__row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.roi-result__row:last-child {
  border-bottom: none;
  padding-top: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

/* ===========================================================
   Tag — category labels (post cards, article meta)
=========================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

a.tag:hover,
a.tag:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===========================================================
   Article meta — category, date, reading time
=========================================================== */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* Article header/body sections sit closer together than a full section gap */
.article-header {
  padding-bottom: var(--space-4);
}

.article-body {
  padding-top: var(--space-4);
}

/* Long-form legal and article content */
.prose {
  max-width: var(--measure-narrow);
  overflow-wrap: anywhere;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1em;
}

/* Legal entity / registered office blocks inside long-form content */
.prose address {
  font-style: normal;
}

.prose h2 {
  margin-top: var(--space-7);
}

.prose h3 {
  margin-top: var(--space-6);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.4em;
}

/* ===========================================================
   Breadcrumbs
=========================================================== */

.breadcrumb-bar {
  padding-block: var(--space-4);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-muted);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--color-primary);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--color-border);
}
