:root {
    /* Checkbox brand palette — matched to triage page so the campaign reads as a set */
    --brand-green: #11D281;
    --brand-green-dark: #0BB870;
    --brand-green-deep: #089E5F;
    --accent-blue: #4F6BFF;
    --accent-purple: #A855F7;
    --accent-amber: #FFB020;
    --accent-orange: #FF8A3D;
    --accent-red: #FF5A5A;
    --accent-pink: #EC4899;

    --ink: #0E0E0E;
    --ink-soft: #2A2A2A;
    --ink-mid: #4A4A55;
    --muted: #6A6A78;
    --muted-soft: #9A9AA8;
    --line: #E6E6EE;
    --line-soft: #F0F0F5;
    --bg: #FFFFFF;

    /* Gradients */
    --hero-grad: linear-gradient(135deg, #EFE8FF 0%, #FBE8F2 60%, #FFEEDB 100%);
    --section-soft: #F8F6FF;
    --section-cream: #FAF7F0;
    --dark-bg: #0A0B14;
    --dark-bg-2: #11131F;
    --board-grad: linear-gradient(180deg, #FFFFFF 0%, #F5FFF9 100%);

    --radius: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 8px 24px rgba(14, 14, 14, 0.05);
    --shadow-pop: 0 22px 60px rgba(14, 14, 14, 0.10);
    --shadow-soft: 0 4px 16px rgba(14, 14, 14, 0.04);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--font);
    color: var(--ink);
    background: white;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }

  /* ============================================================
     SHARED COMPONENTS — reused from triage page for consistency
     ============================================================ */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: #DCFAEC; color: var(--brand-green-deep);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 6px 12px; border-radius: 999px;
  }
  .eyebrow.dark { background: rgba(17, 210, 129, 0.12); color: var(--brand-green); }
  .eyebrow.amber { background: #FFF1D6; color: #B57A00; }
  .eyebrow.red { background: #FFE5E5; color: #C73838; }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

  .btn {
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid transparent;
    font-weight: 600; font-size: 15px;
    padding: 13px 24px; border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: var(--font);
  }
  .btn-green { background: var(--brand-green); color: var(--ink); border-color: var(--brand-green); }
  .btn-green:hover { background: var(--brand-green-dark); border-color: var(--brand-green-dark); transform: translateY(-1px); }
  .btn-outline { background: white; border-color: var(--ink); color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: white; }
  .btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.4); color: white; }
  .btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: white; }
  .btn-lg { padding: 15px 30px; font-size: 16px; }

  .section-heading {
    font-size: 42px; line-height: 1.1; letter-spacing: -0.02em;
    margin: 16px 0 18px; font-weight: 600; color: var(--ink);
  }
  .section-sub {
    font-size: 18px; line-height: 1.6; color: var(--ink-mid);
    margin: 0 0 32px; max-width: 640px;
  }
  .section-center { text-align: center; }
  .section-center .section-sub { margin-left: auto; margin-right: auto; }

  /* ============================================================
     1. NAVIGATION — matches existing site nav
     ============================================================ */
  .nav {
    background: white; padding: 18px 0;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 22px; color: var(--ink);
  }
  .nav-links { display: flex; gap: 32px; align-items: center; }
  .nav-links a {
    font-size: 15px; color: var(--ink-soft); font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .nav-links a:hover { color: var(--ink); }
  .caret {
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); margin-top: -3px;
  }
  .nav-cta { display: flex; gap: 10px; }

  /* ============================================================
     2. HERO — automation framing
     ============================================================ */
  .hero {
    background: var(--hero-grad);
    padding: 180px 0 100px;
    position: relative; overflow: hidden;
  }
  .hero::before {
    content: ""; position: absolute;
    top: -120px; right: -120px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(17, 210, 129, 0.18), transparent 70%);
    border-radius: 50%; pointer-events: none;
  }
  .hero::after {
    content: ""; position: absolute;
    bottom: -100px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(79, 107, 255, 0.12), transparent 70%);
    border-radius: 50%; pointer-events: none;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 1.1fr;
    gap: 56px; align-items: center;
    position: relative; z-index: 1;
  }
  .hero h1 {
    font-size: 58px; line-height: 1.05; letter-spacing: -0.025em;
    margin: 18px 0 22px; font-weight: 600; color: var(--ink);
  }
  .hero h1 .accent { color: var(--brand-green-deep); display: inline-block; }
  .hero .lede {
    font-size: 19px; line-height: 1.6; color: var(--ink-soft);
    margin: 0 0 32px; max-width: 560px;
  }
  .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
  .hero-meta {
    display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
    font-size: 13px; color: var(--ink-mid);
  }
  .hero-meta .check { display: inline-flex; align-items: center; gap: 6px; }
  .hero-meta svg { color: var(--brand-green-deep); flex-shrink: 0; }

  /* Hero visual — Legal Demand Heatmap */
  .demand-heatmap {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(14,14,14,0.12);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .dh-header {
    padding: 14px 18px;
    background: #FAFAFD;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .dh-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600;
    color: var(--ink);
    min-width: 0;
  }
  .dh-title svg { color: var(--brand-green-deep); flex-shrink: 0; }
  .dh-tag {
    font-size: 11px; font-weight: 600;
    color: var(--brand-green-deep);
    background: #DCFAEC;
    padding: 3px 9px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .dh-tag::before {
    content: ""; width: 6px; height: 6px;
    border-radius: 50%; background: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(17,210,129,0.25);
  }
  .dh-body { padding: 14px 18px 4px; }

  .dh-row {
    display: grid;
    grid-template-columns: 135px 1fr 42px;
    gap: 14px;
    align-items: center;
    padding: 9px 0;
    border-radius: 6px;
    transition: background 0.15s ease;
  }
  .dh-row:hover { background: rgba(0,0,0,0.025); }

  .dh-row.dh-selected {
    background: #ECFDF5;
    margin: 4px -8px 0;
    padding: 10px 8px;
    border: 1px solid rgba(17,210,129,0.35);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }
  .dh-label {
    font-size: 13.5px;
    color: var(--ink-soft);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dh-row.dh-selected .dh-label { font-weight: 600; color: var(--ink); }

  .dh-bar-wrap { position: relative; height: 14px; }
  .dh-bar-track {
    position: absolute; inset: 0;
    background: #F0F0F5;
    border-radius: 4px;
  }
  .dh-bar-fills {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
  }
  .dh-fill { height: 100%; }
  .dh-fill.green { background: var(--brand-green); }
  .dh-fill.amber { background: #FFB020; opacity: 0.92; }

  .dh-pct {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  .dh-detail {
    margin: 0 -8px 6px;
    padding: 10px 14px;
    background: #ECFDF5;
    border: 1px solid rgba(17,210,129,0.35);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .dh-detail strong {
    color: var(--brand-green-deep);
    font-weight: 700;
  }
  .dh-detail .dh-divider {
    width: 1px; height: 12px;
    background: rgba(17,210,129,0.35);
  }

  .dh-footer {
    padding: 12px 18px 14px;
    border-top: 1px solid var(--line-soft);
    background: #FAFAFD;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .dh-legend {
    display: flex; gap: 16px;
    font-size: 11.5px;
    color: var(--muted);
  }
  .dh-legend span {
    display: inline-flex; align-items: center; gap: 6px;
  }
  .dh-legend .sq {
    width: 9px; height: 9px;
    border-radius: 2px;
  }
  .dh-legend .sq.green { background: var(--brand-green); }
  .dh-legend .sq.amber { background: #FFB020; opacity: 0.92; }

  .dh-summary {
    font-size: 12.5px;
    color: var(--ink-soft);
    display: inline-flex; align-items: center; gap: 6px;
  }
  .dh-summary .big {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-green-deep);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }

  /* ============================================================
     3. LOGO STRIP
     ============================================================ */
  .logo-strip {
    padding: 48px 0; background: white;
    border-bottom: 1px solid var(--line);
  }
  .logo-strip-label {
    text-align: center; font-size: 13px;
    letter-spacing: 0.04em; color: var(--muted);
    margin-bottom: 32px; font-weight: 500;
  }
  .logo-row {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 48px; align-items: center;
  }
  .logo-row .cust-logo {
    max-width: 100%; max-height: 40px; width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(100%); opacity: 0.65;
    transition: opacity 0.2s ease, filter 0.2s ease;
    margin: 0 auto; display: block;
  }
  .logo-row .cust-logo:hover { filter: grayscale(0%); opacity: 1; }

  /* ============================================================
     4. PAIN SECTION — "Doing the same thing a hundred times"
     ============================================================ */
  .pain {
    background: white; padding: 100px 0;
  }
  .pain-grid {
    display: grid; grid-template-columns: 1fr 1.05fr;
    gap: 64px; align-items: center;
  }
  .pain h2 {
    font-size: 42px; line-height: 1.1; letter-spacing: -0.02em;
    margin: 16px 0 20px; font-weight: 600;
  }
  .pain h2 .red { color: var(--accent-red); }
  .pain .body {
    font-size: 17px; line-height: 1.65; color: var(--ink-mid);
    margin: 0 0 20px; max-width: 500px;
  }
  .pain-list {
    list-style: none; padding: 0; margin: 24px 0 0;
    display: flex; flex-direction: column; gap: 14px;
  }
  .pain-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px; color: var(--ink-soft); line-height: 1.5;
  }
  .pain-list li svg {
    color: var(--accent-red);
    flex-shrink: 0; margin-top: 2px;
  }

  /* Repetition visual — stacked "same request, again" cards */
  .stack-visual {
    background: var(--dark-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-pop);
    position: relative;
    overflow: hidden;
    min-height: 460px;
  }
  .stack-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
    color: #FF8585; font-weight: 700;
    margin-bottom: 18px;
  }
  .stack-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #FF5A5A;
  }
  .stack-cards {
    position: relative;
    height: 320px;
  }
  .stack-card {
    position: absolute;
    background: #1A1C2A;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    width: calc(100% - 24px);
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    color: white;
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  }
  .stack-card .av {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: white;
    flex-shrink: 0;
  }
  .stack-card .body {
    min-width: 0;
  }
  .stack-card .body .name {
    font-size: 12.5px; font-weight: 600; color: white;
    margin-bottom: 2px;
  }
  .stack-card .body .ask {
    font-size: 12px; color: rgba(255,255,255,0.65);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .stack-card .tag {
    background: rgba(255,90,90,0.18);
    color: #FFA5A5;
    font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: 999px;
    white-space: nowrap;
  }
  .stack-card.s1 { top: 0; left: 0; transform: rotate(-1.2deg); z-index: 5; }
  .stack-card.s2 { top: 56px; left: 6px; transform: rotate(0.8deg); z-index: 4; opacity: 0.92; }
  .stack-card.s3 { top: 112px; left: 0; transform: rotate(-0.6deg); z-index: 3; opacity: 0.84; }
  .stack-card.s4 { top: 168px; left: 8px; transform: rotate(1.1deg); z-index: 2; opacity: 0.74; }
  .stack-card.s5 { top: 224px; left: 2px; transform: rotate(-0.4deg); z-index: 1; opacity: 0.6; }

  .stack-counter {
    margin-top: 28px;
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .stack-counter .big {
    font-size: 36px; font-weight: 700;
    color: var(--accent-red); letter-spacing: -0.02em;
    line-height: 1;
  }
  .stack-counter .small {
    font-size: 12px; color: rgba(255,255,255,0.6);
    margin-top: 4px;
  }
  .stack-counter .arrow {
    color: rgba(255,255,255,0.4);
  }
  .stack-counter .right .big {
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
    text-decoration-color: var(--accent-red);
  }

  /* ============================================================
     5. SOLUTION SECTION — three automation pillars
     ============================================================ */
  .solution { background: var(--section-soft); padding: 100px 0; }
  .solution-intro { text-align: center; max-width: 760px; margin: 0 auto 60px; }
  .solution-pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  }
  .pillar {
    background: white; border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .pillar:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-pop);
  }
  .pillar-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
  }
  .pillar-icon.green { background: #DCFAEC; color: var(--brand-green-deep); }
  .pillar-icon.blue { background: #E2E8FF; color: var(--accent-blue); }
  .pillar-icon.purple { background: #F0E2FF; color: var(--accent-purple); }
  .pillar h3 {
    font-size: 22px; margin: 0 0 10px;
    font-weight: 600; letter-spacing: -0.01em;
  }
  .pillar p {
    font-size: 15px; color: var(--ink-mid); line-height: 1.6; margin: 0;
  }
  .pillar .stat {
    margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px; color: var(--muted);
  }
  .pillar .stat b { color: var(--brand-green-deep); font-weight: 700; }

  /* ============================================================
     6. USE CASES — what in-house legal teams automate
     ============================================================ */
  .use-cases { background: white; padding: 100px 0; }
  .use-case-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 50px;
  }
  .use-card {
    background: white; border-radius: var(--radius);
    padding: 28px; border: 1px solid var(--line);
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative; overflow: hidden;
  }
  .use-card:hover {
    border-color: var(--brand-green); transform: translateY(-2px);
  }
  .use-card .tag {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brand-green-deep);
    margin-bottom: 14px;
  }
  .use-card h3 {
    font-size: 19px; margin: 0 0 10px;
    font-weight: 600;
  }
  .use-card p {
    font-size: 14.5px; color: var(--ink-mid);
    line-height: 1.55; margin: 0 0 16px;
  }
  .use-card .examples {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-top: 14px; border-top: 1px solid var(--line-soft);
  }
  .use-card .examples span {
    background: var(--section-soft); color: var(--ink-soft);
    font-size: 12px; padding: 4px 10px;
    border-radius: 999px; font-weight: 500;
  }
  .use-card .deflect {
    position: absolute; top: 20px; right: 20px;
    font-size: 11px; font-weight: 700;
    color: var(--brand-green-deep);
    background: #DCFAEC;
    padding: 4px 8px; border-radius: 6px;
  }

  /* ============================================================
     7. HOW IT WORKS — subway map style
     ============================================================ */
  .how {
    background: var(--dark-bg); color: white;
    padding: 100px 0;
    position: relative; overflow: hidden;
  }
  .how::before {
    content: ""; position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(17, 210, 129, 0.06), transparent 60%);
    pointer-events: none;
  }
  .how .section-heading { color: white; }
  .how .section-sub { color: rgba(255,255,255,0.7); }

  /* Subway map */
  .subway {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
    position: relative;
  }
  /* The horizontal track line connecting the dots */
  .subway-line {
    position: absolute;
    top: 132px;
    left: 12.5%; right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg,
      var(--accent-amber) 0%,
      var(--accent-amber) 8%,
      var(--brand-green) 33%,
      var(--accent-blue) 66%,
      var(--accent-purple) 92%,
      var(--accent-purple) 100%);
    opacity: 0.65;
    border-radius: 1px;
    z-index: 0;
  }
  .station {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .station-visual {
    width: 100%;
    max-width: 200px;
    height: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-top-width: 3px;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .station:hover .station-visual {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.06);
  }
  .station-visual svg { width: 100%; height: 100%; display: block; }

  .station-visual.amber  { border-top-color: var(--accent-amber); }
  .station-visual.green  { border-top-color: var(--brand-green); }
  .station-visual.blue   { border-top-color: var(--accent-blue); }
  .station-visual.purple { border-top-color: var(--accent-purple); }

  .station-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    margin-bottom: 16px;
    /* Ring of dark-bg color masks the track line where it passes through */
    box-shadow: 0 0 0 5px var(--dark-bg);
    position: relative;
    z-index: 2;
  }
  .station-dot.d1 { background: var(--accent-amber); color: var(--ink); }
  .station-dot.d2 { background: var(--brand-green); color: var(--ink); }
  .station-dot.d3 { background: var(--accent-blue); color: white; }
  .station-dot.d4 { background: var(--accent-purple); color: white; }

  .station-label {
    font-size: 17px; font-weight: 700;
    color: white; margin: 0 0 6px;
    letter-spacing: -0.005em;
  }
  .station-desc {
    font-size: 13.5px; line-height: 1.5;
    color: rgba(255,255,255,0.65);
    margin: 0; max-width: 200px;
  }

  /* ============================================================
     8. PLATFORM PROOF — workflow builder + integrations
     ============================================================ */
  .platform { background: white; padding: 100px 0; }
  .platform-grid {
    display: grid; grid-template-columns: 0.85fr 1.4fr;
    gap: 48px; align-items: center;
  }
  .platform-features {
    list-style: none; padding: 0; margin: 28px 0 0;
    display: flex; flex-direction: column; gap: 18px;
  }
  .platform-features li {
    display: flex; gap: 14px; align-items: flex-start;
  }
  .platform-features .feat-icon {
    width: 36px; height: 36px;
    background: #DCFAEC; color: var(--brand-green-deep);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .platform-features h4 {
    font-size: 16px; margin: 0 0 4px; font-weight: 600;
  }
  .platform-features p {
    font-size: 14px; color: var(--ink-mid);
    margin: 0; line-height: 1.5;
  }

  /* Builder mockup — modeled on the actual Checkbox no-code workflow canvas */
  .builder-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(14,14,14,0.12);
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .bm-topnav {
    background: #0E0E0E; color: white;
    padding: 14px 22px;
    display: flex; align-items: center; gap: 24px;
  }
  .bm-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 700; color: white;
    padding-right: 24px;
  }
  .bm-crumbs {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: rgba(255,255,255,0.6);
  }
  .bm-crumbs .sep { color: rgba(255,255,255,0.25); }
  .bm-crumbs b { color: white; font-weight: 500; }
  .bm-actions {
    margin-left: auto; display: flex; gap: 8px;
  }
  .bm-actions .btn-ghost {
    font-size: 13px; padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; color: rgba(255,255,255,0.8);
    font-weight: 500;
  }
  .bm-actions .btn-publish {
    font-size: 13px; padding: 6px 14px;
    background: var(--brand-green); color: var(--ink);
    border-radius: 6px; font-weight: 600;
  }

  .bm-body {
    display: grid;
    grid-template-columns: 56px 180px 1fr;
    min-height: 460px;
    background: #FBFAFE;
  }
  .bm-rail {
    background: white;
    border-right: 1px solid var(--line);
    padding: 14px 0;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
  }
  .bm-rail-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #9A9AA8;
  }
  .bm-rail-icon.active {
    background: #ECFDF5; color: var(--brand-green-deep);
  }

  .bm-sidebar {
    background: white;
    border-right: 1px solid var(--line);
    padding: 18px 14px;
  }
  .bm-sidebar h5 {
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--muted); margin: 0 0 10px;
  }
  .bm-sidebar-group {
    margin-bottom: 18px;
  }
  .bm-block {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: default;
    transition: background 0.15s ease;
    margin-bottom: 4px;
  }
  .bm-block:hover { background: #F4F4F8; }
  .bm-block .b-ico {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .bm-block .b-ico.green { background: #DCFAEC; color: var(--brand-green-deep); }
  .bm-block .b-ico.blue { background: #E2E8FF; color: var(--accent-blue); }
  .bm-block .b-ico.purple { background: #F0E2FF; color: var(--accent-purple); }
  .bm-block .b-ico.amber { background: #FFF1D6; color: #B57A00; }
  .bm-block .b-ico.gray { background: #F0F0F5; color: var(--ink-mid); }
  .bm-block .b-name {
    font-size: 12.5px; color: var(--ink-soft);
    font-weight: 500;
  }

  /* Canvas inside builder */
  .bm-canvas {
    position: relative;
    background:
      radial-gradient(circle at 1px 1px, rgba(14,14,14,0.07) 1px, transparent 0) 0 0 / 20px 20px,
      #FBFAFE;
    padding: 24px;
    overflow: hidden;
  }

  .bm-node {
    position: absolute;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(14,14,14,0.06);
    min-width: 158px;
    display: flex; align-items: center; gap: 10px;
  }
  .bm-node.selected {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(17,210,129,0.18), 0 6px 16px rgba(14,14,14,0.08);
  }
  .bm-node .ico {
    width: 26px; height: 26px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .bm-node .ico.green { background: #DCFAEC; color: var(--brand-green-deep); }
  .bm-node .ico.blue { background: #E2E8FF; color: var(--accent-blue); }
  .bm-node .ico.purple { background: #F0E2FF; color: var(--accent-purple); }
  .bm-node .ico.amber { background: #FFF1D6; color: #B57A00; }
  .bm-node .ico.gray { background: #F0F0F5; color: var(--ink-mid); }
  .bm-node .meta { line-height: 1.2; min-width: 0; }
  .bm-node .meta .label {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
  }
  .bm-node .meta .name {
    font-size: 12px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 130px;
  }

  /* Builder node positions */
  .bm-n1 { top: 22px; left: 22px; }
  .bm-n2 { top: 22px; left: 220px; }
  .bm-n3 { top: 120px; left: 220px; min-width: 168px; }
  .bm-n4 { top: 70px; left: 430px; }
  .bm-n5 { top: 170px; left: 430px; }
  .bm-n6 { top: 240px; left: 220px; }
  .bm-n7 { top: 340px; left: 220px; min-width: 168px; }

  .bm-lines {
    position: absolute; inset: 0;
    width: 100%; height: 100%; pointer-events: none;
  }

  /* ============================================================
     9. BOARD CALLBACK — "Look at what legal achieved this year"
     Direct mirror of the LinkedIn ad creative
     ============================================================ */
  .board {
    background: var(--board-grad);
    padding: 100px 0 90px;
    position: relative; overflow: hidden;
  }
  .board::before {
    content: ""; position: absolute;
    inset: 0;
    background-image:
      linear-gradient(to right, rgba(14,14,14,0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(14,14,14,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  }
  .board-inner {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 920px; margin: 0 auto;
  }
  .board-intro {
    font-size: 38px; line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink); font-weight: 600;
    margin: 18px 0 22px;
  }
  .board-quote {
    font-size: 56px; line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--brand-green-deep);
    font-weight: 700;
    margin: 0 0 50px;
    text-wrap: balance;
  }
  .board-quote .punct { color: var(--brand-green); }
  .board-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 auto 40px;
    max-width: 880px;
  }
  .board-metric {
    background: white;
    border-radius: 14px;
    padding: 22px 18px 24px;
    box-shadow: 0 4px 14px rgba(14,14,14,0.06);
    border-top: 4px solid var(--accent, var(--ink));
    text-align: left;
  }
  .board-metric .label {
    font-size: 13px; color: var(--muted);
    font-weight: 500; margin-bottom: 6px;
  }
  .board-metric .value {
    font-size: 30px; font-weight: 700;
    color: var(--ink); letter-spacing: -0.02em;
    display: flex; align-items: baseline; gap: 6px;
  }
  .board-metric .value .arrow {
    color: var(--brand-green-deep);
    font-size: 22px;
  }
  .board-metric .value .unit {
    font-size: 16px; font-weight: 600;
    color: var(--ink-mid);
  }
  .board-cta-row {
    display: inline-flex; gap: 14px;
    flex-wrap: wrap; justify-content: center;
    align-items: center;
  }
  .board-cta-pill {
    background: var(--brand-green);
    color: var(--ink);
    font-size: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 16px 32px;
    border-radius: 10px;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .board-cta-pill:hover { background: var(--brand-green-dark); }
  .board-cta-note {
    font-size: 14px; color: var(--ink-mid);
  }

  /* ============================================================
     10. TESTIMONIAL / OUTCOMES
     ============================================================ */
  .outcomes { background: var(--section-soft); padding: 100px 0; }
  .testimonial {
    background: white;
    border-radius: var(--radius-lg);
    padding: 44px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
  }
  .testimonial .avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EFE8FF, #FBE8F2);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    font-size: 30px; font-weight: 700;
    flex-shrink: 0;
  }
  .testimonial blockquote {
    font-size: 21px; line-height: 1.5;
    color: var(--ink); margin: 0 0 18px;
    font-weight: 500; letter-spacing: -0.005em;
  }
  .testimonial .cite {
    font-size: 14px; color: var(--muted);
  }
  .testimonial .cite b { color: var(--ink); font-weight: 600; }
  .source-note {
    margin: 28px auto 0;
    max-width: 820px; text-align: center;
    font-size: 12px; color: var(--muted); line-height: 1.5;
  }
  .source-note a {
    color: var(--ink-mid);
    text-decoration: underline;
    text-decoration-color: rgba(14,14,14,0.2);
  }
  .source-note a:hover { text-decoration-color: var(--ink); }

  /* ============================================================
     11. FINAL CTA
     ============================================================ */
  .final-cta {
    background: var(--hero-grad);
    padding: 90px 0; text-align: center;
    position: relative; overflow: hidden;
  }
  .final-cta::before, .final-cta::after {
    content: ""; position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%; pointer-events: none;
  }
  .final-cta::before {
    top: -150px; left: -100px;
    background: radial-gradient(circle, rgba(17, 210, 129, 0.18), transparent 70%);
  }
  .final-cta::after {
    bottom: -150px; right: -100px;
    background: radial-gradient(circle, rgba(79, 107, 255, 0.15), transparent 70%);
  }
  .final-cta-inner { position: relative; z-index: 1; }
  .final-cta h2 {
    font-size: 48px; line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 14px 0 18px; font-weight: 600;
  }
  .final-cta p {
    font-size: 18px; color: var(--ink-soft);
    max-width: 580px; margin: 0 auto 32px;
    line-height: 1.6;
  }
  .final-cta .cta-row {
    display: inline-flex; gap: 12px;
    flex-wrap: wrap; justify-content: center;
  }
  .final-cta .talk {
    margin-top: 28px; font-size: 14px; color: var(--ink-mid);
  }
  .final-cta .talk a {
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    font-weight: 600;
  }

  /* ============================================================
     12. FOOTER
     ============================================================ */
  .footer {
    background: var(--ink); color: rgba(255,255,255,0.7);
    padding: 40px 0; font-size: 13px;
    text-align: center;
  }
  .footer .logo {
    color: white; justify-content: center; margin-bottom: 12px;
  }

  /* ============================================================
     DEMO MODAL — popup hosting the HubSpot form
     ============================================================ */
  .demo-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .demo-modal.is-open { display: flex; }
  .demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .demo-modal-panel {
    position: relative;
    background: white;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(14,14,14,0.3);
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: demoModalIn 0.22s ease;
  }
  @keyframes demoModalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
  .demo-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--ink);
    z-index: 3;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .demo-modal-close:hover {
    background: var(--line-soft);
    transform: scale(1.05);
  }
  .demo-modal-grid {
    display: block;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
  }
  .demo-modal-left {
    padding: 36px 40px 20px;
  }
  .demo-modal-left h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 8px;
  }
  .demo-modal-left > p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-mid);
    margin: 0;
  }
  .demo-modal-right {
    padding: 8px 40px 36px;
  }
  /* Minimal HubSpot form polish so it matches the page */
  .demo-modal-right .hs-form-field { margin-bottom: 14px; }
  .demo-modal-right .hs-form-field > label,
  .demo-modal-right .hs-form-field > label > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    display: block;
    margin-bottom: 6px;
  }
  .demo-modal-right .hs-form-required { color: var(--accent-red); margin-left: 2px; }
  .demo-modal-right input[type="text"],
  .demo-modal-right input[type="email"],
  .demo-modal-right input[type="tel"],
  .demo-modal-right input[type="number"],
  .demo-modal-right textarea,
  .demo-modal-right select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--ink);
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
  }
  .demo-modal-right input:focus,
  .demo-modal-right textarea:focus,
  .demo-modal-right select:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(17,210,129,0.15);
  }
  .demo-modal-right .hs-button,
  .demo-modal-right input[type="submit"] {
    background: var(--brand-green);
    color: var(--ink) !important;
    border: 1.5px solid var(--brand-green);
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    font-family: var(--font);
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .demo-modal-right .hs-button:hover,
  .demo-modal-right input[type="submit"]:hover {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    transform: translateY(-1px);
  }
  .demo-modal-right .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
  }
  .demo-modal-right .hs-error-msg,
  .demo-modal-right .hs-error-msgs label {
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 500;
  }
  .demo-modal-right .hs_submit { margin-top: 6px; }
  .demo-modal-right .legal-consent-container {
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.5;
  }
  .demo-modal-right .legal-consent-container a { text-decoration: underline; }

  @media (max-width: 840px) {
    .demo-modal { padding: 0; align-items: stretch; }
    .demo-modal-panel {
      max-width: 100%;
      max-height: 100vh;
      height: 100vh;
      border-radius: 0;
    }
    .demo-modal-grid { max-height: none; }
    .demo-modal-left { padding: 28px 22px 16px; }
    .demo-modal-left h3 { font-size: 22px; }
    .demo-modal-right { padding: 4px 22px 32px; }
    .demo-modal-close { top: 12px; right: 12px; }
  }

  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 980px) {
    .container { padding: 0 24px; }
    .nav-links { display: none; }

    .hero { padding: 160px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 40px; }
    .hero .lede { font-size: 17px; }

    /* Heatmap: tighten label column on narrow screens */
    .dh-row { grid-template-columns: 105px 1fr 36px; gap: 10px; }
    .dh-label { font-size: 12.5px; }
    .dh-pct { font-size: 12.5px; }
    .dh-detail { font-size: 11.5px; gap: 10px; }
    .dh-header { padding: 12px 14px; }
    .dh-body { padding: 12px 14px 2px; }
    .dh-footer { padding: 10px 14px 12px; }

    .logo-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }

    .pain, .solution, .use-cases, .how, .platform, .outcomes, .board { padding: 70px 0; }
    .pain-grid, .platform-grid { grid-template-columns: 1fr; gap: 40px; }
    .pain h2, .section-heading { font-size: 32px; }

    .solution-pillars, .use-case-grid { grid-template-columns: 1fr; }

    /* Subway: stack vertically on mobile, hide the horizontal track line */
    .subway { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
    .subway-line { display: none; }
    .station-visual { max-width: 100%; height: 110px; }
    .station-desc { max-width: 360px; }

    .board-intro { font-size: 24px; }
    .board-quote { font-size: 36px; margin-bottom: 36px; }
    .board-metrics { grid-template-columns: repeat(2, 1fr); }

    .testimonial { grid-template-columns: 1fr; padding: 28px; text-align: center; }
    .testimonial .avatar { margin: 0 auto; }
    .testimonial blockquote { font-size: 17px; }

    .final-cta { padding: 60px 0; }
    .final-cta h2 { font-size: 32px; }

    /* Builder mockup needs horizontal scroll on narrow screens */
    .bm-body { grid-template-columns: 1fr; }
    .bm-rail, .bm-sidebar { display: none; }
    .bm-canvas { min-height: 420px; overflow-x: auto; }
  }
