/* =========================================================================
   KYC Poultry Pulse — marketing site
   assets/css/site.css
   =========================================================================

   BRAND TOKENS
   ------------
   Everything visual on this site is driven by the custom properties in the
   :root block below. To match the palette to the application, replace the
   hex values in the "BRAND" group only — no other file needs to change.

   Mapping to the app:
     --ink-900 / --ink-800   dark chrome (sidebar, headers)
     --pulse                 primary system / data accent
     --amber                 primary call-to-action
     --mineral-*             page and card surfaces
   ========================================================================= */

:root {
  /* ---- BRAND (swap these to the app palette) ---- */
  --ink-900:      #07211b;
  --ink-800:      #0c2c24;
  --ink-700:      #12392f;
  --pulse:        #1f9d68;
  --pulse-bright: #35c489;
  --pulse-soft:   #cbead9;
  --amber:        #e8a33d;
  --amber-dark:   #c9832a;
  --clay:         #c4462b;

  /* ---- NEUTRALS ---- */
  --paper:      #fbfdfc;
  --mineral-50: #f3f7f4;
  --mineral-100:#e7ede9;
  --mineral-200:#d5e0da;
  --mineral-300:#b8c7bf;
  --mineral-500:#7d9188;
  --mineral-600:#5b6f66;
  --mineral-700:#3a4a43;

  /* ---- TYPE ---- */
  --font-display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- SPACE / SHAPE ---- */
  --gutter: 24px;
  --maxw: 1200px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-card: 0 1px 2px rgba(7, 33, 27, .06), 0 8px 24px rgba(7, 33, 27, .06);
  --shadow-lift: 0 2px 4px rgba(7, 33, 27, .08), 0 18px 48px rgba(7, 33, 27, .14);
}

/* ========================= base ========================= */

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

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

body {
  margin: 0;
  background: var(--mineral-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -0.018em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-900); color: var(--paper);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ========================= layout ========================= */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }

.band-dark {
  background: var(--ink-900);
  color: var(--mineral-100);
}
.band-dark h2, .band-dark h3 { color: var(--paper); }

.band-paper { background: var(--paper); }

/* Section divider: a chart-axis tick rule. Ticks mark the section count. */
.axis {
  height: 1px;
  background: var(--mineral-200);
  position: relative;
}
.band-dark .axis { background: rgba(255,255,255,.14); }
.axis::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 7px;
  background-image: repeating-linear-gradient(
    to right, var(--mineral-200) 0 1px, transparent 1px 56px);
}
.band-dark .axis::before {
  background-image: repeating-linear-gradient(
    to right, rgba(255,255,255,.16) 0 1px, transparent 1px 56px);
}

/* ========================= type utilities ========================= */

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mineral-600);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--pulse);
  flex: none;
}
.band-dark .eyebrow { color: var(--pulse-bright); }
.band-dark .eyebrow::before { background: var(--pulse-bright); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  color: var(--mineral-700);
  max-width: 62ch;
}
.band-dark .lede { color: var(--mineral-200); }

.mono { font-family: var(--font-mono); }

/* ========================= buttons ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--amber); color: var(--ink-900); }
.btn--primary:hover { background: var(--amber-dark); }

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

.band-dark .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.28); }
.band-dark .btn--ghost:hover { border-color: var(--paper); }

.btn--block { width: 100%; justify-content: center; }

.arrow { font-family: var(--font-mono); font-weight: 400; }

/* ========================= header ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 252, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mineral-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  white-space: nowrap;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--mineral-500);
  display: block;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--mineral-700);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a[aria-current="page"] { color: var(--ink-900); border-bottom-color: var(--pulse); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 18px; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--mineral-300);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-900);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute;
    inset-inline: 0;
    top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--mineral-200);
    padding: 18px var(--gutter) 26px;
    display: none;
    box-shadow: var(--shadow-card);
  }
  .nav-panel.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--mineral-100); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--pulse); }
  .nav-cta { margin-top: 18px; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 14px 18px; }
}
@media (min-width: 901px) {
  .nav-panel { display: flex !important; align-items: center; gap: 34px; }
}

/* ========================= hero ========================= */

.hero {
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(31,157,104,.10) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--mineral-200);
  padding-block: clamp(52px, 7vw, 92px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-note {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--mineral-600);
  letter-spacing: .01em;
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- signature element: the vitals monitor ---- */

.vitals {
  background: var(--ink-900);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-lift);
  color: var(--mineral-100);
}
.vitals-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mineral-500);
  margin-bottom: 14px;
}
.vitals-live { display: inline-flex; align-items: center; gap: 7px; color: var(--pulse-bright); }
.vitals-live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pulse-bright);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.trace { display: block; width: 100%; height: 130px; }
.trace-line {
  fill: none;
  stroke: var(--pulse-bright);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 3.4s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.trace-fill { fill: url(#traceFade); opacity: 0; animation: fadein 1.2s ease 1.6s forwards; }
@keyframes fadein { to { opacity: 1; } }
.trace-grid { stroke: rgba(255,255,255,.09); stroke-width: 1; }

.vitals-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.10);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 16px;
}
.vt { background: var(--ink-900); padding: 12px 13px; }
.vt-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mineral-500);
  display: block;
  margin-bottom: 5px;
}
.vt-value {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.vt-value span { font-size: .72rem; font-weight: 500; color: var(--mineral-500); margin-left: 2px; }
.vt--alert .vt-value { color: var(--amber); }

@media (max-width: 560px) {
  .vitals-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========================= replace strip ========================= */

.replace {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--mineral-200);
  border: 1px solid var(--mineral-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.replace-item { background: var(--paper); padding: 26px 22px; }
.replace-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.replace-item p { font-size: .92rem; color: var(--mineral-600); }
.replace-item .tag {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  display: block;
  margin-bottom: 12px;
}
@media (max-width: 880px) { .replace { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .replace { grid-template-columns: 1fr; } }

/* ========================= feature rows ========================= */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature--flip .feature-copy { order: 2; }
.feature--flip .shot { order: 1; }

.feature-copy h2 { margin-bottom: 16px; }
.feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--mineral-700);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 2px;
  background: var(--pulse);
}
.band-dark .feature-list li { color: var(--mineral-200); }

@media (max-width: 940px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-copy { order: 0; }
  .feature--flip .shot { order: 0; }
}

/* =========================================================================
   SCREENSHOT SLOTS
   -------------------------------------------------------------------------
   Each .shot is a framed app screen. The frame currently holds a rendered
   mockup (.mock). To use a real capture instead, replace everything inside
   .shot-body with:  <img src="assets/screens/NAME.png" alt="...">
   The frame, caption and responsive behaviour stay identical.
   ========================================================================= */

.shot {
  margin: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--mineral-200);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.band-dark .shot { border-color: rgba(255,255,255,.12); }

.shot-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--mineral-100);
  border-bottom: 1px solid var(--mineral-200);
}
.shot-chrome i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mineral-300);
  flex: none;
}
.shot-url {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--mineral-600);
  background: var(--paper);
  border: 1px solid var(--mineral-200);
  border-radius: 3px;
  padding: 3px 10px;
  margin-left: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shot-body { position: relative; background: var(--mineral-50); }
.shot-body img { display: block; width: 100%; height: auto; }

.shot figcaption {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--mineral-600);
  padding: 11px 14px;
  border-top: 1px solid var(--mineral-200);
  background: var(--paper);
}

/* ---- rendered app mockup system ---- */

.mock {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 340px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-900);
  background: var(--mineral-50);
}
.mock-rail {
  background: var(--ink-900);
  padding: 14px 10px;
  color: var(--mineral-300);
}
.mock-rail .rail-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--paper);
  letter-spacing: -0.02em;
  padding: 0 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}
.mock-rail a {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
}
.mock-rail a.on { background: rgba(53,196,137,.16); color: var(--pulse-bright); font-weight: 600; }
.mock-main { padding: 14px 16px 18px; min-width: 0; }
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mineral-200);
  margin-bottom: 14px;
}
.mock-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.mock-sub { font-family: var(--font-mono); font-size: 9.5px; color: var(--mineral-500); letter-spacing: .06em; text-transform: uppercase; }
.mock-btn {
  font-size: 10.5px; font-weight: 600;
  background: var(--amber); color: var(--ink-900);
  padding: 6px 11px; border-radius: 3px; white-space: nowrap;
}
.mock-btn--quiet { background: var(--mineral-100); color: var(--mineral-700); border: 1px solid var(--mineral-200); }

.mock-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.mock-kpi { background: var(--paper); border: 1px solid var(--mineral-200); border-radius: 6px; padding: 10px; }
.mock-kpi b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.03em; }
.mock-kpi span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--mineral-500); }
.mock-kpi em { font-style: normal; font-size: 10px; color: var(--pulse); font-weight: 600; }
.mock-kpi em.dn { color: var(--clay); }

.mock-panel { background: var(--paper); border: 1px solid var(--mineral-200); border-radius: 6px; padding: 12px; }
.mock-panel-title { font-weight: 700; font-size: 11.5px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.mock-panel-title span { font-family: var(--font-mono); font-size: 9px; color: var(--mineral-500); font-weight: 400; }

.mock-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }

table.mock-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
table.mock-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mineral-500);
  font-weight: 500;
  padding: 0 8px 6px 0;
  border-bottom: 1px solid var(--mineral-200);
}
table.mock-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--mineral-100); vertical-align: middle; }
table.mock-table tr:last-child td { border-bottom: 0; }
.lot { font-family: var(--font-mono); font-size: 10px; color: var(--ink-800); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pulse-soft);
  color: #0d5d3c;
  white-space: nowrap;
}
.pill--warn { background: #fbeacb; color: #7a4d09; }
.pill--stop { background: #f7d9d2; color: #8b2b16; }
.pill--idle { background: var(--mineral-100); color: var(--mineral-600); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.bars i { flex: 1; background: var(--pulse-soft); border-radius: 2px 2px 0 0; display: block; }
.bars i.hi { background: var(--pulse); }

.checks { display: grid; gap: 7px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 10.5px; }
.check b { width: 14px; height: 14px; border-radius: 3px; background: var(--pulse); color: #fff; font-size: 9px; display: grid; place-items: center; flex: none; }
.check b.off { background: var(--mineral-200); color: transparent; }
.check b.warn { background: var(--amber); color: var(--ink-900); }
.check span { color: var(--mineral-600); font-family: var(--font-mono); font-size: 9px; margin-left: auto; }

.mapbox {
  position: relative;
  height: 168px;
  border-radius: 5px;
  background:
    linear-gradient(rgba(31,157,104,.05), rgba(31,157,104,.05)),
    repeating-linear-gradient(0deg, var(--mineral-100) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, var(--mineral-100) 0 1px, transparent 1px 22px),
    var(--paper);
  border: 1px solid var(--mineral-200);
  overflow: hidden;
}
.mapbox .route { position: absolute; inset: 0; }
.mapbox .pin {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pulse);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.mapbox .pin--amber { background: var(--amber); }
.mapbox .pin-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8.5px;
  background: var(--ink-900);
  color: var(--paper);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.chat { display: grid; gap: 8px; }
.msg { max-width: 78%; padding: 7px 10px; border-radius: 8px; font-size: 10.5px; background: var(--mineral-100); }
.msg.me { margin-left: auto; background: var(--pulse-soft); }
.msg u { display: block; text-decoration: none; font-family: var(--font-mono); font-size: 8.5px; color: var(--mineral-600); margin-bottom: 2px; }

.qrbox { display: grid; place-items: center; gap: 8px; padding: 10px 0; }
.qrbox svg { width: 92px; height: 92px; }

@media (max-width: 620px) {
  .mock { grid-template-columns: 1fr; }
  .mock-rail { display: none; }
  .mock-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mock-cols { grid-template-columns: 1fr; }
}

/* ========================= module grid ========================= */

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1px;
  background: var(--mineral-200);
  border: 1px solid var(--mineral-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.band-dark .modules { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }

.module {
  background: var(--paper);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background-color .18s ease;
}
.band-dark .module { background: var(--ink-800); }
.module:hover { background: var(--mineral-50); }
.band-dark .module:hover { background: var(--ink-700); }

.module-no {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--pulse);
}
.module h3 { font-size: 1.06rem; }
.module p { font-size: .9rem; color: var(--mineral-600); margin: 0; }
.band-dark .module p { color: var(--mineral-300); }
.module ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.module ul li {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--mineral-600);
  border: 1px solid var(--mineral-200);
  border-radius: 999px;
  padding: 3px 9px;
}
.band-dark .module ul li { color: var(--mineral-300); border-color: rgba(255,255,255,.16); }

/* ========================= cards / specs ========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--mineral-200);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.band-dark .card { background: var(--ink-800); border-color: rgba(255,255,255,.12); box-shadow: none; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .93rem; color: var(--mineral-600); }
.band-dark .card p { color: var(--mineral-300); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--mineral-200); vertical-align: top; }
.spec-table th {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mineral-600);
  font-weight: 500;
  width: 34%;
}
.spec-table td { color: var(--mineral-700); }
.band-dark .spec-table th, .band-dark .spec-table td { border-color: rgba(255,255,255,.12); }
.band-dark .spec-table th { color: var(--pulse-bright); }
.band-dark .spec-table td { color: var(--mineral-200); }
@media (max-width: 620px) {
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 4px; }
}

/* ========================= accordion ========================= */

.faq { border-top: 1px solid var(--mineral-200); }
.faq-item { border-bottom: 1px solid var(--mineral-200); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--pulse);
  flex: none;
  transition: transform .2s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 24px; max-width: 72ch; color: var(--mineral-700); font-size: .96rem; }
.faq-a.is-open { display: block; }

/* ========================= form ========================= */

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 940px) { .form-wrap { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper);
  border: 1px solid var(--mineral-200);
  border-radius: var(--r-md);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-lift);
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }

.field label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mineral-600);
}
.field label .req { color: var(--clay); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--ink-900);
  background: var(--mineral-50);
  border: 1px solid var(--mineral-200);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  width: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--paper);
  border-color: var(--pulse);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--clay); background: #fdf5f3; }
.field .err { font-size: .78rem; color: var(--clay); display: none; }
.field .err.show { display: block; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative;
  display: inline-flex;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  font-size: .84rem;
  border: 1px solid var(--mineral-200);
  background: var(--mineral-50);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.choice input:checked + span { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--mineral-600); }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--pulse); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  border: 1px solid transparent;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--pulse-soft); border-color: var(--pulse); color: #0d5236; }
.form-status.bad { background: #fbeee9; border-color: var(--clay); color: #7d2b16; }

.form-aside .feature-list { margin-top: 26px; }
.form-aside .lede { margin-bottom: 4px; }

/* ========================= footer ========================= */

.site-footer {
  background: var(--ink-900);
  color: var(--mineral-300);
  padding-block: 58px 34px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mineral-500);
  font-weight: 500;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--mineral-300); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.03em; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-note { max-width: 42ch; color: var(--mineral-500); font-size: .86rem; }
.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--mineral-500);
  letter-spacing: .04em;
}

/* ========================= motion ========================= */

/* Scoped to .js so that if the script never runs, nothing is left invisible. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .trace-line { animation: none; stroke-dashoffset: 0; }
  .trace-fill { animation: none; opacity: 1; }
  .vitals-live::before { animation: none; }
  .btn:hover { transform: none; }
}
