/* ==========================================================================
   FLOCK SENTRY — Design System
   "MISSION CONTROL FOR THE BARN"
   Industrial confidence · clinical biosecurity · calm welfare
   --------------------------------------------------------------------------
   Authoring rules:
   - Selectors are single-class + --modifier only. No element/section
     selectors are allowed to cancel layout (e.g. section padding lives on
     .section and is never reset by a tag selector).
   - Red is a punch/accent. Large red fills only on .btn--primary and the
     single .cta-band.
   - Mono (IBM Plex Mono) is the telemetry voice: eyebrows, labels, stats.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ink / paper */
  --ink: #14171C;
  --ink-2: #1C2128;
  --paper: #FFFFFF;
  --paper-2: #F4F5F7;
  --paper-warm: #FAF8F4;

  /* Signal red — accent only */
  --red: #E11D2A;
  --red-700: #B3121D;

  /* Neutrals */
  --muted: #59616E;
  --muted-2: #8A929D;
  --line: #E5E8EC;
  --line-on-dark: rgba(255, 255, 255, .14);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .06), 0 1px 1px rgba(20, 23, 28, .04);
  --shadow-md: 0 12px 32px -12px rgba(20, 23, 28, .22), 0 4px 10px -6px rgba(20, 23, 28, .12);

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

  /* Geometry */
  --radius-card: 6px;
  --radius-btn: 4px;
  --radius-pill: 999px;
  --hairline: 1px;
  --section-pad: clamp(4rem, 9vw, 8rem);
  --container-pad: clamp(1.2rem, 4vw, 2.5rem);
  --container-max: 1180px;

  /* Motion */
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

hr {
  border: 0;
  border-top: var(--hairline) solid var(--line);
  margin: 0;
}

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

::selection {
  background: var(--red);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -0.012em; line-height: 1.12; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 1.4em;
}

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

.center { text-align: center; }
.center .lead,
.center .eyebrow { margin-left: auto; margin-right: auto; }

/* Eyebrow — mono telemetry voice with a solid red square tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: .55em;
  height: .55em;
  background: var(--red);
  flex: 0 0 auto;
}
/* Eyebrow inverted for dark sections */
.section--ink .eyebrow,
.card--dark .eyebrow,
.cta-band .eyebrow,
.hero .eyebrow { color: var(--muted-2); }

/* --------------------------------------------------------------------------
   4. LAYOUT — container + sections
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
  background: var(--paper);
  position: relative;
}
.section--paper2 { background: var(--paper-2); }
.section--warm { background: var(--paper-warm); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--ink {
  background: var(--ink);
  color: #fff;
}
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: #fff; }
.section--ink .lead,
.section--ink .muted { color: rgba(255, 255, 255, .72); }
.section--ink hr { border-top-color: var(--line-on-dark); }

/* Section header helper spacing (utility, never resets padding) */
.section-head { max-width: 64ch; margin: 0 0 clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   5. LIVE PILL — pulsing red telemetry dot
   -------------------------------------------------------------------------- */
.live {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .4em .85em;
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink);
  white-space: nowrap;
}
.live::before {
  content: "";
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(225, 29, 42, .55);
  animation: livePulse 2s var(--ease) infinite;
}
/* Live pill on dark backgrounds */
.section--ink .live,
.hero .live,
.cta-band .live {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-on-dark);
  color: #fff;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(225, 29, 42, .55); }
  70%  { box-shadow: 0 0 0 .55em rgba(225, 29, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 42, 0); }
}

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--hairline) solid var(--line);
  border-top: 2px solid var(--red);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

/* Brand — red square mark + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-right: auto;
}
.brand::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  background: var(--red);
  border-radius: 2px;
  flex: 0 0 auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  padding: .5rem 0;
  transition: color .18s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::before {
  content: "";
  position: absolute;
  left: -0.85em;
  top: 50%;
  transform: translateY(-50%);
  width: .4em;
  height: .4em;
  background: var(--red);
}
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55rem 1.05rem;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--paper);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.5em;
  border-radius: var(--radius-btn);
  border: var(--hairline) solid transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--red-700); border-color: var(--red-700); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); }

/* Ghost on dark surfaces */
.section--ink .btn--ghost,
.cta-band .btn--ghost,
.hero .btn--ghost {
  color: #fff;
  border-color: var(--line-on-dark);
}
.section--ink .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: #fff; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(13, 15, 18, .92) 0%, rgba(13, 15, 18, .72) 42%, rgba(13, 15, 18, .15) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center right;
  color: #fff;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: clamp(5rem, 12vw, 9rem);
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lead { color: rgba(255, 255, 255, .82); max-width: 50ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

/* Bottom mono stat strip */
.hero-telemetry {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.6rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.4rem;
  border-top: var(--hairline) solid var(--line-on-dark);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.hero-telemetry > * { display: inline-flex; align-items: baseline; gap: .5em; }
.hero-telemetry > * + *::before {
  content: "•";
  margin-right: 1.1em;
  color: var(--red);
}
.hero-telemetry strong { color: #fff; font-weight: 600; }

/* Scan-line — slow red sweep over hero media */
.scanline {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.scanline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--red);
  opacity: .45;
  box-shadow: 0 0 12px 1px rgba(225, 29, 42, .55);
  animation: scanSweep 6s linear infinite;
}
/* Sweeps exactly the hero height: top 0% -> 100% (parent = full hero). */
@keyframes scanSweep {
  0%   { top: 0%; opacity: 0; }
  8%   { opacity: .45; }
  92%  { opacity: .45; }
  100% { top: 100%; opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. STAT BAND
   -------------------------------------------------------------------------- */
.statband {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--hairline);
  background: var(--line);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-num .unit { color: var(--red); }
.stat-label {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
/* Stat band on dark */
.section--ink .statband { background: var(--line-on-dark); border-color: var(--line-on-dark); }
.section--ink .stat { background: var(--ink-2); }
.section--ink .stat-num { color: #fff; }
.section--ink .stat-label { color: var(--muted-2); }

/* --------------------------------------------------------------------------
   10. GRID
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Split layout helper (media + copy) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   11. CARD
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d7dbe1;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Red top accent tick */
.card .tick {
  position: absolute;
  top: -1px;
  left: clamp(1.4rem, 2.5vw, 2rem);
  width: 32px;
  height: 3px;
  background: var(--red);
}

.card--dark {
  background: var(--ink-2);
  border-color: var(--line-on-dark);
  color: #fff;
}
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255, 255, 255, .72); }
.card--dark:hover { border-color: rgba(255, 255, 255, .28); }

/* --------------------------------------------------------------------------
   12. FEATURE
   -------------------------------------------------------------------------- */
.feature { padding: 0; }
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--red);
  background: var(--paper-2);
}
.feature .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.feature h3 { font-size: 1.15rem; margin-bottom: .35em; }
.feature p { color: var(--muted); margin-bottom: 0; }
.section--ink .feature .icon { background: var(--ink-2); border-color: var(--line-on-dark); }

/* --------------------------------------------------------------------------
   13. STEPS
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.step { position: relative; }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .35em; }
.step p { color: var(--muted); margin-bottom: 0; }
/* Connector hairline between steps (horizontal layout) */
.step::after {
  content: "";
  position: absolute;
  top: clamp(1.1rem, 2vw, 1.5rem);
  left: calc(100% + 0px);
  width: clamp(1.4rem, 3vw, 2.6rem);
  height: var(--hairline);
  background: var(--line);
}
.step:last-child::after { display: none; }
.section--ink .step::after { background: var(--line-on-dark); }

/* --------------------------------------------------------------------------
   14. SPEC TABLE
   -------------------------------------------------------------------------- */
.spec { width: 100%; }
.spec-group { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.spec-group:last-child { margin-bottom: 0; }
.spec-group .eyebrow { margin-bottom: .6rem; }
.spec .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: var(--hairline) solid var(--line);
}
.spec .row:first-of-type { border-top: var(--hairline) solid var(--line); }
.spec .label { color: var(--muted); font-size: .95rem; }
.spec .value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  text-align: right;
}
.section--ink .spec .row { border-color: var(--line-on-dark); }
.section--ink .spec .row:first-of-type { border-top-color: var(--line-on-dark); }
.section--ink .spec .label { color: var(--muted-2); }
.section--ink .spec .value { color: #fff; }

/* --------------------------------------------------------------------------
   15. PRICING
   -------------------------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}
.tier {
  position: relative;
  background: var(--paper);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
}
.tier h3 { font-size: 1.25rem; margin-bottom: .25em; }
.tier .muted { font-size: .95rem; }

.tier--featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.tier--featured::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--red);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.tier--featured::after {
  content: "Recommended";
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  border: var(--hairline) solid var(--red);
  padding: .25em .6em;
  border-radius: var(--radius-pill);
}

.tier-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 1.2rem 0 .2rem;
}
.tier-price .per {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
}

.tier-list {
  margin: 1.4rem 0;
  display: grid;
  gap: .7rem;
  flex: 1 1 auto;
}
.tier-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .95rem;
  color: var(--ink);
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.tier .btn { width: 100%; margin-top: auto; }

/* --------------------------------------------------------------------------
   16. CTA BAND — the one allowed large red moment is the accent rule/dot here
   (band itself is ink to keep red as punch)
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(2.2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .8); }
.cta-band .hero-actions,
.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}

/* Full-bleed red CTA variant — the single permitted large red fill */
.cta-band--red {
  background: var(--red);
}
.cta-band--red::before { background: var(--red-700); }
.cta-band--red .lead { color: rgba(255, 255, 255, .9); }
.cta-band--red .btn--light:hover { background: #fff; opacity: .92; }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq-item {
  border-bottom: var(--hairline) solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-body {
  padding: 0 0 1.4rem;
  color: var(--muted);
  max-width: 64ch;
}
.section--ink .faq-item { border-color: var(--line-on-dark); }
.section--ink .faq-item summary { color: #fff; }
.section--ink .faq-item .faq-body { color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------------------
   18. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; max-width: 640px; }
.form .field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-btn);
  padding: .8em .9em;
  width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 29, 42, .15);
}
.form-note {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.form-note strong { color: var(--ink); }

/* Forms on dark */
.section--ink .field label { color: var(--muted-2); }
.section--ink .field input,
.section--ink .field textarea,
.section--ink .field select {
  background: var(--ink-2);
  border-color: var(--line-on-dark);
  color: #fff;
}
.section--ink .form-note { color: var(--muted-2); }
.section--ink .form-note strong { color: #fff; }

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 2px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: var(--hairline) solid var(--line-on-dark);
}
.site-footer .brand { color: #fff; margin-right: 0; margin-bottom: 1rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: .35rem 0;
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
  transition: color .15s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-blurb { max-width: 34ch; font-size: .92rem; color: rgba(255, 255, 255, .6); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   20. REVEAL — subtle scroll-in (JS adds .in-view; guarded by reduced-motion)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: var(--hairline) solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--container-pad) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .85rem 0;
    border-bottom: var(--hairline) solid var(--line);
    font-size: .85rem;
  }
  .nav a.is-active::before { display: none; }
  .nav a.is-active::after { display: none; }
  .nav-cta { margin-top: 1rem; justify-content: center; }

  .split { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

@media (max-width: 760px) {
  .cols-2,
  .cols-3,
  .cols-4 { grid-template-columns: 1fr; }
  .form .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   22. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .scanline::after { animation: none; display: none; }
  .live::before { animation: none; box-shadow: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
