/* Fonts are served from this site (no third-party requests). SIL Open Font License, see the OFL files in /assets/fonts/ */
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/space-grotesk-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/space-grotesk-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:700;src:url(/assets/fonts/space-grotesk-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/space-grotesk-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/space-grotesk-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:700;src:url(/assets/fonts/space-grotesk-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
  /* ================================================================
     TOKENS  (brand palette from the Legentrix guidance document)
  ================================================================ */
  :root {
    --ink: #10233F;
    --ink-2: #2F4360;
    --slate: #5B6B7C;
    --deep: #0B1A2F;
    --paper: #FFFFFF;
    --mist: #F3F5F8;
    --line: #E2E6EC;
    --gold: #E0B04A;
    --gold-ink: #8A6216;
    --gold-soft: #F8EED6;

    --ok: #1E8E4E;
    --warn: #C27803;
    --ok-text: #17703D;
    --warn-text: #9A5B00;
    --info: #2458D3;

    --display: 'Space Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --text: 'IBM Plex Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;

    --wrap: 1140px;
    --gutter: 24px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
  }

  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  * { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    font-family: var(--text); font-size: 17px; line-height: 1.55;
    color: var(--ink); background: var(--paper);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  a { color: inherit; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 6px; }

  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

  h1, h2, h3 {
    font-family: var(--display); font-weight: 600; color: var(--ink);
    letter-spacing: -0.025em; line-height: 1.08;
  }
  h2 { font-size: clamp(34px, 5vw, 56px); }
  h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
  .lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }

  /* Bands own all vertical rhythm. */
  .band { padding: clamp(88px, 11vw, 136px) 0; }
  .band--mist { background: var(--mist); }
  .band--deep { background: var(--deep); color: #D6DEE8; }
  .band--deep h2, .band--deep h3 { color: #FFFFFF; }
  .band--deep .lede { color: #AEBBCD; }
  .band-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
  .band-head .lede { margin-top: 20px; }

  /* ---------------------------------------------------------------- buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--text); font-weight: 500; font-size: 16px; line-height: 1;
    padding: 14px 24px; min-height: 48px; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .btn--primary { background: var(--ink); color: #FFFFFF; }
  .btn--primary:hover { background: #1B375D; }
  .btn--gold { background: var(--gold); color: var(--deep); }
  .btn--gold:hover { background: #EBC062; }
  .btn--quiet { border-color: var(--line); background: var(--paper); color: var(--ink); }
  .btn--quiet:hover { border-color: var(--slate); }
  .btn--sm { font-size: 14px; padding: 9px 16px; min-height: 36px; }

  .link { display: inline-flex; align-items: center; gap: 4px; color: var(--info); font-weight: 500; text-decoration: none; }
  .link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .link svg { width: 14px; height: 14px; }
  .band--deep .link { color: #9DBBFF; }

  /* Maturity labels: required by the product guidance, never decorative. */
  .status {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
    padding: 5px 11px; border-radius: 999px; white-space: nowrap; align-self: flex-start;
  }
  .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .status--current { background: #E3F3EA; color: #17703D; }
  .status--concept { background: var(--gold-soft); color: var(--gold-ink); }
  .status--planned { background: var(--mist); color: var(--slate); }
  .status--planned::before { background: transparent; border: 1.5px solid currentColor; }

  /* ---------------------------------------------------------------- skip */
  .skip-link { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
  .skip-link:focus { top: 12px; }

  /* ---------------------------------------------------------------- nav */
  .nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255,255,255,.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(16,35,63,.08);
  }
  .nav-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
  .nav-logo { height: 28px; width: auto; }
  .nav-links { display: flex; gap: 26px; list-style: none; font-size: 14px; color: var(--ink-2); }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { color: var(--ink); }
  .nav-actions { display: flex; align-items: center; gap: 10px; }
  .nav-signin { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 8px 6px; }
  .nav-signin:hover { color: var(--ink); }
  .menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 8px var(--gutter) 24px; max-height: calc(100vh - 60px); overflow-y: auto; }
  .mobile-menu.open { display: block; }
  .mobile-menu a:not(.btn) { display: block; padding: 13px 0; font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 20px; width: 100%; }

  /* ---------------------------------------------------------------- hero */
  .hero { padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 9vw, 120px); text-align: center; overflow: hidden; }
  .hero-brandline { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--gold-ink); margin-bottom: 20px; }
  .hero h1 { font-size: clamp(44px, 7.2vw, 90px); letter-spacing: -0.04em; line-height: 1.0; max-width: 12em; margin: 0 auto; }
  .hero .lede { margin: 26px auto 0; text-align: center; max-width: 35em; }
  .hero-ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }

  .hero .enter { opacity: 0; transform: translateY(16px); animation: enter .9s var(--ease-out) forwards; }
  .hero .enter-2 { animation-delay: .08s; }
  .hero .enter-3 { animation-delay: .16s; }
  .hero .enter-4 { animation-delay: .24s; }
  @keyframes enter { to { opacity: 1; transform: none; } }

  /* ---------------------------------------------------------------- hero flow
     The memorable moment: scattered sources settle, lines draw into the
     Legentrix layer, and finished applications appear on the right. */
  .flow {
    position: relative; margin: clamp(56px, 7vw, 88px) auto 0; max-width: 1140px;
    background: var(--deep); border-radius: 32px; padding: clamp(28px, 4vw, 48px);
    text-align: left; color: #D6DEE8;
    box-shadow: 0 40px 90px -40px rgba(16,35,63,.55);
  }
  .flow-grid { display: grid; grid-template-columns: 230px minmax(40px, 1fr) 210px minmax(40px, 1fr) 300px; align-items: stretch; min-height: 380px; }
  .flow-col { display: flex; flex-direction: column; }
  .flow-col-title { font-size: 13px; color: #8798AF; font-weight: 500; height: 20px; margin-bottom: 14px; }
  .flow-sources, .flow-apps, .core-wrap, .wires { flex: 1; }
  .flow-sources, .flow-apps { display: grid; grid-auto-rows: 1fr; align-items: center; }
  .src {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
    background: #15284A; border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #E7ECF3; line-height: 1.3;
  }
  .src svg { width: 18px; height: 18px; flex-shrink: 0; color: #8FA3BF; }
  .src small { display: block; font-size: 11.5px; color: #8798AF; }
  .flow-col--wire { padding-top: 34px; }
  .wires { width: 100%; height: auto; overflow: visible; }
  .wires path { fill: none; stroke: var(--gold); stroke-opacity: .6; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .core-wrap { display: flex; align-items: center; }
  .core {
    width: 100%; border-radius: 20px; padding: 22px 18px; text-align: center;
    background: linear-gradient(180deg, #1A3156, #132643); border: 1px solid rgba(224,176,74,.55);
    box-shadow: 0 0 0 6px rgba(224,176,74,.06);
  }
  .core svg { width: 34px; height: 34px; margin: 0 auto 10px; }
  .core b { display: block; font-family: var(--display); font-size: 18px; color: #fff; letter-spacing: -0.01em; }
  .core span { display: block; font-size: 12.5px; color: #AEBBCD; margin-top: 6px; line-height: 1.45; }
  .mini { background: #F6F8FB; color: var(--ink); border-radius: 14px; padding: 14px; font-size: 12px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.6); }
  .mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
  .mini-head b { font-family: var(--display); font-size: 14px; font-weight: 600; }
  .mini-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: #E3F3EA; color: #17703D; font-weight: 600; white-space: nowrap; }
  .mini-tag--custom { background: var(--gold-soft); color: var(--gold-ink); }
  .mini-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .mini-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
  .mini-kpis small { display: block; color: var(--slate); font-size: 10px; }
  .mini-kpis strong { font-family: var(--display); font-size: 16px; letter-spacing: -0.02em; }
  .mini-list { list-style: none; display: grid; gap: 6px; }
  .mini-list li { display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
  .ok-t { color: var(--ok-text); font-weight: 600; white-space: nowrap; } .warn-t { color: var(--warn-text); font-weight: 600; white-space: nowrap; }
  .flow-caption { margin: 18px auto 0; font-size: 13px; color: var(--slate); text-align: center; max-width: 60em; }

  /* Load sequence */
  .flow .src { opacity: 0; animation: settle .9s var(--ease-out) forwards; }
  .flow .src:nth-child(1) { --dx: -40px; --dy: -26px; --r: -7deg; animation-delay: .55s; }
  .flow .src:nth-child(2) { --dx: 30px;  --dy: -14px; --r: 6deg;  animation-delay: .62s; }
  .flow .src:nth-child(3) { --dx: -24px; --dy: 18px;  --r: -4deg; animation-delay: .69s; }
  .flow .src:nth-child(4) { --dx: 42px;  --dy: 10px;  --r: 8deg;  animation-delay: .76s; }
  .flow .src:nth-child(5) { --dx: -30px; --dy: 30px;  --r: 5deg;  animation-delay: .83s; }
  @keyframes settle {
    from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
    to { opacity: 1; transform: none; }
  }
  .flow .wires path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s ease-out forwards; }
  .flow .wires--in path { animation-delay: 1.3s; }
  .flow .wires--out path { animation-delay: 2.0s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .flow .core { opacity: 0; transform: scale(.94); animation: pop-in .7s var(--ease-out) 1.75s forwards; }
  .flow .mini { opacity: 0; transform: translateY(14px); animation: enter .8s var(--ease-out) 2.45s forwards; }
  .flow .flow-apps > div + div .mini { animation-delay: 2.6s; }
  @keyframes pop-in { to { opacity: 1; transform: none; } }
  /* Hold the sequence until the figure is on screen (site.js adds .play). */
  .flow:not(.play) .src, .flow:not(.play) .wires path, .flow:not(.play) .core, .flow:not(.play) .mini { animation-play-state: paused; }

  /* ---------------------------------------------------------------- solutions */
  .statement { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -0.03em; max-width: 19em; }
  .solve { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
  .solve-row { display: grid; grid-template-columns: 1fr 1.25fr 150px; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
  .solve-row h3 { font-size: clamp(21px, 2vw, 26px); }
  .solve-row .problem { font-size: 15px; color: var(--slate); margin-top: 6px; }
  .solve-row p { color: var(--ink-2); }
  .via { font-size: 13.5px; color: var(--slate); padding-top: 4px; text-align: right; }
  .via b { color: var(--ink); font-weight: 600; }

  /* ---------------------------------------------------------------- products */
  .feature { background: var(--paper); border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .feature-copy { padding: clamp(32px, 4.5vw, 56px); display: flex; flex-direction: column; }
  .feature-copy h3 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.035em; margin: 18px 0 6px; }
  .feature-copy .kind { color: var(--slate); font-size: 16px; }
  .feature-copy p.desc { margin-top: 18px; color: var(--ink-2); }
  .caps { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
  .caps li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
  .caps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translateY(-3px); flex-shrink: 0; }
  .feature-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
  .feature-note { margin-top: 18px; font-size: 13.5px; color: var(--slate); }
  .feature-visual { background: linear-gradient(160deg, #E9EEF5, #DCE3EE); padding: clamp(24px, 3vw, 40px) 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); align-self: stretch; display: flex; align-items: center; }


  .roadmap { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .rm { background: var(--paper); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
  .rm h3 { font-size: 22px; margin-top: 4px; }
  .rm .kind { font-size: 14px; color: var(--slate); margin-top: -6px; }
  .rm p { font-size: 15.5px; color: var(--ink-2); flex: 1; }
  .rm .link { font-size: 15px; }
  .roadmap-note { margin-top: 22px; font-size: 14px; color: var(--slate); max-width: 52em; }

  /* ---------------------------------------------------------------- custom builds */
  .builds { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .build { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .build svg { width: 28px; height: 28px; color: var(--ink); margin-bottom: 18px; }
  .build h3 { font-size: 20px; margin-bottom: 8px; }
  .build p { color: var(--ink-2); font-size: 15.5px; }
  .build--lead { background: var(--ink); color: #C9D3E0; }
  .build--lead h3 { color: #fff; font-size: 26px; letter-spacing: -0.03em; }
  .build--lead p { color: #B9C5D6; font-size: 16.5px; }
  .build--lead .btn { margin-top: 22px; }

  .delivery { margin-top: clamp(64px, 8vw, 96px); }
  .delivery h3.sub { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; margin-bottom: 30px; max-width: 22em; }
  .steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
  .steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
  .steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--gold-ink); margin-bottom: 14px; }
  .steps h4 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
  .steps p { color: var(--ink-2); font-size: 15px; }

  /* ---------------------------------------------------------------- platform */
  .how { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: how; }
  .how li { counter-increment: how; background: var(--paper); border-radius: 24px; padding: 28px 24px 30px; }
  .how li::before { content: counter(how); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; margin-bottom: 22px; }
  .how h3 { font-size: 20px; margin-bottom: 8px; }
  .how p { color: var(--ink-2); font-size: 15.5px; }
  .sources-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .sources-row .label { font-size: 15px; color: var(--slate); margin-right: 6px; }
  .chip { font-size: 14.5px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

  /* ---------------------------------------------------------------- industries (segmented control) */
  .seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--mist); border-radius: 999px; margin-bottom: 44px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
  .seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(16,35,63,.16); }
  .ind-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
  .ind-panel[hidden] { display: none; }
  .ind-panel h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; }
  .ind-panel .lede { margin-top: 16px; font-size: 18px; }
  .ind-meta { margin-top: 28px; }
  .ind-meta dt { font-size: 14px; color: var(--slate); }
  .ind-meta dd { margin-top: 4px; font-size: 16px; }
  .uses { list-style: none; border-top: 1px solid var(--line); }
  .uses li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
  .uses b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
  .uses .d { display: block; font-size: 15px; color: var(--ink-2); margin-top: 3px; }
  .fit { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
  .fit--qp { background: #E3F3EA; color: #17703D; }
  .fit--custom { background: var(--gold-soft); color: var(--gold-ink); }
  .fit--plan { background: var(--mist); color: var(--slate); }

  /* ---------------------------------------------------------------- trust (deep) */
  .sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
  .sec-item { padding: 26px 0 30px; border-top: 1px solid rgba(255,255,255,.12); }
  .sec-item svg { width: 24px; height: 24px; color: var(--gold); margin-bottom: 16px; }
  .sec-item h3 { font-size: 19px; margin-bottom: 8px; }
  .sec-item p { color: #A9B6C8; font-size: 15.5px; }
  .sec-foot { margin-top: 40px; font-size: 15px; color: #8798AF; max-width: 48em; }

  /* ---------------------------------------------------------------- engagement */
  .engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .plan { border-radius: 28px; padding: 34px 30px 32px; background: var(--mist); display: flex; flex-direction: column; }
  .plan--mid { background: var(--ink); }
  .plan--mid h3 { color: #fff; }
  .plan.plan--mid .plan-for, .plan.plan--mid li { color: #C9D3E0; }
  .plan h3 { font-size: 26px; letter-spacing: -0.03em; }
  .plan-for { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
  .plan ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; align-content: start; }
  .plan li { font-size: 15.5px; display: flex; gap: 10px; color: var(--ink-2); }
  .plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--ok); }
  .plan--mid li svg { color: var(--gold); }
  .plan .btn { align-self: flex-start; }
  .pricing-line { margin-top: 32px; font-size: 16px; color: var(--ink-2); max-width: 50em; }
  .pricing-line b { color: var(--ink); }

  /* ---------------------------------------------------------------- compare */
  .compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15.5px; }
  .compare th, .compare td { padding: 18px 14px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; width: 34%; }
  .compare thead th { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink-2); vertical-align: bottom; }
  .compare .us { background: var(--paper); }
  .compare thead .us { color: var(--ink); border-radius: 18px 18px 0 0; box-shadow: inset 0 3px 0 var(--gold); }
  .compare tbody tr:last-child .us { border-radius: 0 0 18px 18px; }
  .mark { width: 22px; height: 22px; margin: 0 auto; }
  .mark-yes { color: var(--ok); } .mark-no { color: #B4BDC9; } .mark-part { color: var(--warn); }
  .compare-key { margin-top: 18px; font-size: 13.5px; color: var(--slate); display: flex; gap: 22px; flex-wrap: wrap; }
  .compare-key span { display: inline-flex; align-items: center; gap: 6px; }
  .compare-key svg { width: 16px; height: 16px; }

  /* ---------------------------------------------------------------- company */
  .story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .story-body p { color: var(--ink-2); font-size: 18px; line-height: 1.65; }
  .story-body p + p { margin-top: 18px; }
  .story-sign { margin-top: 28px; font-size: 15px; color: var(--slate); }
  .story-sign b { color: var(--ink); font-weight: 600; display: block; }
  .facts { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .facts dt { font-size: 14px; color: var(--slate); }
  .facts dd { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.25; }

  /* ---------------------------------------------------------------- faq */
  .faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .faq details { border-bottom: 1px solid #D5DBE3; }
  .faq details:first-child { border-top: 1px solid #D5DBE3; }
  .faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg); transition: transform .25s var(--ease-out); }
  .faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .faq details p { padding: 0 44px 26px 0; color: var(--ink-2); max-width: 38em; }

  /* ---------------------------------------------------------------- contact */
  .contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
  .contact h2 { max-width: 10em; }
  .contact-alt { margin-top: 36px; display: grid; gap: 14px; font-size: 16px; }
  .contact-alt a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
  .contact-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .contact-alt svg { width: 20px; height: 20px; color: var(--gold); }
  .form { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(26px, 3.4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .field { display: grid; gap: 7px; align-content: start; }
  .field--full { grid-column: 1 / -1; }
  .field label { font-size: 14px; font-weight: 500; }
  .field label span { color: var(--slate); font-weight: 400; }
  .field input, .field select, .field textarea { width: 100%; border: 1px solid #CDD4DE; border-radius: 12px; background: #fff; padding: 12px 14px; font-size: 16px; min-height: 48px; transition: border-color .2s ease, box-shadow .2s ease; }
  .field textarea { min-height: 112px; resize: vertical; }
  .field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235B6B7C' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--info); box-shadow: 0 0 0 4px rgba(36,88,211,.14); }
  .field input:user-invalid, .field textarea:user-invalid { border-color: #C2410C; }
  .form-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
  .form-status { grid-column: 1 / -1; font-size: 14px; color: var(--ok); font-weight: 500; }
  .form-status:empty { display: none; }
  .form-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--slate); }

  /* ---------------------------------------------------------------- footer */
  footer { background: var(--deep); color: #8798AF; font-size: 14px; padding: 0 0 40px; }
  .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 36px; padding: 56px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
  .foot-logo { height: 28px; width: auto; margin-bottom: 16px; }
  .foot-grid h2 { font-family: var(--text); font-size: 13px; font-weight: 600; color: #DCE3EC; margin-bottom: 14px; }
  .foot-grid ul { list-style: none; display: grid; gap: 10px; }
  .foot-grid a { text-decoration: none; }
  .foot-grid a:hover { color: #FFFFFF; }
  .foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

  .mobile-bar { display: none; }

  /* ---------------------------------------------------------------- responsive */
  @media (max-width: 1080px) {
    .nav-links, .nav-signin { display: none; }
    .menu-toggle { display: inline-flex; }
    .flow-grid { grid-template-columns: 210px minmax(28px, 1fr) 180px minmax(28px, 1fr) 260px; }
    .roadmap { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
    .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
    .foot-grid > div:first-child { grid-column: 1 / -1; }
  }
  @media (max-width: 900px) {
    .flow-grid { grid-template-columns: 1fr; min-height: 0; }
    .flow-col--wire { display: none; }
    .flow-col-title { height: auto; }
    .flow-sources { grid-auto-rows: auto; grid-template-columns: 1fr 1fr; gap: 10px; }
    .flow-apps { grid-auto-rows: auto; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
    .flow-col--core { position: relative; padding: 48px 0; }
    .flow-col--core .flow-col-title { display: none; }
    .flow-col--core::before, .flow-col--core::after { content: ""; position: absolute; left: 50%; width: 2px; height: 34px; margin-left: -1px; background: linear-gradient(rgba(224,176,74,.25), var(--gold)); }
    .flow-col--core::before { top: 7px; } .flow-col--core::after { bottom: 7px; }
    .core { max-width: 340px; margin: 0 auto; }
    .feature { grid-template-columns: 1fr; }
    .solve-row { grid-template-columns: 1fr; gap: 10px; }
    .via { text-align: left; }
    .builds { grid-template-columns: 1fr 1fr; }
    .how { grid-template-columns: 1fr 1fr; }
    .ind-panel { grid-template-columns: 1fr; }
    .sec-grid { grid-template-columns: 1fr 1fr; }
    .engage { grid-template-columns: 1fr; }
    .story, .faq-wrap, .contact { grid-template-columns: 1fr; }
  }
  @media (max-width: 680px) {
    :root { --gutter: 20px; }
    body { padding-bottom: 76px; }
    .nav .btn--primary { display: none; }
    .hero-ctas .btn { width: 100%; max-width: 320px; }
    .flow { border-radius: 24px; padding: 22px 16px; }
    .flow-sources { grid-template-columns: 1fr; }
    .flow-sources .src:nth-child(n+4) { display: none; }
    .flow-apps { grid-template-columns: 1fr; }
    .feature { border-radius: 24px; }
    .feature-visual { padding: 20px 0 20px 20px; }
    .roadmap, .builds, .how, .sec-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .uses li { grid-template-columns: 1fr; gap: 10px; }
    .seg { display: flex; flex-wrap: wrap; border-radius: 22px; }
    .seg button { flex: 1 1 auto; padding: 10px 14px; font-size: 14.5px; }
    .uses .fit { justify-self: start; }
    .form { grid-template-columns: 1fr; border-radius: 22px; }
    .form-actions .btn { flex: 1; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .compare-scroll { overflow: visible; margin: 0; padding: 0; }
    .compare, .compare tbody, .compare tr, .compare td { display: block; min-width: 0; width: 100%; }
    .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .compare tr { background: var(--paper); border-radius: 20px; padding: 6px 18px 10px; margin-bottom: 12px; }
    .compare td { border: 0; padding: 9px 0; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .compare td:first-child { width: 100%; font-family: var(--display); font-weight: 600; font-size: 17px; padding: 12px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
    .compare td[data-label]::before { content: attr(data-label); font-size: 14.5px; color: var(--ink-2); }
    .compare td.us[data-label]::before { font-weight: 600; color: var(--ink); }
    .compare .us, .compare tbody tr:last-child .us { background: transparent; border-radius: 0; }
    .compare .mark { margin: 0; flex-shrink: 0; }
    .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
    .mobile-bar .btn { flex: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero .enter, .flow .src, .flow .core, .flow .mini { opacity: 1; transform: none; animation: none; }
    .flow .wires path { stroke-dashoffset: 0; animation: none; }
  }


  /* ================================================================
     MULTI-PAGE ADDITIONS
  ================================================================ */
  .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

  .page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
  .page-hero .crumbs { font-size: 14px; color: var(--slate); margin-bottom: 18px; }
  .page-hero .crumbs a { color: var(--slate); text-decoration: none; }
  .page-hero .crumbs a:hover { color: var(--ink); text-decoration: underline; }
  .page-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1.02; max-width: 14em; }
  .page-hero .lede { margin-top: 22px; }
  .page-hero .hero-ctas { justify-content: flex-start; }
  .page-hero .status { margin-bottom: 20px; }

  .more { margin-top: 36px; }
  .band--deep .more .link { color: #9DBBFF; }

  /* Long-form text: articles, legal pages, glossary */
  .prose { max-width: 68ch; }
  .prose h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.025em; margin: 48px 0 14px; }
  .prose h3 { font-size: 20px; margin: 32px 0 10px; }
  .prose p, .prose li { color: var(--ink-2); font-size: 17.5px; line-height: 1.7; }
  .prose p + p { margin-top: 16px; }
  .prose ul, .prose ol { margin: 14px 0 14px 22px; display: grid; gap: 8px; }
  .prose a { color: var(--info); }
  .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }
  .prose pre { background: var(--deep); color: #DCE3EC; padding: 18px 20px; border-radius: 14px; overflow-x: auto; margin: 18px 0; font-size: 14px; line-height: 1.6; }
  .prose pre code { background: none; padding: 0; color: inherit; }
  .prose .meta { font-size: 14px; color: var(--slate); margin-bottom: 28px; }
  .prose .note { background: var(--mist); border-radius: 14px; padding: 16px 18px; font-size: 15.5px; color: var(--ink-2); margin: 20px 0; }

  /* Data tables: trust centre, integrations */
  .table-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
  .data-table th, .data-table td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
  .data-table thead th { font-size: 14px; font-weight: 500; color: var(--slate); }
  .data-table td:first-child { font-weight: 600; color: var(--ink); width: 28%; }
  .data-table td { color: var(--ink-2); }
  .band--mist .data-table th, .band--mist .data-table td { border-color: #D5DBE3; }

  /* Pricing factors */
  .factors { margin-top: 48px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
  .factors h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 12px; }
  .factors p { color: var(--ink-2); }
  .factor-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; counter-reset: f; }
  .factor-list li { counter-increment: f; padding: 16px 0; border-top: 1px solid var(--line); }
  .factor-list b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; }
  .factor-list span { font-size: 15px; color: var(--ink-2); }

  /* Public architecture diagram (platform page) */
  .arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; }
  .arch li { position: relative; padding: 26px 24px 28px; background: var(--paper); border-radius: 24px; margin-right: 28px; }
  .arch li:last-child { margin-right: 0; background: var(--ink); }
  .arch li:last-child h3 { color: #fff; } .arch li:last-child p, .arch li:last-child .arch-tag { color: #C9D3E0; }
  .arch li:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 50%; width: 16px; height: 16px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
  .arch h3 { font-size: 19px; margin-bottom: 6px; }
  .arch .arch-tag { font-size: 13.5px; color: var(--gold-ink); font-weight: 600; margin-bottom: 10px; display: block; }
  .arch p { font-size: 15px; color: var(--ink-2); }

  /* Calculator */
  .calc { background: var(--paper); border-radius: 28px; padding: clamp(26px, 3.4vw, 40px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
  .calc-inputs { display: grid; gap: 18px; }
  .calc-result { background: var(--ink); color: #C9D3E0; border-radius: 22px; padding: 28px; }
  .calc-result .big { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 6vw, 72px); letter-spacing: -0.045em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
  .calc-result p { margin-top: 10px; font-size: 15.5px; }
  .calc-result .btn { margin-top: 22px; }
  .calc-note { margin-top: 18px; font-size: 13.5px; color: var(--slate); max-width: 60em; }

  /* Resource cards */
  .res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .res { background: var(--paper); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .2s ease; }
  .res:hover { border-color: var(--line); }
  .res .kind { font-size: 13.5px; color: var(--gold-ink); font-weight: 600; }
  .res h3 { font-size: 21px; }
  .res p { font-size: 15.5px; color: var(--ink-2); flex: 1; }
  .res .go { color: var(--info); font-weight: 500; font-size: 15px; }
  .band:not(.band--mist) .res { background: var(--mist); }

  .tpl { margin-top: 20px; background: var(--ink); color: #C9D3E0; border-radius: 28px; padding: clamp(26px, 3.4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .tpl h3 { color: #fff; font-size: 26px; letter-spacing: -0.03em; }
  .tpl p { margin-top: 10px; }
  .tpl form { display: flex; gap: 10px; flex-wrap: wrap; }
  .tpl input { flex: 1 1 220px; min-height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; padding: 0 18px; font-size: 16px; }
  .tpl input::placeholder { color: #8FA0B8; }
  .tpl .tpl-direct { display: inline-block; margin-top: 12px; font-size: 14px; color: #9DBBFF; }
  .tpl .tpl-status { font-size: 14px; margin-top: 8px; min-height: 1px; }

  /* Glossary */
  .gloss dt { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; margin-top: 34px; color: var(--ink); scroll-margin-top: 80px; }
  .gloss dd { margin-top: 8px; color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 66ch; }

  /* Form extras */
  .form-wrap { position: relative; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .turnstile-slot { min-height: 0; }
  .form-done { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 40px; outline: none; }
  .form-done svg { width: 40px; height: 40px; color: var(--ok); margin-bottom: 16px; }
  .form-done h3 { font-size: 26px; color: var(--ink); }
  .form-done p { margin-top: 10px; color: var(--ink-2); }
  .form-done .btn { margin-top: 22px; }
  .form-status { color: #9A5B00; }
  .form-note a { color: var(--info); }
  .btn[disabled] { opacity: .6; cursor: progress; }

  .foot-tag { max-width: 24em; }
  .foot-legal { display: inline-flex; gap: 18px; }
  .foot-legal a { text-decoration: none; }
  .foot-legal a:hover { color: #fff; }

  @media (max-width: 900px) {
    .factors, .calc, .tpl { grid-template-columns: 1fr; }
    .arch { grid-template-columns: 1fr; gap: 28px; }
    .arch li { margin-right: 0; }
    .arch li:not(:last-child)::after { right: 50%; top: auto; bottom: -22px; transform: translateX(50%) rotate(135deg); }
    .res-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 680px) {
    .factor-list { grid-template-columns: 1fr; }
    .res-grid { grid-template-columns: 1fr; }
    .foot-bottom { flex-direction: column; }
  }
  .steps.steps--3 { grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 680px) { .steps.steps--3 { grid-template-columns: 1fr; } }
  .steps h3.step-h { font-size: 18px; margin-bottom: 8px; }
  /* On phones the diagram is stacked and has no wires to draw: show it at once. */
  @media (max-width: 900px) {
    .flow .src, .flow .core, .flow .mini { animation: none; opacity: 1; transform: none; }
  }
/* Two-column tables inside legal pages stack on phones */
@media (max-width:680px){
  .prose .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .prose .data-table{min-width:0}
  .prose .data-table,.prose .data-table tbody,.prose .data-table tr,.prose .data-table td{display:block;width:100%!important}
  .prose .data-table tr{padding:12px 0;border-bottom:1px solid rgba(16,35,63,.12)}
  .prose .data-table td{padding:2px 0;border:0}
  .prose .data-table td:first-child{font-weight:600;color:#10233F}
  .prose .table-wrap{overflow:visible;margin:0 0 16px;padding:0}
}

/* ================================================================
   QUALITYPULSE DEMO MEDIA  (video, screenshot gallery, demo CTA)
================================================================ */
.demo-video { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 24px 60px -28px rgba(16, 35, 63, .35); }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--mist); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.shot { margin: 0; }
.shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.shot a:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(16, 35, 63, .4); }
.shot a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.shot figcaption { margin-top: 14px; color: var(--slate); font-size: 15px; line-height: 1.55; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.demo-cta { margin-top: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #EBD39C; }
.demo-cta h3 { font-family: var(--display); font-size: 22px; color: var(--ink); margin: 0 0 6px; }
.demo-cta p { margin: 0; color: var(--ink-2); max-width: 46em; }
.demo-cta .btn { flex: none; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; gap: 28px; }
  .demo-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .shot a { transition: none; } .shot a:hover { transform: none; } }


/* ================================================================
   QUALITYPULSE MEDIA: 3D device stage, tour chapters, lightbox,
   compare slider, phones. CSS 3D only, no WebGL, no extra requests.
================================================================ */
.page-hero--stage .hero-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); align-items: center; }
.page-hero--stage h1 { max-width: 11em; }
.hero-signin { margin-top: 18px; font-size: 15px; }

.stage { perspective: 1600px; perspective-origin: 30% 40%; width: 100%; padding: 0 0 6% 0; }
.stage-scene { --rx: 4deg; --ry: -12deg; position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease-out); animation: stage-float 9s ease-in-out infinite; }
@keyframes stage-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.dev { margin: 0; }
.dev img { display: block; width: 100%; height: auto; }
.dev--laptop { position: relative; border-radius: 14px; background: #fff; border: 1px solid rgba(16,35,63,.14); overflow: hidden; box-shadow: -24px 36px 70px -28px rgba(16,35,63,.5), 0 2px 0 rgba(255,255,255,.7) inset; }
.dev-bar { display: flex; gap: 6px; padding: 9px 12px; background: #E9EEF5; border-bottom: 1px solid var(--line); }
.dev-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C3CCD9; }
.dev--laptop img { aspect-ratio: 16 / 10; }
.stage .dev--phone { position: absolute; right: -3%; bottom: -9%; width: 27%; transform: translateZ(70px) rotateY(-4deg); }
.dev--phone { border-radius: 24px; padding: 5px; background: #0E1A2D; box-shadow: -14px 28px 50px -18px rgba(16,35,63,.65); }
.dev--phone img { border-radius: 19px; aspect-ratio: 780 / 1688; background: var(--mist); }
.stage--sm { padding: 0 6% 7% 0; }
.stage--sm .stage-scene { --ry: -9deg; animation: none; }
.feature-visual { overflow: hidden; }

.tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.chapters h3 { font-family: var(--display); font-size: 17px; margin: 0 0 12px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.chapters li { flex: none; scroll-snap-align: start; }
.chapters button { font: inherit; display: flex; gap: 8px; align-items: baseline; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); cursor: pointer; white-space: nowrap; font-size: 14.5px; }
.chapters button:hover { border-color: var(--slate); color: var(--ink); }
.chapters button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chapters button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ch-time { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--slate); }
.chapters button[aria-current="true"] .ch-time { color: #D6DEE8; }

.compare { --pos: 50%; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); box-shadow: 0 24px 60px -28px rgba(16,35,63,.4); aspect-ratio: 16 / 10; max-width: 1100px; margin: 0 auto; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare.is-live::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold); pointer-events: none; box-shadow: 0 0 0 1px rgba(16,35,63,.25); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.compare:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.compare-tag { position: absolute; bottom: 14px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(16,35,63,.82); color: #fff; z-index: 1; }
.compare-tag--l { left: 14px; } .compare-tag--d { right: 14px; }

.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 40px; justify-content: center; align-items: start; }
.phone-card { margin: 0; text-align: center; }
.phone-card:nth-child(2) { margin-top: -28px; }
.phone-card .dev--phone { transition: transform .4s var(--ease-out); }
.phone-card:hover .dev--phone { transform: translateY(-6px) rotateY(-4deg); }
.phone-card figcaption { margin-top: 16px; color: var(--slate); font-size: 15px; line-height: 1.5; }
.phone-card figcaption b { color: var(--ink); font-weight: 600; }

.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(10,20,36,.9); }
.lb-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; }
.lb figure { margin: 0; max-width: min(1400px, 100%); display: grid; gap: 12px; justify-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; background: var(--mist); }
.lb figcaption { color: #D6DEE8; font-size: 15px; max-width: 52em; text-align: center; }
.lb button { font: inherit; border: 0; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; width: 44px; height: 44px; font-size: 26px; line-height: 1; flex: none; }
.lb button:hover { background: rgba(255,255,255,.26); }
.lb button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-x { position: absolute; top: 16px; right: 16px; }
.shot a[data-lightbox] { cursor: zoom-in; }

@media (min-width: 980px) {
  .page-hero--stage .hero-split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .tour { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; }
  .chapters ol { flex-direction: column; overflow: visible; }
  .chapters button { width: 100%; border-radius: 12px; white-space: normal; }
}
@media (max-width: 979px) {
  .stage { padding: 0 0 8% 0; }
  .stage-scene { --ry: -7deg; --rx: 3deg; }
  .stage .dev--phone { right: -1%; width: 26%; }
}
@media (max-width: 760px) {
  .phones { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding: 6px 20px 14px; margin: 0 -20px; }
  .phone-card { flex: none; width: 62%; max-width: 250px; scroll-snap-align: center; }
  .phone-card:nth-child(2) { margin-top: 0; }
  .lb-nav { position: absolute; bottom: 18px; } .lb-prev { left: 20px; } .lb-next { right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-scene { animation: none; transition: none; }
  .phone-card .dev--phone { transition: none; } .phone-card:hover .dev--phone { transform: none; }
}
.page-hero--stage { overflow-x: clip; }
.page-hero--stage h1 { font-size: clamp(38px, 4.6vw, 62px); max-width: 12em; }

/* ================================================================
   CASE STORY (QualityPulse page): before / after, stats, quote
================================================================ */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ba-col { border-radius: 24px; padding: clamp(26px, 3vw, 40px); }
.ba-col h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.ba-col h3 span { font-family: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ba-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba-col li { position: relative; padding-left: 28px; font-size: 16.5px; line-height: 1.5; }
.ba-col li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; }
.ba-col--before { background: var(--mist); border: 1px solid var(--line); color: var(--ink-2); }
.ba-col--before h3 span { color: var(--slate); }
.ba-col--before li::before { border: 2px solid #A9B4C2; }
.ba-col--after { background: var(--ink); color: #D6DEE8; box-shadow: 0 30px 60px -34px rgba(16,35,63,.6); }
.ba-col--after h3 { color: #fff; }
.ba-col--after h3 span { color: var(--gold); }
.ba-col--after li::before { background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 2px var(--gold); }
.proof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: clamp(36px, 5vw, 56px) 0; }
.pstat { border-top: 2px solid var(--ink); padding-top: 16px; }
.pstat b { display: block; font-family: var(--display); font-size: clamp(34px, 4vw, 50px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.pstat > span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.proof-sub { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; margin: 0 0 22px; }
.proof-quote { margin: clamp(36px, 5vw, 56px) 0 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--gold); max-width: 52em; }
.proof-quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.proof-quote figcaption { margin-top: 12px; color: var(--slate); font-size: 15px; }
#proof .demo-cta { margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } .proof-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .proof-stats { grid-template-columns: 1fr; } }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.pstat b i { font-style: normal; color: var(--gold-ink); }
.pstat b { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; }
@media (min-width: 861px) { .pstat b { min-height: 2.24em; } }
.pstat .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Home: hero proof line, start-here path, form next steps */
.hero-proof { margin: 26px auto 0; max-width: 40em; text-align: center; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.hero-proof .link { white-space: nowrap; }
.how.how--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how--3 li { display: flex; flex-direction: column; align-items: flex-start; }
.how--3 li::before { display: none; }
.how--3 .status { margin-bottom: 18px; }
.how--3 .link { margin-top: auto; padding-top: 14px; }
@media (max-width: 980px) { .how.how--3 { grid-template-columns: 1fr; } }
.next-steps { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 34em; counter-reset: ns; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 38px; font-size: 15.5px; line-height: 1.5; color: #C9D3E2; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 600; }
.next-steps b { color: #fff; font-weight: 600; }
.band--deep .next-steps { margin-bottom: 8px; }
.how--3 li { background: var(--mist); }

/* Worked example (QualityPulse page) */
.ex-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 44px); counter-reset: ex; }
.ex-step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid #D5DBE3; }
.ex-step:first-child { border-top: 0; padding-top: 0; }
.ex-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.ex-copy h3 { font-family: var(--display); font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.02em; margin: 0 0 8px; }
.ex-copy p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.ex-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); box-shadow: 0 20px 44px -26px rgba(16,35,63,.4); }
.ex-shot img { display: block; width: 100%; height: auto; }
#example .demo-cta { margin-top: clamp(36px, 5vw, 56px); background: var(--paper); border-color: var(--line); }
@media (max-width: 860px) { .ex-step { grid-template-columns: 1fr; } }
