  /* ============================================================
     Tokens — direct port of Aiven's CSS variables
     ============================================================ */
  /* Exact Aiven palette */
  :root {
    --color-black:            #0d0d0f;
    --color-white:            #ffffff;
    --color-grey-0:           #f7f7fa;
    --color-grey-20:          #ebebeb;
    --color-grey-40:          #919294;
    --color-grey-60:          #444547;
    --color-grey-70:          #2d2e30;
    --color-grey-80:          #0d0e10;
    --color-grey-90:          #0a0a0a;
    /* Monochrome accent. No colour — the CTA/highlight resolves to the
       theme's inverted tone (white on dark, near-black on light), matching
       the app. Token names kept as "primary-green" to avoid a sweeping
       rename; the theme blocks below override these per theme. */
    --color-primary-green-20: #f2f2f2;
    --color-primary-green-30: #e6e6e6;
    --color-primary-green-40: #ffffff;
    --color-primary-green-60: #6b6b6e;
    --color-primary-green:    var(--color-primary-green-40);

    /* font stacks */
    --font-body:    400 1rem/1.4 "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 600 1em/1.23 "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 800 1em/.85 "Funnel Display", "Inter", sans-serif;
    --font-code:    500 1em/1.5 "Geist Mono", ui-monospace, monospace;
  }
  :root[data-theme="dark"] {
    --color-primary:        var(--color-black);
    --color-surface:        var(--color-grey-90);
    --color-surface-muted:  var(--color-grey-80);
    --color-inverted:       var(--color-white);
    --color-inverted-muted: #e6e6e6;
    --text-primary:         var(--color-white);
    --text-secondary:       var(--color-grey-40);
    --text-muted:           var(--color-grey-40);
    --text-inverse:         var(--color-black);
    --border-base:          var(--color-grey-60);
    --border-secondary:     var(--color-grey-40);
    /* Accent = white on the dark theme (CTAs are white with dark text). */
    --color-primary-green-20: #f2f2f2;
    --color-primary-green-30: #e6e6e6;
    --color-primary-green-40: #ffffff;
    --color-primary-green-60: #6b6b6e;
    --color-highlight:      var(--color-primary-green);
    --logo-invert: invert(0);
  }
  :root[data-theme="light"] {
    --color-primary:        var(--color-white);
    --color-surface:        var(--color-grey-0);
    --color-surface-muted:  var(--color-grey-20);
    --color-inverted:       var(--color-black);
    --color-inverted-muted: #1a1a1a;
    --text-primary:         var(--color-grey-90);
    --text-secondary:       var(--color-grey-60);
    --text-muted:           var(--color-grey-60);
    --text-inverse:         var(--color-white);
    --border-base:          var(--color-grey-20);
    --border-secondary:     var(--color-grey-40);
    /* Accent = near-black on the light theme (CTAs are black with white text). */
    --color-primary-green-20: #444547;
    --color-primary-green-30: #2d2e30;
    --color-primary-green-40: #0d0d0f;
    --color-primary-green-60: #919294;
    --color-highlight:      var(--color-primary-green);
    --logo-invert: invert(1);
  }

  /* ============================================================
     Base
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  body {
    margin: 0;
    background: var(--color-primary);
    color: var(--text-primary);
    font: var(--font-body);
    transition: background-color 0.2s, color 0.2s;
  }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4, h5, p { margin: 0; }
  img { display: block; max-width: 100%; }
  button { font-family: inherit; cursor: pointer; }

  /* ============================================================
     Typography — exact Aiven specs from their CSS
     - display:  Funnel Display 800, line-height 85%, letter-spacing -2%, uppercase
     - heading:  Inter 600, letter-spacing -2%
     - body:     Inter 400, line-height 1.4-1.5
     - label-md: Geist Mono 500, uppercase, primary-green
     ============================================================ */
  /* Type scale uses an 8vw-style middle term so mobile actually
     shrinks. Long single words ("INFRASTRUCTURE") still wrap with
     overflow-wrap as a safety net. */
  .font-display-large {
    font: var(--font-display);
    font-size: clamp(2.25rem, 6.5vw, 4.5rem); /* 36-72px */
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  @media (min-width: 768px) { .font-display-large { line-height: 0.85; } }
  .font-heading-xl {
    font: var(--font-heading);
    font-size: clamp(1.75rem, 4.2vw, 3rem);   /* 28-48px */
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
  }
  .font-heading-lg {
    font: var(--font-heading);
    font-size: clamp(1.4rem, 3.2vw, 2.25rem); /* 22-36px */
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
  }
  .font-heading-md {
    font: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem); /* 18-24px */
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
  }
  .font-heading-sm {
    font: var(--font-heading);
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  .font-heading-xs, .font-heading-xxs {
    font: var(--font-heading);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  /* label-md is the small green mono label — "PostgreSQL®" equivalent */
  .font-label-md {
    font: var(--font-code);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-primary-green);
    letter-spacing: 0;
  }
  .font-label-sm {
    font: var(--font-code);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-primary-green);
    line-height: 1.55;
  }

  .font-body-xl { font: var(--font-body); font-size: 19px; line-height: 1.5; color: var(--text-secondary); }
  .font-body-lg { font: var(--font-body); font-size: 17px; line-height: 1.5; color: var(--text-secondary); }
  .font-body-md { font: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
  .font-body-sm { font: var(--font-body); font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
  .font-body-xs { font: var(--font-body); font-size: 12px; line-height: 1.55; color: var(--text-muted); }


  /* ============================================================
     Layout primitives — max-w-container with xl:border-x
     ============================================================ */
  .max-w-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  @media (min-width: 1280px) {
    .container-bordered {
      border-left: 1px solid var(--border-base);
      border-right: 1px solid var(--border-base);
    }
  }
  section { border-bottom: 1px solid var(--border-base); background: var(--color-primary); }
  .section-inner { padding: 56px 20px; }
  @media (min-width: 768px)  { .section-inner { padding: 80px 28px; } }
  @media (min-width: 1024px) { .section-inner { padding: 128px 32px; } }

  /* Mobile safety net: nothing should overflow horizontally. Long
     unbreakable strings (URLs, code, long words) wrap instead of
     forcing a horizontal scrollbar. */
  body { overflow-x: hidden; }
  h1, h2, h3, h4, p, li { overflow-wrap: anywhere; word-wrap: break-word; }
  pre, code { white-space: pre-wrap; word-break: break-word; }

  /* ============================================================
     Buttons — bolder, chunkier to match the heavy display type
     ============================================================ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: -0.005em;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1;
    text-transform: none;
  }
  .btn:active { transform: translateY(1px); }

  .btn-primary {
    background: var(--color-primary-green-40);
    /* Theme-correct: dark text on the white (dark-theme) CTA, white text on
       the near-black (light-theme) CTA. */
    color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15) inset,
                0 4px 0 0 var(--color-primary-green-60);
  }
  .btn-primary:hover {
    background: var(--color-primary-green-30);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15) inset,
                0 4px 0 0 var(--color-primary-green-60);
  }
  .btn-primary:active {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15) inset,
                0 0 0 0 var(--color-primary-green-60);
    transform: translateY(4px);
  }
  .btn-primary .arrow { transition: transform 0.15s; }
  .btn-primary:hover .arrow { transform: translateX(3px); }

  .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-secondary);
    border-width: 1.5px;
  }
  .btn-outline:hover {
    background: var(--text-primary);
    color: var(--color-black);
    border-color: var(--text-primary);
  }
  .btn-outline:active { background: var(--color-surface-muted); }

  .btn-inverted {
    background: var(--color-inverted);
    color: var(--text-inverse);
  }
  .btn-inverted:hover { background: var(--color-inverted-muted); }

  .btn-sm {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
  }
  .btn-sm.btn-primary { box-shadow: 0 0 0 1px rgba(0,0,0,0.15) inset, 0 3px 0 0 var(--color-primary-green-60); }
  .btn-sm.btn-primary:active { box-shadow: 0 0 0 1px rgba(0,0,0,0.15) inset, 0 0 0 0 var(--color-primary-green-60); transform: translateY(3px); }

  /* ============================================================
     Header / nav
     ============================================================ */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #000;
  }
  [data-theme="light"] .site-header { background: #fff; }
  .nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-base);
    background: var(--color-primary);
    height: 80px;
  }
  .nav-left { display: flex; align-items: center; gap: 36px; flex: 1 1 auto; }
  .nav-logo img { height: 32px; width: auto; filter: var(--logo-invert); }
  .nav-links { display: none; align-items: center; gap: 36px; }
  @media (min-width: 1200px) { .nav-links { display: flex; } }

  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 12px;
    height: 1px;
    background: currentColor;
    transition: right 0.25s ease;
  }
  .nav-link:hover::after { right: 0; }
  .nav-caret {
    width: 10px; height: 8px;
    transition: transform 0.3s;
    color: var(--text-muted);
  }
  .nav-item { position: relative; }
  .nav-item:hover .nav-caret { transform: rotate(180deg); }

  /* "Developers" is a button that only opens its dropdown */
  button.nav-link { background: none; border: 0; margin: 0; font-family: inherit; line-height: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
  button.nav-link:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; border-radius: 6px; }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    margin-top: 0;
    min-width: 280px;
    background: var(--color-surface-muted);
    border: 1px solid var(--border-base);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 60;
  }
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-dropdown ul { list-style: none; padding: 0; margin: 0; }
  .nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .nav-dropdown a:hover { background: var(--color-surface); }
  .nav-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }

  .nav-right { display: flex; align-items: center; gap: 16px; }
  .icon-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 50%;
    transition: color 0.15s, background-color 0.15s;
  }
  .icon-btn:hover { color: var(--text-muted); }

  .mobile-toggle { display: inline-flex; }
  @media (min-width: 1200px) { .mobile-toggle { display: none; } }
  /* Hide the desktop CTAs in the nav on mobile (they're surfaced in the
     slide-out menu instead so the bar fits on small screens) */
  .nav-cta-desktop { display: none; }
  @media (min-width: 1200px) { .nav-cta-desktop { display: inline-flex; } }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--border-base);
    padding: 12px 28px;
    background: var(--color-surface);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-base);
  }
  .mobile-menu a:last-child { border: 0; }

  /* ============================================================
     Hero — exact match: small label inline with pill, then huge heading
     ============================================================ */
  .hero-inner {
    position: relative;
    padding: 28px 28px 40px;
    overflow: hidden;
  }
  @media (min-width: 768px) {
    .hero-inner { padding: 64px 28px 56px; }
  }
  @media (min-width: 1024px) {
    .hero-inner { padding: 80px 56px 72px; }
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 32px;
  }
  @media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  }

  .hero-text { padding-right: 28px; }
  @media (min-width: 1280px) { .hero-text { padding-right: 40px; } }

  .hero-label-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .hero-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-secondary);
    background: var(--color-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
  }

  .hero-subhead { margin-top: 24px; max-width: 560px; }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }
  @media (min-width: 768px) {
    .hero-ctas { flex-direction: row; }
  }
  .hero-cta-col { flex: 1 1 auto; max-width: 280px; }
  .hero-cta-col .btn { width: 100%; }

  .hero-image-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  /* ============================================================
     Dashboard mockup (inline "product screenshot")
     ============================================================ */
  .mockup {
    width: 100%;
    max-width: 600px;
    border-radius: 14px;
    background: var(--color-surface);
    border: 1px solid var(--border-base);
    overflow: hidden;
    font-family: var(--font-body);
    box-shadow: 0 40px 80px -40px rgba(0,0,0,0.55);
  }
  /* Quiet title bar in the site's own palette: neutral dots, a title,
     and a live indicator. No coloured traffic lights. */
  .mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-base);
  }
  .mockup-bar .frame-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--border-base);
  }
  .mockup-title {
    margin-left: 10px;
    font-size: 12px;
    color: var(--text-muted);
  }
  .mockup-title strong { color: var(--text-primary); font-weight: 500; }
  .mockup-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: var(--font-code);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .mockup-live::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: #3fb68b;
    box-shadow: 0 0 0 0 rgba(63,182,139,0.5);
    animation: livePulse 2.4s ease-out infinite;
  }
  @keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(63,182,139,0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(63,182,139,0); }
    100% { box-shadow: 0 0 0 0 rgba(63,182,139,0); }
  }

  /* ============================================================
     Hero waterfall: one lead at a time arrives, passes its checks,
     then walks down the buyer waterfall until someone buys it.
     Driven by js/hero-waterfall.js (GSAP). Everything that moves
     is transform/opacity only.
     ============================================================ */
  .wf-body { padding: 18px 18px 0; }
  .wf-stage { position: relative; transform-origin: 50% 50%; }

  .wf-lead {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-base);
    border-radius: 10px;
  }
  .wf-avatar {
    flex: 0 0 28px;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-surface);
    background: var(--text-primary);
  }
  .wf-lead-text { min-width: 0; flex: 1; }
  .wf-lead-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
  .wf-lead-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .wf-lead-time {
    font: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
  }

  .wf-checks {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0 18px;
  }
  .wf-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid var(--border-base);
    border-radius: 999px;
    font-size: 11px;
    color: var(--text-muted);
  }
  .wf-check-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border-base);
  }
  .wf-check.ok   .wf-check-dot { background: #3fb68b; }
  .wf-check.fail .wf-check-dot { background: #d4883c; }
  .wf-check.ok, .wf-check.fail { color: var(--text-secondary); }

  .wf-label {
    font: var(--font-code);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .wf-tiers { position: relative; list-style: none; margin: 0; padding: 0; }
  .wf-cursor {
    position: absolute;
    left: 0; right: 0; top: 0;
    border-radius: 8px;
    background: var(--border-base);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }
  [data-theme="dark"] .wf-cursor { background: rgba(255,255,255,0.06); }
  .wf-tier {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    font-size: 13px;
  }
  .wf-rank {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-base);
    display: grid;
    place-items: center;
    font: var(--font-code);
    font-size: 10px;
    color: var(--text-muted);
    justify-self: center;
  }
  .wf-buyer { color: var(--text-primary); }
  .wf-buyer small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
  }
  .wf-state {
    font: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .wf-state.ok   { color: #3fb68b; }
  .wf-state.fail { color: #e5534b; }
  .wf-state.skip { color: var(--text-muted); }

  .wf-token {
    position: absolute;
    left: 0; top: 0;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
  }

  /* Delivery groups in the hero window */
  .hw-groups { position: relative; display: grid; gap: 10px; }
  .hw-group {
    position: relative;
    border: 1px solid var(--border-base);
    border-radius: 11px;
    padding: 8px 6px 4px;
  }
  .hw-ghead {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px 6px;
    font-size: 12px;
  }
  .hw-gname { font-weight: 600; color: var(--text-primary); }
  .hw-tag {
    font: var(--font-code);
    font-size: 10px;
    color: var(--text-muted);
    border: 1px solid var(--border-base);
    border-radius: 999px;
    padding: 1px 7px;
  }
  .hw-filter {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 58%;
    font: var(--font-code);
    font-size: 10px;
    color: var(--text-secondary);
    border: 1px dashed var(--border-base);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hw-filter i { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--border-base); }
  .hw-filter.ok { border-style: solid; border-color: rgba(63,182,139,0.55); color: #3fb68b; }
  .hw-filter.ok i { background: #3fb68b; }
  .hw-filter.fail { border-style: solid; border-color: rgba(229,83,75,0.55); color: #e5534b; }
  .hw-filter.fail i { background: #e5534b; }
  .hw-nofilter { color: var(--text-muted); }
  .hw-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    font-size: 13px;
  }
  .hw-next {
    display: inline-block;
    margin-left: 8px;
    font: var(--font-code);
    font-size: 9.5px;
    font-weight: 500;
    color: #3fb68b;
    border: 1px solid rgba(63,182,139,0.45);
    border-radius: 999px;
    padding: 0 6px;
    vertical-align: 1px;
  }
  .wf-buyer small .hw-next { display: none; }
  .hw-cursor {
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    opacity: 0;
    pointer-events: none;
  }
  [data-theme="light"] .hw-cursor { background: rgba(0,0,0,0.05); }
  .hw-trail {
    position: absolute;
    left: 0; top: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
  }
  .hw-trail path { fill: none; stroke: #3fb68b; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 0; opacity: 0.6; }
  .hw-trail path.skip { stroke: var(--text-muted); stroke-dasharray: 3 4; }
  .wf-token { margin: -14px 0 0 -14px; z-index: 3; }

  .wf-result {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-base);
    min-height: 44px;
  }
  .wf-result-status { font-size: 13px; font-weight: 600; color: var(--text-primary); }
  .wf-result-status.ok   { color: #3fb68b; }
  .wf-result-status.dupe { color: #d4883c; }
  .wf-result-status.muted { color: var(--text-muted); font-weight: 500; }
  .wf-result-meta {
    font: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
  }

  @media (max-width: 480px) {
    .wf-body { padding: 14px 14px 0; }
    .wf-tier { gap: 8px; padding: 8px 6px; grid-template-columns: 24px 1fr auto; }
    .wf-state { font-size: 10px; }
    .wf-foot { margin: 14px -14px 0; }
    .wf-stat { padding: 10px 14px; }
  }
  .wf-foot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px -18px 0;
    border-top: 1px solid var(--border-base);
  }
  .wf-stat { padding: 12px 18px; }
  .wf-stat + .wf-stat { border-left: 1px solid var(--border-base); }
  .wf-stat-label { font-size: 11px; color: var(--text-muted); }
  .wf-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
  }


  /* Hero bounce animations */
  @keyframes heroBounceUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroBounceDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  .animate-up { animation: heroBounceUp 0.7s ease-out 0.1s forwards; opacity: 0; }
  .animate-down { animation: heroBounceDown 0.7s ease-out 0.1s forwards; opacity: 0; }

  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* ============================================================
     Accordion — sticky visual, list of items
     ============================================================ */
  .acc-section {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border-base);
  }
  @media (min-width: 1024px) {
    .acc-section { grid-template-columns: 2fr 1fr; }
  }
  .acc-visual {
    min-height: 560px;
    background: var(--color-primary);
    border-bottom: 1px solid var(--border-base);
    position: relative;
    overflow: hidden;
  }
  @media (min-width: 1024px) {
    .acc-visual {
      min-height: 600px;
      border-bottom: 0;
      border-right: 1px solid var(--border-base);
      position: sticky;
      top: 80px;
      align-self: start;
    }
  }
  .acc-visual-inner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }
  /* ============================================================
     Why Hawfinch scenes: one animated scene per accordion item,
     stacked in the sticky visual and driven by js/acc-scenes.js
     (GSAP + MotionPath, DrawSVG, Flip, SplitText, ScrambleText).
     ============================================================ */
  .sc-stack { display: grid; place-items: center; padding: 28px; }
  .sc {
    grid-area: 1 / 1;
    width: min(560px, 100%);
    opacity: 0;
    visibility: hidden;
  }
  .sc.is-active { opacity: 1; visibility: visible; }
  .sc-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--border-base);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 30px 60px -40px rgba(0,0,0,0.5);
    overflow: hidden;
  }
  .sc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
  }
  .sc-mono {
    font: var(--font-code);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
  }
  .sc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border: 1px solid var(--border-base);
    border-radius: 999px;
    font: var(--font-code);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
  }
  .sc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--border-base); flex: 0 0 7px; }
  .sc-dot.ok { background: #3fb68b; }
  .sc-dot.fail { background: #e5534b; }
  .sc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 16px -18px -18px;
    border-top: 1px solid var(--border-base);
  }
  .sc-stats > div { padding: 11px 18px; display: grid; gap: 2px; }
  .sc-stats > div + div { border-left: 1px solid var(--border-base); }
  .sc-stat-label { font-size: 11px; color: var(--text-muted); }
  .sc-stat-val { font-size: 14px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }

  /* 0. Night shift: 24h dial + event feed */
  .night { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
  .dial-wrap { position: relative; width: 170px; height: 170px; }
  .dial { width: 100%; height: 100%; overflow: visible; }
  .dial-ring { fill: none; stroke: var(--border-base); stroke-width: 6; }
  .dial-arc { fill: none; stroke: #3fb68b; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 307.9 527.8; }
  .dial-ticks line { stroke: var(--border-base); stroke-width: 1.5; }
  .dial-hours text { font: var(--font-code); font-size: 9px; fill: var(--text-muted); text-anchor: middle; }
  .dial-mark { fill: var(--color-surface); stroke: #3fb68b; stroke-width: 2.5; }
  .dial-mark[data-kind="cap"], .dial-mark[data-kind="alert"] { stroke: #d4883c; }
  .dial-hand line { stroke: var(--text-primary); stroke-width: 2; stroke-linecap: round; }
  .dial-hand circle, .dial-hub { fill: var(--text-primary); }
  .dial-center {
    position: absolute; inset: 0;
    display: grid; place-content: center; text-align: center;
    pointer-events: none;
  }
  .dial-time { font: var(--font-code); font-size: 20px; font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .dial-day { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
  .night-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 236px; align-content: start; }
  .ev {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border-base);
    border-radius: 9px;
    background: var(--color-surface);
  }
  .ev-tag {
    font: var(--font-code);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3fb68b;
  }
  .ev[data-kind="cap"] .ev-tag, .ev[data-kind="alert"] .ev-tag { color: #d4883c; }
  .ev-body { min-width: 0; }
  .ev-body b { display: block; font-size: 12px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ev-body small { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ev-time { font: var(--font-code); font-size: 10.5px; color: var(--text-muted); }

  /* 1. Live stream */
  .stream { width: 100%; height: auto; display: block; overflow: visible; }
  .st-tracks path { fill: none; stroke: var(--border-base); stroke-width: 1.5; }
  .st-node { fill: var(--color-surface); stroke: var(--text-muted); stroke-width: 1.5; }
  .st-src, .st-bmeta, .st-bin text { font: var(--font-code); font-size: 9.5px; fill: var(--text-muted); }
  .st-bname { font-size: 11px; font-weight: 600; fill: var(--text-primary); }
  .st-gate rect { fill: var(--color-surface); stroke: var(--border-base); stroke-width: 1.5; }
  .st-gate text { font: var(--font-code); font-size: 9px; fill: var(--text-muted); }
  .st-gate.flash rect { stroke: #3fb68b; }
  .st-dot { fill: var(--text-primary); }
  .st-dot.dupe { fill: #d4883c; }
  .st-dot.filt { fill: var(--text-muted); }
  .st-float { font: var(--font-code); font-size: 9.5px; fill: #3fb68b; }
  .stream-foot {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 18px;
    align-items: end;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-base);
  }
  .hist { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
  .hist-bar {
    flex: 1;
    height: 100%;
    border-radius: 2px 2px 0 0;
    background: var(--border-base);
    transform-origin: 50% 100%;
  }
  .hist-bar:nth-child(-n+5) { background: rgba(63,182,139,0.55); }
  .lat { display: grid; gap: 2px; text-align: right; }

  /* 2. Dashboard */
  .dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; perspective: 600px; }
  .kpi {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--border-base);
    border-radius: 9px;
    transform-origin: 50% 0;
  }
  .kpi-val { font-size: 18px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .kpi.down .kpi-val { color: #e5534b; }
  .dash-chart { position: relative; margin: 14px 0 10px; }
  .dash-chart svg { width: 100%; height: 84px; display: block; overflow: visible; }
  .dash-area { fill: rgba(63,182,139,0.08); }
  .dash-line { fill: none; stroke: #3fb68b; stroke-width: 2; vector-effect: non-scaling-stroke; }
  .dash-dot {
    position: absolute; left: 0; top: 0;
    width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(63,182,139,0.25);
    opacity: 0;
  }
  .dash-axis { display: flex; justify-content: space-between; font: var(--font-code); font-size: 9.5px; color: var(--text-muted); margin-top: 4px; }
  .dash-board { display: grid; gap: 4px; }
  .dash-row {
    display: grid;
    grid-template-columns: 1fr 70px 52px 62px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--color-surface);
  }
  .dash-row.hl { box-shadow: inset 0 0 0 1px rgba(63,182,139,0.5); }
  .dash-row.neg { box-shadow: inset 0 0 0 1px rgba(229,83,75,0.5); }
  .dash-name { color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-cap { height: 4px; border-radius: 4px; background: var(--border-base); overflow: hidden; }
  .dash-cap i { display: block; height: 100%; background: var(--text-muted); transform-origin: 0 50%; }
  .dash-capn, .dash-rev { font: var(--font-code); font-size: 10.5px; text-align: right; font-variant-numeric: tabular-nums; }
  .dash-rev { color: var(--text-primary); }
  .dash-toast {
    position: absolute;
    left: 0; top: 0;
    max-width: 78%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border-base);
    border-radius: 9px;
    background: var(--color-surface);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5);
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    z-index: 2;
  }
  .dash-toast b { margin-left: 10px; color: #e5534b; font-weight: 600; font-variant-numeric: tabular-nums; }

  /* 3. Support chat */
  .chat { display: grid; gap: 10px; min-height: 250px; align-content: start; }
  .chat-sys {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px dashed var(--border-base);
    border-radius: 9px;
    font-size: 12px;
    color: var(--text-secondary);
  }
  .chat-sys .sc-mono { margin-left: auto; }
  .chat-msg {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .chat-msg.me { justify-self: end; background: var(--text-primary); color: var(--color-surface); border-bottom-right-radius: 4px; }
  .chat-msg.them { justify-self: start; border: 1px solid var(--border-base); color: var(--text-primary); border-bottom-left-radius: 4px; }
  .chat-msg p { margin: 0; }
  .chat-who { font-size: 10.5px; color: var(--text-muted); margin-bottom: 4px; }
  .chat-typing {
    justify-self: start;
    display: none;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--border-base);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
  }
  .chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
  .toggle {
    position: relative;
    width: 24px; height: 14px;
    border-radius: 999px;
    background: var(--border-base);
    flex: 0 0 24px;
  }
  .toggle i {
    position: absolute;
    top: 2px; left: 2px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
  }

  @media (max-width: 560px) {
    .sc-stack { padding: 14px; }
    .sc-card { padding: 14px; }
    .sc-stats { margin: 14px -14px -14px; }
    .sc-stats > div { padding: 10px 12px; }
    .sc-stat-val { font-size: 12.5px; }
    .night { grid-template-columns: 1fr; }
    .dial-wrap { margin: 0 auto; width: 150px; height: 150px; }
    .night-feed { min-height: 0; }
    .dash-row { grid-template-columns: 1fr 52px 58px; }
    .dash-cap { display: none; }
  }
  .acc-list { display: flex; flex-direction: column; }
  .acc-item {
    padding: 28px 28px;
    border-bottom: 1px solid var(--border-base);
    cursor: pointer;
    transition: opacity 0.15s ease;
    opacity: 0.5;
  }
  .acc-item:last-child { border-bottom: 0; }
  .acc-item[data-open="true"] { opacity: 1; }
  .acc-item:hover { opacity: 1; }
  .acc-item .label-md { color: var(--text-muted); margin-bottom: 4px; font-size: 13px; }
  .acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, margin-top 0.25s ease;
  }
  .acc-item[data-open="true"] .acc-body {
    max-height: 400px;
    margin-top: 16px;
  }

  /* ============================================================
     Chip rows (stylableList)
     ============================================================ */
  .chip-row {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  }
  .chip-track {
    display: flex;
    animation: scroll-left 70s linear infinite;
    width: max-content;
  }
  .chip-row.reverse .chip-track { animation: scroll-right 70s linear infinite; }
  @keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
  }
  .chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-base);
    padding: 16px 20px;
    margin-right: -1px;
    text-transform: lowercase;
    font-size: 18px;
    color: var(--text-primary);
    white-space: nowrap;
    background: var(--color-primary);
  }
  .chip.accent-green { color: var(--color-primary-green); }
  .chip.accent-secondary { color: var(--text-secondary); }

  /* ============================================================
     Text+Visual section (terminal/video)
     ============================================================ */
  .tv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
  }
  @media (min-width: 1024px) {
    .tv-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
    .tv-grid.reverse > div:first-child { order: 2; }
  }
  /* ============================================================
     Leads page scenes (js/leads-scenes.js). Same window chrome as
     the hero (.mockup); lp- prefixed internals.
     ============================================================ */
  .mockup.lp { max-width: none; }
  .lp-body { padding: 16px; display: grid; gap: 12px; }
  .lp-mono { font: var(--font-code); font-size: 11px; font-variant-numeric: tabular-nums; }
  .lp-dim { color: var(--text-muted); }
  .lp-ok { color: #3fb68b; }
  .lp-k { color: var(--text-muted); }
  .lp-s { color: #3fb68b; }
  .lp-pill {
    display: inline-block;
    font-style: normal;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-base);
    color: var(--text-muted);
    white-space: nowrap;
  }
  .lp-pill.ok { color: #3fb68b; border-color: rgba(63,182,139,0.45); }
  .lp-pill.warn { color: #d4883c; border-color: rgba(212,136,60,0.45); }
  .lp-pill.fail { color: #e5534b; border-color: rgba(229,83,75,0.45); }
  .lp-pill.wait { color: var(--text-secondary); }
  .lp-badge { font: var(--font-code); font-size: 10.5px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border-base); }
  .lp-badge.ok { color: #3fb68b; border-color: rgba(63,182,139,0.45); }

  /* Intake */
  .lp-swap { display: grid; }
  .lp-pane { grid-area: 1 / 1; display: grid; gap: 10px; align-content: start; opacity: 0; visibility: hidden; }
  .lp-pane.is-on { opacity: 1; visibility: visible; }
  .lp-code {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-base);
    border-radius: 9px;
    font: var(--font-code);
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
  }
  .lp-resp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }
  .lp-resp [data-resp-ms] { margin-left: auto; }
  .lp-file { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text-primary); }
  .lp-lanes { display: grid; gap: 7px; }
  .lp-lane { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; }
  .lp-bar { height: 6px; border-radius: 6px; background: var(--border-base); overflow: hidden; }
  .lp-bar i { display: block; height: 100%; background: #3fb68b; transform-origin: 0 50%; }
  .lp-csv-stats { display: flex; gap: 18px; font-size: 12px; color: var(--text-muted); }
  .lp-csv-stats b { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
  .lp-table { border-top: 1px solid var(--border-base); padding-top: 10px; }
  .lp-tr {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    font-size: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-base);
    font-variant-numeric: tabular-nums;
  }
  .lp-tr > span:last-child { text-align: right; }
  .lp-th { font-size: 11px; color: var(--text-muted); }
  .lp-rows .lp-tr:last-child { border-bottom: 0; }

  /* Checks */
  .lp-lead { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border-base); border-radius: 10px; }
  .lp-lead-text { min-width: 0; }
  .lp-lead-text b { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); }
  .lp-lead-text small { display: block; font: var(--font-code); font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-checks { display: grid; gap: 6px; }
  .lp-check {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border-base);
    border-radius: 9px;
    font-size: 12.5px;
    overflow: hidden;
  }
  .lp-check-name { color: var(--text-secondary); }
  .lp-check-res { font: var(--font-code); font-size: 11px; color: var(--text-muted); white-space: nowrap; }
  .lp-check-res.ok { color: #3fb68b; }
  .lp-check-res.fail { color: #e5534b; }
  .lp-check-res.warn { color: #d4883c; }
  .lp-check-scan {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(63,182,139,0.12), transparent);
    transform: translateX(-100%);
    pointer-events: none;
  }
  .lp-soon { opacity: 0.6; border-style: dashed; }
  .lp-soon-tag {
    font-style: normal;
    font: var(--font-code);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-base);
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 6px;
    white-space: nowrap;
  }
  .lp-verdict { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .lp-verdict .lp-pill { font-size: 12px; padding: 4px 10px; }

  /* Routing */
  .lp-group-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-primary); }
  .lp-wf { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .lp-cursor { position: absolute; left: 0; right: 0; top: 0; border-radius: 8px; background: var(--border-base); opacity: 0; pointer-events: none; }
  [data-theme="dark"] .lp-cursor { background: rgba(255,255,255,0.06); }
  .lp-wf-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; font-size: 13px; }
  .lp-wf-name { color: var(--text-primary); }
  .lp-wf-name small { display: block; font-size: 11px; color: var(--text-muted); }
  .lp-wf-res { font: var(--font-code); font-size: 11px; color: var(--text-muted); white-space: nowrap; }
  .lp-wf-res.ok { color: #3fb68b; }
  .lp-wf-res.fail { color: #e5534b; }
  .lp-wf-res.skip { color: #d4883c; }
  .lp-log { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border-base); min-height: 112px; align-content: start; }
  .lp-log-row { display: grid; grid-template-columns: 92px 76px 1fr; gap: 8px; font-size: 11.5px; color: var(--text-primary); }
  .lp-log-row .lp-mono { color: var(--text-muted); }

  @media (max-width: 560px) {
    .lp-tr { grid-template-columns: 1.4fr 1fr 0.7fr; }
    .lp-tr > span:nth-child(3) { display: none; }
    .lp-log-row { grid-template-columns: 80px 1fr; }
    .lp-log-row > span:nth-child(2) { display: none; }
  }

  /* Shared status colours for page scenes */
  .lp-bad { color: #e5534b; }
  .lp-warn { color: #d4883c; }

  /* ---------- Analytics: dashboard ---------- */
  .an-seg {
    position: relative;
    margin-left: auto;
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--border-base);
    border-radius: 8px;
    font-size: 10.5px;
  }
  .an-seg i { position: relative; z-index: 1; font-style: normal; padding: 3px 8px; color: var(--text-muted); white-space: nowrap; }
  .an-seg i.on { color: var(--text-primary); }
  .an-seg-hl { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 6px; background: var(--border-base); }
  [data-theme="dark"] .an-seg-hl { background: rgba(255,255,255,0.08); }
  .an-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .an-tile { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border-base); border-radius: 9px; font-size: 11px; }
  .an-tile b { font-size: 17px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .an-tile small { font-size: 10.5px; font-variant-numeric: tabular-nums; }
  .an-charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
  .an-chart { padding: 10px 12px; border: 1px solid var(--border-base); border-radius: 9px; }
  .an-chart-h { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
  .an-chart svg { display: block; width: 100%; height: 86px; overflow: visible; }
  .an-area { fill: rgba(63,182,139,0.08); }
  .an-line { fill: none; stroke: #3fb68b; stroke-width: 2; vector-effect: non-scaling-stroke; }
  .an-donut-wrap { display: grid; grid-template-rows: auto 1fr auto; }
  .an-donut { height: 78px !important; }
  .an-donut circle { fill: none; stroke-width: 11; }
  .an-ring { stroke: var(--border-base); }
  .an-seg-a { stroke: #3fb68b; stroke-dasharray: 140 226.2; }
  .an-seg-b { stroke: #d4883c; stroke-dasharray: 0 226.2; stroke-dashoffset: -142; }
  .an-seg-c { stroke: var(--text-muted); stroke-dasharray: 0 226.2; stroke-dashoffset: -176; }
  .an-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 10px; color: var(--text-muted); }
  .an-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); margin-right: 4px; }
  .an-legend i.ok { background: #3fb68b; }
  .an-legend i.warn { background: #d4883c; }
  .an-hours { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
  .an-hours span { flex: 1; height: 100%; border-radius: 2px 2px 0 0; background: rgba(63,182,139,0.55); transform-origin: 50% 100%; }

  /* ---------- Analytics: explore ---------- */
  .ex-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
  .ex-select { display: grid; gap: 1px; padding: 5px 10px; border: 1px solid var(--border-base); border-radius: 8px; min-width: 92px; }
  .ex-select small { font-size: 10px; color: var(--text-muted); }
  .ex-select b { font-size: 12px; font-weight: 500; color: var(--text-primary); white-space: nowrap; }
  .ex-select.hot { border-color: #3fb68b; }
  .ex-save {
    margin-left: auto;
    align-self: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--text-primary);
    color: var(--color-surface);
    font-size: 11.5px;
    font-weight: 600;
  }
  .ex-table { display: grid; }
  .ex-tr {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.8fr 0.7fr 1fr;
    gap: 8px;
    padding: 7px 4px;
    font-size: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-base);
    font-variant-numeric: tabular-nums;
  }
  .ex-tr > span:not(:first-child) { text-align: right; }
  .ex-th { font-size: 11px; color: var(--text-muted); }
  .ex-tr.sub { color: var(--text-secondary); font-size: 11.5px; }
  .ex-tr.sub > span:first-child { padding-left: 16px; position: relative; }
  .ex-tr.sub > span:first-child::before { content: ''; position: absolute; left: 4px; top: 50%; width: 7px; height: 1px; background: var(--border-base); }
  .ex-total { font-weight: 600; border-bottom: 0; }
  .ex-rows { display: grid; }
  .ex-toast {
    justify-self: start;
    padding: 6px 10px;
    border: 1px solid rgba(63,182,139,0.45);
    border-radius: 8px;
    font-size: 11.5px;
    color: #3fb68b;
  }

  /* ---------- Analytics: files ---------- */
  .fl-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .fl-action, .fl-send {
    padding: 6px 12px;
    border: 1px solid var(--border-base);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
  }
  .fl-send { background: var(--text-primary); color: var(--color-surface); border-color: transparent; }
  .fl-grid { display: grid; border: 1px solid var(--border-base); border-radius: 9px; overflow: hidden; }
  .fl-tr {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.9fr 0.9fr;
    gap: 8px;
    padding: 7px 10px;
    font-size: 11.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-base);
    font-variant-numeric: tabular-nums;
  }
  .fl-tr:last-child { border-bottom: 0; }
  .fl-th { font: var(--font-code); font-size: 10.5px; color: var(--text-muted); background: rgba(127,127,127,0.06); }
  .fl-tr [data-hlr] { font: var(--font-code); font-size: 11px; }
  .fl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

  @media (max-width: 560px) {
    .an-tiles { grid-template-columns: repeat(2, 1fr); }
    .an-charts { grid-template-columns: 1fr; }
    .an-donut-wrap { display: none; }
    .an-seg i { padding: 3px 5px; }
    .ex-tr { grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr; }
    .ex-tr > span:nth-child(4) { display: none; }
    .fl-tr { grid-template-columns: 1fr 1.3fr 0.8fr; }
    .fl-tr > span:nth-child(3) { display: none; }
  }

  /* ---------- Campaigns: groups, filters, caps ---------- */
  .cp-group { border: 1px solid var(--border-base); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
  .cp-group-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-primary); }
  .cp-group-h b { font-weight: 600; margin-right: auto; }
  .cp-chip { font: var(--font-code); font-size: 10.5px; color: var(--text-secondary); border: 1px solid var(--border-base); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
  .cp-chip.hot { border-color: #3fb68b; color: #3fb68b; }
  .cp-links { display: grid; gap: 4px; }
  .cp-link { display: grid; grid-template-columns: 1fr 90px 38px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; font-size: 12px; color: var(--text-primary); }
  .cp-group-2 .cp-link { grid-template-columns: 1fr auto; }
  .cp-link.flash { background: rgba(63,182,139,0.12); }
  .cp-weight { height: 5px; border-radius: 5px; background: var(--border-base); overflow: hidden; }
  .cp-weight i { display: block; height: 100%; background: #3fb68b; transform-origin: 0 50%; }
  .cp-audit { display: flex; gap: 10px; align-items: baseline; font-size: 11.5px; color: var(--text-secondary); padding-top: 8px; border-top: 1px solid var(--border-base); }

  .cp-rules { display: grid; gap: 4px; }
  .cp-rule { display: grid; grid-template-columns: 92px 1fr 18px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-base); border-radius: 9px; font-size: 12px; color: var(--text-primary); }
  .cp-rule em { font-style: normal; color: var(--text-muted); }
  .cp-kind { font: var(--font-code); font-size: 10.5px; color: var(--text-muted); }
  .cp-logic { font: var(--font-code); font-size: 10px; color: var(--text-muted); padding-left: 12px; }
  .cp-tick { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-base); }
  .cp-tick.ok { border-color: #3fb68b; background: #3fb68b; }
  .cp-tick.fail { border-color: #e5534b; background: #e5534b; }
  .cp-test { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--border-base); border-radius: 10px; }
  .cp-test-text b { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); }
  .cp-test-text small { display: block; font-size: 11px; color: var(--text-muted); }

  .cp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cp-day { text-align: center; font: var(--font-code); font-size: 10.5px; padding: 5px 0; border-radius: 6px; border: 1px solid var(--border-base); color: var(--text-muted); }
  .cp-day.on { color: var(--text-primary); }
  .cp-day.today { border-color: #3fb68b; color: #3fb68b; }
  .cp-caps { display: grid; gap: 6px; }
  .cp-cap { display: grid; grid-template-columns: 1fr 1fr 62px 92px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-primary); }
  .cp-cap .lp-pill { justify-self: end; }
  .cp-bar { height: 6px; border-radius: 6px; background: var(--border-base); overflow: hidden; }
  .cp-bar i { display: block; height: 100%; background: #3fb68b; transform-origin: 0 50%; }
  .cp-cap.full .cp-bar i { background: #d4883c; }
  .cp-note { font-size: 12px; color: var(--text-secondary); padding-top: 8px; border-top: 1px solid var(--border-base); }

  @media (max-width: 560px) {
    .cp-link { grid-template-columns: 1fr 60px 34px; }
    .cp-rule { grid-template-columns: 1fr 18px; }
    .cp-rule .cp-kind { display: none; }
    .cp-cap { grid-template-columns: 1fr 1fr 56px; }
    .cp-cap .lp-pill { display: none; }
  }

  /* ---------- Homepage: Logs (audit log) ---------- */
  .lg-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .lg-search {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border-base);
    border-radius: 8px;
    font: var(--font-code);
    font-size: 11.5px;
    color: var(--text-primary);
  }
  .lg-search svg { width: 13px; height: 13px; color: var(--text-muted); flex: 0 0 13px; }
  .lg-search.focus { border-color: var(--text-muted); }
  .lg-caret { display: none; width: 1px; height: 13px; background: var(--text-primary); margin-left: -6px; animation: caretBlink 1s steps(1) infinite; }
  .lg-search.focus .lg-caret { display: inline-block; }
  .lg-chip { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border-base); border-radius: 8px; padding: 6px 9px; white-space: nowrap; }
  .lg-table { display: grid; }
  .lg-rows { display: grid; align-content: start; min-height: 240px; }
  .lg-row {
    display: grid;
    grid-template-columns: 62px 1.3fr 1.2fr 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-base);
  }
  .lg-rows .lg-row:last-child { border-bottom: 0; }
  .lg-head { font-size: 11px; color: var(--text-muted); }
  .lg-time { font: var(--font-code); font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
  .lg-user, .lg-action { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lg-user small, .lg-action small { display: block; font-size: 10.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
  .lg-action { font-size: 12px; }
  .lg-action small { font: var(--font-code); font-size: 10px; }
  .lg-status { justify-self: end; font: var(--font-code); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-base); }
  .lg-status.ok { color: #3fb68b; border-color: rgba(63,182,139,0.45); }
  .lg-status.bad { color: #e5534b; border-color: rgba(229,83,75,0.45); }
  .lg-row.flash { background: rgba(63,182,139,0.08); }
  .lg-row.deny { background: rgba(229,83,75,0.07); }
  @media (max-width: 560px) {
    .lg-row { grid-template-columns: 54px 1fr 40px; }
    .lg-row > .lg-user { display: none; }
  }

  /* ---------- Who it's for scenes ---------- */
  .vs-scene { margin-top: 28px; }
  .rc-sec { display: grid; gap: 5px; }
  .rc-h { font: var(--font-code); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
  .rc-raw { margin: 0; padding: 9px 11px; border: 1px solid var(--border-base); border-radius: 8px; font: var(--font-code); font-size: 10.5px; line-height: 1.6; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; }
  .rc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--border-base); border-radius: 8px; font-size: 12px; color: var(--text-primary); }
  .ms-body { gap: 6px; }
  .ms-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font-body); }
  .ms-wire { fill: none; stroke: var(--border-base); stroke-width: 2; }
  .ms-lead rect { fill: var(--text-primary); }
  .ms-lead text { font-size: 12px; font-weight: 600; fill: var(--color-surface); text-anchor: middle; }
  .ms-lead .ms-sub { font-size: 9.5px; font-weight: 400; opacity: 0.75; }
  .ms-buyer rect { fill: var(--color-surface); stroke: var(--border-base); stroke-width: 1.5; }
  .ms-buyer.ok rect { stroke: #3fb68b; }
  .ms-buyer text { font-size: 11.5px; font-weight: 600; fill: var(--text-primary); }
  .ms-buyer .ms-sub { font-size: 10px; font-weight: 500; fill: var(--text-muted); }
  .ms-buyer.ok .ms-sub { fill: #3fb68b; }
  .ms-dot { fill: var(--text-primary); opacity: 0; }
  .ms-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--border-base); font-size: 12px; }
  .ms-total b { font-size: 20px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .pc-lead { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border: 1px dashed var(--border-base); border-radius: 10px; }
  .pc-lead b { font: var(--font-code); font-size: 16px; font-weight: 600; color: var(--text-primary); }
  .pc-list { display: grid; gap: 6px; }
  .pc-ct { display: grid; grid-template-columns: 1fr auto 86px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-base); border-radius: 9px; font-size: 12px; transition: opacity 0.3s ease, border-color 0.3s ease; }
  .pc-ct b { display: block; font-weight: 600; color: var(--text-primary); }
  .pc-ct small { display: block; font-size: 10.5px; color: var(--text-muted); }
  .pc-ct .lp-pill { justify-self: end; opacity: 0; }
  .pc-ct.dim { opacity: 0.4; }
  .pc-ct.hit { border-color: #3fb68b; }
  .pc-ct.skip { border-color: #d4883c; }

  /* ============================================================
     Features catalogue
     ============================================================ */
  .fx-nav {
    position: sticky;
    top: 80px;
    z-index: 20;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 28px;
    background: var(--color-primary);
    border-top: 1px solid var(--border-base);
    border-bottom: 1px solid var(--border-base);
    scrollbar-width: none;
  }
  .fx-nav::-webkit-scrollbar { display: none; }
  .fx-nav a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-base);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  }
  .fx-nav a:hover { color: var(--text-primary); }
  .fx-nav a.on { color: var(--color-primary); background: var(--text-primary); border-color: var(--text-primary); }
  .fx-sec {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 28px;
    border-bottom: 1px solid var(--border-base);
    scroll-margin-top: var(--fx-offset, 140px);
  }
  @media (min-width: 1024px) {
    .fx-sec { grid-template-columns: 1fr 2fr; gap: 56px; padding: 80px 28px; }
    .fx-head { position: sticky; top: var(--fx-offset, 150px); align-self: start; }
  }
  .fx-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-base); color: var(--text-primary); margin-bottom: 18px; }
  .fx-icon svg { width: 20px; height: 20px; }
  .fx-label { font: var(--font-code); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
  .fx-intro { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
  .fx-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-base); padding-bottom: 2px; }
  .fx-more:hover { border-color: var(--text-primary); }
  .fx-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border-base); border: 1px solid var(--border-base); border-radius: 14px; overflow: hidden; }
  @media (min-width: 640px) { .fx-grid { grid-template-columns: 1fr 1fr; } }
  .fx-item { padding: 22px 22px 24px; background: var(--color-primary); }
  .fx-item h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0 0 8px; }
  .fx-item p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
  .fx-item a { color: var(--text-primary); }

  /* Features page: line across the three process steps (js/reveal.js) */
  .ps-track { position: absolute; left: 0; right: 0; top: -20px; height: 2px; background: var(--border-base); border-radius: 2px; overflow: hidden; }
  .ps-track i { display: block; height: 100%; background: #3fb68b; transform-origin: 0 50%; }
  .process-step .ps-num { transition: color 0.4s ease; }
  .process-step .ps-num.lit { color: #3fb68b; }

  /* ============================================================
     Guide diagrams (js/guide-diagrams.js)
     ============================================================ */
  .gd { margin: 20px 0 28px; padding: 16px 16px 12px; border: 1px solid var(--border-base); border-radius: 14px; background: var(--color-surface); }
  .gd-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
  .gd-wire { fill: none; stroke: var(--border-base); stroke-width: 2; stroke-linecap: round; }
  .gd-node rect { fill: var(--color-primary); stroke: var(--border-base); stroke-width: 1.5; }
  .gd-node.ok rect { stroke: #3fb68b; }
  .gd-node.bad rect { stroke: #e5534b; }
  .gd-node.warn rect { stroke: #d4883c; }
  .gd-t { font-size: 15px; font-weight: 600; fill: var(--text-primary); text-anchor: middle; }
  .gd-s { font-size: 12px; fill: var(--text-muted); text-anchor: middle; }
  .gd-l { text-anchor: start; }
  .gd-r { font: var(--font-code); font-size: 12px; text-anchor: end; fill: var(--text-muted); }
  .gd-r.ok, .gd-s.ok { fill: #3fb68b; }
  .gd-r.bad, .gd-s.bad { fill: #e5534b; }
  .gd-r.warn, .gd-s.warn { fill: #d4883c; }
  .gd-src rect { fill: var(--text-primary); stroke: none; }
  .gd-src text { fill: var(--color-primary); }
  .gd-pkt rect { fill: var(--text-primary); }
  .gd-pkt text { font: var(--font-code); font-size: 11px; fill: var(--color-primary); text-anchor: middle; }
  .gd-pkt.ok rect { fill: #3fb68b; }
  .gd-pkt.bad rect { fill: #e5534b; }
  .gd-dot { fill: var(--text-primary); opacity: 0; }
  .gd-pkt { opacity: 0; }
  .gd-res rect { fill: rgba(63,182,139,0.12); stroke: #3fb68b; stroke-width: 1.5; }
  .gd-res text { font: var(--font-code); font-size: 13px; fill: #3fb68b; text-anchor: middle; }
  .gd-res.bad rect { fill: rgba(229,83,75,0.1); stroke: #e5534b; }
  .gd-res.bad text { fill: #e5534b; }
  .gd-res.warn rect { fill: rgba(212,136,60,0.1); stroke: #d4883c; }
  .gd-res.warn text { fill: #d4883c; }
  .gd-cap { margin-top: 10px; font-size: 14px; color: var(--text-secondary); text-align: center; min-height: 1.5em; }

  /* ============================================================
     Pricing calculator (js/pricing-calc.js)
     ============================================================ */
  .calc { max-width: 960px; margin: 0 auto; display: grid; gap: 14px; }
  .calc-top { display: flex; justify-content: center; }
  .calc-vol { font-size: 18px; color: var(--text-secondary); }
  .calc-vol b { font-size: 34px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-right: 6px; }
  .calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
  .calc-range:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; border-radius: 8px; }
  .calc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--border-base); }
  .calc-range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--border-base); }
  .calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--text-primary); border: 4px solid var(--color-primary); box-shadow: 0 0 0 1px var(--border-base); }
  .calc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text-primary); border: 4px solid var(--color-primary); }
  .calc-scale { display: flex; justify-content: space-between; font: var(--font-code); font-size: 11px; color: var(--text-muted); margin-top: -6px; }
  .calc-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
  .calc-plan {
    position: relative;
    display: grid; gap: 8px; align-content: start;
    padding: 16px;
    border: 1px solid var(--border-base);
    border-radius: 12px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
  }
  .calc-plan.best { border-color: #3fb68b; background: rgba(63,182,139,0.06); }
  .calc-plan-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .calc-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
  .calc-best { font-style: normal; font: var(--font-code); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #3fb68b; opacity: 0; }
  .calc-plan.best .calc-best { opacity: 1; }
  .calc-price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .calc-price small { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-left: 4px; letter-spacing: 0; }
  .calc-bar { height: 4px; border-radius: 4px; background: var(--border-base); overflow: hidden; }
  .calc-bar i { display: block; height: 100%; background: var(--text-muted); transform-origin: 0 50%; }
  .calc-plan.best .calc-bar i { background: #3fb68b; }
  .calc-detail { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
  .calc-note { text-align: center; font-size: 15px; color: var(--text-secondary); margin-top: 6px; }
  .calc-note b { color: var(--text-primary); }
  @media (max-width: 820px) { .calc-plans { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .calc-vol b { font-size: 28px; } .calc-price { font-size: 24px; } }

  /* ============================================================
     iPhone app showcase (homepage). Drawn in HTML/CSS, animated by
     the "phone" scene in js/page-scenes.js.
     ============================================================ */
  .ph-wrap { display: flex; justify-content: center; }
  .phone {
    position: relative;
    width: 286px;
    height: 590px;
    padding: 11px;
    border-radius: 48px;
    background: #111113;
    box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 40px 80px -40px rgba(0,0,0,0.6);
  }
  .ph-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    background: #f4f4f6;
    color: #111113;
    font-family: var(--font-body);
  }
  .ph-island { position: absolute; z-index: 6; top: 9px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: 999px; background: #000; }
  .ph-status { position: absolute; z-index: 5; top: 13px; left: 24px; right: 22px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
  .ph-sys { display: inline-flex; gap: 3px; align-items: center; }
  .ph-sys i { width: 3px; height: 8px; border-radius: 1px; background: currentColor; }
  .ph-sys i:nth-child(1) { height: 5px; } .ph-sys i:nth-child(2) { height: 7px; }
  .ph-sys b { width: 20px; height: 9px; margin-left: 4px; border-radius: 3px; border: 1.2px solid currentColor; position: relative; }
  .ph-sys b::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: currentColor; }

  .ph-view { position: absolute; inset: 0; padding: 50px 14px 84px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; }
  .ph-view.is-on { opacity: 1; visibility: visible; }
  .ph-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 2px; }
  .ph-head b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
  .ph-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: #e4e4e8; font-size: 10px; }
  .ph-seg i { font-style: normal; padding: 3px 7px; border-radius: 6px; color: #6b6b72; }
  .ph-seg i.on { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
  .ph-card { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
  .ph-card-t { font-size: 11px; font-weight: 600; color: #6b6b72; margin-bottom: 6px; }
  .ph-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ph-metric { background: #fff; border-radius: 14px; padding: 9px 11px; display: grid; gap: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
  .ph-metric small { font-size: 9.5px; color: #6b6b72; }
  .ph-metric b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .ph-chart { width: 100%; height: 66px; display: block; overflow: visible; }
  .ph-area { fill: rgba(63,182,139,0.12); }
  .ph-line { fill: none; stroke: #2f9c74; stroke-width: 2; vector-effect: non-scaling-stroke; }
  .ph-src { display: grid; grid-template-columns: 78px 1fr 26px; align-items: center; gap: 6px; font-size: 10px; color: #3a3a40; margin-top: 4px; }
  .ph-src i { height: 5px; border-radius: 5px; background: #2f9c74; transform-origin: 0 50%; }
  .ph-src b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

  /* Floating frosted tab bar, as in the app's TabBar.css */
  .ph-tabs {
    position: absolute; z-index: 4; left: 10px; right: 10px; bottom: 22px;
    height: 50px;
    display: flex; align-items: center; justify-content: space-around;
    padding: 0 2px;
    border-radius: 20px;
    background: rgba(246,246,247,0.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid #e2e2e6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-size: 8.5px; font-weight: 500; letter-spacing: 0.01em;
    color: #8e8e95;
  }
  .ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px; transition: color 0.25s ease; }
  .ph-ti { position: relative; width: 18px; height: 18px; display: block; }
  .ph-ti svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ph-ti .ic-a { opacity: 0; }
  .ph-tabs span.on { color: #161517; }
  .ph-tabs span.on .ic-o { opacity: 0; }
  .ph-tabs span.on .ic-a { opacity: 1; }
  .ph-home-ind { position: absolute; z-index: 5; left: 50%; bottom: 7px; width: 96px; height: 4px; margin-left: -48px; border-radius: 4px; background: #111113; }
  .phone.lock-mode .ph-home-ind { background: #fff; }
  /* Where the demo "finger" touches the screen. */
  .ph-touch {
    position: absolute; z-index: 8; left: 0; top: 0;
    width: 30px; height: 30px; margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: rgba(17,17,19,0.22);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9), 0 2px 8px rgba(0,0,0,0.18);
    opacity: 0; pointer-events: none;
  }

  .ph-search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px; background: #e6e6ea; font-size: 12px; }
  .ph-search svg { width: 13px; height: 13px; color: #8a8a92; }
  .ph-caret { display: none; width: 1px; height: 13px; background: #2f9c74; margin-left: -5px; animation: caretBlink 1s steps(1) infinite; }
  .ph-search.focus .ph-caret { display: inline-block; }
  .ph-list { display: grid; gap: 6px; }
  .ph-lead { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; }
  .ph-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #111113; color: #fff; font-size: 10px; font-weight: 600; }
  .ph-lead-t b, .ph-sheet-h b { display: block; font-size: 12px; font-weight: 600; }
  .ph-lead-t small, .ph-sheet-h small { display: block; font-size: 9.5px; color: #6b6b72; }
  .ph-lead-r { display: grid; justify-items: end; gap: 2px; }
  .ph-lead-r small { font-size: 9.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .ph-pill { font-style: normal; font-size: 8.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; }
  .ph-pill.ok { color: #1f7a57; background: rgba(63,182,139,0.16); }
  .ph-pill.bad { color: #b9342c; background: rgba(229,83,75,0.14); }
  .ph-pill.warn { color: #a5621f; background: rgba(212,136,60,0.16); }
  .ph-lead.tap { background: #ececf0; }
  .ph-sheet {
    position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
    padding: 8px 14px 30px;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
    display: grid; gap: 8px;
    transform: translateY(105%);
  }
  .ph-grab { justify-self: center; width: 36px; height: 4px; border-radius: 4px; background: #d4d4da; }
  .ph-sheet-h { display: flex; align-items: center; gap: 10px; }
  .ph-sheet-t { font-size: 11px; font-weight: 600; color: #6b6b72; margin-top: 4px; }
  .ph-att { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 7px 10px; border-radius: 10px; background: #f4f4f6; font-size: 11px; }
  .ph-att small { grid-column: 1 / -1; font-size: 9.5px; color: #6b6b72; }

  .ph-buyer { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 12px; border-top: 1px solid #efeff2; }
  .ph-buyer small { font-size: 10px; color: #6b6b72; font-variant-numeric: tabular-nums; }
  .ph-buyer-edit.hot { color: #1f7a57; }
  .ph-stepper { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 6px 0 10px; }
  .ph-stepper b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 58px; text-align: center; }
  .ph-step { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ececf0; font-size: 18px; font-weight: 600; }
  .ph-save { display: block; text-align: center; padding: 9px; border-radius: 10px; background: #111113; color: #fff; font-size: 12px; font-weight: 600; }
  .ph-toast {
    position: absolute; z-index: 6; left: 50%; bottom: 84px;
    transform: translate(-50%, 20px);
    padding: 7px 14px; border-radius: 999px;
    background: #111113; color: #fff; font-size: 11px; font-weight: 600;
    opacity: 0; white-space: nowrap;
  }

  .ph-lock { padding-top: 56px; background: linear-gradient(170deg, #1b2a26 0%, #0e1513 60%, #0a0f0e 100%); color: #fff; align-items: stretch; z-index: 3; }
  .ph-lock-date { text-align: center; font-size: 13px; font-weight: 500; opacity: 0.85; }
  .ph-lock-time { text-align: center; font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
  .ph-notes { display: grid; gap: 6px; }
  .ph-note {
    display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start;
    padding: 9px 10px; border-radius: 14px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    font-size: 10.5px; line-height: 1.35;
  }
  .ph-note .ph-ic { width: 26px; height: 26px; border-radius: 7px; display: block; object-fit: cover; box-shadow: 0 0 0 0.5px rgba(255,255,255,0.25); }
  .ph-note b { display: block; font-size: 11px; font-weight: 600; }
  .ph-note time { font-size: 9.5px; opacity: 0.7; }
  .ph-faceid { margin-top: auto; align-self: center; width: 44px; height: 44px; color: #fff; opacity: 0; }
  .ph-faceid svg { width: 100%; height: 100%; }
  .ph-faceid.ok { color: #3fd39b; }
  .phone.lock-mode .ph-status { color: #fff; }
  .phone.lock-mode .ph-tabs { opacity: 0; }

  .frame {
    position: relative;
    background: var(--color-surface-muted);
    border-radius: 12px;
    overflow: hidden;
  }
  .frame-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.06);
  }
  [data-theme="light"] .frame-bar { background: rgba(0,0,0,0.06); }
  .frame-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
  }
  [data-theme="light"] .frame-dot { background: rgba(0,0,0,0.2); }
  .frame-body { padding: 24px; }

  .terminal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
  }
  .terminal .kw { color: var(--color-primary-green); font-weight: 500; }
  .terminal .str { color: #f6c779; }
  .terminal .ok { color: #4ade80; }
  .terminal .muted { color: var(--text-muted); }
  .terminal .prompt { color: var(--text-muted); }
  .terminal-progress {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin: 4px 0;
  }
  [data-theme="light"] .terminal-progress { background: rgba(0,0,0,0.06); }
  .terminal-progress-bar {
    height: 100%; width: 0%;
    background: var(--color-primary-green);
    transition: width 1s ease-out;
  }
  .terminal-line { opacity: 0; transition: opacity 0.3s; }
  .terminal-line.visible { opacity: 1; }

  /* ============================================================
     Audit log mockup (security section)
     ============================================================ */
  .audit-log {
    padding: 18px 20px 16px;
    background: var(--color-primary);
  }
  .audit-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .audit-log-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
  }
  .audit-log-range {
    font-family: var(--font-code);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .audit-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    padding: 8px 0;
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-base);
    align-items: center;
  }
  .audit-row:last-child { border-bottom: 0; }
  .audit-row.head {
    color: var(--text-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 6px;
  }
  .audit-row .audit-time { color: var(--text-muted); }
  .audit-row .audit-action em {
    font-style: normal;
    color: var(--color-primary-green);
    padding: 1px 5px;
    border: 1px solid var(--border-base);
    border-radius: 3px;
    margin-left: 2px;
    font-size: 10px;
  }
  .audit-row .audit-actor { color: var(--text-primary); }

  /* Checklist used in security section */
  .checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
  }
  .checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
    border-bottom: 1px solid var(--border-base);
  }
  .checklist li:last-child { border-bottom: 0; }
  .checklist li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 3px;
    background-color: var(--color-primary-green);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
  }
  .checklist li strong { color: var(--text-primary); font-weight: 600; }

  /* ============================================================
     Pricing cards
     ============================================================ */
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  @media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(4, 1fr); align-items: end; }
  }
  .pricing-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border-base);
    margin: -1px -1px 0 0;
    height: 310px;
    overflow: hidden;
    transition: height 0.3s ease;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  @media (min-width: 1024px) {
    .pricing-card:hover { height: 376px; }
  }
  .pc-top { display: flex; flex-direction: column; gap: 100px; min-height: 230px; }
  .pc-name {
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--pc-color, var(--color-primary-green));
  }
  .pc-price { font-size: 28px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.02em; }
  .pc-period { font-size: 13px; color: var(--text-primary); margin-left: 6px; }
  .pc-cta-wrap {
    margin-top: 24px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
  }
  @media (min-width: 1024px) {
    .pricing-card:hover .pc-cta-wrap { opacity: 1; transform: translateY(0); }
  }
  @media (max-width: 1023px) {
    .pc-cta-wrap { opacity: 1; transform: none; }
  }
  .pc-shape {
    position: absolute;
    right: 0; bottom: 0;
    width: 150px; height: 200px;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
  }
  @media (min-width: 1024px) {
    .pricing-card:hover .pc-shape { opacity: 1; }
  }
  .pc-cta {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
  }
  .pc-cta:hover { background: rgba(0,0,0,0.4); }
  [data-theme="light"] .pc-cta { background: rgba(0,0,0,0.04); }
  [data-theme="light"] .pc-cta:hover { background: rgba(255,255,255,0.4); }

  /* ============================================================
     Icon grid
     ============================================================ */
  .icon-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border-base);
    border-bottom: 1px solid var(--border-base);
  }
  @media (min-width: 1024px) {
    .icon-grid { grid-template-columns: repeat(3, 1fr); }
  }
  .icon-cell {
    padding: 28px;
    border-bottom: 1px solid var(--border-base);
    background: var(--color-primary);
  }
  @media (min-width: 1024px) {
    .icon-cell {
      border-bottom: 0;
      border-right: 1px solid var(--border-base);
    }
    .icon-cell:last-child { border-right: 0; }
  }
  .ic-icon {
    width: 28px; height: 28px;
    color: var(--text-primary);
    margin-bottom: 20px;
  }

  /* ============================================================
     Stats row
     ============================================================ */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border-base);
  }
  @media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
  .stat-cell {
    padding: 32px 28px;
    border-right: 1px solid var(--border-base);
    border-bottom: 1px solid var(--border-base);
  }
  .stat-cell:nth-child(2n) { border-right: 0; }
  @media (min-width: 768px) {
    .stat-cell:nth-child(2n) { border-right: 1px solid var(--border-base); }
    .stat-cell:nth-child(4n) { border-right: 0; }
  }
  .stat-value {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1;
  }
  .stat-label { color: var(--text-muted); font-size: 13px; margin-top: 8px; }

  /* ============================================================
     Testimonial carousel
     ============================================================ */
  .test-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-top: 1px solid var(--border-base);
    border-bottom: 1px solid var(--border-base);
    scrollbar-width: none;
  }
  .test-strip::-webkit-scrollbar { display: none; }
  .test-card {
    flex: 0 0 100%;
    padding: 48px 28px;
    border-right: 1px solid var(--border-base);
    scroll-snap-align: start;
    background: var(--color-primary);
  }
  @media (min-width: 1024px) {
    .test-card { flex: 0 0 65%; padding: 64px 64px; }
  }
  .test-quote {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 32px;
  }
  .test-meta {
    display: flex; align-items: center; gap: 20px;
    border-top: 1px solid var(--border-base);
    padding-top: 24px;
  }
  .test-author { font-weight: 500; color: var(--text-primary); }
  .test-context { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

  .carousel-nav {
    display: flex; gap: 8px; padding: 24px 28px;
    justify-content: flex-end;
    border-bottom: 1px solid var(--border-base);
  }
  .carousel-nav button {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-secondary);
    background: transparent;
    color: var(--text-primary);
    transition: background-color 0.15s;
  }
  .carousel-nav button:hover { background: var(--color-surface); }

  /* ============================================================
     Closer with Aiven's parenthesis SVG bg
     ============================================================ */
  .closer {
    position: relative;
    padding: 96px 32px;
    text-align: center;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .closer-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    color: var(--color-primary-green);
    opacity: 1;
  }
  .closer-content { position: relative; z-index: 1; }

  /* ============================================================
     Footer
     ============================================================ */
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-base);
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-logo img { height: 32px; filter: var(--logo-invert); }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--border-base);
  }
  @media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1280px) { .footer-grid { grid-template-columns: repeat(6, 1fr); } }
  .footer-col {
    padding: 32px 28px;
    border-right: 1px solid var(--border-base);
    border-bottom: 1px solid var(--border-base);
  }
  .footer-col:nth-child(2n) { border-right: 0; }
  .footer-col:nth-last-child(-n+2) { border-bottom: 0; }
  @media (min-width: 768px) {
    .footer-col:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-base); }
    .footer-col:nth-child(n+4) { border-bottom: 0; }
    .footer-col:nth-child(2n) { border-right: 1px solid var(--border-base); }
    .footer-col:nth-child(3n) { border-right: 0; }
  }
  @media (min-width: 1280px) {
    .footer-col { border-bottom: 0; }
    .footer-col:nth-child(3n) { border-right: 1px solid var(--border-base); }
    .footer-col:nth-child(6n) { border-right: 0; }
  }
  .footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
  }
  .footer-col ul { list-style: none; padding: 0; margin: 0; }
  .footer-col li { margin-bottom: 12px; }
  .footer-col a {
    font-size: 12px;
    color: var(--text-secondary);
  }
  .footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .footer-bottom {
    padding: 24px 56px;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-muted);
  }

  /* Utility helpers */
  .max-w-content { max-width: 720px; }
  .mx-auto { margin-left: auto; margin-right: auto; }
  .text-center { text-align: center; }
  .text-secondary { color: var(--text-secondary); }
  .stack-md > * + * { margin-top: 16px; }
  .stack-lg > * + * { margin-top: 24px; }
  .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; }
  .mt-7 { margin-top: 28px; } .mt-8 { margin-top: 32px; }
  .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; }
  .mb-tag { margin-bottom: 12px; }
  .gap-3 { gap: 12px; }
  .flex { display: flex; }
  .items-center { align-items: center; }
  .flex-col { flex-direction: column; }

/* The small label above a page's main heading sits inside the <h1>, so the
   heading carries the search term the page is about. */
.h1-kicker { display: block; margin-bottom: 16px; letter-spacing: normal; line-height: 1.55; }

/* Guides and Compare hub pages */
.hub-sec { padding: 40px 28px 56px; display: grid; gap: 20px; }
.hub-card { display: block; text-decoration: none; transition: background 0.2s ease; }
.hub-card:hover, .hub-card:focus-visible { background: var(--bg-hover, rgba(127,127,127,0.06)); }
.hub-card h3::after { content: " \2192"; opacity: 0.5; }

/* ============================================================
   Homepage: Speed (reports) and Files scenes
   ============================================================ */
.speed-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 28px; background: var(--border-base); border: 1px solid var(--border-base); border-radius: 14px; overflow: hidden; }
.speed-stats > div { background: var(--color-primary); padding: 18px 18px 20px; display: grid; gap: 6px; align-content: start; }
.speed-stats b { font: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -0.01em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.speed-stats span { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.speed-stats > div:only-child, .speed-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.speed-note { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }

.sp-q { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-base); border-radius: 10px; font-size: 13px; color: var(--text-primary); }
.sp-q svg { width: 15px; height: 15px; color: var(--text-muted); flex: none; }
.sp-q.run { border-color: rgba(63,182,139,0.55); }
.sp-meter { display: grid; gap: 7px; }
.sp-meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--text-muted); }
.sp-meter-top b { font: var(--font-code); font-size: 11px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.sp-meter-top b[data-sp-time] { color: #3fb68b; }
.sp-track { height: 4px; border-radius: 4px; background: var(--border-base); overflow: hidden; }
.sp-track i { display: block; height: 100%; background: #3fb68b; transform-origin: left center; }
.sp-table { display: grid; min-height: 232px; align-content: start; }
.sp-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 2px 12px; border-bottom: 1px solid var(--border-base); font-size: 13px; }
.sp-row:last-child { border-bottom: 0; }
.sp-name small { display: block; margin-top: 2px; font-size: 11px; color: var(--text-muted); }
.sp-val { font: var(--font-code); font-size: 12px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.sp-bar { position: absolute; left: 2px; right: 2px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(63,182,139,0.55); transform-origin: left center; }

.fl-total { margin-left: auto; font: var(--font-code); font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fl-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.fl-goto { padding: 5px 10px; border: 1px solid var(--border-base); border-radius: 8px; color: var(--text-muted); }
.fl-goto b { font: var(--font-code); font-size: 12px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.fl-goto.on { border-color: rgba(63,182,139,0.55); }
.fl-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(63,182,139,0.45); color: #3fb68b; font-size: 11.5px; opacity: 0; }
.fl-time { margin-left: auto; font: var(--font-code); font-size: 11px; color: #3fb68b; font-variant-numeric: tabular-nums; }
.fl-grid { border: 1px solid var(--border-base); border-radius: 10px; overflow: hidden; }
.fl-rows { display: grid; min-height: 248px; align-content: start; position: relative; }
.fl-row { display: grid; grid-template-columns: 74px 0.9fr 1.3fr 0.6fr; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--border-base); font-size: 12px; color: var(--text-primary); }
.fl-rows .fl-row:last-child { border-bottom: 0; }
.fl-head { font-size: 11px; color: var(--text-muted); background: rgba(127,127,127,0.06); }
.fl-n { font: var(--font-code); font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fl-mono { font: var(--font-code); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fl-st { justify-self: start; font-size: 11px; }
.fl-st.ok { color: #3fb68b; }
.fl-st.off { color: var(--text-muted); }
.fl-sort { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0; }
.fl-foot { font: var(--font-code); font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .fl-row { grid-template-columns: 64px 0.9fr 1.2fr 0.5fr; gap: 6px; padding: 7px 8px; font-size: 11px; }
  .speed-stats b { font-size: 28px; }
}
