/*
Theme Name: BSP Website
Theme URI: https://bsp.global/
Author: Beebug / BSP
Description: WordPress theme converted from the supplied BSP static website mockup. Includes homepage plus Vigil, Claudo and Salus product page templates.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.5
Text Domain: bsp-website
*/

/* ============================================================
   BSP — Building Systems Profiling
   Shared design system
   ============================================================ */

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

:root {
  /* Neutrals — subtly cool */
  --ink:        oklch(0.22 0.014 244);
  --ink-2:      oklch(0.38 0.014 244);
  --ink-3:      oklch(0.54 0.012 244);
  --bg:         oklch(0.985 0.004 244);
  --bg-panel:   oklch(0.965 0.006 244);
  --bg-deep:    oklch(0.21 0.018 250);
  --bg-deep-2:  oklch(0.26 0.02 250);
  --line:       oklch(0.90 0.008 244);
  --line-2:     oklch(0.83 0.01 244);
  --white:      oklch(0.995 0.002 244);

  /* Product accents — shared chroma/lightness, varied hue */
  --leak:       oklch(0.60 0.122 244);   /* water blue   */
  --leak-soft:  oklch(0.94 0.03 244);
  --shut:       oklch(0.60 0.10 178);    /* teal         */
  --shut-soft:  oklch(0.94 0.028 178);
  --legio:      oklch(0.64 0.12 58);     /* warm amber   */
  --legio-soft: oklch(0.95 0.03 70);

  /* Brand primary (BSP parent) follows leak blue, slightly deeper */
  --brand:      oklch(0.52 0.13 248);

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;

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

  --shadow-sm: 0 1px 2px oklch(0.22 0.02 244 / 0.05), 0 2px 6px oklch(0.22 0.02 244 / 0.04);
  --shadow-md: 0 4px 14px oklch(0.22 0.02 244 / 0.07), 0 12px 30px oklch(0.22 0.02 244 / 0.06);
  --shadow-lg: 0 10px 40px oklch(0.22 0.02 244 / 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section-tight { padding: 72px 0; }

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--line-2);
}
.eyebrow.no-rule::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: oklch(0.30 0.02 248); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-arrow svg { transition: transform .2s ease; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.985 0.004 244 / 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 32px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.brand-mark span {
  font-family: var(--font-display); font-weight: 700;
  color: var(--white); font-size: 15px; letter-spacing: -0.04em;
}
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.02em;
}
.brand-name small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3);
  text-transform: uppercase; margin-top: 1px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .15s ease; position: relative;
}
.nav-links a.link:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-login:hover { color: var(--brand); }

/* ---------- Generic grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background-color: var(--bg-panel);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 11px,
    oklch(0.9 0.01 244 / 0.6) 11px, oklch(0.9 0.01 244 / 0.6) 12px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph .ph-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  color: oklch(0.82 0.01 244);
  padding: 70px 0 38px;
}
.footer a { color: oklch(0.78 0.012 244); transition: color .15s ease; }
.footer a:hover { color: var(--white); }
.footer h4 {
  color: var(--white); font-size: 13px; font-family: var(--font-mono);
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col li { font-size: 15px; }
.footer-bottom {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid oklch(0.4 0.02 250);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: oklch(0.68 0.012 244);
  font-family: var(--font-mono); letter-spacing: 0.03em;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 76px 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { padding: 0 20px; }
}


/* BSP page-specific CSS restored from supplied mockups */

/* Page CSS from index.html */
/* ---------- Page-specific ---------- */
  .hero {
    position: relative;
    padding: 84px 0 96px;
    overflow: hidden;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(40px, 5.4vw, 68px);
    margin: 22px 0 22px;
  }
  .hero h1 .accent { color: var(--brand); }
  .hero-lede {
    font-size: 19px; color: var(--ink-2); max-width: 33ch;
    margin-bottom: 32px;
  }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-trust {
    margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
    display: flex; gap: 34px; flex-wrap: wrap;
  }
  .hero-trust .ht {
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
    color: var(--ink-3); display: flex; flex-direction: column; gap: 4px;
  }
  .hero-trust .ht b {
    font-family: var(--font-display); font-size: 17px; color: var(--ink);
    letter-spacing: -0.01em;
  }

  /* Hero visual — device monitoring panel mock */
  .hero-visual {
    position: relative;
    border-radius: 18px;
    background: var(--bg-deep);
    border: 1px solid oklch(0.34 0.02 250);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    overflow: hidden;
  }
  .hero-visual::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(420px 220px at 80% -10%, oklch(0.6 0.12 244 / 0.22), transparent 70%);
    pointer-events: none;
  }
  .hv-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
  }
  .hv-title {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
    text-transform: uppercase; color: oklch(0.72 0.012 244);
  }
  .hv-live {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
    color: oklch(0.84 0.06 165); text-transform: uppercase;
  }
  .hv-live .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: oklch(0.78 0.16 165);
    box-shadow: 0 0 0 0 oklch(0.78 0.16 165 / 0.6);
    animation: pulse 2.4s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 oklch(0.78 0.16 165 / 0.5); }
    70% { box-shadow: 0 0 0 9px oklch(0.78 0.16 165 / 0); }
    100% { box-shadow: 0 0 0 0 oklch(0.78 0.16 165 / 0); }
  }
  .hv-rows { display: flex; flex-direction: column; gap: 9px; }
  .hv-row {
    display: grid; grid-template-columns: 1fr auto auto;
    align-items: center; gap: 14px;
    background: oklch(0.27 0.018 250);
    border: 1px solid oklch(0.34 0.02 250);
    border-radius: 10px; padding: 13px 15px;
  }
  .hv-row .loc { display: flex; flex-direction: column; gap: 2px; }
  .hv-row .loc b { color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 14px; }
  .hv-row .loc span { font-family: var(--font-mono); font-size: 10.5px; color: oklch(0.66 0.012 244); letter-spacing: 0.04em; }
  .hv-row .batt {
    font-family: var(--font-mono); font-size: 11px; color: oklch(0.74 0.012 244);
    display: flex; align-items: center; gap: 6px;
  }
  .pill {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
    padding: 4px 10px; border-radius: 999px; text-transform: uppercase; font-weight: 500;
  }
  .pill.ok { background: oklch(0.4 0.06 165 / 0.35); color: oklch(0.86 0.1 165); }
  .pill.alert { background: oklch(0.45 0.12 30 / 0.4); color: oklch(0.86 0.13 45); }
  .hv-row.is-alert { border-color: oklch(0.5 0.12 35); background: oklch(0.3 0.04 35); }

  /* Section heads */
  .sec-head { max-width: 640px; margin-bottom: 48px; }
  .sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 16px 0 14px; }
  .sec-head p { font-size: 18px; color: var(--ink-2); }

  /* Product cards */
  .products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .product {
    --c: var(--leak); --c-soft: var(--leak-soft);
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .product:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--c); }
  .product.shut { --c: var(--shut); --c-soft: var(--shut-soft); }
  .product.legio { --c: var(--legio); --c-soft: var(--legio-soft); }
  .product-top {
    padding: 26px 26px 22px; background: var(--c-soft);
    border-bottom: 1px solid var(--line);
  }
  .product-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--c); font-weight: 500;
    margin-bottom: 16px;
  }
  .product-badge .sq { width: 16px; height: 16px; border-radius: 5px; background: var(--c); }
  .product-icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--c);
    display: grid; place-items: center; margin-bottom: 16px;
  }
  .product-top h3 { font-size: 24px; margin-bottom: 3px; }
  .product-sub { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
  .product-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
  .product-body h3 { font-size: 22px; margin-bottom: 9px; }
  .product-body p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
  .product-foot {
    margin-top: 20px; display: flex; align-items: center; justify-content: space-between;
  }
  .product-link {
    font-weight: 600; font-size: 15px; color: var(--c);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .product:hover .product-link svg { transform: translateX(4px); }
  .product-link svg { transition: transform .2s ease; }
  .product-status {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-3);
    border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 999px;
  }

  /* How it works */
  .tech { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .flow {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0;
    margin-top: 8px;
  }
  .flow-node {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow-sm); text-align: left;
  }
  .flow-node .fn-tag {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
    color: var(--brand); text-transform: uppercase; margin-bottom: 14px; display: block;
  }
  .flow-node h4 { font-size: 18px; margin-bottom: 8px; }
  .flow-node p { font-size: 14px; color: var(--ink-2); }
  .flow-arrow {
    display: grid; place-items: center; padding: 0 8px; color: var(--ink-3);
    position: relative;
  }
  .flow-arrow .lbl {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
    color: var(--ink-3); white-space: nowrap; background: var(--bg-panel); padding: 0 6px;
  }
  .tech-note {
    margin-top: 30px; display: flex; gap: 12px; align-items: center;
    font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: 11px 18px; width: fit-content;
  }

  /* No-panel comparison */
  .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
  .cmp { border-radius: 14px; padding: 22px 24px; border: 1px solid var(--line); background: var(--white); }
  .cmp .cmp-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .cmp p { font-size: 15px; color: var(--ink-2); }
  .cmp.old { background: var(--bg-panel); }
  .cmp.old .cmp-tag { color: var(--ink-3); }
  .cmp.old .cmp-tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--ink-3); opacity: .5; }
  .cmp.old p { color: var(--ink-3); }
  .cmp.new { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
  .cmp.new .cmp-tag { color: var(--brand); }
  .cmp.new .cmp-tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); }
  @media (max-width: 680px) { .compare { grid-template-columns: 1fr; } }

  /* Value props */
  .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .value { padding: 4px 0; }
  .value .vn {
    font-family: var(--font-display); font-size: 15px; color: var(--brand); font-weight: 600;
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  }
  .value .vn .vbar { width: 26px; height: 3px; border-radius: 2px; background: var(--brand); }
  .value h4 { font-size: 19px; margin-bottom: 9px; }
  .value p { color: var(--ink-2); font-size: 15.5px; }

  /* CTA band */
  .cta-band {
    background: var(--bg-deep);
    border-radius: 22px;
    padding: 60px 56px;
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center;
  }
  .cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 300px at 85% 120%, oklch(0.6 0.12 244 / 0.25), transparent 70%);
  }
  .cta-band > * { position: relative; }
  .cta-band h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); }
  .cta-band p { color: oklch(0.82 0.012 244); margin-top: 12px; font-size: 17px; max-width: 46ch; }
  .cta-band .btn-primary { background: var(--white); color: var(--ink); }
  .cta-band .btn-primary:hover { background: oklch(0.92 0.01 244); }

  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .products, .values { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; gap: 14px; }
    .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
    .flow-arrow .lbl { display: none; }
    .cta-band { grid-template-columns: 1fr; padding: 44px 30px; }
  }


/* Page CSS from leak-detection.html */
/* This page leads with the Leak Detection brand accent (water blue) */
  :root { --c: var(--leak); --c-soft: var(--leak-soft); }

  /* Product sub-nav badge */
  .brand-name .prod {
    display: block; font-family: var(--font-mono); font-weight: 500;
    font-size: 9.5px; letter-spacing: 0.16em; color: var(--c);
    text-transform: uppercase; margin-top: 1px;
  }

  /* Hero */
  .phero { padding: 64px 0 80px; position: relative; overflow: hidden; }
  .phero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
  .phero h1 { font-size: clamp(38px, 5vw, 62px); margin: 20px 0 20px; }
  .phero .lede { font-size: 19px; color: var(--ink-2); max-width: 36ch; margin-bottom: 30px; }
  .phero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
  .btn-prod { background: var(--c); color: var(--white); }
  .btn-prod:hover { background: oklch(0.54 0.12 244); box-shadow: var(--shadow-md); }

  .prod-eyebrow {
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 9px; font-weight: 500;
  }
  .prod-eyebrow .sq { width: 16px; height: 16px; border-radius: 5px; background: var(--c); }

  /* Hero visual: cutaway placeholder */
  .phero-visual {
    border-radius: 18px; overflow: hidden; min-height: 420px;
    box-shadow: var(--shadow-lg); position: relative;
  }
  .phero-visual .ph { border-radius: 18px; height: 100%; min-height: 420px; border: none; }

  /* Stat strip */
  .strip { background: var(--c-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
  .strip .s b { font-family: var(--font-display); font-size: 30px; color: var(--ink); display: block; letter-spacing: -0.02em; }
  .strip .s span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); text-transform: uppercase; }

  .sec-head { max-width: 660px; margin-bottom: 46px; }
  .sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 15px 0 14px; }
  .sec-head p { font-size: 18px; color: var(--ink-2); }

  /* Where we monitor */
  .monitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .mon {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 22px; display: flex; gap: 15px; align-items: flex-start;
    box-shadow: var(--shadow-sm);
  }
  .mon .mi {
    width: 40px; height: 40px; border-radius: 10px; background: var(--c-soft);
    display: grid; place-items: center; flex-shrink: 0;
  }
  .mon h4 { font-size: 16.5px; margin-bottom: 4px; }
  .mon p { font-size: 14px; color: var(--ink-2); }

  /* Devices */
  .devices { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .device {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 150px 1fr;
  }
  .device .ph { border-radius: 0; border: none; border-right: 1px solid var(--line); min-height: 170px; }
  .device-info { padding: 24px; }
  .device-info .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--c); text-transform: uppercase; }
  .device-info h4 { font-size: 19px; margin: 8px 0 8px; }
  .device-info p { font-size: 14.5px; color: var(--ink-2); }

  /* Flow (reuse from home) */
  .flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
  .flow-node { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
  .flow-node .fn-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--c); text-transform: uppercase; margin-bottom: 14px; display: block; }
  .flow-node h4 { font-size: 18px; margin-bottom: 8px; }
  .flow-node p { font-size: 14px; color: var(--ink-2); }
  .flow-arrow { display: grid; place-items: center; padding: 0 8px; color: var(--ink-3); position: relative; }
  .flow-arrow .lbl { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-3); white-space: nowrap; background: var(--bg); padding: 0 6px; }

  /* Deployment scenarios */
  .scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .scenario { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); box-shadow: var(--shadow-sm); }
  .scenario .num { font-family: var(--font-mono); font-size: 12px; color: var(--c); letter-spacing: 0.1em; }
  .scenario h4 { font-size: 19px; margin: 12px 0 9px; }
  .scenario p { font-size: 14.5px; color: var(--ink-2); }

  /* Commercial model */
  .pricing { background: var(--bg-deep); color: oklch(0.86 0.01 244); }
  .pricing .sec-head h2 { color: var(--white); }
  .pricing .sec-head p { color: oklch(0.8 0.012 244); }
  .pricing .eyebrow { color: oklch(0.72 0.012 244); }
  .pricing .eyebrow::before { background: oklch(0.5 0.02 250); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .step {
    background: oklch(0.26 0.018 250); border: 1px solid oklch(0.34 0.02 250);
    border-radius: var(--radius); padding: 30px 26px; position: relative;
    display: flex; flex-direction: column;
  }
  .step .snum {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
    color: oklch(0.78 0.1 244); margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px;
  }
  .step .snum .ring { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid oklch(0.6 0.1 244); display: grid; place-items: center; color: var(--white); font-family: var(--font-display); font-size: 14px; }
  .step h4 { color: var(--white); font-size: 21px; margin-bottom: 10px; }
  .step p { font-size: 14.5px; color: oklch(0.8 0.012 244); flex: 1; }
  .step .meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid oklch(0.36 0.02 250); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: oklch(0.74 0.08 244); text-transform: uppercase; }
  .term-toggle { display: flex; gap: 10px; margin-top: 12px; }
  .term {
    flex: 1; text-align: center; background: oklch(0.3 0.02 250); border: 1px solid oklch(0.4 0.02 250);
    border-radius: 9px; padding: 12px 8px;
  }
  .term b { display: block; color: var(--white); font-family: var(--font-display); font-size: 18px; }
  .term span { font-family: var(--font-mono); font-size: 10.5px; color: oklch(0.74 0.012 244); letter-spacing: 0.05em; }
  .pricing-note { margin-top: 26px; font-family: var(--font-mono); font-size: 12.5px; color: oklch(0.68 0.012 244); letter-spacing: 0.03em; }

  /* CTA */
  .cta-band { background: var(--c); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
  .cta-band h2 { color: var(--white); font-size: clamp(28px, 3.2vw, 38px); }
  .cta-band p { color: oklch(0.97 0.02 244); margin-top: 10px; font-size: 17px; max-width: 44ch; }
  .cta-band .btn-primary { background: var(--white); color: var(--ink); }
  .cta-band .btn-primary:hover { background: oklch(0.93 0.01 244); }

  @media (max-width: 980px) {
    .phero-grid { grid-template-columns: 1fr; gap: 36px; }
    .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .monitor-grid, .scenarios, .steps { grid-template-columns: 1fr; }
    .device-grid { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; gap: 14px; }
    .flow-arrow { transform: rotate(90deg); }
    .flow-arrow .lbl { display: none; }
    .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  }
  @media (max-width: 680px) {
    .device { grid-template-columns: 1fr; }
    .device .ph { border-right: none; border-bottom: 1px solid var(--line); }
  }


/* Page CSS from auto-shutoff.html */
:root { --c: var(--shut); --c-soft: var(--shut-soft); }
  .brand-name .prod { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.16em; color: var(--c); text-transform: uppercase; margin-top: 1px; }
  .phero { padding: 64px 0 80px; }
  .phero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
  .phero h1 { font-size: clamp(38px, 5vw, 62px); margin: 20px 0 20px; }
  .phero .lede { font-size: 19px; color: var(--ink-2); max-width: 36ch; margin-bottom: 30px; }
  .phero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
  .btn-prod { background: var(--c); color: var(--white); }
  .btn-prod:hover { box-shadow: var(--shadow-md); filter: brightness(0.95); }
  .prod-eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
  .prod-eyebrow .sq { width: 16px; height: 16px; border-radius: 5px; background: var(--c); }
  .phero-visual { border-radius: 18px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lg); }
  .phero-visual .ph { border-radius: 18px; height: 100%; min-height: 420px; border: none; }
  .sec-head { max-width: 660px; margin-bottom: 46px; }
  .sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 15px 0 14px; }
  .sec-head p { font-size: 18px; color: var(--ink-2); }
  .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
  .feat .mi { width: 44px; height: 44px; border-radius: 11px; background: var(--c-soft); display: grid; place-items: center; margin-bottom: 16px; }
  .feat h4 { font-size: 18px; margin-bottom: 8px; }
  .feat p { font-size: 14.5px; color: var(--ink-2); }
  .band { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
  .flow-node { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
  .flow-node .fn-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--c); text-transform: uppercase; margin-bottom: 14px; display: block; }
  .flow-node h4 { font-size: 18px; margin-bottom: 8px; }
  .flow-node p { font-size: 14px; color: var(--ink-2); }
  .flow-arrow { display: grid; place-items: center; padding: 0 8px; color: var(--ink-3); position: relative; }
  .flow-arrow .lbl { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-3); white-space: nowrap; background: var(--bg-panel); padding: 0 6px; }
  .note { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; width: fit-content; margin-top: 28px; }
  .cta-band { background: var(--c); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
  .cta-band h2 { color: var(--white); font-size: clamp(28px, 3.2vw, 38px); }
  .cta-band p { color: oklch(0.98 0.02 178); margin-top: 10px; font-size: 17px; max-width: 44ch; }
  .cta-band .btn-primary { background: var(--white); color: var(--ink); }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .pair .ph { min-height: 320px; }
  .pair ul { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
  .pair li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); }
  .pair li svg { flex-shrink: 0; margin-top: 3px; }
  @media (max-width: 980px) {
    .phero-grid, .pair { grid-template-columns: 1fr; gap: 36px; }
    .feat-grid { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; gap: 14px; }
    .flow-arrow { transform: rotate(90deg); } .flow-arrow .lbl { display: none; }
    .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  }


/* Page CSS from legionella.html */
:root { --c: var(--legio); --c-soft: var(--legio-soft); }
  .brand-name .prod { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.16em; color: var(--c); text-transform: uppercase; margin-top: 1px; }
  .phero { padding: 64px 0 80px; }
  .phero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
  .phero h1 { font-size: clamp(38px, 5vw, 62px); margin: 20px 0 20px; }
  .phero .lede { font-size: 19px; color: var(--ink-2); max-width: 36ch; margin-bottom: 30px; }
  .phero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
  .btn-prod { background: var(--c); color: var(--white); }
  .btn-prod:hover { box-shadow: var(--shadow-md); filter: brightness(0.96); }
  .prod-eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
  .prod-eyebrow .sq { width: 16px; height: 16px; border-radius: 5px; background: var(--c); }
  .phero-visual { border-radius: 18px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lg); }
  .phero-visual .ph { border-radius: 18px; height: 100%; min-height: 420px; border: none; }
  .sec-head { max-width: 660px; margin-bottom: 46px; }
  .sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 15px 0 14px; }
  .sec-head p { font-size: 18px; color: var(--ink-2); }
  .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
  .feat .mi { width: 44px; height: 44px; border-radius: 11px; background: var(--c-soft); display: grid; place-items: center; margin-bottom: 16px; }
  .feat h4 { font-size: 18px; margin-bottom: 8px; }
  .feat p { font-size: 14.5px; color: var(--ink-2); }
  .band { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .pair .ph { min-height: 340px; }
  .pair ul { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
  .pair li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); }
  .pair li svg { flex-shrink: 0; margin-top: 3px; }
  .cta-band { background: var(--c); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
  .cta-band h2 { color: var(--white); font-size: clamp(28px, 3.2vw, 38px); }
  .cta-band p { color: oklch(0.99 0.02 80); margin-top: 10px; font-size: 17px; max-width: 44ch; }
  .cta-band .btn-primary { background: var(--ink); color: var(--white); }
  @media (max-width: 980px) {
    .phero-grid, .pair { grid-template-columns: 1fr; gap: 36px; }
    .feat-grid { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  }


/* Safety: content remains visible even if IntersectionObserver is blocked. */
.reveal { opacity: 1 !important; transform: none !important; }
