/* ==========================================================================
   EVERNER — Design tokens
   Palette:
     --navy      #0E1B2E   blueprint background
     --paper     #F5F3EC   fiche/catalog paper surface
     --amber     #E8A33D   signal accent (CTAs, highlights)
     --rust      #9B4B32   secondary accent (chain/supersession motif)
     --ink       #1B2430   body text on paper
     --steel     #3E5266   hairlines, secondary text on navy
   Type:
     Display  — Space Grotesk (headlines)
     Body     — IBM Plex Sans (paragraphs, UI)
     Mono     — IBM Plex Mono (SKU-style labels, eyebrows, stats)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #0F2419;
  --navy-rgb: 15, 36, 25;
  --navy-2: #1A3D28;
  --paper: #F5F4F1;
  --amber: #1D9E75;
  --amber-dim: #085041;
  --amber-hover: #24B588;
  --amber-rgb: 29, 158, 117;
  --rust: #D97706;
  --ink: #1A1A18;
  --steel: #B8D4C4;
  --steel-light: #7FA08D;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
}

[data-theme="blueprint"] {
  --navy: #0E1B2E;
  --navy-rgb: 14, 27, 46;
  --navy-2: #142A45;
  --paper: #F5F3EC;
  --amber: #E8A33D;
  --amber-dim: #C98A2E;
  --amber-hover: #F0B25C;
  --amber-rgb: 232, 163, 61;
  --rust: #9B4B32;
  --ink: #1B2430;
  --steel: #3E5266;
  --steel-light: #7C93A8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(245,243,236,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,243,236,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--navy-rgb),0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245,243,236,0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { font-size: 14px; color: var(--steel-light); transition: color .15s ease; }
.site-nav a:hover { color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: 3px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-hover); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(245,243,236,0.25); color: var(--paper); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.hero { position: relative; overflow: hidden; padding: 96px 0 80px; border-bottom: 1px solid rgba(245,243,236,0.08); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 18px 0 22px; }
.hero h1 .hl { color: var(--amber); }
.hero p.lede { font-size: 18px; color: var(--steel-light); max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-light); }

.signal-panel {
  position: relative; background: var(--navy-2); border: 1px solid rgba(245,243,236,0.1);
  border-radius: 6px; padding: 22px; height: 380px; overflow: hidden;
}
.signal-panel .panel-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--steel-light);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
  display: flex; justify-content: space-between;
}
.noise-row {
  font-family: var(--font-mono); font-size: 12px; color: rgba(124,147,168,0.45);
  padding: 6px 10px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.noise-row.caught {
  color: var(--navy); background: var(--amber); font-weight: 500;
  animation: catchPulse 2.6s ease-in-out infinite; position: relative; padding-right: 90px;
}
.noise-row.caught::after { content: "→ flagged"; position: absolute; right: 10px; font-weight: 600; }
@keyframes catchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--amber-rgb),0.5); }
  50% { box-shadow: 0 0 0 6px rgba(var(--amber-rgb),0); }
}

.morning-greeting { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--paper); margin-bottom: 16px; }
.morning-counts { display: flex; gap: 10px; margin-bottom: 20px; }
.morning-count { flex: 1; text-align: center; background: var(--navy-2); border-radius: 6px; padding: 12px 8px; }
.morning-count .count-num { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.morning-count .count-label { font-size: 10.5px; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.05em; }
.morning-count.is-critical .count-num { color: var(--rust); }
.morning-count.is-high .count-num { color: var(--amber); }
.morning-count.is-medium .count-num { color: var(--steel-light); }

.morning-opportunity { border-top: 1px solid rgba(245,244,241,0.1); padding-top: 16px; }
.opportunity-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 12px; }
.opportunity-flow { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--paper); margin-bottom: 12px; }
.opportunity-flow .opp-detail { font-size: 11px; color: var(--steel-light); }
.opportunity-flow .opp-arrow { color: var(--amber); font-size: 16px; }
.opportunity-value { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--amber); margin-bottom: 8px; }
.opportunity-action { font-size: 12.5px; color: var(--steel-light); }

.proof-mockup { max-width: 420px; margin: 40px auto 0 auto; }
.proof-funnel { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 20px; }
.proof-step { text-align: center; }
.proof-step .proof-num { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--amber); }
.proof-step .proof-caption { font-size: 12px; color: var(--steel-light); }
.proof-arrow { color: var(--steel-light); font-size: 14px; opacity: 0.6; }
.proof-summary { display: flex; gap: 14px; border-top: 1px solid rgba(245,244,241,0.1); padding-top: 18px; }
.proof-summary-item { flex: 1; text-align: center; }
.proof-summary-num { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--paper); margin-bottom: 4px; }
.proof-summary-label { font-size: 11px; color: var(--steel-light); }

.why-pullquote {
  background: var(--navy); color: var(--paper); font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.3; text-align: center; padding: 32px 24px;
  border-radius: 8px; max-width: 760px; margin: 0 auto 28px auto;
}

section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 12px; color: var(--paper); }
.on-paper .section-head h2, .on-paper h3 { color: var(--ink); }
.section-head p { color: var(--steel-light); font-size: 16px; margin-top: 14px; }
.on-paper .section-head p { color: #5B6B7A; }

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.have-list { display: flex; flex-direction: column; gap: 14px; }
.have-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 14px; color: var(--steel-light); padding-bottom: 14px; border-bottom: 1px solid rgba(245,243,236,0.08); }
.have-item .tick { color: var(--amber); }
.problem-statement { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.problem-statement .dim { color: var(--steel-light); font-weight: 500; }
.problem-statement .strong { color: var(--amber); }

.workflow-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(245,243,236,0.14); border-bottom: 1px solid rgba(245,243,236,0.14); }
.workflow-step { padding: 26px 18px 22px; border-right: 1px solid rgba(245,243,236,0.14); }
.workflow-step:last-child { border-right: none; }
.workflow-step .num { font-family: var(--font-mono); font-size: 12px; color: var(--amber); margin-bottom: 14px; display: block; }
.workflow-step h4 { font-size: 15px; margin-bottom: 8px; }
.workflow-step p { font-size: 13px; color: var(--steel-light); line-height: 1.5; }

.roles-section { background: var(--paper); color: var(--ink); }
#detection { background: var(--paper); color: var(--ink); }

.mockup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 48px; }
.mockup-panel { background: var(--navy); border-radius: 8px; padding: 22px; box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.mockup-panel .mockup-label { font-family: var(--font-mono); font-size: 10px; color: var(--steel-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }

.situation-mockup .mockup-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.situation-mockup .mockup-priority { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--navy); background: var(--rust); padding: 3px 8px; border-radius: 3px; }
.situation-mockup .mockup-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--paper); margin-bottom: 8px; }
.situation-mockup .mockup-sub { font-family: var(--font-mono); font-size: 12px; color: var(--steel-light); margin-bottom: 18px; }
.situation-mockup .mockup-impact { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--amber); margin-bottom: 14px; }
.situation-mockup .mockup-status { font-size: 12.5px; color: var(--steel-light); border-top: 1px solid rgba(245,244,241,0.1); padding-top: 14px; }

.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dash-tile { background: var(--navy-2); border-radius: 6px; padding: 16px 12px; text-align: center; }
.dash-tile .dash-visual { display: flex; justify-content: center; margin-bottom: 10px; }
.dash-tile .dash-number { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--amber); margin-bottom: 10px; }
.dash-tile .dash-caption { font-size: 11px; color: var(--steel-light); line-height: 1.3; }
.trend-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.trend-bars span { width: 6px; background: var(--amber); border-radius: 2px; opacity: 0.5; }
.trend-bars span:last-child { opacity: 1; }

.capability-category { margin-bottom: 22px; }
.capability-category-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); text-align: center; margin-bottom: 12px; }
.capability-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.capability-tag { font-size: 13.5px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid #E4E0D4; border-radius: 20px; padding: 8px 16px; }
.capability-tag.is-new { border-color: var(--amber); color: var(--amber-dim); font-weight: 600; }

@media (max-width: 820px) {
  .mockup-row { grid-template-columns: 1fr; }
  .dash-tiles { grid-template-columns: 1fr; }
}

.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.role-card { background: #fff; border: 1px solid #E4E0D4; border-radius: 6px; padding: 30px 26px; }
.role-card .role-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; display: block; }
.role-card h3 { font-size: 19px; margin-bottom: 16px; }
.role-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.role-card li { font-size: 14.5px; color: #4A5762; padding-left: 18px; position: relative; }
.role-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }

.detection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.detection-card { background: #fff; border: 1px solid #E4E0D4; border-radius: 6px; padding: 30px 26px; }
.detection-card.is-new { border: 1px solid var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.detection-card .detection-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; display: block; }
.detection-card.is-new .detection-tag { color: var(--amber); }
.detection-card h3 { font-size: 19px; margin-bottom: 16px; }
.detection-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.detection-card li { font-size: 14.5px; color: #4A5762; padding-left: 18px; position: relative; }
.detection-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }

.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip { font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border: 1px solid rgba(245,243,236,0.2); border-radius: 3px; color: var(--paper); }
.tag-chip.dim { color: var(--steel-light); border-color: rgba(245,243,236,0.1); }

.philosophy-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.philosophy-list { display: flex; flex-direction: column; }
.philosophy-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(245,243,236,0.1); align-items: baseline; }
.philosophy-row .label { font-family: var(--font-mono); font-size: 12px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; }
.philosophy-row .val { font-size: 15px; color: var(--steel-light); }
.philosophy-row .val.people { color: var(--paper); font-weight: 500; }

.partner-band { background: linear-gradient(135deg, var(--navy-2), var(--navy)); border-top: 1px solid rgba(245,243,236,0.08); border-bottom: 1px solid rgba(245,243,236,0.08); }
.partner-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.partner-list { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 32px; }
.partner-list li { list-style: none; font-size: 15px; color: var(--steel-light); padding-left: 22px; position: relative; }
.partner-list li::before { content: "◆"; color: var(--amber); font-size: 9px; position: absolute; left: 0; top: 6px; }

.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: start; }
.about-mark { width: 100%; aspect-ratio: 1; background: var(--navy-2); border: 1px solid rgba(245,243,236,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.about-mark svg { width: 56%; height: 56%; }
.about-copy p { color: var(--steel-light); font-size: 16px; margin-bottom: 16px; max-width: 62ch; }
.about-copy p strong { color: var(--paper); font-weight: 500; }

footer { border-top: 1px solid rgba(245,243,236,0.08); padding: 48px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; gap: 24px; }
.footer-tagline { font-family: var(--font-display); font-size: 18px; color: var(--paper); max-width: 40ch; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--steel-light); }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(245,243,236,0.08); font-family: var(--font-mono); font-size: 12px; color: var(--steel-light); flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero-inner, .problem-grid, .philosophy-grid, .partner-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .detection-grid { grid-template-columns: 1fr; }
  .workflow-track { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:nth-child(2n) { border-right: none; }
  .workflow-step { border-bottom: 1px solid rgba(245,243,236,0.14); }
  .site-nav { display: none; }
  .about-mark { width: auto; aspect-ratio: unset; height: auto; display: flex; }
  .site-header .btn-primary { font-size: 12px; padding: 10px 14px; }
}
@media (max-width: 767px) {
  .workflow-track { grid-template-columns: 1fr; }
  .workflow-step:nth-child(3) { border-right: 1px solid rgba(245,243,236,0.14); }
  .workflow-step:nth-child(2n) { border-right: none; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
}

.network-h { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 24px auto 24px auto; align-items: center; justify-items: center; margin: 24px 0; width: 100%; gap: 0 14px; }
.h-node-top-left { grid-column: 1; grid-row: 1; width: 100%; }
.h-node-top-right { grid-column: 2; grid-row: 1; width: 100%; }
.h-node-bottom-left { grid-column: 1; grid-row: 5; width: 100%; }
.h-node-bottom-right { grid-column: 2; grid-row: 5; width: 100%; }
.h-vline-top-left { grid-column: 1; grid-row: 2; width: 1px; height: 100%; background: rgba(255,255,255,0.2); }
.h-vline-top-right { grid-column: 2; grid-row: 2; width: 1px; height: 100%; background: rgba(255,255,255,0.2); }
.h-vline-bottom-left { grid-column: 1; grid-row: 4; width: 1px; height: 100%; background: rgba(255,255,255,0.2); }
.h-vline-bottom-right { grid-column: 2; grid-row: 4; width: 1px; height: 100%; background: rgba(255,255,255,0.2); }
.h-center-wrap { grid-column: 1 / 3; grid-row: 3; position: relative; display: flex; justify-content: center; width: 100%; }
.hub-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 20px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--rust); }
.hub-center-tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--rust); }
.hub-center-detail { font-size: 12px; opacity: 0.75; }
.thread-node { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); width: 100%; }
.thread-node.is-flagged { border-color: var(--rust); background: rgba(255,255,255,0.06); }
.thread-node-flag { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rust); margin-bottom: 3px; }
.thread-node-tag { font-size: 12px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.02em; }
.thread-node-detail { font-size: 14px; }
.hub-privacy-note { font-size: 12px; opacity: 0.65; text-align: center; font-style: italic; margin-top: 4px; }

/* ==========================================================================
   Light theme override - index.html only (scoped via body.page-light-home)
   Consolidated palette: ink (text), rust (the one accent), paper (bg/light text)
   ========================================================================== */
body.page-light-home .site-header {
  background: rgba(245,244,241,0.92);
  border-bottom: 1px solid rgba(26,26,24,0.08);
}
body.page-light-home .site-header .brand-word { color: var(--ink); }
body.page-light-home .site-nav a { color: var(--ink); opacity: 0.6; }
body.page-light-home .site-nav a:hover { color: var(--rust); opacity: 1; }

body.page-light-home .btn-primary {
  background: var(--rust);
  color: var(--paper);
}
body.page-light-home .btn-primary:hover { background: var(--ink); }

body.page-light-home .hero {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid rgba(26,26,24,0.08);
}
body.page-light-home .hero .eyebrow { color: var(--rust); }
body.page-light-home .hero h1 { color: var(--ink); }
body.page-light-home .hero p.lede { color: var(--ink); opacity: 0.65; }
body.page-light-home .hero .btn-ghost { border-color: rgba(26,26,24,0.25); color: var(--ink); }
body.page-light-home .hero .btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

/* Keep the H-visual card on its original dark styling - don't let hero's ink text inherit into it */
body.page-light-home .mockup-panel { color: var(--paper); }

body.page-light-home #lifecycle {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid rgba(26,26,24,0.08);
}
body.page-light-home #lifecycle .eyebrow { color: var(--rust); }
body.page-light-home #lifecycle h2 { color: var(--ink); }
body.page-light-home #lifecycle .workflow-track {
  border-top: 1px solid rgba(26,26,24,0.14);
  border-bottom: 1px solid rgba(26,26,24,0.14);
}
body.page-light-home #lifecycle .workflow-step { border-right: 1px solid rgba(26,26,24,0.14); }
body.page-light-home #lifecycle .workflow-step .num { color: var(--rust); }
body.page-light-home #lifecycle .workflow-step h4 { color: var(--ink); }
body.page-light-home #lifecycle .workflow-step p { color: var(--ink); opacity: 0.65; }

body.page-light-home #join {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(26,26,24,0.08);
  border-bottom: 1px solid rgba(26,26,24,0.08);
}
body.page-light-home #join h2 { color: var(--ink); }

body.page-light-home footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(26,26,24,0.08);
}
body.page-light-home .footer-tagline { color: var(--ink); }
body.page-light-home .footer-links a { color: var(--ink); opacity: 0.6; }
body.page-light-home .footer-links a:hover { color: var(--rust); opacity: 1; }
body.page-light-home .footer-bottom { border-top: 1px solid rgba(26,26,24,0.08); }
body.page-light-home .footer-bottom span { color: var(--ink); opacity: 0.55; }

/* ==========================================================================
   Light sections on how-everner-works.html - break up the dark stretch
   ========================================================================== */
#problem {
  background: var(--paper);
  color: var(--ink);
}
#problem .section-head h2 { color: var(--ink); }
#problem .have-item { color: rgba(26,26,24,0.6); border-bottom-color: rgba(26,26,24,0.12); }
#problem .have-item .tick { color: var(--rust); }
#problem .problem-statement .dim { color: rgba(26,26,24,0.55); }
#problem .problem-statement .strong { color: var(--rust); }

#industries {
  background: var(--paper);
  color: var(--ink);
}
#industries .section-head h2 { color: var(--ink); }
#industries .section-head p { color: rgba(26,26,24,0.6); }
#industries .have-item { color: rgba(26,26,24,0.6); border-bottom-color: rgba(26,26,24,0.12); }
#industries .have-item .tick { color: var(--rust); }
#industries .tag-chip { color: var(--ink); border-color: rgba(26,26,24,0.15); }
#industries .tag-chip.dim { color: rgba(26,26,24,0.4); border-color: rgba(26,26,24,0.08); }

#about {
  background: var(--paper);
  color: var(--ink);
}
#about .about-copy p { color: rgba(26,26,24,0.65); }
#about .about-copy p strong { color: var(--ink); }
#about .about-mark { background: rgba(26,26,24,0.04); border-color: rgba(26,26,24,0.12); }


/* ==========================================================================
   Contact form - restored (was accidentally dropped in an earlier rewrite)
   ========================================================================== */
.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 36px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #D9D4C4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
  border-color: var(--rust);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-info { padding-top: 8px; }
.info-block { margin-bottom: 32px; }
.info-block .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
  display: block;
}
.info-block .value { font-size: 16px; color: var(--paper); }
.info-block .sub { font-size: 14px; color: var(--steel-light); margin-top: 4px; }

.contact-hero { padding: 72px 0 48px; border-bottom: 1px solid rgba(245,243,236,0.08); }
.contact-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.contact-hero p { color: var(--steel-light); max-width: 52ch; font-size: 17px; }

/* ==========================================================================
   page-light: shared light theme for how-everner-works.html and contact.html
   ========================================================================== */
body.page-light .site-header {
  background: rgba(245,244,241,0.92);
  border-bottom: 1px solid rgba(26,26,24,0.08);
}
body.page-light .site-header .brand-word { color: var(--ink); }
body.page-light .site-nav a { color: var(--ink); opacity: 0.6; }
body.page-light .site-nav a:hover { color: var(--rust); opacity: 1; }
body.page-light .btn-primary { background: var(--rust); color: var(--paper); }
body.page-light .btn-primary:hover { background: var(--ink); }
body.page-light .btn-ghost { border-color: rgba(26,26,24,0.25); color: var(--ink); }
body.page-light .btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

body.page-light #why { background: var(--paper); color: var(--ink); }
body.page-light #why .eyebrow { color: var(--rust); }
body.page-light #why .section-head h2 { color: var(--ink); }
body.page-light #why .problem-statement { color: var(--ink); }
body.page-light #why .problem-statement .strong { color: var(--rust); }

body.page-light #system { background: var(--paper); color: var(--ink); }
body.page-light #system .eyebrow { color: var(--rust); }
body.page-light #system .section-head h2 { color: var(--ink); }
body.page-light #system .section-head p { color: rgba(26,26,24,0.65); }
body.page-light #system .workflow-track {
  border-top: 1px solid rgba(26,26,24,0.14);
  border-bottom: 1px solid rgba(26,26,24,0.14);
}
body.page-light #system .workflow-step { border-right: 1px solid rgba(26,26,24,0.14); }
body.page-light #system .workflow-step .num { color: var(--rust); }
body.page-light #system .workflow-step h4 { color: var(--ink); }
body.page-light #system .workflow-step p { color: rgba(26,26,24,0.65); }
body.page-light #system .mockup-panel { color: var(--paper); }

body.page-light #philosophy { background: var(--paper); color: var(--ink); }
body.page-light #philosophy .eyebrow { color: var(--rust); }
body.page-light #philosophy h2 { color: var(--ink); }
body.page-light #philosophy .philosophy-row { border-bottom-color: rgba(26,26,24,0.1); }
body.page-light #philosophy .philosophy-row .label { color: var(--rust); }
body.page-light #philosophy .philosophy-row .val { color: rgba(26,26,24,0.65); }
body.page-light #philosophy .philosophy-row .val.people { color: var(--ink); }

body.page-light #cta-close {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(26,26,24,0.08);
  border-bottom: 1px solid rgba(26,26,24,0.08);
}
body.page-light #cta-close .eyebrow { color: var(--rust); }
body.page-light #cta-close h2 { color: var(--ink); }

body.page-light footer { background: var(--paper); color: var(--ink); border-top: 1px solid rgba(26,26,24,0.08); }
body.page-light .footer-tagline { color: var(--ink); }
body.page-light .footer-links a { color: var(--ink); opacity: 0.6; }
body.page-light .footer-links a:hover { color: var(--rust); opacity: 1; }
body.page-light .footer-bottom { border-top: 1px solid rgba(26,26,24,0.08); }
body.page-light .footer-bottom span { color: var(--ink); opacity: 0.55; }

/* Contact page specific */
body.page-light .contact-hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid rgba(26,26,24,0.08); }
body.page-light .contact-hero .eyebrow { color: var(--rust); }
body.page-light .contact-hero p { color: rgba(26,26,24,0.65); }
body.page-light .contact-form { border: 1px solid rgba(26,26,24,0.1); }
body.page-light .contact-info .label { color: var(--rust); }
body.page-light .contact-info .value { color: var(--ink); }
body.page-light .contact-info .sub { color: rgba(26,26,24,0.6); }

body.page-light .contact-body { background: var(--paper); color: var(--ink); }

.mockup-suggestion { font-size: 13px; font-weight: 600; color: var(--rust); margin-bottom: 8px; }

.eyebrow-lg {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--amber);
  display: block;
}
body.page-light-home .eyebrow-lg { color: var(--rust); }

/* Fix readability of the network-hub-mockup when it's on a page without page-light-home scoping */
.network-hub-mockup { color: var(--paper); }
.network-hub-mockup .mockup-impact {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
}
.network-hub-mockup .mockup-status {
  font-size: 12.5px;
  color: var(--steel-light);
  border-top: 1px solid rgba(245,244,241,0.1);
  padding-top: 14px;
  margin-top: 8px;
}

.mockup-explain {
  font-size: 12px;
  color: var(--steel-light);
  font-style: italic;
  margin-bottom: 10px;
}
body.page-light-home .mockup-explain { color: rgba(245,244,241,0.75); }

.hero-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-detect-panel .noise-row {
  color: var(--steel-light);
}
.track-mockup .mockup-sub {
  margin-bottom: 14px;
}
.track-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(245,244,241,0.1);
}
.track-status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-light);
}
.track-status-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
}
.track-status-value.is-active {
  color: var(--amber);
}
.suggest-mockup .mockup-explain {
  margin-top: 4px;
}
.suggest-mockup .mockup-impact {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--amber);
  margin-top: 4px;
}
body.page-light-home .hero-detect-panel .noise-row { color: rgba(245,244,241,0.75); }
body.page-light-home .track-status-label { color: rgba(245,244,241,0.6); }
body.page-light-home .track-status-value { color: var(--paper); }

.hero-detect-panel {
  background: var(--navy);
}
.hero-detect-panel .noise-row.caught {
  box-shadow: 0 0 0 2px rgba(var(--amber-rgb),0.6);
}

.suggest-mockup .mockup-explain {
  font-size: 15px;
}

.hero-visual-stack, .hero-inner > * {
  min-width: 0;
}

#lifecycle .workflow-track {
  grid-template-columns: repeat(4, 1fr);
}

.workflow-track {
  border-left: 1px solid rgba(245,243,236,0.14);
}

body.page-light-home #lifecycle .workflow-track {
  border-left: 1px solid rgba(26,26,24,0.14);
}
body.page-light #system .workflow-track {
  border-left: 1px solid rgba(26,26,24,0.14);
}

/* Tighter rhythm for aftermarket.html - shorter, more concise page than the others */
.page-compact section {
  padding: 24px 0;
}
.page-compact .section-head {
  margin-bottom: 6px;
}
.page-compact .detection-card {
  padding: 20px 22px;
}
.page-compact .detection-card h3 {
  margin-bottom: 10px;
}
.page-compact .detection-card .detection-tag {
  margin-bottom: 8px;
}
.page-compact .detection-grid {
  gap: 20px;
}

.page-compact .problem-grid > div:first-child {
  margin-bottom: 24px;
}

.page-compact .problem-statement {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}
.page-compact .problem-statement .dim,
.page-compact .problem-statement .strong {
  font-size: 17px;
}

.page-compact .eyebrow {
  font-size: 14px;
  font-weight: 700;
}

#lifecycle .eyebrow {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 767px) {

}

@media (max-width: 767px) {
  #lifecycle .workflow-track { grid-template-columns: 1fr; }
}
