/* ---------- White + purple-dominant tokens ---------- */
  :root {
    --paper: #FFFFFF;            /* pure white */
    --paper-2: #F7F5FB;          /* faint purple-tinted fold */
    --paper-3: #EFEAF7;
    --ink: #15121F;              /* near-black w/ purple tint */
    --ink-2: #3A3450;
    --ink-3: #6E667F;
    --ink-4: #A39CB3;
    --rule: #E8E3F2;             /* faint purple grid */
    --rule-2: #D4CCE6;
    --purple: #6B46FF;           /* dominant CTA */
    --purple-2: #8B6BFF;
    --purple-3: #5733E6;
    --purple-tint: #F0EBFF;
    --blueprint: #6B46FF;
    --blueprint-2: #8B6BFF;
    --leak: #C73A1F;             /* leak red */
    --leak-2: #9D2A12;
    --leak-fill: #FCE5DF;
    --seal: #2E7D5B;             /* sealed green */
    --seal-2: #1F5C42;
    --seal-fill: #D4E7DD;
    --amber: #B97A0E;
    --money: #2A8055;            /* dollar-bill green */
    --money-2: #1E5E3E;
    --glass: rgba(180, 170, 220, 0.18);
    --glass-edge: rgba(107, 70, 255, 0.5);
    --liquid: #6B46FF;

    --font-display: "Space Grotesk", "Haffer", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* ---------- Subtle purple grid on white ---------- */
  .grid-bg {
    position: fixed; inset: 0;
    background-color: var(--paper);
    background-image:
      linear-gradient(rgba(107, 70, 255, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(107, 70, 255, 0.06) 1px, transparent 1px),
      linear-gradient(rgba(107, 70, 255, 0.10) 1px, transparent 1px),
      linear-gradient(90deg, rgba(107, 70, 255, 0.10) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
    pointer-events: none;
    z-index: 0;
  }
  .grid-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(240, 235, 255, 0.6), transparent 70%),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(107, 70, 255, 0.04), transparent 70%);
  }

  /* ---------- Vertical glass pipes that span hero → problem section ---------- */
  .pipe-rail {
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 0;
  }
  .pipe-rail.left { left: 16px; }
  .pipe-rail.right { right: 16px; }
  .pipe-rail > svg { width: 100%; height: 100%; display: block; }
  .bill-track {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  /* Bills override the inline width/height from the SVG element so
     they render at a reasonable size regardless of attribute values. */
  .bill-track > svg.bubble {
    position: absolute;
    width: 22px !important;
    height: 36px !important;
    overflow: visible !important;
    left: 50%;
    top: 0;
    transform: translateX(-11px) translateY(-60px);
  }
  .bill-track > svg.bubble.b2 { width: 18px !important; height: 30px !important; transform: translateX(-9px) translateY(-60px); }
  .bill-track > svg.bubble.b3 { width: 18px !important; height: 30px !important; transform: translateX(-9px) translateY(-60px); }
  .bill-track > svg.bubble.b4 { width: 22px !important; height: 36px !important; transform: translateX(-11px) translateY(-60px); }

  @keyframes liquidFall {
    0%   { transform: translateX(-11px) translateY(-60px); opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { transform: translateX(-11px) translateY(280vh); opacity: 0; }
  }
  @keyframes liquidFallSm {
    0%   { transform: translateX(-9px) translateY(-60px); opacity: 0; }
    6%   { opacity: 1; }
    94%  { opacity: 1; }
    100% { transform: translateX(-9px) translateY(280vh); opacity: 0; }
  }
  .bubble    { animation: liquidFall 18s linear infinite; }
  .bubble.b2 { animation: liquidFallSm 22s linear infinite; animation-delay: 4s; }
  .bubble.b3 { animation: liquidFallSm 16s linear infinite; animation-delay: 9s; }
  .bubble.b4 { animation: liquidFall   20s linear infinite; animation-delay: 2s; }

  /* ---------- Layout ---------- */
  .wrap { position: relative; z-index: 1; }
  .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

  /* ---------- Top instrument bar ---------- */
  .topbar {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 1px 0 rgba(107,70,255,0.06);
  }
  .topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 700; letter-spacing: -0.02em; font-size: 17px;
    color: var(--ink);
    text-decoration: none;
  }
  .brand img {
    height: 26px; width: auto; display: block;
  }
  .brand-mark { width: 26px; height: 26px; }
  /* ── Breadcrumb after the brand: "Membrane  /  Pod Name ▾" ──
     The separator is a thin diagonal line drawn with a transformed border
     for a more schematic, less typographic feel. The pod name sits flush
     with the brand image baseline. */
  .brand-sep {
    display: inline-block;
    width: 1px; height: 22px;
    background: var(--ink-3);
    margin: 0 16px;
    transform: skewX(-18deg);
    flex-shrink: 0;
  }
  .brand-current {
    font-family: var(--font-display);
    font-weight: 600; font-size: 16px;
    letter-spacing: -0.005em;
    color: var(--ink);
    display: inline-flex; align-items: center;
  }

  /* ── Pod switcher (clickable breadcrumb dropdown) ── */
  .pod-switcher { position: relative; display: inline-block; }
  .pod-switcher summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 0;
    font-family: var(--font-display);
    font-weight: 600; font-size: 16px;
    letter-spacing: -0.005em;
    color: var(--ink);
    border-radius: 0;
    transition: color .15s;
  }
  .pod-switcher summary::-webkit-details-marker { display: none; }
  .pod-switcher summary:hover { color: var(--purple); }
  .pod-switcher summary:focus-visible {
    outline: 1.5px solid var(--purple);
    outline-offset: 2px;
  }
  .pod-switcher .pod-switcher-name { display: inline-flex; align-items: center; }
  .pod-switcher .pod-switcher-caret {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px;
    color: var(--ink-3);
    transition: transform .18s, color .15s;
    border: 1px solid var(--ink-4);
    width: 18px; height: 18px;
    line-height: 1;
  }
  .pod-switcher[open] .pod-switcher-caret {
    transform: rotate(180deg);
    color: var(--ink);
    border-color: var(--ink);
  }
  .pod-switcher summary:hover .pod-switcher-caret { color: var(--purple); border-color: var(--purple); }
  .pod-switcher-menu {
    position: absolute; top: calc(100% + 10px); left: -10px;
    min-width: 280px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    padding: 6px 0;
    z-index: 100;
  }
  .pod-switcher-menu a {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    transition: background .12s;
  }
  .pod-switcher-menu a:hover:not(.psm-disabled) { background: var(--paper-2); }
  .pod-switcher-menu a.active {
    background: var(--paper-2);
    border-left: 2px solid var(--purple);
    padding-left: 14px;
  }
  .pod-switcher-menu a.psm-disabled { color: var(--ink-3); cursor: default; }
  .pod-switcher-menu .psm-mono {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    margin-bottom: 2px;
    text-transform: uppercase;
  }
  .pod-switcher-menu a.active .psm-mono { color: var(--purple); }

  @media (max-width: 720px) {
    .brand-sep, .brand-current, .pod-switcher { display: none; }
  }
  .nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
  .nav a {
    color: var(--ink-2); text-decoration: none; font-size: 14px;
    font-weight: 450; transition: color .15s;
  }
  .nav a:hover { color: var(--ink); }
  .nav .status {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--seal); letter-spacing: 0.02em;
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border: 1px solid var(--seal);
    border-radius: 0; background: var(--seal-fill);
  }
  .pulse-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--seal);
    animation: pulse 1.6s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 0;
    font-family: var(--font-body); font-size: 15px; font-weight: 500;
    letter-spacing: -0.005em; cursor: pointer; text-decoration: none;
    border: 1.5px solid transparent; transition: all .15s ease;
    white-space: nowrap;
  }
  .btn-primary {
    background: var(--purple);
    color: #FFFFFF;
    border-color: var(--purple);
    box-shadow: 0 6px 24px -8px rgba(107,70,255,0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
  }
  .btn-primary:hover {
    background: var(--purple-3);
    border-color: var(--purple-3);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--purple-3), 0 8px 28px -6px rgba(107,70,255,0.55);
  }
  .btn-ghost {
    background: transparent; color: var(--purple);
    border: 1.5px solid var(--purple);
  }
  .btn-ghost:hover {
    background: var(--purple);
    color: #FFFFFF;
  }
  .btn-sm { padding: 10px 16px; font-size: 14px; }

  /* ---------- Section header ---------- */
  .eyebrow {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--blueprint); letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .eyebrow::before {
    content: ""; width: 24px; height: 1px; background: var(--blueprint);
  }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; margin: 0; color: var(--ink); }
  h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; }
  h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; }
  h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }
  p { margin: 0; line-height: 1.55; color: var(--ink-2); }

  /* ===================================================== */
  /* HERO                                                  */
  /* ===================================================== */
  .hero {
    position: relative;
    padding: 80px 0 80px;
    border-bottom: 1px solid var(--ink);
  }
  .hero .container { position: relative; z-index: 2; }
  .hero-meta {
    display: flex; gap: 28px; align-items: center;
    margin-bottom: 28px;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.08em;
  }
  .hero-meta .dot { width: 4px; height: 4px; background: var(--ink-3); border-radius: 50%; }
  .hero h1 { max-width: 14ch; }
  .hero h1 .accent {
    color: var(--purple);
    position: relative;
  }
  .hero h1 .accent::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 8px;
    background-image: repeating-linear-gradient(45deg, var(--purple), var(--purple) 2px, transparent 2px, transparent 5px);
    opacity: 0.5;
  }
  .hero-sub {
    margin-top: 28px; max-width: 560px; font-size: 18px;
    color: var(--ink-2);
  }
  .hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-trustline {
    margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.06em;
  }
  .hero-trustline span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-trustline .ok { color: var(--seal); }

  /* The big diagram */
  .hero-diagram {
    margin-top: 64px;
    position: relative;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--ink);
  }
  /* corner registration marks */
  .hero-diagram::before, .hero-diagram::after {
    content: ""; position: absolute; width: 12px; height: 12px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    z-index: 2;
  }
  .hero-diagram::before { top: 60px; left: 8px; }
  .hero-diagram::after { top: 60px; right: 8px; }

  .diagram-frame-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.08em;
    background: var(--paper-2);
    position: relative;
  }
  .diagram-frame-bar .frame-title { display: flex; align-items: center; gap: 10px; color: var(--ink); }
  .frame-title .live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--leak);
    animation: pulse 1.4s ease-in-out infinite;
  }
  .diagram-frame-bar .right { display: flex; gap: 18px; }
  .diagram-frame-bar .right .v { color: var(--ink); font-weight: 500; }
  .diagram-frame-bar .right .leaking { color: var(--leak); font-weight: 500; }
  .diagram-frame-bar .right .recov { color: var(--seal); font-weight: 500; }

  /* title block bottom strip — like blueprints */
  .titleblock {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border-top: 1px solid var(--ink);
    background: var(--paper-2);
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.08em;
  }
  .titleblock > div {
    padding: 10px 14px;
    border-right: 1px solid var(--ink);
  }
  .titleblock > div:last-child { border-right: none; }
  .titleblock .lbl { color: var(--ink-3); }
  .titleblock .val { color: var(--ink); font-weight: 500; margin-top: 2px; }

  .hero-svg-host {
    position: relative;
    aspect-ratio: 1280 / 600;
    width: 100%;
  }
  .hero-svg-host svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block;
  }

  /* Flow animation along pipes — legacy class kept invisible (replaced by dollar bills) */
  .pipe-flow { display: none; }

  /* Drip animation */
  @keyframes drip {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(28px); opacity: 0; }
  }
  .drip {
    transform-origin: center top;
    animation: drip 1.6s ease-in infinite;
  }
  .drip.d2 { animation-delay: 0.55s; }
  .drip.d3 { animation-delay: 1.1s; }

  /* Leak halo pulse */
  @keyframes leakPulse {
    0%, 100% { opacity: 0.45; r: 9; }
    50% { opacity: 0.75; r: 14; }
  }
  .leak-halo { animation: leakPulse 1.8s ease-in-out infinite; }

  /* ===================================================== */
  /* SECTIONS                                              */
  /* ===================================================== */
  .section {
    padding: 120px 0;
    border-bottom: 1px solid var(--ink);
    position: relative;
  }
  .section .container { position: relative; z-index: 2; }
  #problem { padding-top: 160px; }
  .section-head { max-width: 760px; margin-bottom: 64px; }
  .section-head h2 { margin-top: 16px; }
  .section-head p { margin-top: 20px; font-size: 18px; max-width: 600px; }

  /* Problem cards */
  .problem-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .leak-card {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s;
  }
  .leak-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
  }
  .leak-card-header {
    padding: 12px 18px;
    border-bottom: 1px solid var(--ink);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.1em;
    background: var(--paper-2);
  }
  .leak-card-header .id { color: var(--blueprint); }
  .leak-card-header .severity {
    display: flex; align-items: center; gap: 6px;
    color: var(--leak); font-weight: 500;
  }
  .leak-card-diagram {
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    background-image:
      linear-gradient(var(--rule) 1px, transparent 1px),
      linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 16px 16px;
    position: relative;
  }
  .leak-card-diagram svg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
  .leak-card-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
  .leak-card-body h3 { font-size: 22px; }
  .leak-card-body p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; }
  .leak-card-stat {
    margin-top: 22px; padding-top: 16px;
    border-top: 1px dashed var(--ink-4);
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3);
  }
  .leak-card-stat .v {
    font-size: 16px; color: var(--leak); font-weight: 500;
  }

  /* ---------- How It Works ---------- */
  .how-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .step-card {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    overflow: hidden;
  }
  .step-card-head {
    padding: 14px 22px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.1em;
    color: var(--ink-3);
    background: var(--paper-2);
  }
  .step-card-head .num { color: var(--blueprint); }
  .step-card-head .stage { color: var(--ink); font-weight: 500; }
  .step-card-diagram {
    aspect-ratio: 3 / 2;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    background-image:
      linear-gradient(var(--rule) 1px, transparent 1px),
      linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 16px 16px;
    position: relative;
  }
  .step-card-diagram svg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
  .step-card-body { padding: 22px; }
  .step-card-body h3 { font-size: 22px; }
  .step-card-body p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; }

  .how-callout {
    margin-top: 56px;
    border: 1.5px solid var(--ink);
    padding: 28px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
    background: var(--paper);
    position: relative; overflow: hidden;
  }
  .how-callout::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    background: var(--seal);
  }
  .how-callout-text {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
    max-width: 720px;
    color: var(--ink);
  }
  .how-callout-text em {
    font-style: normal; color: var(--seal);
    text-decoration: underline;
    text-decoration-color: var(--seal);
    text-underline-offset: 4px;
  }
  .how-callout-meta {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.08em;
    text-align: right;
  }
  .how-callout-meta strong {
    display: block; color: var(--seal); font-size: 26px;
    font-weight: 500; margin-bottom: 4px;
  }

  /* ---------- The Numbers (instrument panel) ---------- */
  .panel {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    padding: 6px;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .panel-inner {
    border: 1px solid var(--ink);
    background: var(--paper);
    overflow: hidden;
  }
  .panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.1em;
    background: var(--paper-2);
  }
  .panel-head .right { display: flex; gap: 24px; }
  .panel-head .right span { color: var(--ink); }
  .panel-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    gap: 0;
  }
  .panel-cell {
    border-right: 1px solid var(--ink);
    padding: 36px 32px;
    position: relative;
  }
  .panel-cell:last-child { border-right: none; }
  .panel-grid > .panel-cell { border-bottom: 1px solid var(--ink); }
  .panel-grid > .panel-cell:nth-last-child(-n+3) { border-bottom: none; }

  .stat-eyebrow {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .stat-value {
    font-family: var(--font-mono);
    font-size: 44px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .stat-value.purple { color: var(--blueprint); }
  .stat-value.leak { color: var(--leak); }
  .stat-value.amber { color: var(--amber); }
  .stat-label {
    margin-top: 14px;
    font-size: 14px; color: var(--ink-2); line-height: 1.5;
    max-width: 32ch;
  }
  .stat-source {
    margin-top: 16px;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.06em;
  }
  .gauge {
    position: absolute; top: 28px; right: 28px;
    width: 56px; height: 56px;
  }

  /* ---------- Why us — mesh ---------- */
  .why-grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
  }
  .why-mesh {
    position: relative;
    border: 1.5px solid var(--ink);
    aspect-ratio: 1 / 1;
    background: var(--paper);
    background-image:
      linear-gradient(var(--rule) 1px, transparent 1px),
      linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .why-mesh svg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
  .why-mesh-caption {
    position: absolute; bottom: 14px; left: 14px; right: 14px;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.08em;
    display: flex; justify-content: space-between;
    z-index: 2;
  }
  .why-mesh-caption .ok { color: var(--seal); }
  .why-text h2 { margin-top: 16px; }
  .why-text > p {
    margin-top: 22px; font-size: 17px; line-height: 1.6;
    max-width: 540px;
  }
  .why-readouts {
    margin-top: 32px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    max-width: 540px;
    border: 1.5px solid var(--ink);
  }
  .readout {
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 16px 18px;
    background: var(--paper);
  }
  .readout:nth-child(2n) { border-right: none; }
  .readout:nth-last-child(-n+2) { border-bottom: none; }
  .readout-label {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .readout-value {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 22px; color: var(--blueprint);
    letter-spacing: -0.01em;
  }
  .readout-value.green { color: var(--seal); }
  .logo-strip {
    margin-top: 36px;
    border-top: 1px solid var(--ink);
    padding-top: 24px;
  }
  .logo-strip-label {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .logo-strip-row {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  }
  .logo-pill {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink);
    padding: 7px 12px; border: 1px solid var(--ink);
    border-radius: 0;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--paper);
  }
  .logo-pill .pin {
    width: 5px; height: 5px; background: var(--blueprint);
  }

  /* ---------- Comparison table ---------- */
  .compare-table {
    border: 1.5px solid var(--ink);
    background: var(--paper);
  }
  .compare-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    border-bottom: 1px solid var(--ink);
  }
  .compare-row:last-child { border-bottom: none; }
  .compare-cell {
    padding: 22px 24px;
    border-right: 1px solid var(--ink);
    font-size: 15.5px;
    color: var(--ink-2);
    line-height: 1.55;
  }
  .compare-cell:last-child { border-right: none; }
  .compare-row.header .compare-cell {
    background: var(--paper-2);
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 24px;
  }
  .compare-row.header .compare-cell.ours {
    color: var(--blueprint);
  }
  .compare-cell.row-label {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .compare-cell.ours {
    background: #DCE9F2;
    color: var(--ink);
    font-weight: 450;
  }
  .compare-cell .check {
    color: var(--seal); margin-right: 6px; font-weight: 500;
  }
  .compare-cell .x {
    color: var(--ink-3); margin-right: 6px;
  }

  /* ---------- Final CTA ---------- */
  .final-cta {
    padding: 140px 0 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .final-cta-inner { position: relative; z-index: 1; }
  .final-cta h2 { max-width: 18ch; margin: 24px auto 0; }
  .final-cta p {
    margin: 24px auto 0; font-size: 18px; max-width: 620px;
  }
  .terminal-input {
    margin: 48px auto 0;
    max-width: 560px;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    padding: 6px;
    display: flex; gap: 6px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .terminal-input .prompt {
    display: flex; align-items: center;
    padding: 0 14px;
    font-family: var(--font-mono); font-size: 13px;
    color: var(--blueprint);
  }
  .terminal-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 14px 4px;
  }
  .terminal-input input::placeholder { color: var(--ink-4); }
  .terminal-input button {
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 0 20px;
    cursor: pointer;
    transition: background .15s;
  }
  .terminal-input button:hover { background: var(--blueprint); }
  .final-small {
    margin-top: 28px;
    font-family: var(--font-mono); font-size: 13px;
    color: var(--ink-3); letter-spacing: 0.06em;
  }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--ink);
    padding: 32px 0;
    background: var(--paper-2);
  }
  .footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-3); letter-spacing: 0.06em;
  }
  .footer-inner a { color: var(--ink-3); text-decoration: none; }
  .footer-inner a:hover { color: var(--ink); }
  .footer-links { display: flex; gap: 24px; }

  /* ---------- Responsive ---------- */
  
  /* ---------- How it works (interactive) ---------- */
  .howit-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
    margin-top: 8px;
  }
  .howit-steps {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    gap: 12px;
    position: sticky; top: 88px;
  }
  .howit-step {
    display: flex; gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: var(--paper);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
    color: var(--ink);
  }
  .howit-step:hover { background: var(--paper-2); }
  .howit-step.active {
    background: var(--blueprint);
    color: var(--paper);
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-2px, -2px);
  }
  .howit-step-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    width: 26px;
    padding-top: 4px;
    opacity: 0.85;
  }
  .howit-step-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: inherit;
  }
  .howit-step-time {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    opacity: 0.75;
  }
  .howit-detail {
    padding: 36px 40px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--ink);
    min-height: 360px;
  }
  .howit-panel { display: none; }
  .howit-panel.active { display: block; animation: howitFade 0.18s ease-out; }
  @keyframes howitFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
  }
  .howit-panel-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--blueprint);
    margin-bottom: 14px;
    text-transform: uppercase;
  }
  .howit-panel h3 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    color: var(--ink);
  }
  .howit-panel p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    margin-bottom: 22px;
  }
  .howit-bullets {
    list-style: none;
    margin: 0; padding: 0;
  }
  .howit-bullets li {
    position: relative;
    padding-left: 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink);
  }
  .howit-bullets li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--blueprint);
  }
  .howit-bullets li + li { margin-top: 6px; }

  /* mobile overrides */
  @media (max-width: 720px) {
    .howit-grid { grid-template-columns: 1fr; gap: 22px; }
    .howit-steps { position: static; gap: 10px; }
    .howit-step { padding: 16px 18px; gap: 14px; }
    .howit-step.active { transform: none; }
    .howit-step-title { font-size: 17px; }
    .howit-detail { padding: 24px; min-height: 0; }
    .howit-panel h3 { font-size: 22px; }
    .howit-panel p { font-size: 15.5px; }
  }

  .howit-cta {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .howit-cta .btn-primary {
    font-size: 15px;
    padding: 16px 28px;
  }
  .howit-cta-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-3);
  }
  @media (max-width: 720px) {
    .howit-cta { margin-top: 32px; }
    .howit-cta .btn-primary { width: 100%; justify-content: center; }
    .howit-cta-sub { text-align: center; }
  }

  /* ---------- Leak catalog (horizontal scroll) ---------- */
  .leak-catalog-wrap {
    position: relative;
    margin-top: 12px;
  }
  .leak-catalog {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 24px 4px;
    /* edge-bleed: cards can extend slightly past container for hover lift */
    margin: 0 -4px;
    scrollbar-color: var(--ink-3) transparent;
  }
  .leak-catalog::-webkit-scrollbar { height: 8px; }
  .leak-catalog::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 4px; }
  .leak-catalog::-webkit-scrollbar-track { background: transparent; }
  .catalog-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ink);
    border-radius: 4px;
    padding: 22px 22px 20px;
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
    overflow: hidden;
  }
  .catalog-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0 var(--ink);
    background: var(--paper-2);
  }
  .catalog-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .catalog-item-id { color: var(--blueprint); font-weight: 500; }
  .catalog-item-severity {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--leak); font-weight: 500;
  }
  .catalog-item-severity .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
  }
  .catalog-item-severity.medium { color: #C28A1A; }
  .catalog-item-severity.low    { color: var(--ink-3); }
  .catalog-item-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 12px 0;
  }
  .catalog-item-body {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 18px 0;
    flex: 1;
  }
  .catalog-item-stat {
    border-top: 1px dashed var(--ink-3);
    padding-top: 12px;
  }
  .catalog-item-stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .catalog-item-stat-value {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--leak);
    font-weight: 500;
    margin-top: 2px;
  }
  .catalog-item-arrow {
    position: absolute;
    top: 22px; right: 22px;
    font-size: 18px;
    color: var(--blueprint);
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
  }
  .catalog-item:hover .catalog-item-arrow {
    opacity: 1;
    transform: translateX(2px);
  }
  .leak-catalog-cta {
    margin-top: 24px;
    text-align: center;
  }
  .leak-catalog-cta-link {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--blueprint);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--blueprint);
    padding-bottom: 2px;
  }
  .leak-catalog-cta-link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
  }

  /* mobile */
  @media (max-width: 720px) {
    .catalog-item { flex: 0 0 280px; padding: 18px; }
    .catalog-item-title { font-size: 19px; }
    .catalog-item-body { font-size: 14px; }
  }
@media (max-width: 960px) {
    .container { padding: 0 20px; }
    .nav { display: none; }
    .problem-grid, .how-grid { grid-template-columns: 1fr; }
    .panel-grid { grid-template-columns: 1fr; }
    .panel-cell { border-right: none; border-bottom: 1px solid var(--ink) !important; }
    .panel-grid > .panel-cell:last-child { border-bottom: none !important; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .compare-row { grid-template-columns: 1fr 1fr; }
    .compare-cell:nth-child(1) { grid-column: 1 / -1; background: var(--paper-2); }
    .titleblock { grid-template-columns: 1fr 1fr; }
    .titleblock > div { border-bottom: 1px solid var(--ink); }
    .section { padding: 80px 0; }
    .hero { padding: 56px 0 24px; }
  }

  /* ---------- mobile (≤ 720px) ---------- */
  @media (max-width: 720px) {
    .container { padding: 0 16px; }

    /* Hide decorative side rails to free horizontal space */
    .pipe-rail { display: none !important; }

    /* Type scale */
    h1 { font-size: clamp(34px, 9vw, 46px) !important; line-height: 1.04; }
    h2 { font-size: clamp(26px, 7vw, 36px) !important; }
    h3 { font-size: 18px !important; }

    /* Topbar */
    .topbar-inner { gap: 12px; }
    .brand { font-size: 13px; }

    /* Hero */
    .hero { padding: 32px 0 16px; }
    .hero-meta { font-size: 12px; gap: 8px; flex-wrap: wrap; }
    .hero-meta .dot { display: none; }
    .hero h1 { max-width: none; }
    .hero-sub { font-size: 16px; margin-top: 18px; line-height: 1.55; }
    .hero-cta { flex-direction: column; gap: 10px; margin-top: 28px; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-trustline { font-size: 12px; gap: 10px 14px; flex-wrap: wrap; margin-top: 18px; }

    /* Hero diagram */
    .hero-diagram { padding: 10px 8px; }
    .diagram-frame-bar { font-size: 12px; flex-wrap: wrap; row-gap: 6px; }
    .diagram-frame-bar .right { gap: 10px; flex-wrap: wrap; }
    .titleblock { grid-template-columns: 1fr !important; }
    .titleblock > div { border-right: none !important; padding: 12px 16px; }
    /* hero schematic scales down naturally — no forced min-width */
    .hero-svg-host > svg { width: 100%; height: auto; }

    /* Sections */
    .section { padding: 56px 0; }
    #problem { padding-top: 80px; }
    .section-head { margin-bottom: 36px; }
    .section-head h2 { margin-top: 12px; }
    .section-head p { font-size: 15.5px; margin-top: 12px; }

    /* Leak / step cards */
    .leak-card-body, .step-card-body { padding: 18px; }
    .leak-card-body h3, .step-card-body h3 { font-size: 19px; }
    .leak-card-body p, .step-card-body p { font-size: 14px; }
    .leak-card-diagram, .step-card-diagram { height: auto; min-height: 120px; }

    /* How callout */
    .how-callout { flex-direction: column; gap: 14px; padding: 22px; }
    .how-callout-text { font-size: 15.5px; }
    .how-callout-meta { text-align: left; }

    /* Stats panel */
    .panel-head { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
    .panel-head .right { gap: 14px; flex-wrap: wrap; }
    .panel-cell { padding: 26px 20px; }
    .stat-value { font-size: 36px !important; line-height: 1.05; }

    /* Why-us readouts: 1 col */
    .why-readouts { grid-template-columns: 1fr !important; }
    .readout { border-right: none !important; padding: 18px 16px; }
    .readout:nth-last-child(2) { border-bottom: 1px solid var(--ink) !important; }
    .readout-value { font-size: 22px; }

    /* Logo strip */
    .logo-strip-row { gap: 12px 16px; flex-wrap: wrap; justify-content: flex-start; }

    /* Compare table — full stack at mobile */
    .compare-row { grid-template-columns: 1fr !important; }
    .compare-cell { border-right: none !important; border-bottom: 1px solid var(--ink); padding: 14px 18px; font-size: 14.5px; }
    .compare-row:not(.header) .compare-cell.row-label {
      background: var(--paper-2);
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-size: 12px;
      padding: 10px 18px;
    }
    .compare-row:last-child .compare-cell:last-child { border-bottom: none; }
    /* Hide the header row labels at mobile (they're redundant once stacked) */
    .compare-row.header { display: none; }

    /* Final CTA — form stacks input above button */
    .final-cta { padding: 64px 0 56px; }
    .terminal-input { flex-direction: column; align-items: stretch; padding: 14px; gap: 10px; max-width: 100%; }
    .terminal-input .prompt { padding: 0; font-size: 12px; }
    .terminal-input input {
      width: 100%; padding: 12px 14px;
      border: 1px solid var(--ink); border-radius: 4px;
      background: #fff; font-size: 15px;
    }
    .terminal-input button {
      width: 100%; padding: 14px; font-size: 14px;
      white-space: normal; line-height: 1.3;
    }
    /* Success card mirrors the form's column layout but shows centered text */
    #lead-success { padding: 18px 14px !important; }
    #lead-success .prompt { font-size: 12.5px; line-height: 1.5; }

    .final-small { font-size: 12px; word-break: break-word; padding: 0 4px; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 0; font-size: 12px; }
    .footer-links { flex-wrap: wrap; gap: 14px 18px; }
  }

  .logo-pill .pill-logo { color: #0E2A47; flex-shrink: 0; }
  .logo-pill { display: inline-flex; align-items: center; gap: 8px; }
