/* ==========================================================================
   ENERSOFT — Shared Design System Stylesheet
   Retail-energy EDI / billing / CRM SaaS for ESCOs
   Aesthetic: "Instrument panel" — precision-engineering enterprise software.
   Two-signal identity: brand blue = outbound, signal green = "accepted" (997).
   Fonts loaded in each page <head> (see DESIGN.md verbatim head snippet).
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------------------------------------------- */
:root {
  /* Surfaces (cool near-white "paper") */
  --paper:        #FBFCFD;
  --surface:      #FFFFFF;
  --surface-2:    #F2F5F8;   /* muted panels, table zebra */
  --surface-3:    #E9EEF3;   /* deeper inset */

  /* Ink (navy-black text ramp) */
  --ink:          #0B1B2B;   /* primary text / headings */
  --ink-2:        #40566B;   /* body secondary */
  --muted:        #6E8398;   /* captions, meta */

  /* Lines */
  --line:         #E1E8EF;
  --line-strong:  #C9D4DF;

  /* Brand blue = "outbound / system" */
  --primary:        #0F5FA6;
  --primary-hover:  #0C4D86;
  --primary-active: #093A66;
  --primary-tint:   #E7F0F8;
  --primary-border: #B7D2E8;

  /* Signal green = "accepted" (EDI 997 functional ack) — the accent */
  --signal:        #1F9E5A;
  --signal-hover:  #17834A;
  --signal-tint:   #E4F4EB;
  --signal-border: #A9DEC0;

  /* Amber = status "pending / in test" (used sparingly for pills only) */
  --amber:         #B7791F;
  --amber-tint:    #FBF0DB;
  --amber-border:  #ECD3A0;

  /* Dark navy sections (CTA bands, footer) */
  --navy-900:     #071523;
  --navy-800:     #0C2033;
  --navy-700:     #14304A;
  --on-navy:      #E6EEF5;   /* text on navy */
  --on-navy-2:    #9FB4C8;   /* secondary text on navy */
  --on-navy-line: #24405C;

  /* Focus */
  --focus:        #3B93E6;

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs:   0.75rem;    /* 12 — mono eyebrows, pills */
  --fs-sm:   0.875rem;   /* 14 — meta, captions, nav */
  --fs-base: 1rem;       /* 16 — body */
  --fs-md:   1.125rem;   /* 18 — lead paragraph */
  --fs-lg:   1.375rem;   /* 22 — card titles, H3 */
  --fs-xl:   1.75rem;    /* 28 — H2 small */
  --fs-2xl:  2.25rem;    /* 36 — H2 */
  --fs-3xl:  3rem;       /* 48 — section hero */
  --fs-4xl:  clamp(2.6rem, 1.4rem + 4.6vw, 3.9rem); /* hero headline */

  --lh-tight: 1.08;
  --lh-snug:  1.28;
  --lh-body:  1.62;

  /* Spacing scale (8px system) */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  /* Layout */
  --maxw:        1200px;
  --maxw-narrow: 760px;
  --gutter:      clamp(1.25rem, 5vw, 3rem);
  --section-y:   clamp(4rem, 8vw, 7rem);

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-pill: 999px;

  /* Shadows — restrained, cool-tinted */
  --sh-1: 0 1px 2px rgba(11,27,43,.05), 0 1px 1px rgba(11,27,43,.04);
  --sh-2: 0 4px 12px rgba(11,27,43,.06), 0 1px 3px rgba(11,27,43,.05);
  --sh-3: 0 14px 40px rgba(11,27,43,.10), 0 4px 12px rgba(11,27,43,.06);
  --sh-focus: 0 0 0 3px rgba(59,147,230,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .22s;
}

/* ---------- 2. RESET / BASE ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--lh-snug);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-lg); }
p  { max-width: 68ch; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--signal-tint); color: var(--ink); }

/* ---------- 3. LAYOUT PRIMITIVES ----------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section--tint   { background: var(--surface-2); }
.section--navy   { background: var(--navy-900); color: var(--on-navy); }
.section--navy h1,.section--navy h2,.section--navy h3 { color: #fff; }
.section--hairline { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 4. TYPOGRAPHY HELPERS ---------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--primary);
  opacity: .55;
}
.section--navy .eyebrow { color: var(--signal); }
.section--navy .eyebrow::before { background: var(--signal); }
.lead { font-size: var(--fs-md); color: var(--ink-2); line-height: var(--lh-body); max-width: 60ch; }
.section--navy .lead { color: var(--on-navy-2); }
.section-head { max-width: 64ch; margin-bottom: var(--s-7); }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.muted { color: var(--muted); }
.mono  { font-family: var(--font-mono); }
.text-center { text-align: center; }
.text-center.section-head { margin-inline: auto; }

/* ---------- 5. BUTTONS ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.82rem 1.35rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: var(--sh-2); }
.btn-signal { background: var(--signal); color: #fff; box-shadow: var(--sh-1); }
.btn-signal:hover { background: var(--signal-hover); color: #fff; box-shadow: var(--sh-2); }
.btn-secondary {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-lg { padding: 1rem 1.7rem; font-size: var(--fs-base); }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); transition: transform var(--dur) var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }
/* On navy */
.section--navy .btn-secondary { background: transparent; color: #fff; border-color: var(--on-navy-line); }
.section--navy .btn-secondary:hover { border-color: var(--signal); color: var(--signal); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 6. PILL BADGES ----------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.pill-accepted { color: var(--signal-hover); background: var(--signal-tint); border-color: var(--signal-border); }
.pill-accepted::before { background: var(--signal); }
.pill-outbound { color: var(--primary-hover); background: var(--primary-tint); border-color: var(--primary-border); }
.pill-outbound::before { background: var(--primary); }
.pill-pending  { color: var(--amber); background: var(--amber-tint); border-color: var(--amber-border); }
.pill-pending::before { background: var(--amber); }

/* ---------- 7. HEADER / NAV ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,253,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: var(--s-6);
  height: 68px;
}
.nav__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__logo svg { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s-2); margin-left: var(--s-4); }
.nav__link {
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  padding: 0.5rem 0.75rem; border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--primary); }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: var(--s-3); }
.nav__caret { transition: transform var(--dur) var(--ease); }

/* Mega dropdown (10 modules) — panel anchors to the nav bar so it can't overflow the viewport */
.nav { position: relative; }
.nav__dd { position: static; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(760px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: var(--s-5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__dd:hover .nav__panel,
.nav__dd:focus-within .nav__panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__dd:hover .nav__caret, .nav__dd:focus-within .nav__caret { transform: rotate(180deg); }
.nav__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.nav__mod {
  display: grid; grid-template-columns: 30px 1fr; gap: var(--s-3); align-items: start;
  padding: var(--s-3); border-radius: var(--r-md);
  transition: background var(--dur) var(--ease);
}
.nav__mod:hover { background: var(--surface-2); }
.nav__mod svg { width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.nav__mod b { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink); font-weight: 600; display: block; }
.nav__mod span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.nav__panel-foot {
  margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-sm);
}
/* Mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; }
@media (max-width: 940px) {
  .nav__links, .nav__cta .btn-secondary { display: none; }
  .nav__toggle { display: inline-flex; flex-shrink: 0; }
  .nav__spacer { flex: 1; }
  .nav__cta .btn-primary { padding: 10px 14px; font-size: var(--fs-sm); white-space: nowrap; }
}
@media (max-width: 480px) {
  .nav { gap: var(--s-2); }
  .nav__logo .logo-wordmark { width: 118px; height: 22px; }
  .nav__cta .btn-primary { padding: 8px 10px; font-size: var(--fs-xs); }
  /* Open mobile menu (driven by site.js toggling .nav--open) */
  .nav--open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    padding: var(--s-4);
    gap: 2px;
  }
  .nav--open .nav__link { width: 100%; text-align: left; }
  .nav__panel { display: none; }
  .nav__dd > button[aria-expanded="true"] + .nav__panel {
    display: block; position: static; transform: none; width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 1px solid var(--line);
    margin-block: var(--s-2);
  }
  .nav__grid { grid-template-columns: 1fr; }
}

/* ---------- 8. HERO ------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem) var(--section-y); }
.hero::before { /* grid texture */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 68%);
  opacity: .6;
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); } }
.hero__eyebrow { margin-bottom: var(--s-5); }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-bottom: var(--s-6); max-width: 46ch; }
.hero__meta { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.hero__meta b { color: var(--ink); font-family: var(--font-display); }

/* ---------- 9. SIGNATURE MOTIF: THE LEDGER LINE (EDI transaction flow) ---- */
/* Reusable SVG-in-HTML component styled here; animation optional per page. */
.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: var(--s-5);
  position: relative;
}
.ledger__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--s-4); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted);
}
.ledger__dots { display: flex; gap: 6px; }
.ledger__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.ledger__flow { display: grid; gap: var(--s-2); }
.ledger__row {
  display: grid; grid-template-columns: 62px 1fr auto; gap: var(--s-3); align-items: center;
  padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-sm);
}
.ledger__code { color: var(--primary); font-weight: 500; }
.ledger__desc { color: var(--ink-2); font-family: var(--font-body); font-size: var(--fs-sm); }
.ledger__row--in { border-color: var(--signal-border); }
/* animated pulse traveling the flow */
@keyframes ledger-pulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.ledger__row .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: ledger-pulse 2.2s var(--ease) infinite; }
.ledger__row:nth-child(2) .status-dot { animation-delay: .3s; }
.ledger__row:nth-child(3) .status-dot { animation-delay: .6s; }
.ledger__row:nth-child(4) .status-dot { animation-delay: .9s; }

/* Inline horizontal flow strip (used in sections/dividers) */
.flowstrip { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.flowstrip__node {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  padding: 0.4rem 0.7rem; border-radius: var(--r-pill);
}
.flowstrip__link { flex: 1 1 24px; min-width: 24px; height: 2px; background: linear-gradient(90deg, var(--primary-border), var(--signal-border)); position: relative; }
.flowstrip__link::after { content: "→"; position: absolute; right: -2px; top: -10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- 10. CARDS ----------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary);
  margin-bottom: var(--s-4);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: var(--s-2); }
.card p { font-size: var(--fs-sm); color: var(--ink-2); }
.card__link { margin-top: var(--s-4); display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 600; }
/* Module card variant with mono index */
.card--module { position: relative; }
.card__index { position: absolute; top: var(--s-6); right: var(--s-6); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--line-strong); }

/* ---------- 11. STAT BAND ------------------------------------------------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
@media (max-width: 780px) { .statband { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); } }
.stat { border-left: 2px solid var(--signal); padding-left: var(--s-4); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xl); color: var(--ink); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.section--navy .stat__num { color: #fff; }
.stat__label { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.section--navy .stat__label { color: var(--on-navy-2); }

/* ---------- 12. CTA BAND -------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--navy-900); color: var(--on-navy); padding: clamp(2.5rem, 5vw, 4rem); }
.cta::before { /* faint flow lines */
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, var(--on-navy-line) 46px 47px);
  opacity: .18; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr auto; gap: var(--s-6); align-items: center; }
@media (max-width: 780px) { .cta__inner { grid-template-columns: 1fr; } }
.cta h2 { color: #fff; margin-bottom: var(--s-3); }
.cta p { color: var(--on-navy-2); max-width: 52ch; }

/* ---------- 13. FAQ ACCORDION -------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--ink);
}
.faq__q:hover { color: var(--primary); }
.faq__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--primary); transition: transform var(--dur) var(--ease); }
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after  { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__a { padding: 0 0 var(--s-5); color: var(--ink-2); font-size: var(--fs-base); max-width: 72ch; }
details.faq__item summary { list-style: none; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* ---------- 14. FORMS ----------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .req { color: var(--signal); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 0.8rem 0.9rem; width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--sh-focus); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--sh-2); }

/* ---------- 15. MISC: DIVIDER, TABLE, PROSE ------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-7); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.2rem; color: var(--ink-2); }
.prose li + li { margin-top: var(--s-2); }

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.table tr:last-child td { border-bottom: 0; }

/* Anchor offset for sticky header */
[id] { scroll-margin-top: 90px; }

/* ---------- 16. FOOTER ---------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--on-navy-2); padding-block: var(--s-8) var(--s-6); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid var(--on-navy-line); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-5); } }
@media (max-width: 500px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand svg { height: 26px; width: auto; margin-bottom: var(--s-4); }
.footer__brand p { font-size: var(--fs-sm); color: var(--on-navy-2); max-width: 34ch; }
.footer__brand .flowstrip { margin-top: var(--s-5); }
.footer__brand .flowstrip__node { background: var(--navy-800); border-color: var(--on-navy-line); color: var(--on-navy); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--on-navy-2); font-weight: 500; margin-bottom: var(--s-4); }
.footer__col a { display: block; color: var(--on-navy); font-size: var(--fs-sm); padding: 0.3rem 0; }
.footer__col a:hover { color: var(--signal); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-6); font-size: var(--fs-xs); color: var(--on-navy-2); font-family: var(--font-mono); }
.footer__bottom a { color: var(--on-navy-2); }
.footer__bottom a:hover { color: var(--signal); }

/* ---------- 17. LOGO ------------------------------------------------------ */
.logo-wordmark { color: var(--ink); }
.logo-wordmark .logo-mark-bg { fill: var(--primary); }
.logo-wordmark .logo-mark-line { stroke: #fff; }
.logo-wordmark .logo-mark-node { fill: var(--signal); }
.logo-wordmark .logo-text { fill: currentColor; }
/* On navy backgrounds set color:#fff via .logo-wordmark--light */
.logo-wordmark--light { color: #fff; }

/* ---------- 18. MOTION PREFERENCES --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 18b. JOURNEY STEPS (timeline / implementation) ---------------- */
.journey__step { position: relative; padding-top: var(--s-4); border-top: 2px solid var(--line); }
.journey__step::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 44px; height: 2px; background: var(--signal);
}
.journey__num {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em;
  color: var(--signal-hover); display: block; margin-bottom: var(--s-2);
}
.journey__title {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: var(--fs-md); margin-bottom: var(--s-2);
}
.journey__step p { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 19. UTILITIES ------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; } .mb-5 { margin-bottom: var(--s-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
