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

  /* iOS-style continuous (squircle) corners on every rounded RECTANGLE, to
     match the 60% corner-smoothing in Figma. Progressive enhancement: browsers
     without `corner-shape` just render the normal border-radius. Circles,
     capsules/pills, spinners and the organic blob shapes are kept as true
     arcs (round) below, since iOS only smooths rounded rectangles. */
  *, *::before, *::after { corner-shape: squircle; }
  .badge, .badge .dot, .win-dots i, .portal-url, .portal-live-dot, .portal-avatar,
  .app-check, .section-icon, .challenge-num, .solution-bullets li::before,
  .solution-pane-left::before, .solution-pane-left::after, .book::before, .book::after,
  .scan-status, .scan-spin, .scan-pill, .pv-cc-avatar, .pv-cc-tick, .pv-cred,
  .pv-w-avatar, .pv-w-spin, .pv-w-badge, .si-spin, .portal-badge,
  .benefits-bullets li::before, .df-success-icon,
  .hero-blob::before, .hero-blob-green::before, .hero h1 .accent::before {
    corner-shape: round;
  }

  :root {
    --midnight: #0B1223;
    --blue: #3B5BF5;
    --blue-glow: rgba(59, 91, 245, 0.12);
    --blue-deep: #2842c8;
    --ivory: #ffffff;   /* trial: pure white background (was off-white #FAF8F4) */
    --cream: #FAF8F4;   /* warm panel tint, lightened to sit better on the white bg */
    --warm: #E8E3DA;
    --gold: #C9A96E;
    --amber: #F59E0B;
    --amber-deep: #D97706;
    --purple: #7C5CF5;
    --purple-glow: rgba(124, 92, 245, 0.12);
    --text: #0A0A0A;
    --text-muted: #0A0A0A;
    --white: #ffffff;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 8px;             /* one panel radius across the page */
  }
 
  html { scroll-behavior: smooth; overflow-x: clip; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--ivory);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: -0.018em;
    overflow-x: clip;
  }
  body::after {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
  }
  img { display: block; max-width: 100%; }
  a { text-decoration: none; color: inherit; }

  /* Avoid orphaned (single-word) last lines as the viewport changes: balance
     short headings, and let body copy reflow to keep the last line company. */
  h1, h2, h3,
  .badge, .eyebrow,
  .change-card h3, .challenge-heading, .solution-title,
  .benefits-row-heading, .benefits-intro-heading { text-wrap: balance; }
  p, li, blockquote,
  .subtitle, .lede, .change-card p { text-wrap: pretty; }
 
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.875rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
    letter-spacing: -0.2px; border-radius: var(--radius);
  }
  /* Transparent border so the filled button matches the outlined button's box
     height (the 1.5px border would otherwise make the outlined one taller). */
  .btn-primary { padding: 11px 22px; background: var(--blue); color: #fff; border: 1px solid transparent; }
  .btn-primary:hover { background: var(--blue-deep); }
  .btn-secondary { padding: 11px 22px; background: transparent; color: var(--text); border: 1px solid rgba(11,18,35,0.2); }
  .btn-secondary:hover { background: rgba(59,91,245,0.1); border-color: var(--blue); color: var(--blue); }
  .btn-sm { padding: 8px 18px; }
 
  /* Nav */
  #nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 40px; transition: all 0.4s var(--ease); }
  /* Scrolled: a white + blurred layer behind the bar that fades out smoothly
     (no hard cut-off line). A mask feathers BOTH the white tint and the blur,
     with the midpoint near the top edge, so content blurs/fades as it scrolls
     under and clears quickly below. The layer sits behind the nav content. */
  #nav.scrolled { padding: 14px 40px; }
  #nav.scrolled::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0;
    height: calc(100% + 44px);
    z-index: -1; pointer-events: none;
    background: #ffffff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.86) 12%, rgba(0,0,0,0.5) 28%, rgba(0,0,0,0.16) 56%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.86) 12%, rgba(0,0,0,0.5) 28%, rgba(0,0,0,0.16) 56%, transparent 100%);
  }
  .nav-inner { max-width: 1600px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
  .logo { flex-shrink: 0; }
  .logo img { height: 24px; width: auto; }
  .nav-actions { display: flex; align-items: center; gap: 12px; }

  /* Share button: text pill on desktop, compact circular icon on mobile */
  .share-btn { gap: 7px; }
  .share-btn .ic { width: 16px; height: 16px; display: none; }
  /* Match the share glyph's stroke to the circular container's 1.5px outline
     (non-scaling-stroke keeps it 1.5px regardless of the icon's size). */
  .share-btn .ic-share path { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }
 
  /* Hero */
  .hero {
    position: relative;
    /* Full-viewport-width (so the blobs stay full-bleed) with the content
       capped at 1600 and centred. Edges line up with the nav + footer
       (nav/footer use 40px padding + a 1600 inner). Reduced side margins. */
    width: 100%;
    /* min-height grows (in JS) so the whole mockup fits: on first load it
       peeks from the bottom-right, and a short scroll reveals the rest before
       the next section. */
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: start; gap: 64px;
    padding: 0 max(40px, (100% - 1600px) / 2);
  }
  /* Copy is centred in the first viewport-height (not the taller hero), so it
     stays vertically centred on load. The visual column hugs the top (empty;
     the mockup is positioned against the hero). */
  .hero-copy { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  /* Full-bleed background layer for the blobs, end to end across the viewport */
  .hero-bg {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100vw; height: 100vh;
    /* No clip here: the blobs are allowed to bleed past the hero edges and fade out
       via their blur. Horizontal overflow is already contained by body{overflow-x:hidden}. */
    overflow: visible;
    z-index: 0;
    pointer-events: none;
  }
  /* Decorative comets: a faint streak (bright head, fading tail) draws itself
     along an arc across the upper hero, one at a time, echoing the rings in the
     footer / problem sections. The arc paths are set per-comet in JS (responsive)
     and kept high so they never look cut off at the bottom. Non-interactive. */
  .hero-arcs {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100vw; height: 100vh;
    overflow: hidden; pointer-events: none; z-index: 0;
  }
  .hero-arcs-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hero-copy { position: relative; z-index: 2; }
  .badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--white); border: 1px solid var(--warm);
    border-radius: 50px; padding: 8px 16px;
    font-size: 0.875rem; font-weight: 600; color: var(--text);
    margin-bottom: 26px;
  }
  .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
  .hero h1 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.04em; color: var(--text); margin-bottom: 30px; }
  .hero h1 .accent { color: var(--blue); position: relative; white-space: nowrap; }
  .hero h1 .accent::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -0.1em; right: -0.12em;
    bottom: 0.04em; height: 0.62em;
    background: rgba(59, 91, 245, 0.18);
    border-radius: 0.5em 0.8em 0.45em 0.7em / 0.7em 0.5em 0.8em 0.55em;
    transform-origin: left center;
    transform: rotate(-1.4deg) scaleX(0);
  }
  .hero .subtitle { font-size: 1rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 44px; max-width: 500px; }
  .cta-pair { display: flex; gap: 14px; flex-wrap: wrap; }
 
  /* Hero visual: positioning context for the mockup (kept empty in flow so the
     mockup is anchored against the hero, top-right). */
  .hero-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  /* Floating blobs, behind everything (cursor-driven) */
  .hero-blob, .hero-blob-green {
    pointer-events: none;
    will-change: transform;
  }
  /* The outer element carries position + the JS cursor-drift transform; the
     ::before carries the soft blob shape, which morphs + rotates on its own
     (lava-lamp) without fighting the cursor transform. */
  /* Green is the larger blob (~60%) on the right; blue (~40%) sits lower-left. */
  .hero-blob {
    position: absolute;
    top: 62%; left: 26%;
    width: 520px; height: 520px;
    margin-left: -260px; margin-top: -260px;
    z-index: 0;
  }
  .hero-blob-green {
    position: absolute;
    top: 46%; left: 76%;
    width: 800px; height: 800px;
    margin-left: -400px; margin-top: -400px;
    z-index: 0;
  }
  .hero-blob::before, .hero-blob-green::before {
    content: '';
    position: absolute; inset: 0;
    filter: blur(76px);
    will-change: border-radius, transform;
  }
  .hero-blob::before {
    background: rgba(59, 91, 245, 0.2);
    border-radius: 38% 62% 63% 37% / 41% 38% 62% 59%;
  }
  .hero-blob-green::before {
    background: rgba(14, 158, 120, 0.2);
    border-radius: 63% 37% 33% 67% / 56% 64% 36% 44%;
  }

  /* Provider portal — a windowed dashboard, contained on screen.
     Framed like an app window (mac chrome + page header), not a device. */
  /* Fixed-size composition: dashboard (left) + phone (right), overlapping,
     both vertically centred, phone taller. The whole lockup is scaled by JS
     to fit — ~1.2x on desktop (right edge at the Book button) and scaled to
     fill the content width on mobile. Keeping it one fixed composition means
     the arrangement / overlap / size-relationship is identical at every size. */
  .hero-mock {
    position: absolute; top: 0; right: 0;   /* top + scale are set in JS */
    width: 560px; height: 479px;
    transform-origin: 100% 0;   /* scale grows down + left from the top-right */
  }
  .portal {
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 512px;
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: var(--radius);
    overflow: hidden;
  }
  /* Mac-style chrome: just window controls + a faint address */
  .portal-chrome { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-bottom: 1px solid rgba(11,18,35,0.06); }
  .win-dots { display: inline-flex; gap: 6px; }
  .win-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(11,18,35,0.13); }
  .portal-url { margin: 0 auto; font-size: 0.65625rem; color: var(--text-muted); opacity: 0.55; background: rgba(11,18,35,0.04); padding: 3px 16px; border-radius: 50px; }
  /* Page header inside the dashboard, above the stats */
  .portal-header { display: flex; align-items: center; gap: 9px; padding: 15px 20px; border-bottom: 1px solid rgba(11,18,35,0.06); }
  .portal-mark {
    width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
    background: rgba(100, 116, 139, 0.12);
    display: flex; align-items: center; justify-content: center;
  }
  .portal-mark svg { width: 15px; height: 15px; stroke: #64748B; stroke-width: 1.9; fill: none; }
  .portal-title { font-size: 0.875rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
  .portal-live { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.6875rem; font-weight: 600; color: #0E9E78; }
  .portal-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #0E9E78; }

  .portal-body { display: block; }
  .portal-main { width: 100%; }

  .portal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(11,18,35,0.06); border-bottom: 1px solid rgba(11,18,35,0.06); }
  .portal-stat { background: var(--white); padding: 17px 18px; }
  .portal-stat-num { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
  .portal-stat-num.amber { color: #C97C0A; }
  .portal-stat-label { font-size: 0.65625rem; color: var(--text-muted); margin-top: 5px; line-height: 1.3; }

  .portal-section { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); padding: 15px 20px 4px; }
  .portal-list { list-style: none; margin: 0; padding: 0; }
  .portal-row { display: flex; align-items: center; gap: 11px; padding: 12px 20px; border-top: 1px solid rgba(11,18,35,0.06); transition: background 0.4s var(--ease); }
  .portal-row:first-child { border-top: none; }
  .portal-row.flagged { background: rgba(201,124,10,0.04); }
  .portal-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: var(--blue-glow); color: var(--blue);
    font-size: 0.65625rem; font-weight: 600; letter-spacing: 0.2px;
    display: flex; align-items: center; justify-content: center;
  }
  .portal-avatar.amber { background: rgba(201,124,10,0.1); color: #C97C0A; }
  .portal-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .portal-row-name { font-size: 0.78125rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
  .portal-row-detail { font-size: 0.6875rem; color: var(--text-muted); }
  .portal-row-detail.amber { color: #C97C0A; font-weight: 600; }
  .portal-status { margin-left: auto; flex-shrink: 0; }
  .portal-pending { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); }
  .portal-badge { display: inline-block; font-size: 0.65625rem; font-weight: 600; padding: 3px 9px; border-radius: 50px; white-space: nowrap; }
  .portal-badge.verified { background: rgba(14,158,120,0.1); color: #0E9E78; }
  .portal-badge.flagged { background: rgba(201,124,10,0.1); color: #C97C0A; }
  .portal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid rgba(11,18,35,0.06); background: rgba(11,18,35,0.02); font-size: 0.6875rem; color: var(--text-muted); }
  .portal-foot svg { width: 14px; height: 14px; stroke: var(--text-muted); flex-shrink: 0; }
  .portal-foot strong { font-weight: 600; }
  .portal-foot .ok { color: #0E9E78; }
  .portal-foot .flag { color: #C97C0A; }

  /* Handoff: Sarah's row flips from "Checking in…" to Verified as the device feeds the portal */
  .portal-row.handoff-done { background: rgba(14,158,120,0.06); }

  /* Contractor's device — a bezel-less mobile window overlapping the dashboard's
     right edge, standing taller than the dashboard (per the Figma mockup). */
  .phone {
    position: absolute;
    right: 0; left: auto; top: 50%;
    transform: translateY(-50%);
    width: 248px; height: 530px;
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 3;
    display: flex; flex-direction: column;
  }
  /* Faint mobile chrome, mirroring the dashboard's window chrome */
  .phone-chrome { flex: none; padding: 7px 11px 5px; }
  .phone-statusbar { display: flex; align-items: center; justify-content: space-between; height: 8px; margin-bottom: 6px; }
  .psb-clock { width: 17px; height: 5px; border-radius: 2.5px; background: rgba(11,18,35,0.16); }
  .psb-right { display: flex; align-items: center; gap: 3px; }
  .psb-wifi { width: 9px; height: 7px; border-radius: 2px 2px 2px 0; background: rgba(11,18,35,0.16); }
  .psb-batt { width: 15px; height: 7px; border-radius: 2.5px; background: rgba(11,18,35,0.12); position: relative; }
  .psb-batt::after { content: ''; position: absolute; right: -2.5px; top: 2px; width: 2px; height: 3px; border-radius: 0 1px 1px 0; background: rgba(11,18,35,0.12); }
  .phone-addressbar { height: 14px; border-radius: 7px; background: rgba(11,18,35,0.05); }
  .phone-screen { position: relative; flex: 1 1 auto; overflow: hidden; background: #F8FAFC; }
  .phone-track { display: flex; width: 500%; height: 100%; }
  .phone-slide { flex: 0 0 20%; width: 20%; height: 100%; }
  /* Coded worker-app screens (crisp at any size, all Inter) — a simplified flow:
     welcome, mobile number, checked in, notes + photo. Subtext is drawn as lines
     so the eye lands on the key labels and the contractor / resident names. */
  .app-screen { width: 100%; height: 100%; background: #F8FAFC; padding: 16px 15px 15px; display: flex; flex-direction: column; font-family: 'Inter', sans-serif; }
  .app-logo { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
  .app-logo-mark { width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
  .app-logo-word { font-size: 0.78rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
  .app-h1 { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); margin-bottom: 12px; }
  .app-lines { display: flex; flex-direction: column; gap: 7px; }
  .app-lines .ln, .app-note .ln { height: 5px; border-radius: 3px; background: rgba(11,18,35,0.1); }
  .ln.w100 { width: 100%; } .ln.w95 { width: 95%; } .ln.w90 { width: 90%; } .ln.w80 { width: 80%; } .ln.w70 { width: 70%; } .ln.w55 { width: 55%; }
  .app-spacer { flex: 1 1 auto; min-height: 12px; }
  /* Soft neutral slate (not the brand blue, and softer than near-black) so it
     reads as part of the app mockup rather than another clickable page CTA. */
  .app-btn { background: #767E8C; color: #fff; text-align: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em; padding: 11px; border-radius: 11px; }
  .app-field { border: 1px solid var(--warm); background: #fff; border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; }
  .app-field-label { font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--blue); }
  .app-field-val { font-size: 0.8125rem; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; }
  .app-caret { display: inline-block; width: 1.5px; height: 0.95em; margin-left: 2px; background: var(--blue); border-radius: 1px; }
  .app-check { width: 38px; height: 38px; border-radius: 50%; background: rgba(14,158,120,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
  .app-check svg { width: 18px; height: 18px; stroke: #0E9E78; }
  .app-rows { display: flex; flex-direction: column; }
  .app-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(11,18,35,0.06); }
  .app-row:last-child { border-bottom: none; }
  .app-row-k { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); opacity: 0.6; }
  .app-row-v { font-size: 0.78rem; font-weight: 600; color: var(--text); text-align: right; }
  .app-note { border: 1px solid var(--warm); background: #fff; border-radius: 9px; padding: 11px; display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
  .app-attach { display: flex; align-items: center; gap: 7px; border: 1px dashed rgba(59,91,245,0.45); color: var(--blue); border-radius: 9px; padding: 9px 11px; font-size: 0.75rem; font-weight: 600; }
  .app-attach svg { width: 14px; height: 14px; stroke: var(--blue); flex-shrink: 0; }

  /* Hero entrance + ambient animations */
  @media (prefers-reduced-motion: no-preference) {
    /* Portal & phone are transform-centred (translateY(-50%)) and live inside a
       JS-scaled wrapper, so their entrance is opacity-only to avoid fighting
       those transforms. */
    @keyframes mockFade {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }
    @keyframes markerSweep {
      from { transform: rotate(-1.4deg) scaleX(0); }
      to { transform: rotate(-1.4deg) scaleX(1); }
    }
    @keyframes phoneTrack {
      0%, 20% { transform: translateX(0); }
      23%, 45% { transform: translateX(-20%); }
      48%, 70% { transform: translateX(-40%); }
      73%, 95% { transform: translateX(-60%); }
      98%, 100% { transform: translateX(-80%); }
    }
    /* Slow organic blob morph + rotation, like a lava lamp */
    @keyframes blobMorph {
      0%, 100% { border-radius: 38% 62% 63% 37% / 41% 38% 62% 59%; transform: rotate(0deg) scale(1); }
      25% { border-radius: 62% 38% 41% 59% / 57% 63% 37% 43%; transform: rotate(90deg) scale(1.07); }
      50% { border-radius: 47% 53% 68% 32% / 38% 47% 53% 62%; transform: rotate(180deg) scale(0.96); }
      75% { border-radius: 58% 42% 34% 66% / 63% 37% 63% 37%; transform: rotate(270deg) scale(1.05); }
    }

    .portal { animation: mockFade 0.8s var(--ease) 0.2s both; }
    .phone { animation: mockFade 0.9s var(--ease) 0.5s both; }
    .phone-track { animation: phoneTrack 22s var(--ease) infinite; }
    .portal-live-dot { animation: pulse 2s ease-in-out infinite; }
    .hero h1 .accent::before { animation: markerSweep 1.05s var(--ease) 1.1s forwards; }
    .hero-blob::before { animation: blobMorph 28s ease-in-out infinite; }
    .hero-blob-green::before { animation: blobMorph 36s ease-in-out infinite reverse; }
  }
  @media (prefers-reduced-motion: reduce) {
    .portal, .phone { opacity: 1; transform: translateY(-50%); }
    .phone-track { transform: translateX(0); }
    .hero h1 .accent::before { transform: rotate(-1.4deg) scaleX(1); }
  }
 
  /* Section */
  .section { padding: 80px 40px; }
  .section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
  .eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; text-transform: capitalize; color: var(--blue); display: block; margin-bottom: 16px; }
  .section-head h2 { font-size: clamp(1.5625rem, 3.6vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; color: var(--text); }
  .section-head .lede { font-size: 1rem; color: var(--text-muted); margin-top: 16px; line-height: 1.5; }
 
  /* What changed */
  .change-grid { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .change-card {
    background: var(--white); border: 1px solid var(--warm); border-radius: var(--radius); padding: 19px 20px;
    transition: transform 0.4s var(--ease);
  }
  .change-card:hover { transform: translateY(-3px); }
  .change-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--purple-glow); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
  /* Stroke widths are set in the icons' own units so they RENDER at ~2px (the
     viewBox is 24): 2 / (size/24). Done this way rather than non-scaling-stroke
     so the draw-on animation (stroke-dasharray from getTotalLength) still fills
     the whole path. 27px -> 1.78, 36px -> 1.33. */
  .change-icon svg { width: 27px; height: 27px; stroke: var(--purple); fill: none; stroke-width: 1.78px; }
  /* Section icon: a larger hand-drawn line icon in a soft purple circle,
     centred above the section heading. */
  .section-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--purple-glow); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
  .section-icon svg { width: 36px; height: 36px; stroke: var(--purple); fill: none; stroke-width: 1.33px; }
  /* Icon containers fade (+ gentle pop) in first; the line strokes are then
     drawn inside them (sequenced in the line-draw JS). Gated to no-preference
     so reduced-motion users just see the finished icon. */
  @media (prefers-reduced-motion: no-preference) {
    .change-icon, .section-icon { opacity: 0; transform: scale(0.85); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
    .change-icon.icon-in, .section-icon.icon-in { opacity: 1; transform: none; }
  }
  .section-icon.amber { background: rgba(217,119,6,0.1); }
  .section-icon.amber svg { stroke: var(--amber-deep); }
  .section-icon.green { background: rgba(14,158,120,0.12); }
  .section-icon.green svg { stroke: #0E9E78; }
  .section-icon.blue { background: var(--blue-glow); }
  .section-icon.blue svg { stroke: var(--blue); }
  .change-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.026em; line-height: 1.25; color: var(--text); margin-bottom: 9px; }
  .change-card p { font-size: 1rem; line-height: 1.55; color: var(--text-muted); }
 
  /* Quotes */
  .challenges-list { max-width: 920px; margin: 0 auto; }
  /* Two equal columns with no gap, so the split (and the amber divider on the
     right column) lands exactly on the centred list's midline = page centre.
     Padding on each side keeps the text off the divider. align-items:start
     keeps the number, heading and quote on one horizontal line per row. */
  .challenge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; padding: 36px 0; border-top: 1px solid var(--warm); }
  .challenge-left { display: flex; align-items: flex-start; gap: 16px; padding-right: 44px; }
  /* Number circle vertically centred against the heading, while the heading
     itself stays top-aligned with the quote (the row is align-items:start). */
  .challenge-num { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #fff; font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: center; }
  .challenge-heading { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.026em; line-height: 1.3; color: var(--text); }
  .challenge-right { border-left: 3px solid var(--amber); padding-left: 28px; }
  .challenge-right blockquote { font-size: 1rem; font-style: italic; line-height: 1.5; color: var(--text); margin-bottom: 12px; }
  .challenge-right cite { font-style: normal; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
 
  /* Pull quote */
  .pullquote { background: var(--cream); padding: 80px 40px; }
  /* Left-aligned so the line width never shifts as the quote types out; the
     opening mark sits above the text and the closing mark trails the last line. */
  .pullquote-inner { max-width: 760px; margin: 0 auto; text-align: left; }
  .pq-mark { color: var(--blue); line-height: 0; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
  .pq-mark svg { width: 28px; height: 28px; display: inline-block; }
  .pq-open { display: block; margin-bottom: 14px; }
  .pq-open svg { transform: rotate(180deg); }
  .pq-quote { font-size: clamp(1.375rem, 2.8vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.04em; color: var(--text); text-wrap: pretty; }
  .pq-text .ch { opacity: 0; }
  .pq-text .ch.on { opacity: 1; }
  .pq-cursor {
    display: inline-block; width: 3px; height: 0.95em; border-radius: 1px;
    background: var(--blue); vertical-align: -0.1em; margin-left: 2px;
    opacity: 0; transition: opacity 0.3s var(--ease);
  }
  @keyframes pqBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
  .pq-cursor.blink { animation: pqBlink 0.9s step-end infinite; }
  .pullquote cite { display: block; margin-top: 18px; text-align: left; font-style: normal; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
 
  /* Solution blocks */
  .solution-blocks { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
  .solution-block {
    display: grid; grid-template-columns: 1fr 2fr;
    background: var(--white); border: 1px solid var(--warm); border-radius: var(--radius); overflow: hidden;
  }
  .solution-pane-left { position: relative; overflow: hidden; background: var(--cream); border-right: 1px solid var(--warm); padding: 36px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
  /* Faint amber rings behind the problem statement only (same treatment as the
     dark footer), a different arrangement per block, for a little texture. */
  .solution-pane-left > * { position: relative; z-index: 1; }
  .solution-pane-left::before, .solution-pane-left::after {
    content: ''; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
    border: 1px solid rgba(217, 119, 6, 0.12);
  }
  .solution-pane-left::after { border-color: rgba(217, 119, 6, 0.08); }
  .solution-block:nth-of-type(1) .solution-pane-left::before { width: 230px; height: 230px; top: -72px; left: -84px; }
  .solution-block:nth-of-type(1) .solution-pane-left::after  { width: 140px; height: 140px; bottom: -46px; right: -40px; }
  .solution-block:nth-of-type(2) .solution-pane-left::before { width: 180px; height: 180px; top: -54px; right: -62px; }
  .solution-block:nth-of-type(2) .solution-pane-left::after  { width: 250px; height: 250px; bottom: -96px; left: -76px; }
  .solution-block:nth-of-type(3) .solution-pane-left::before { width: 264px; height: 264px; bottom: -120px; left: 28%; }
  .solution-block:nth-of-type(3) .solution-pane-left::after  { width: 124px; height: 124px; top: -42px; left: -48px; }
  .problem-pill { font-size: 0.75rem; font-weight: 600; letter-spacing: -0.2px; color: var(--amber-deep); border: 1px solid rgba(217,119,6,0.4); padding: 4px 12px; border-radius: var(--radius); }
  .solution-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.026em; line-height: 1.3; color: var(--text); }
  .solution-pane-right { padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
  .solves-pill { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: -0.2px; color: var(--blue); background: var(--blue-glow); padding: 5px 12px; border-radius: var(--radius); }
  .solution-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .solution-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; color: var(--text-muted); }
  .solution-bullets li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 8px; }
 
  /* Scanner (Problem 3): invoice reconciliation on a clean white card */
  .scanner {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: var(--white); border: 1px solid var(--warm);
  }
  /* Single scan line (matches the QR scanner), sweeping the invoice once. */
  /* Flat scan line: a clean 2px brand-blue rule that tapers at the ends, no
     glow/blur — consistent with the flat UI (see also .pv-scan-line). */
  .scan-line {
    position: absolute; left: 10px; right: 10px; top: 0; height: 2px; pointer-events: none; z-index: 4;
    background: linear-gradient(90deg, transparent, rgba(59,91,245,0.85), transparent);
    border-radius: 2px; opacity: 0;
  }
  /* Status pill — the white "Reconciling…" pill (blue spinner) is replaced by a
     green "Reconciled" pill sitting alongside the matched / flagged summary. */
  .scan-status {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    box-sizing: border-box; height: 28px;
    font-size: 0.6875rem; font-weight: 600; letter-spacing: -0.2px;
    padding: 0 12px; border-radius: 50px;
  }
  .scan-status-go { position: absolute; top: 12px; left: 12px; z-index: 5; opacity: 0; background: #fff; color: var(--text); border: 1px solid var(--warm); box-shadow: 0 1px 4px rgba(11,18,35,0.06); }
  .scan-status-go.show { opacity: 1; }
  /* Reconciled pill — shows the check + label, then collapses to a check circle. */
  .scan-status-done { gap: 0; background: #0E9E78; color: #fff; border: 1px solid #0E9E78; }
  .scan-status-done svg { width: 12px; height: 12px; stroke: #fff; flex-shrink: 0; }
  .scan-done-label { margin-left: 7px; max-width: 120px; overflow: hidden; white-space: nowrap; }
  .scan-status-done.collapsed { padding: 0 7px; }   /* 12(check)+14(pad)+2(border)=28 = height -> full circle */
  .scan-status-done.collapsed .scan-done-label { max-width: 0; margin-left: 0; opacity: 0; }
  .scan-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(59,91,245,0.25); border-top-color: var(--blue); flex-shrink: 0; }
  /* The reconciled state: the green check (collapsed from the pill) + two
     summary pills, grouped top-left. The pills only take up space once the
     pill has collapsed, so the row stays narrow until then (and on mobile). */
  .scan-summary { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; align-items: center; gap: 6px; opacity: 0; }
  .scan-summary.show { opacity: 1; }
  .scan-pill { font-size: 0.6875rem; font-weight: 600; letter-spacing: -0.2px; border-radius: 50px; max-width: 0; padding: 5px 0; border: 1px solid transparent; overflow: hidden; white-space: nowrap; opacity: 0; }
  .scan-summary.expanded .scan-pill { max-width: 120px; padding: 5px 11px; opacity: 1; }
  .scan-pill.ok { background: rgba(14,158,120,0.12); color: #0a7d5f; }
  .scan-summary.expanded .scan-pill.ok { border-color: rgba(14,158,120,0.28); }
  .scan-pill.flag { background: rgba(201,124,10,0.12); color: #b3760a; }
  .scan-summary.expanded .scan-pill.flag { border-color: rgba(201,124,10,0.3); }

  @media (prefers-reduced-motion: no-preference) {
    /* The sweep + per-line resolution is driven by JS (so Replay can re-run it);
       these rules supply the transitions and the line/spinner/pop keyframes. */
    @keyframes siScan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes siPop {
      0% { opacity: 0; transform: translate(-50%,-50%) scale(0.4); }
      55% { opacity: 1; transform: translate(-50%,-50%) scale(1.18); }
      100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    }
    @keyframes glowFlash { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
    .scan-spin { animation: spin 0.8s linear infinite; }
    .scan-status-go, .scan-summary { transition: opacity 0.45s var(--ease); }
    .scan-status-done { transition: padding 0.4s var(--ease); }
    .scan-done-label { transition: max-width 0.4s var(--ease), margin-left 0.4s var(--ease), opacity 0.3s var(--ease); }
    .scan-pill { transition: max-width 0.4s var(--ease), padding 0.4s var(--ease), opacity 0.35s var(--ease), border-color 0.3s var(--ease); }
    .scanner.scan-go .scan-line { animation: siScan 3.4s linear forwards; }
    .si-anim { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
    .si-anim.in { opacity: 1; transform: none; }
    .si-spin { animation: spin 0.8s linear infinite; }
    .si-st.matched .si-check { animation: siPop 0.45s var(--ease) forwards; }
    .si-st.flagged .si-flag-ic { animation: siPop 0.45s var(--ease) forwards; }
    .si-flag-note { transition: opacity 0.5s var(--ease); }
    .si-row-flag.resolved .si-flag-glow { opacity: 1; animation: glowFlash 1.7s ease-in-out infinite; }
  }
  @media (prefers-reduced-motion: reduce) {
    .scan-line { display: none; }
    .si-anim { opacity: 1; transform: none; }
    .si-spin { display: none; }
    .si-check, .si-flag-ic { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    .si-flag-note { opacity: 1; }
    .si-flag-glow { opacity: 1; }
    .scan-status-go { display: none; }
    .scan-summary { opacity: 1; }
  }
  /* Book */
  .book {
    position: relative; background: var(--midnight);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 40px 72px; overflow: hidden;
  }
  .book::before, .book::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.08); }
  .book::before { width: 600px; height: 600px; top: -280px; right: -160px; }
  .book::after { width: 460px; height: 460px; bottom: -240px; left: -140px; border-color: rgba(255,255,255,0.06); }
  .book-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; text-align: center; }
  /* Zipline wireframe cube that constructs itself above the heading: a centred
     square draws, extrudes out from the centre into a cube, then the face
     diagonals draw (JS timeline). Click to replay. Reduced-motion shows the
     finished cube. */
  .book-mark { display: flex; justify-content: center; margin-bottom: 22px; cursor: pointer; }
  .book-mark svg { height: 60px; width: 60px; display: block; overflow: visible; }
  .book-mark .zsq, .book-mark .zdiag, .book-mark .zc {
    fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  /* Face diagonals terminate exactly on their corner vertices: a butt cap stops
     the stroke at the endpoint instead of a round cap overshooting past it. */
  .book-mark .zdiag { stroke-linecap: butt; }
  .book .eyebrow { color: var(--gold); }
  .book h2 { font-size: clamp(1.5625rem, 3.6vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; color: #fff; margin-bottom: 8px; }
  .book p { font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,0.65); margin-bottom: 34px; }
  .book .cta-pair { justify-content: center; }
  .book .btn-primary { background: #fff; color: var(--text); }
  .book .btn-primary:hover { background: var(--blue); color: #fff; }
  .book .btn-secondary { border-color: rgba(255,255,255,0.3); color: #fff; }
  .book .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; }
  .book-trust { margin-top: 28px; font-size: 0.875rem; color: rgba(255,255,255,0.35); }
 
  /* Footer — matched to the top nav bar height (79px), content vertically centred. */
  footer { background: var(--midnight); border-top: 1px solid rgba(255,255,255,0.06); padding: 0 40px; min-height: 79px; display: flex; align-items: center; }
  .footer-inner { width: 100%; max-width: 1600px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .footer-inner .flogo img,
  .footer-inner .flogo svg { display: block; height: 20px; width: auto; opacity: 0.5; transition: opacity 0.3s var(--ease); }
  .footer-inner .flogo:hover img,
  .footer-inner .flogo:hover svg { opacity: 0.8; }
  /* One line on desktop (the two parts flow inline); they stack into two lines
     only on mobile. text-wrap:pretty keeps the wrapped sentence from orphaning
     a single word. */
  .footer-note { font-size: 0.875rem; color: rgba(255,255,255,0.3); text-wrap: pretty; }
  /* LinkedIn icon matches the Z mark: white, same size, same idle/hover opacity. */
  .socials { display: flex; align-items: center; gap: 18px; }
  .socials a { display: inline-flex; color: #fff; opacity: 0.5; transition: opacity 0.3s var(--ease); }
  .socials a:hover { opacity: 0.8; }
  .socials svg { width: 20px; height: 20px; fill: currentColor; display: block; }
 
  /* Reveal */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes revealUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
    .reveal { opacity: 0; }
    .reveal.visible { animation: revealUp 0.9s var(--ease) forwards; }
    .reveal-d1.visible { animation-delay: 0.08s; }
    .reveal-d2.visible { animation-delay: 0.16s; }
    .reveal-d3.visible { animation-delay: 0.24s; }
    .reveal-d4.visible { animation-delay: 0.32s; }
  }
 
 
  /* Problem visuals shared */
  .prob-visual {
    background: var(--white);
    border: 1px solid var(--warm);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Stepped reveal primitive shared by the problem mockups (JS adds .in). */
  .prob-anim .pv-step { opacity: 0; transform: translateY(6px); }

  /* Replay control — sits just below each mockup, quiet and left-aligned. */
  .replay-btn {
    display: inline-flex; align-items: center; gap: 6px; margin-top: -10px; align-self: flex-start;
    background: none; border: none; padding: 2px 0; cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: -0.1px;
    color: #5a5f6b; transition: color 0.2s var(--ease), opacity 0.3s var(--ease);
    /* Hidden until the mockup's animation has played through once (JS adds
       .ready); space is reserved so revealing it doesn't shift the layout. */
    opacity: 0; visibility: hidden;
  }
  .replay-btn.ready { opacity: 1; visibility: visible; }
  .replay-btn svg { width: 13px; height: 13px; stroke: #1a1d24; }
  .replay-btn:hover { color: #1a1d24; }

  /* Problem 1: QR check-in */
  .pv-address { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); padding: 14px 16px 10px; border-bottom: 1px solid var(--cream); }
  .pv-address svg { flex-shrink: 0; stroke: var(--blue); }
  .pv-qr-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 22px 0; background: var(--cream); }
  .pv-qr-card { position: relative; background: #fff; padding: 12px; border-radius: 10px; box-shadow: 0 2px 12px rgba(11,18,35,0.07); overflow: hidden; }
  .pv-qr { display: block; line-height: 0; }
  .pv-scan-line { position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(59,91,245,0.85), transparent); opacity: 0; z-index: 2; }
  .pv-checkin-card { padding: 14px 16px; }
  .pv-cc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .pv-cc-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-glow); color: var(--blue); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .pv-cc-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
  .pv-cc-time { font-size: 0.6875rem; color: var(--text-muted); margin-top: 1px; }
  .pv-cc-tick { width: 24px; height: 24px; border-radius: 50%; background: #0E9E78; display: flex; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0; }
  .pv-cc-creds { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
  .pv-cred { display: inline-flex; align-items: center; gap: 4px; font-size: 0.625rem; font-weight: 600; padding: 3px 8px; border-radius: 50px; background: rgba(14,158,120,0.08); color: #0E9E78; border: 1px solid rgba(14,158,120,0.2); }
  .pv-cred-check { display: inline-flex; align-items: center; justify-content: center; width: 0; opacity: 0; overflow: hidden; }
  .pv-cred-check svg { width: 9px; height: 9px; stroke: #0E9E78; }
  .pv-cred.checked .pv-cred-check { width: 10px; opacity: 1; }
  .pv-cc-pos { display: flex; align-items: center; gap: 5px; font-size: 0.6875rem; font-weight: 600; color: var(--blue); padding-top: 8px; border-top: 1px solid var(--cream); }

  /* Problem 2: compliance dashboard */
  .pv-dash-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--cream); }
  .pv-dash-title { font-size: 0.75rem; font-weight: 600; color: var(--text); }
  .pv-dash-date { font-size: 0.625rem; font-weight: 600; color: var(--text-muted); }
  .pv-dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; background: var(--cream); }
  .pv-stat { background: var(--white); border-radius: 8px; padding: 10px 12px; border: 1px solid var(--warm); }
  .pv-stat-num { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.034em; line-height: 1; margin-bottom: 3px; }
  .pv-stat-num.green { color: #0E9E78; }
  .pv-stat-num.amber { color: #C97C0A; }
  .pv-stat-label { font-size: 0.625rem; color: var(--text-muted); line-height: 1.3; }
  .pv-dash-label { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); padding: 10px 16px 4px; }
  .pv-worker-list { display: flex; flex-direction: column; }
  .pv-worker { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--cream); transition: background 0.4s var(--ease); }
  .pv-worker:last-child { border-bottom: none; }
  .pv-w-flag.resolved { background: rgba(201,124,10,0.05); }
  .pv-w-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-glow); font-size: 0.625rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
  .pv-w-flag.resolved .pv-w-avatar { background: rgba(201,124,10,0.12); color: #C97C0A; }
  .pv-w-info { min-width: 0; }
  .pv-w-name { font-size: 0.71875rem; font-weight: 600; color: var(--text); }
  .pv-w-detail { font-size: 0.625rem; color: var(--text-muted); margin-top: 1px; transition: color 0.3s var(--ease); }
  .pv-w-flag.resolved .pv-w-detail { color: #C97C0A; font-weight: 600; }
  .pv-w-ctrl { margin-left: auto; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: flex-end; min-width: 62px; height: 18px; }
  .pv-w-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(59,91,245,0.25); border-top-color: var(--blue); }
  .pv-w-badge { position: absolute; right: 0; font-size: 0.625rem; font-weight: 600; padding: 2px 8px; border-radius: 50px; opacity: 0; }
  .pv-w-badge.ok { background: rgba(14,158,120,0.08); color: #0E9E78; }
  .pv-w-badge.flag { background: rgba(201,124,10,0.1); color: #C97C0A; }
  .pv-w-ctrl.done .pv-w-spin { display: none; }
  .pv-w-ctrl.done .pv-w-badge { opacity: 1; }
  .pv-alert-strip { display: flex; align-items: center; gap: 7px; margin: 10px 16px 14px; padding: 8px 12px; background: rgba(201,124,10,0.07); border: 1px solid rgba(201,124,10,0.2); border-radius: 8px; font-size: 0.6875rem; font-weight: 600; color: #C97C0A; opacity: 0; transition: opacity 0.5s var(--ease); }
  .pv-alert-strip.visible { opacity: 1; }

  /* Self-contained invoice */
  .scan-invoice-bg { width: 100%; height: 100%; background: #fff; padding: 16px; font-family: 'Inter', sans-serif; overflow: hidden; }
  .si-header { display: flex; justify-content: flex-end; align-items: flex-start; margin-bottom: 12px; }
  .si-title { font-size: 0.8125rem; font-weight: 600; color: #0B1223; text-align: right; }
  .si-meta { font-size: 0.5625rem; color: #7a7a8e; text-align: right; margin-top: 2px; }
  .si-divider { height: 1px; background: #E8E3DA; margin: 8px 0; }
  /* desc | hours | amount | match-status — the status column keeps the ticks
     aligned on every line, flush within the dividers. */
  .si-table-head { font-size: 0.5rem; font-weight: 600; color: #7a7a8e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
  .si-table-head, .si-row, .si-line { display: grid; grid-template-columns: 1fr 32px 50px 34px; gap: 5px; align-items: center; }
  .si-table-head .si-st-h { text-align: center; }
  .si-row { font-size: 0.5625rem; color: #3a3a4a; padding: 5px 0; border-bottom: 1px solid #FAF8F4; opacity: 0; transform: translateY(6px); }
  .si-hrs { text-align: right; }
  .si-amt { text-align: right; font-weight: 600; }
  /* Status cell: the spinner sits in normal flow, centred by flex, so its only
     transform is the rotation (no translate to fight) and it never shifts.
     The resolved check / flag overlay it, absolutely centred. */
  .si-st { position: relative; height: 16px; display: flex; align-items: center; justify-content: center; }
  .si-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(59,91,245,0.25); border-top-color: var(--blue); }
  .si-check, .si-flag-ic {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.4); opacity: 0;
    display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  }
  .si-check svg { width: 14px; height: 14px; stroke: #0E9E78; }
  .si-flag-ic svg { width: 14px; height: 14px; fill: #C97C0A; }
  .si-st.matched .si-spin, .si-st.flagged .si-spin { display: none; }
  /* Flagged line: the discrepancy sits in bold amber beneath the service name
     (within the description cell), plus an amber highlight that overhangs the
     table edges (like a marker highlight) and flashes to draw the eye. */
  .si-row-flag { display: block; position: relative; padding: 5px 0; }
  .si-flag-glow { position: absolute; left: -12px; right: -12px; top: -2px; bottom: -2px; border: 1px solid rgba(201,124,10,0.5); background: rgba(201,124,10,0.09); border-radius: 6px; opacity: 0; pointer-events: none; z-index: 0; }
  .si-row-flag .si-line { position: relative; z-index: 1; }
  .si-row-flag .si-desc { display: flex; flex-direction: column; gap: 2px; }
  .si-flag-note { font-size: 0.5rem; font-weight: 700; color: #b3760a; letter-spacing: 0.1px; opacity: 0; }
  .si-row-flag.resolved .si-flag-note { opacity: 1; }
  .si-total { display: flex; justify-content: space-between; font-size: 0.6875rem; font-weight: 600; color: #0B1223; padding-top: 4px; }

  /* Problem-mockup reveal keyframes (JS toggles the trigger classes). */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes pvScan { 0% { top: 8px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
    @keyframes badgeFlash {
      0% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,124,10,0.5); }
      50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(201,124,10,0.08); }
      70% { box-shadow: 0 0 0 7px rgba(201,124,10,0); }
      100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,124,10,0); }
    }
    .prob-anim .pv-step { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
    .prob-anim .pv-step.in { opacity: 1; transform: none; }
    .pv-cred-check { transition: width 0.35s var(--ease), opacity 0.35s var(--ease); }
    .pv-qr-card.scanning .pv-scan-line { animation: pvScan 1.5s ease-in-out forwards; }
    /* Dashboard rows: avatar first, then info, then the status control. */
    .pv-w-anim .pv-w-avatar { opacity: 0; transform: scale(0.6); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
    .pv-w-anim .pv-w-info { opacity: 0; transform: translateX(-4px); transition: opacity 0.4s var(--ease) 0.16s, transform 0.4s var(--ease) 0.16s; }
    .pv-w-anim .pv-w-ctrl { opacity: 0; transition: opacity 0.4s var(--ease) 0.28s; }
    .pv-w-anim.in .pv-w-avatar { opacity: 1; transform: none; }
    .pv-w-anim.in .pv-w-info { opacity: 1; transform: none; }
    .pv-w-anim.in .pv-w-ctrl { opacity: 1; }
    .pv-w-spin { animation: spin 0.8s linear infinite; }
    .pv-w-flag.resolved .pv-w-badge.flag { animation: badgeFlash 1.6s ease-out infinite; }
  }
  @media (prefers-reduced-motion: reduce) {
    .prob-anim .pv-step { opacity: 1; transform: none; }
    .pv-scan-line { display: none; }
    .pv-cred-check { width: 10px; opacity: 1; }
    .pv-w-anim .pv-w-avatar, .pv-w-anim .pv-w-info, .pv-w-anim .pv-w-ctrl { opacity: 1; transform: none; }
    .pv-w-spin { display: none; }
    .pv-w-badge { opacity: 1; }
  }

  /* Benefits block */
  .benefits-section { padding: 80px 40px; background: var(--cream); border-top: 1px solid var(--warm); border-bottom: 1px solid var(--warm); }
  .benefits-intro { max-width: 1080px; margin: 0 auto 44px; }
  .benefits-intro .section-icon { margin-left: 0; margin-right: auto; }
  .benefits-intro-heading { font-size: clamp(1.5625rem, 3.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.04em; color: var(--text); line-height: 1.1; }
  .benefits-rows { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; }
  .benefits-row { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding: 36px 0; border-bottom: 1px solid var(--warm); align-items: start; }
  .benefits-row:last-child { border-bottom: none; }
  .benefits-row-heading { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.026em; color: var(--text); line-height: 1.25; margin-bottom: 9px; }
  .benefits-row-heading span { color: var(--blue); position: relative; z-index: 0; white-space: nowrap; }
  .benefits-row-heading span::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -0.1em; right: -0.12em;
    bottom: 0.04em; height: 0.62em;
    background: rgba(59, 91, 245, 0.18);
    border-radius: 0.5em 0.8em 0.45em 0.7em / 0.7em 0.5em 0.8em 0.55em;
    transform-origin: left center;
    transform: rotate(-1.4deg) scaleX(0);
  }
  @media (prefers-reduced-motion: no-preference) {
    /* Highlights sweep in as the rows reach view, staggered first -> third */
    .benefits-row.visible .benefits-row-heading span::before { animation: markerSweep 1s var(--ease) forwards; }
    .benefits-rows .benefits-row:nth-of-type(1).visible .benefits-row-heading span::before { animation-delay: 0.25s; }
    .benefits-rows .benefits-row:nth-of-type(2).visible .benefits-row-heading span::before { animation-delay: 0.65s; }
    .benefits-rows .benefits-row:nth-of-type(3).visible .benefits-row-heading span::before { animation-delay: 1.05s; }
  }
  @media (prefers-reduced-motion: reduce) {
    .benefits-row-heading span::before { transform: rotate(-1.4deg) scaleX(1); }
  }
  .benefits-row-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.5; }
  .benefits-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .benefits-bullets li { display: flex; align-items: flex-start; gap: 14px; font-size: 1rem; line-height: 1.5; color: var(--text-muted); }
  .benefits-bullets li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 8px; }
 
 
  /* Book-a-demo modal */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(11,18,35,0.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .modal-overlay.open { opacity: 1; visibility: visible; }
  .modal-card {
    position: relative;
    width: 100%; max-width: 520px;
    max-height: calc(100vh - 48px); overflow-y: auto;
    background: var(--ivory);
    border: 1px solid var(--warm);
    border-radius: var(--radius);
    padding: 38px 38px 32px;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.4s var(--ease);
  }
  .modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
  /* While the embedded scheduler is showing, widen the card and trim padding */
  .modal-card.scheduling { max-width: 720px; padding: 16px; }
  .demo-scheduler { width: 100%; }
  .demo-scheduler iframe,
  .demo-scheduler .meetings-iframe-container { width: 100%; min-height: 660px; border: 0; display: block; }
  /* Plain, larger X (no circular container); keeps its colour and rotates on hover. */
  .modal-close {
    position: absolute; top: 14px; right: 16px;
    width: 40px; height: 40px;
    border: none; background: none; padding: 0;
    color: var(--text); font-size: 2.125rem; font-weight: 300; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s var(--ease);
  }
  .modal-close:hover { transform: rotate(90deg); }
  .modal-head { margin-bottom: 22px; padding-right: 30px; }
  .modal-eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; text-transform: capitalize; color: var(--blue); display: block; margin-bottom: 12px; }
  .modal-head h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; color: var(--text); margin-bottom: 8px; }
  .modal-head p { font-size: 1rem; line-height: 1.6; color: var(--text-muted); }

  /* Custom booking form, posts straight to HubSpot so we fully control the styling */
  .demo-form .df-row { display: flex; gap: 14px; }
  .demo-form .df-field { flex: 1; min-width: 0; margin-bottom: 14px; }
  .demo-form label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
  .demo-form .df-req { color: var(--blue); }
  .demo-form input {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; font-family: 'Inter', sans-serif; font-size: 1rem;
    color: var(--text); background: var(--white);
    border: 1px solid var(--warm); border-radius: 10px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .demo-form input::placeholder { color: var(--text-muted); opacity: 0.55; }
  .demo-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
  .demo-form input.invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
  .demo-form .df-submit { width: 100%; margin-top: 6px; }
  .demo-form .df-submit[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
  .df-error { background: rgba(192,57,43,0.07); border: 1px solid rgba(192,57,43,0.25); color: #c0392b; font-size: 0.875rem; line-height: 1.5; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
  .df-consent { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; margin-top: 14px; text-align: center; }
  .df-success { text-align: center; padding: 16px 0 6px; }
  .df-success-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(14,158,120,0.12); color: #0E9E78; font-size: 1.625rem; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
  .df-success h4 { font-size: 1.1875rem; font-weight: 600; color: var(--text); letter-spacing: -0.026em; margin-bottom: 8px; }
  .df-success p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
 
  /* Responsive */
  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 120px 40px 60px; gap: 40px; overflow: visible; }
    .hero-copy { min-height: 0; display: block; }
    /* Exactly the desktop composition, scaled by JS to fill the content width
       (left edge at the logo, right edge at the Book button). */
    .hero-visual { display: block; margin-top: 4px; }
    .hero-visual::before { top: 50%; left: 50%; }
    .hero-mock { right: auto; left: 0; top: 0; transform-origin: 0 0; }
    /* Shrink the blobs and spread them down the tall stacked hero so they sit
       behind both the copy and the phone, instead of bunching up top and looking cut off. */
    .hero-blob { top: 30%; left: 30%; width: 460px; height: 460px; margin-left: -230px; margin-top: -230px; }
    .hero-blob-green { top: 74%; left: 68%; width: 420px; height: 420px; margin-left: -210px; margin-top: -210px; }
    .hero-blob::before, .hero-blob-green::before { filter: blur(58px); }
    .change-grid { grid-template-columns: 1fr; }
    .solution-block { grid-template-columns: 1fr; }
    /* Left-align the problem badge, title and the solves tag on mobile */
    .solution-pane-left { border-right: none; border-bottom: 1px solid var(--warm); align-items: flex-start; text-align: left; }
    .solves-pill { align-self: flex-start; }
    .challenge-row { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
    .challenge-left { padding-right: 0; }
    /* Align the amber quote bar with the left edge of the heading text (past
       the number badge: 34px badge + 16px gap). */
    .challenge-right { margin-left: 50px; }
  }

  /* On mobile the blobs drift on their own instead of following the cursor */
  @media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
    @keyframes blobDriftBlue {
      0%, 100% { transform: translate(0, 0); }
      50% { transform: translate(46px, -34px); }
    }
    @keyframes blobDriftGreen {
      0%, 100% { transform: translate(0, 0); }
      50% { transform: translate(-38px, 28px); }
    }
    .hero-blob { animation: blobDriftBlue 15s ease-in-out infinite; }
    .hero-blob-green { animation: blobDriftGreen 18s ease-in-out infinite; }
  }
 
  @media (max-width: 700px) {
    .benefits-section { padding: 72px 20px; }
    .benefits-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
    /* Centre the section heading + icon on mobile */
    .benefits-intro { text-align: center; }
    .benefits-intro .section-icon { margin-left: auto; margin-right: auto; }
  }
 
  @media (max-width: 600px) {
    #nav { padding: 16px 20px; }
    #nav.scrolled { padding: 12px 20px; }
    .nav-actions { gap: 10px; }
    .share-btn { padding: 0; width: 38px; height: 38px; border-radius: 50%; corner-shape: round; gap: 0; flex-shrink: 0; }
    .share-btn .share-label { display: none; }
    .share-btn .ic { width: 22px; height: 22px; }   /* larger share glyph on mobile */
    .share-btn .ic-share { display: block; }
    .share-btn.copied .ic-share { display: none; }
    .share-btn.copied .ic-check { display: block; }
    .hero { padding: 124px 20px 56px; }
    .hero-copy { margin-top: 6px; }
    .hero h1 { font-size: 2.125rem; letter-spacing: -0.04em; }
    /* CTAs sit side by side, together spanning the full viewport width */
    .hero .cta-pair { flex-wrap: nowrap; gap: 10px; }
    .hero .cta-pair .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; text-align: center; }
    .section { padding: 60px 20px; }
    .pullquote { padding: 60px 20px; }
    .benefits-section { padding: 60px 20px; }
    .book { padding: 56px 20px 64px; }
    footer { padding: 22px 20px; min-height: 0; }
    /* Logo left + LinkedIn right on the top row, fine print below, left-aligned. */
    .footer-inner {
      display: grid; grid-template-columns: 1fr auto;
      grid-template-areas: "logo social" "note note";
      align-items: center; gap: 16px 12px; text-align: left;
    }
    .footer-inner .flogo { grid-area: logo; justify-self: start; }
    .footer-inner .socials { grid-area: social; justify-self: end; }
    .footer-inner .footer-note { grid-area: note; text-align: left; }
    .footer-note .fn-part { display: block; }   /* two lines on mobile only */
    .solution-pane-left { padding: 26px 22px; }
    .solution-pane-right { padding: 24px 22px; gap: 18px; }
    .scanner { max-height: none; }
    .change-card { padding: 28px 24px; }
    .change-grid { gap: 16px; }
    .modal-overlay { padding: 14px; }
    .modal-card { padding: 30px 22px 26px; }
    .modal-head h3 { font-size: 1.375rem; }
    .demo-form .df-row { flex-direction: column; gap: 0; }
  }
 
