/* ALi3 fonts: self-hosted variable WOFF2 files, Latin subset. Each app serves the files listed
   in fonts.json at these /assets/fonts/ paths (the site build fingerprints them). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.3100e775e8.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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/assets/fonts/space-grotesk-latin-wght-normal.0640890476.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: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.18be452724.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;
}

/* ALi3 design tokens: colors for light, dark and system ("auto") themes, plus fonts.
   Set data-theme="light|dark|auto" on <html>. Values come from the ALi3 design (Main.dc.html). */

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #F4F6F8;
  --surface-subtle: #F7F9FB;
  --ink: #0E1726;
  --text-2: #3D4A5C;
  --muted: #536173;
  --border: #DCE1E7;
  --border-soft: #EEF1F4;
  --border-strong: #B7C1CD;
  --arrow: #7A8798;
  --accent: #0B5CAD;
  --accent-hover: #08427C;
  --accent-bg: #0B5CAD;
  --inverse: #0E1726;
  --blue-bg: #E6F0FB;
  --blue-fg: #0B4F96;
  --green-bg: #E5F4EC;
  --green-fg: #17603A;
  --amber-bg: #FDF3DC;
  --amber-fg: #6E4A00;
  --orange-bg: #FDE9DD;
  --orange-fg: #933708;
  --warn-row: #FFF8F3;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1220;
  --bg-alt: #101A2A;
  --surface-subtle: #131E2F;
  --ink: #E8EDF3;
  --text-2: #B4C0CE;
  --muted: #95A3B5;
  --border: #243247;
  --border-soft: #1B273A;
  --border-strong: #3A4A60;
  --arrow: #6E7E93;
  --accent: #8CB9F2;
  --accent-hover: #B5D2F7;
  --accent-bg: #2B6CB8;
  --inverse: #16233A;
  --blue-bg: #13294A;
  --blue-fg: #9CC4F5;
  --green-bg: #0F2E20;
  --green-fg: #8FD3AE;
  --amber-bg: #33270B;
  --amber-fg: #F0C96B;
  --orange-bg: #3A1E10;
  --orange-fg: #F5A97A;
  --warn-row: #1E1612;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    color-scheme: dark;
    --bg: #0B1220;
    --bg-alt: #101A2A;
    --surface-subtle: #131E2F;
    --ink: #E8EDF3;
    --text-2: #B4C0CE;
    --muted: #95A3B5;
    --border: #243247;
    --border-soft: #1B273A;
    --border-strong: #3A4A60;
    --arrow: #6E7E93;
    --accent: #8CB9F2;
    --accent-hover: #B5D2F7;
    --accent-bg: #2B6CB8;
    --inverse: #16233A;
    --blue-bg: #13294A;
    --blue-fg: #9CC4F5;
    --green-bg: #0F2E20;
    --green-fg: #8FD3AE;
    --amber-bg: #33270B;
    --amber-fg: #F0C96B;
    --orange-bg: #3A1E10;
    --orange-fg: #F5A97A;
    --warn-row: #1E1612;
  }
}

:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Fixed colors for the bands that stay dark in both themes */
  --on-dark: #ffffff;
  --on-dark-2: #C3CFDD;
  --on-dark-3: #DCE4EE;
  --on-dark-kicker: #8FA3BC;
  --on-dark-accent: #8FB8EC;
}

/* ALi3 base styles and shared components: type, chips, buttons, theme switch, form fields,
   form status. Needs tokens.css. App-specific layout and overrides belong in each app. */

/* ---------- Base ---------- */

/* No global border-box: the design's flex and grid sizing assumes the default content-box. */

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
img, svg { flex-shrink: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

[id] { scroll-margin-top: 16px; }

.nocase { text-transform: none; }
.mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.025em;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.02em;
}

.lede { margin-top: 20px; font-size: 18px; color: var(--text-2); }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}

.card-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.6; }

/* ---------- Chips ---------- */

.chip {
  display: inline-block;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  border-radius: 999px; padding: 2px 10px;
  white-space: nowrap;
}
.chip--neutral { background: var(--border-soft); color: var(--text-2); }
.chip--blue { background: var(--blue-bg); color: var(--blue-fg); }
.chip--green { background: var(--green-bg); color: var(--green-fg); }
.chip--amber { background: var(--amber-bg); color: var(--amber-fg); }
.chip--orange { background: var(--orange-bg); color: var(--orange-fg); }
.chip--illustrative {
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed var(--border-strong);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--accent-bg); color: #ffffff; border: 0; }
.btn--primary:hover { background: var(--accent-hover); color: #ffffff; }
[data-theme="dark"] .btn--primary:hover { background: #1F5A9E; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .btn--primary:hover { background: #1F5A9E; } }
.btn--secondary { border: 1px solid var(--border-strong); color: var(--ink); background: transparent; }
.btn--secondary:hover { color: var(--ink); background: var(--bg-alt); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Theme switch ---------- */

.theme-switch {
  display: flex; padding: 3px; gap: 2px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt);
}
.theme-switch button {
  width: 40px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--muted);
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(14, 23, 38, 0.08);
}

/* ---------- Form fields ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  min-height: 44px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  font: inherit; font-weight: 400; font-size: 16px;
  background: var(--bg); color: var(--ink);
}
.field input { padding: 0 12px; }
.field select { padding: 0 10px; }
.field textarea { padding: 10px 12px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--orange-fg); border-width: 2px; }
.field-error { font-size: 13px; font-weight: 600; color: var(--orange-fg); }
.field-error:empty { display: none; }

.form-status { grid-column: 1 / -1; font-size: 15px; border-radius: 8px; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 12px 14px; background: var(--green-bg); color: var(--green-fg); }
.form-status.is-error { padding: 12px 14px; background: var(--orange-bg); color: var(--orange-fg); }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ALi3 marketing site. Values come from design/Main.dc.html.
   The build prepends @ali3/ui (fonts.css, tokens.css, base.css); this file holds site-only styles. */

/* ---------- Base ---------- */
.band-inverse :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-dark-accent); }
.band-inverse .contact-form :focus-visible { outline-color: var(--accent); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 104px; padding-bottom: 104px; }
.band-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-inverse { background: var(--inverse); color: var(--on-dark); }

/* ---------- Type ---------- */
.band-inverse .eyebrow { color: var(--on-dark-accent); }
.band-inverse .lede { color: var(--on-dark-2); }

/* ---------- Buttons ---------- */
.btn--header { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-bar {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .mark-line { stroke: var(--ink); }
.brand .mark-core { fill: var(--accent); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  margin: 0; padding: 0; list-style: none;
  font-size: 15px; font-weight: 500;
}
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-2); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

html:not(.js) .theme-switch { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero-inner {
  padding-top: 96px; padding-bottom: 104px;
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-sub { margin-top: 28px; max-width: 560px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-note { margin-top: 40px; font-size: 15px; color: var(--muted); }
.hero-visual { flex: 1 1 420px; min-width: 0; max-width: 520px; margin: 0; }

/* Illustrative mockup cards */
.mock-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.mock-card--raised { box-shadow: 0 1px 2px rgba(14, 23, 38, 0.04), 0 12px 32px rgba(14, 23, 38, 0.06); }
.mock-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.mock-head--subtle { background: var(--surface-subtle); }
.mock-title { font-size: 14px; font-weight: 600; }
.mock-title .mono { font-weight: 500; color: var(--muted); }
.mock-sub { font-size: 13px; color: var(--muted); }

.change-meta {
  margin: 0; padding: 18px 22px;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 16px;
  font-size: 14px; border-bottom: 1px solid var(--border-soft); background: var(--surface-subtle);
}
.change-meta dt { color: var(--muted); }
.change-meta dd { margin: 0; font-weight: 500; }
.change-meta dd.mono { font-weight: 400; font-size: 13px; }

.timeline { list-style: none; margin: 0; padding: 20px 22px 22px; }
.tl-item { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 20px; height: 20px; border-radius: 999px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.tl-dot path { stroke: var(--bg); }
.tl-dot--ok { background: #17603A; }
.tl-dot--ok path { stroke: #ffffff; }
.tl-dot--pending { box-sizing: border-box; background: transparent; border: 2px dashed var(--border-strong); }
.tl-line { width: 2px; flex: 1; min-height: 18px; background: var(--ink); }
.tl-line--dashed { background: repeating-linear-gradient(var(--border-strong) 0 4px, transparent 4px 8px); }
.tl-body { padding-bottom: 14px; flex: 1; }
.tl-body--split { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tl-body--split .chip { align-self: flex-start; }
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-title { font-size: 14px; font-weight: 600; }
.tl-title--pending { color: var(--text-2); }
.tl-desc { font-size: 13px; color: var(--muted); }

/* ---------- Flow diagrams (gap + integrations) ---------- */

.section-intro { max-width: 760px; }
.section-intro--narrow { max-width: 720px; }
.section-intro .lede--gap { margin-top: 24px; }

.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.flow--gap { margin-top: 56px; }
.flow--integrations { margin-top: 48px; }
.flow-card {
  flex: 1 1 260px; min-width: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px;
}
.flow-card .card-title { margin-top: 6px; }
.flow-card--hub { flex: 1.15 1 300px; background: var(--inverse); color: var(--on-dark); border: 0; }
.flow-card--hub .kicker { color: #9FB3CC; }
.flow-card--wide { flex: 1 1 300px; padding: 28px; }
.flow-card--wide .card-title { margin-top: 4px; }
.flow-card--core {
  flex: 0 1 220px; padding: 28px; border: 0;
  background: var(--inverse); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.flow-card--core .card-title { margin: 0; }
.flow-card--core p { font-size: 15px; color: var(--on-dark-2); }

.flow-arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 4px; }
.flow-arrow path { stroke: var(--arrow); }

.pill-list {
  margin: 16px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px; color: var(--text-2);
}
.pill-list li { padding: 10px 12px; background: var(--bg-alt); border-radius: 8px; }
.flow-card--hub .pill-list { color: var(--on-dark-3); }
.flow-card--hub .pill-list li { background: rgba(255, 255, 255, 0.07); }

.line-list { margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-2); }
.line-list li { padding: 12px 0; border-top: 1px solid var(--border-soft); }

/* ---------- The gap ---------- */

.work { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 48px; }
.work-intro { flex: 1 1 320px; min-width: 0; }
.work-intro h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.6; }
.work-intro p { margin-top: 12px; color: var(--text-2); }
.work-list {
  flex: 2 1 520px; min-width: 0;
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px;
  font-size: 16px;
}
.work-list li { padding: 14px 0; border-top: 1px solid var(--border); }

.callout {
  margin-top: 48px; max-width: 900px; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  font-size: 15px; color: var(--text-2);
}
.callout b { color: var(--ink); }

/* ---------- How it works ---------- */

.steps {
  margin: 56px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.step {
  border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.step--decision { border: 2px solid var(--ink); padding: 23px; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.6; }
.step p { font-size: 15px; color: var(--text-2); }

.exceptions {
  margin-top: 24px; border-radius: 12px; background: var(--bg-alt); padding: 24px;
  display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start;
}
.exceptions h3 { flex: 0 1 220px; font-family: var(--font-display); font-size: 18px; line-height: 1.6; }
.exception { flex: 1 1 220px; min-width: 0; font-size: 15px; color: var(--text-2); }
.exception .chip { display: table; margin-bottom: 6px; }

/* ---------- CER to Lumen ---------- */

.cer-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cer-card { border: 1px solid #2E3D52; border-radius: 12px; padding: 28px; }
.cer-card .kicker { color: var(--on-dark-kicker); }
.cer-card h3 { margin-top: 8px; font-family: var(--font-display); font-size: 22px; line-height: 1.6; }
.cer-card p { margin-top: 12px; font-size: 15px; color: var(--on-dark-2); }
.cer-card--focus { border-color: #4F7FC0; background: #13233A; }
.cer-card--focus .kicker { color: var(--on-dark-accent); }

/* ---------- Operational controls ---------- */

.controls-inner { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.controls-copy { flex: 1 1 420px; min-width: 0; }
.control-list { margin: 40px 0 0; }
.control-list > div { padding: 18px 0; border-top: 1px solid var(--border); }
.control-list > div:last-child { border-bottom: 1px solid var(--border); }
.control-list dt { font-weight: 600; }
.control-list dd { margin: 4px 0 0; color: var(--text-2); font-size: 16px; }

.history-col { flex: 1 1 440px; min-width: 0; margin: 0; }
.history { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.history li {
  padding: 14px 22px; border-bottom: 1px solid var(--border-soft);
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: start;
}
.history li:last-child { border-bottom: 0; }
.history li.is-warn { background: var(--warn-row); }
.history time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.history b { font-weight: 600; }
.history .detail { color: var(--muted); }

.state-defs { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.state-def { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.state-def strong { display: block; font-size: 14px; font-weight: 600; }
.state-def span { display: block; font-size: 13px; color: var(--muted); }

.accountability-wrap { padding-bottom: 104px; }
.accountability {
  border-top: 1px solid var(--border); padding-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px;
}
.accountability .kicker--accent { color: var(--accent); }
.accountability p { margin-top: 8px; font-size: 16px; }

/* ---------- Integrations ---------- */

.integrations-note { margin-top: 24px; font-size: 15px; color: var(--text-2); }

/* ---------- About ---------- */

.about-inner { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.about-head { flex: 1 1 360px; min-width: 0; }
.about-head .h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; }
.about-body { flex: 1.3 1 460px; min-width: 0; font-size: 17px; color: var(--text-2); }
.about-body p + p { margin-top: 16px; }

/* ---------- Contact ---------- */

.contact-inner { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 380px; min-width: 0; }
.contact-points {
  margin: 32px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 16px; color: var(--on-dark-3);
}
.contact-points li { display: flex; gap: 12px; }
.contact-points .mono { color: var(--on-dark-accent); }

.contact-panel { flex: 1.2 1 504px; min-width: 0; } /* 440px + the form's 2 x 32px padding, as in the design */
.contact-form {
  background: var(--bg); color: var(--ink); border-radius: 14px; padding: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
html:not(.js) .contact-form { display: none; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form-note { font-size: 13px; color: var(--muted); }

.contact-fallback {
  background: var(--bg); color: var(--ink); border-radius: 14px; padding: 32px; font-size: 17px;
}
.contact-fallback p + p { margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: #0A111D; color: #A9B6C6; font-size: 14px; }
.footer-inner {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-brand .wordmark { font-size: 18px; color: #ffffff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--on-dark-2); text-decoration: none;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-inline-link { color: var(--on-dark-2); }
.footer-inline-link:hover { color: #ffffff; }
.footer-legal { margin: 0; max-width: 880px; font-size: 13px; line-height: 1.55; color: var(--on-dark-2); }

/* ---------- Simple pages (privacy, 404) ---------- */

.page { padding-top: 96px; padding-bottom: 104px; }
.page-body { max-width: 720px; }
.page-body .display { font-size: clamp(36px, 4.4vw, 52px); }
.page-body .lede { margin-top: 24px; }
.page-body h2 { margin-top: 40px; font-family: var(--font-display); font-size: 22px; line-height: 1.4; }
.page-body p,
.page-body ul { margin-top: 12px; color: var(--text-2); }
.page-body ul { padding-left: 1.2em; }
.page-body .btn { margin-top: 32px; }
.draft-note {
  margin-top: 24px; padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: 10px;
  font-size: 15px; color: var(--text-2);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .flow-arrow { transform: rotate(90deg); width: 100%; }

  .header-bar { gap: 12px; }
  .brand { order: 1; }
  .js .menu-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .header-actions { order: 3; width: 100%; justify-content: space-between; }
  .site-nav { order: 4; width: 100%; }
  .theme-switch button { width: 44px; height: 44px; }

  /* Without JS the links stay visible and wrap; with JS they become a disclosure menu */
  .nav-links { flex-wrap: wrap; gap: 0 24px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .nav-links { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .js .nav-links a { display: flex; min-height: 48px; border-top: 1px solid var(--border); color: var(--ink); }
}

@media (pointer: coarse) {
  .theme-switch button { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .history li { grid-template-columns: minmax(0, 1fr) auto; }
  .history time { grid-column: 1 / -1; padding-top: 0; }
  .history li > span:not(.chip) { grid-column: 1; }
  .contact-form { padding: 24px; }
  .contact-fallback { padding: 24px; }
}
