  /* ── tokens ─────────────────────────────────────────────────────────
     Palette, radii and type scale measured off clerk.com. */
  :root {
    color-scheme: light;
    --ground:      #f7f7f8;
    --sheet:       #ffffff;
    --ink:         #131316;
    --ink-2:       #42434d;
    --muted:       #747686;
    --faint:       #9394a1;
    --line:        #e8e8ec;
    --line-2:      #d9d9de;
    --accent:      #131316;
    --accent-2:    #2a2a30;
    --accent-lite: #ffffff;
    --accent-soft: #ececed;
    --dark:        #131316;
    --dark-2:      #0e0e11;
    --dark-line:   #26262c;
    --dark-text:   #8b8d98;
    --green:       #22a06b;
    --amber:       #b06f14;
    --r-btn:       6px;
    --r-card:      12px;
    --r-sheet:     16px;
    --shadow-card: 0 1px 2px rgba(19,19,22,.04), 0 8px 24px -12px rgba(19,19,22,.16);
    --shadow-pop:  0 2px 4px rgba(19,19,22,.04), 0 24px 56px -20px rgba(19,19,22,.28);
    --sheet-w:     1184px;

    /* ── brand ─────────────────────────────────────────────────────────
       Soba's own identity, independent of the Clerk-derived UI palette
       above. See brand/README.md. */
    --brand-ink:    #1a1815;
    --brand-soba:   #8a7a63;
    --brand-husk:   #c9bda8;
    --brand-ground: #f6f3ec;
    --brand-black:  #141210;
  }

  /* ── base ───────────────────────────────────────────────────────── */
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: "Inter", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
  }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  p, li, td, th, blockquote, .fact, .acc-text { overflow-wrap: break-word; }
  a { color: inherit; text-decoration: none; }
  p { margin: 0; }
  h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
  ::selection { background: var(--accent-soft); color: var(--accent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

  .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

  /* ── page sheet ─────────────────────────────────────────────────── */
  .sheet {
    max-width: var(--sheet-w); margin: 0 auto;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--r-sheet);
    overflow: hidden;
  }
  .inner { max-width: 1040px; margin-inline: auto; padding-inline: 32px; }

  /* ── announcement + nav ─────────────────────────────────────────── */
  .banner {
    background: var(--ink); color: #fff;
    height: 40px; display: flex; align-items: center; justify-content: center;
    gap: 14px; font-size: 13px; font-weight: 500;
  }
  .banner span { opacity: .55; }
  .banner a { display: inline-flex; align-items: center; gap: 5px; }
  .banner a:hover { text-decoration: underline; text-underline-offset: 3px; }

  .navwrap { position: sticky; top: 12px; z-index: 60; padding: 12px 16px 14px; }
  .nav {
    max-width: var(--sheet-w); margin-inline: auto;
    background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.6);
    border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 1px 2px rgba(19,19,22,.05), 0 10px 30px -18px rgba(19,19,22,.25);
    height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 14px 0 18px;
  }
  .nav-sep { width: 1px; height: 20px; background: var(--line-2); flex: none; }
  .nav > .nav-sep { margin-inline: 10px; }
  .nav-right .nav-sep { margin-inline: 8px; }
  .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
  .logo svg { display: block; }
  .nav-links { display: flex; align-items: center; gap: 24px; margin-right: auto; }
  .nav-links a { font-size: 15px; color: var(--ink); opacity: .82; }
  .nav-links a:hover { opacity: 1; }
  .nav-right { display: flex; align-items: center; gap: 4px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: var(--r-btn); font-family: inherit; font-weight: 500; font-size: 13px;
    height: 32px; padding: 0 12px; border: .5px solid transparent; cursor: pointer;
    letter-spacing: -.01em; transition: background .14s ease, color .14s ease, border-color .14s ease;
  }
  .btn-text { background: transparent; color: var(--ink); }
  .btn-text:hover { background: rgba(19,19,22,.05); }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: #2a2a30; }
  .btn-accent { background: var(--ink); color: #fff; }
  .btn-accent:hover { background: #2a2a30; }
  .btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
  .btn-outline:hover { border-color: var(--faint); }
  .btn-lg { height: 40px; padding: 0 18px; font-size: 14px; }
  .arrow { font-size: 9px; opacity: .7; }

  /* ── hero ───────────────────────────────────────────────────────── */
  .hero { position: relative; padding: 104px 0 96px; text-align: center; overflow: hidden; }
  .hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    color: var(--ink); opacity: .055;
  }
  .hero-fade {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(76% 62% at 50% 40%, #fff 24%, rgba(255,255,255,.72) 52%, rgba(255,255,255,0) 78%);
  }
  .hero-in { position: relative; }
  h1 {
    font-size: clamp(33px, 5vw, 60px); line-height: 1.08; letter-spacing: -.032em;
    max-width: 20ch; margin-inline: auto;
  }
  .hero-sub {
    margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--muted);
    max-width: 60ch; margin-inline: auto; letter-spacing: -.012em;
  }
  .hero-cta { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .hero-note { margin-top: 18px; font-size: 13.5px; color: var(--faint); max-width: 46ch; margin-inline: auto; line-height: 1.5; }
  .prompt-pill {
    margin: 36px auto 0; width: fit-content; max-width: 100%;
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 7px 8px 7px 14px; box-shadow: var(--shadow-card);
  }
  .prompt-pill code { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); white-space: nowrap; overflow-x: auto; }
  .prompt-pill code b { color: var(--ink); font-weight: 500; }
  .pill-label {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 12px; color: var(--muted); margin-bottom: 10px;
  }
  .pill-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; font-style: normal; }
  .icon-btn {
    border: 0; background: transparent; cursor: pointer; color: var(--faint);
    width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 11px;
    font-family: "JetBrains Mono", monospace;
  }
  .icon-btn:hover { background: var(--ground); color: var(--ink); }

  /* ── runtime strip ──────────────────────────────────────────────── */
  .strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); }
  .strip > div { padding: 30px 24px; border-left: 1px solid var(--line); display: flex; align-items: center; }
  .strip > div:first-child { border-left: 0; padding-left: 32px; }
  .strip-note { font-size: 15px; color: var(--ink); line-height: 1.4; letter-spacing: -.015em; }
  .strip-item { justify-content: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
  .strip-item .dotk { width: 20px; height: 20px; border-radius: 5px; background: var(--ink); display: grid; place-items: center; color: #fff; font-size: 10px; font-family: "JetBrains Mono", monospace; }

  /* ── section furniture ──────────────────────────────────────────── */
  .section { padding: 92px 0; }
  .eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: -.005em; }
  .sec-h { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.028em; margin-top: 14px; max-width: 18ch; }
  .sec-p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 56ch; letter-spacing: -.012em; }
  .sec-p b { font-weight: 600; color: var(--ink); }
  .sec-head-c { text-align: center; }
  .sec-h-wide { max-width: 30ch; }
  .sec-head-c .sec-h, .sec-head-c .sec-p { margin-inline: auto; }
  .link-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; margin-top: 26px; }
  .link-more:hover { color: var(--accent); }

  /* ── two-column feature ─────────────────────────────────────────── */
  .split { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 56px; align-items: start; }
  .split-flip { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); }

  /* accordion list, Clerk's component index */
  .acc { margin-top: 34px; border-top: 1px solid var(--line); }
  .acc-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .acc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .acc-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
  .acc-item.is-open .acc-dot { background: var(--accent); border-color: var(--accent); }
  .acc-title { font-family: "JetBrains Mono", monospace; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
  /* component picker: a row of buttons, not an accordion */
  .pv-label {
    display: flex; align-items: center; gap: 10px; margin-top: 30px;
    font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
  }
  .pv-label .in-design { margin-left: 0; }
  .pv-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 16px; }
  .pv-dot {
    width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
    background: var(--line-2); cursor: pointer;
    transition: background .18s ease, width .18s ease;
  }
  .pv-dot { position: relative; }
  .pv-dot::after { content: ""; position: absolute; inset: -14px -8px; }
  .pv-dot:hover { background: var(--faint); }
  .pv-dot[aria-selected="true"] { width: 18px; background: var(--accent); }

  /* carousel arrows flanking the live preview */
  .stage-frame { position: relative; }
  .pv-arrow {
    width: 32px; height: 32px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%; background: #fff;
    color: var(--ink-2); cursor: pointer;
    box-shadow: 0 1px 2px rgba(19, 19, 22, .06), 0 6px 16px -8px rgba(19, 19, 22, .25);
    transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
  }
  .pv-arrow:hover { border-color: var(--line-2); color: var(--ink); transform: scale(1.06); }
  .pv-arrow:active { background: var(--ground); transform: scale(.96); }
  /* fixed height, not centred: panel heights vary from 177px to 625px, so
     50% would make the arrows jump on every switch. */
  .stage-arrow { position: absolute; top: 130px; margin-top: -16px; z-index: 6; }
  .stage-prev { left: -18px; }
  .stage-next { right: -18px; }
  @media (max-width: 1000px) { .stage-arrow { display: none; } }

  /* a segmented picker: grey trough, white pill for the live component */
  .pv-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 14px;
    padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--ground);
  }
  .pv-tab {
    display: flex; align-items: center; gap: 9px; text-align: left;
    font-family: inherit; font-size: 13px; font-weight: 500;
    padding: 9px 11px; border: 1px solid transparent; border-radius: 7px;
    background: transparent; color: var(--ink-2); cursor: pointer; letter-spacing: -.01em;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  }
  .pv-tab i {
    width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); flex: none;
    font-style: normal; transition: background .15s ease;
  }
  .pv-tab:hover { background: rgba(255, 255, 255, .72); color: var(--ink); }
  .pv-tab[aria-selected="true"] {
    background: #fff; border-color: var(--line); color: var(--accent);
    box-shadow: 0 1px 2px rgba(19, 19, 22, .06);
  }
  .pv-tab[aria-selected="true"] i { background: var(--accent); }
  .pv-desc {
    margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted);
    max-width: 46ch; min-height: 44px;
  }

  /* only the toggling accordions advertise themselves as clickable */
  [data-accordion] .acc-head { cursor: pointer; user-select: none; }
  [data-accordion] .acc-head::after {
    content: ""; width: 7px; height: 7px; margin-left: auto; margin-right: 2px;
    border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
    transform: rotate(45deg) translate(-2px, -2px); transform-origin: center;
    transition: transform .2s ease, border-color .15s ease;
  }
  [data-accordion] .acc-item.is-open .acc-head::after {
    transform: rotate(225deg) translate(-2px, -2px); border-color: var(--accent);
  }
  [data-accordion] .acc-head:hover .acc-title { color: var(--accent); }
  [data-accordion] .acc-head:hover::after { border-color: var(--accent); }
  [data-accordion] .acc-head:hover .acc-dot { border-color: var(--accent); }
  [data-accordion] .acc-item:not(.is-open) .acc-head:hover { opacity: 1; }
  .acc-title { transition: color .15s ease; }
  .acc-dot { transition: border-color .15s ease, background .15s ease; }
  .pv-item { border-radius: 6px; transition: color .15s ease, background .15s ease; }
  .pv-item:hover { background: var(--ground); }
  .pv-item { padding-inline: 8px; margin-inline: -8px; }
  .acc-body { padding: 10px 0 2px 21px; }
  .acc-text { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 46ch; }
  .acc-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
  .acc-list span { font-family: "JetBrains Mono", monospace; font-size: 12.5px; font-weight: 500; color: var(--ink); }
  .acc-list span.on { color: var(--accent); }
  .acc-list span em { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 8px; }
  /* span.in-design, not .in-design: `.acc-list span` is more specific and would
     otherwise win the font-family and leave the tag in monospace. */
  span.in-design {
    font-family: "Inter", ui-sans-serif, sans-serif; font-size: 9.5px; font-weight: 500;
    letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
    border: 1px solid var(--line); border-radius: 4px; padding: 1.5px 5px;
    margin-left: 10px; white-space: nowrap; vertical-align: 1.5px;
  }

  /* ── product card (the run board) ───────────────────────────────── */
  /* ── component gallery (left list drives the right preview) ────── */
  .pv-item {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: none; border: 0; padding: 7px 0; cursor: pointer;
    font-family: "JetBrains Mono", monospace; font-size: 12.5px; font-weight: 500;
    color: var(--ink); letter-spacing: -.01em;
  }
  .pv-item:hover { color: var(--accent); }
  .pv-item[aria-selected="true"] { color: var(--accent); }
  .pv-item i {
    width: 5px; height: 5px; border-radius: 50%; background: var(--line-2);
    flex: none; font-style: normal; transition: background .15s ease;
  }
  .pv-item[aria-selected="true"] i { background: var(--accent); }
  /* the .ghost behind these is absolutely positioned, so the slide needs a
     stacking context of its own or the blur paints over the card. */
  .pv-viewport { position: relative; overflow: hidden; transition: height .38s cubic-bezier(.4, 0, .2, 1); }
  .pv-track { display: flex; align-items: flex-start; transition: transform .38s cubic-bezier(.4, 0, .2, 1); }
  .pv-panel { position: relative; flex: 0 0 100%; min-width: 0; }
  .pv-panel .mockcard,
  .pv-panel .codecard,
  .pv-panel .sfoot { max-width: 408px; margin-inline: auto; }
  .pv-panel[hidden] { display: none !important; }
  .mockcard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: var(--shadow-pop); overflow: hidden;
  }
  .mock-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 8px 7px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
  }
  .mock-bar b { color: var(--ink); font-weight: 600; font-family: "JetBrains Mono", monospace; font-size: 12px; }
  .mock-body { padding: 28px 26px 24px; }
  .mock-mark {
    width: 40px; height: 40px; border-radius: 11px; background: var(--brand-black);
    display: grid; place-items: center; margin: 0 auto 18px;
  }
  .mock-title { text-align: center; font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
  .mock-sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
  .mock-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
  .mock-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px;
    background: #fff; font-size: 14px; font-weight: 500; letter-spacing: -.012em; color: var(--ink);
  }
  .mock-btn-in { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); }
  .mock-btn-in svg { color: var(--ink); flex: none; }
  .mock-badge {
    position: absolute; right: 10px; font-size: 10.5px; font-weight: 500; color: var(--muted);
    background: var(--ground); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px;
  }
  .mock-or {
    display: flex; align-items: center; gap: 12px; margin: 18px 0;
    font-size: 12px; color: var(--faint);
  }
  .mock-or::before, .mock-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
  .mock-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; letter-spacing: -.01em; }
  .mock-input {
    display: flex; align-items: center; height: 38px; padding: 0 12px;
    border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
    font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted);
  }
  .mock-hint { font-size: 11.5px; color: var(--faint); margin-top: 7px; }
  .mock-cta {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; margin-top: 20px; border-radius: 8px;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -.012em;
  }
  .mock-cta .arrow { opacity: .55; }
  .mock-foot {
    border-top: 1px solid var(--line); padding: 12px; text-align: center;
    font-size: 12px; color: var(--faint); background: #fcfcfd;
  }
  /* pricing table + checkout previews */
  .mock-wide { max-width: none !important; }
  .mock-body-tight { padding: 16px; }

  /* ── the connect button, the one control that lives in the host UI ─────── */
  .cbtn-stage { padding: 18px 4px; text-align: center; }
  .cbtn-stage + .cbtn-stage { border-top: 1px solid var(--line); }
  .cbtn {
    display: inline-flex; align-items: center; gap: 9px;
    height: 38px; padding: 0 16px; border-radius: 9px;
    background: var(--ink); color: #fff; border: 1px solid var(--ink);
    font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  }
  .cbtn-glyph { flex: none; opacity: .9; }
  .cbtn-ghost {
    --btn-ground: #fff;
    background: #fff; color: var(--ink); border-color: var(--line-2);
    box-shadow: 0 1px 2px rgba(19, 19, 22, .05);
  }
  .cbtn-on {
    --btn-ground: #fff;
    background: #fff; color: var(--ink); border-color: var(--line-2); font-weight: 500;
    font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  }
  .cbtn-cap { margin-top: 11px; font-size: 12px; color: var(--faint); letter-spacing: -.005em; }
  .plangrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .plan { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
  .plan-head { padding: 14px 14px 13px; background: #fcfcfd; border-bottom: 1px solid var(--line); }
  .plan-name { font-size: 13px; font-weight: 700; letter-spacing: -.015em; }
  .plan-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
  .plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 12px; }
  .plan-price b { font-size: 23px; font-weight: 700; letter-spacing: -.035em; }
  .plan-price span { font-size: 11.5px; color: var(--muted); }
  .plan-toggle { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
  .toggle { width: 26px; height: 15px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; }
  .toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
  .plan-cta {
    margin: 13px 13px 0; height: 32px; border-radius: 7px; background: var(--ink); color: #fff;
    font-size: 12.5px; font-weight: 500; display: grid; place-items: center; letter-spacing: -.01em;
  }
  .plan-cta-quiet { background: var(--ground); color: var(--muted); border: 1px solid var(--line); }
  .plan-feats { padding: 14px 13px 15px; display: flex; flex-direction: column; gap: 9px; }
  .plan-feat { display: flex; gap: 8px; font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
  .plan-feat i { font-style: normal; color: var(--faint); flex: none; }

  /* ── billing builder ────────────────────────────────────────────────
     Two panes: the parameters you set on the left, the offer and the
     invoice they produce on the right. Driven by the script at the foot
     of index.html; every value here is also legible with JS off. */
  .bb {
    margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    border: 1px solid var(--line); border-radius: var(--r-card); background: #fff;
    box-shadow: var(--shadow-card); overflow: hidden;
  }
  .bb-left { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
  .bb-left-bar, .bb-right-bar {
    display: flex; align-items: center; gap: 8px; justify-content: space-between;
    padding: 11px 20px; border-bottom: 1px solid var(--line);
    font-size: 12px; color: var(--muted);
  }
  .bb-left-bar b { color: var(--ink); font-weight: 600; font-size: 12.5px; letter-spacing: -.01em; }
  .bb-editing { margin-right: auto; font-size: 12px; color: var(--faint); }
  .bb-editing em { font-style: normal; font-weight: 500; color: var(--ink-2); }
  .bb-right-bar { justify-content: flex-start; background: #fbfbfc; }
  .bb-arrow { color: var(--faint); }

  .bb-fields { padding: 6px 20px 4px; flex: 1; }
  .bb-field { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .bb-field:last-child { border-bottom: 0; }
  .bb-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
  .bb-lab {
    font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  }
  .bb-hint { font-size: 12px; color: var(--faint); margin-left: auto; text-align: right; }
  .bb-seg { display: flex; flex-wrap: wrap; gap: 6px; }
  .bb-opt {
    font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
    background: #fff; border: 1px solid var(--line-2); border-radius: 7px;
    padding: 7px 12px; white-space: nowrap;
    transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
  }
  .bb-opt:hover { border-color: var(--ink-2); color: var(--ink); }
  .bb-opt.is-on {
    background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500;
    box-shadow: 0 1px 2px rgba(19,19,22,.18);
  }
  .bb-field.is-mute { opacity: .38; }
  .bb-field.is-mute .bb-opt { pointer-events: none; }
  .bb-opt.is-void { opacity: .35; pointer-events: none; text-decoration: line-through; }
  .bb-left-foot {
    display: flex; align-items: center; gap: 16px; justify-content: space-between;
    padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfbfc;
  }
  .bb-left-foot p { font-size: 12.5px; color: var(--muted); }
  .bb-reset {
    font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; flex: none;
    background: none; border: 0; padding: 4px 2px; text-decoration: underline;
    text-underline-offset: 3px; text-decoration-color: var(--line-2);
  }
  .bb-reset:hover { color: var(--ink); }

  .bb-right { background: var(--ground); display: flex; flex-direction: column; }
  .bb-quote {
    margin: 20px 20px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-pop); padding: 20px 20px 18px;
  }
  .bb-q-top { display: flex; align-items: center; gap: 10px; }
  .bb-plan { font-size: 13px; font-weight: 700; letter-spacing: -.015em; }
  .bb-pill {
    margin-left: auto; font-size: 11.5px; font-weight: 500; border-radius: 999px;
    padding: 3px 9px; background: #eaf6f0; color: var(--green);
  }
  .bb-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
  .bb-price b { font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
  .bb-price s { font-size: 19px; color: var(--faint); letter-spacing: -.03em; }
  .bb-price span { font-size: 12.5px; color: var(--muted); }
  .bb-then { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.5; min-height: 19px; }
  .bb-feats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .bb-feats li {
    position: relative; padding-left: 19px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
  }
  .bb-feats li::before {
    content: "\2713"; position: absolute; left: 0; top: 0; color: var(--faint); font-size: 11px;
  }
  .bb-cta {
    margin-top: 17px; height: 38px; display: grid; place-items: center;
    background: var(--accent); color: #fff; border-radius: 8px;
    font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  }
  .bb-applied {
    margin-top: 10px; display: flex; align-items: center; gap: 7px; justify-content: center;
    font-size: 11.5px; color: var(--green);
  }
  .bb-applied i { font-style: normal; }
  .bb-applied[hidden], .bb-rec-row[hidden], .bb-price s[hidden] { display: none; }

  /* the deck: the plan being priced sits on top, the rest of the catalogue
     tucks under it so you can see there are more without reading them. */
  .bb-deck { position: relative; margin: 20px 20px 0; }
  .bb-deck .bb-quote { margin: 0; position: relative; z-index: 3; }
  .bb-peek {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; font: inherit; text-align: left; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-card); padding: 44px 18px 13px;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
  }
  #bb-peek-1 { z-index: 2; width: calc(100% - 18px); margin: -38px auto 0; }
  #bb-peek-2 { z-index: 1; width: calc(100% - 36px); margin: -34px auto 0; background: #fcfcfd; }
  .bb-peek:hover { transform: translateY(4px); border-color: var(--line-2); background: #fff; }
  .bb-peek:focus-visible { transform: translateY(4px); }
  .bb-peek-n { font-size: 12.5px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
  .bb-peek-p { font-size: 12.5px; color: var(--muted); }
  .bb-deck-k { margin: 14px 20px 0; font-size: 11.5px; color: var(--faint); text-align: center; }

  /* the model policy reuses the builder shell; only the ladder is new */
  .mp-ladder { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
  .mp-rung {
    display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
    padding: 7px 0; font-size: 12.5px; color: var(--ink-2);
  }
  .mp-n { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--faint); }
  .mp-name { letter-spacing: -.01em; }
  .mp-why { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; }
  .mp-st {
    font-size: 11px; font-weight: 500; border-radius: 999px; padding: 2px 8px; white-space: nowrap;
    background: var(--ground); color: var(--muted);
  }
  .mp-rung.is-picked .mp-name { font-weight: 600; color: var(--ink); }
  .mp-rung.is-picked .mp-st { background: var(--ink); color: #fff; }
  .mp-rung.is-off { opacity: .45; }
  .mp-rung.is-off .mp-name { text-decoration: line-through; text-decoration-color: var(--line-2); }

  .bb-rec { margin: 22px 20px 20px; border-top: 1px solid var(--line-2); padding-top: 14px; }
  .bb-rec-k {
    font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
  }
  .bb-rec-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 7px 0; font-size: 12.5px; color: var(--muted); border-bottom: 1px dotted var(--line-2);
  }
  .bb-rec-row:last-child { border-bottom: 0; }
  .bb-rec-row b { color: var(--ink); font-weight: 600; white-space: nowrap; }

  .bb-notes {
    margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px; border-top: 1px solid var(--line); padding-top: 24px;
  }
  .bb-note-t {
    font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500;
    letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  }
  .bb-note-p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.55; }

  @media (max-width: 900px) {
    .bb { grid-template-columns: minmax(0, 1fr); }
    .bb-left { border-right: 0; border-bottom: 1px solid var(--line); }
    .bb-notes { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  }
  @media (max-width: 560px) {
    .bb-head { flex-direction: column; gap: 3px; align-items: flex-start; }
    .bb-hint { margin-left: 0; text-align: left; }
    .bb-left-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  }

  .co-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
    font-size: 14px; font-weight: 700; letter-spacing: -.02em;
  }
  .co-x { color: var(--faint); font-weight: 400; font-size: 16px; }
  .co-lines { padding: 4px 0; }
  .co-line {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 11px 16px; font-size: 13px; color: var(--ink-2);
  }
  .co-amt { text-align: right; }
  .co-amt b { display: block; color: var(--ink); font-weight: 600; }
  .co-amt em { font-style: normal; font-size: 11px; color: var(--faint); }
  .co-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 13px; color: var(--ink); font-weight: 600; }
  .co-sec { margin: 12px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fcfcfd; }
  .co-sec-last { margin-bottom: 16px; }
  .co-sec-t { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
  .co-select {
    display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px;
    border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--ink-2);
  }
  .co-card { width: 20px; height: 14px; border-radius: 3px; background: var(--line-2); flex: none; }
  .co-caret { margin-left: auto; color: var(--faint); font-size: 11px; }
  .co-pay { margin-top: 10px; height: 36px; font-size: 13px; }
  .co-or { margin: 0 16px; }
  .co-alt {
    display: grid; place-items: center; height: 34px; border-radius: 8px; background: #fff;
    border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; color: var(--ink);
  }
  .co-alt + .co-alt { margin-top: 8px; }

  .mock-row { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; }
  .mock-row + .mock-row { margin-top: 8px; }
  .mock-row b { font-size: 13.5px; font-weight: 600; letter-spacing: -.015em; display: block; }
  .mock-row em { font-style: normal; font-size: 11px; color: var(--faint); margin-left: auto; font-family: "JetBrains Mono", monospace; }
  .mock-row p { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
  .live-dot.off { background: var(--line-2); }
  .live-dot.warn { background: var(--amber); }

  .stage { position: relative; padding: 8px 0 0; }
  .ghost {
    position: absolute; inset: 34px -26px auto auto; width: 74%; height: 300px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
    filter: blur(2.5px); opacity: .55; transform: translateX(26px);
  }
  /* the connect previews are card-width, so the backdrop follows the card
     rather than the column it sits in. */
  #connect .ghost {
    inset: 26px auto auto 50%; width: 408px; opacity: .5;
    transform: translateX(calc(-50% + 26px));
  }
  .board {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--shadow-pop); overflow: hidden;
  }
  .board-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
    font-size: 12px; color: var(--muted);
  }
  .board-top b { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: -.02em; }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); display: inline-block; margin-right: 8px; vertical-align: 1px; }
  .board.is-live .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .board-body { padding: 14px; }
  .board-label { font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
  .board-label::after { content: none; }
  .board-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }

  /* ── the split, stated as the equation it is ────────────────────── */
  .eqn {
    display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr;
    align-items: stretch; margin-top: 48px;
  }
  .eq-op {
    display: grid; place-items: center;
    font-size: 21px; font-weight: 400; color: var(--faint); letter-spacing: -.02em;
  }
  .eq-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
    border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; padding: 22px;
  }
  .eq-card h3 { font-size: 17px; letter-spacing: -.025em; }
  .eq-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
  .eq-k {
    font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
  }
  .eq-tag {
    margin-top: auto; padding-top: 14px; font-size: 11.5px; color: var(--faint);
  }
  /* the sum sits back; yours is the outlined side; Soba's is the filled one */
  .eq-sum { background: var(--ground); border-color: var(--line-2); }
  .eq-yours { box-shadow: 0 1px 2px rgba(19, 19, 22, .04); }
  .eq-ours { background: var(--ink); border-color: var(--ink); }
  .eq-ours h3 { color: #fff; }
  .eq-ours p { color: rgba(255, 255, 255, .68); }
  .eq-ours .eq-k, .eq-ours .eq-tag { color: rgba(255, 255, 255, .45); }
  .eq-foot {
    margin-top: 22px; text-align: center; font-size: 13px; line-height: 1.55; color: var(--faint);
  }
  @media (max-width: 860px) {
    .eqn { grid-template-columns: minmax(0, 1fr); }
    .eq-op { padding: 10px 0; }
    .eq-tag { margin-top: 4px; padding-top: 0; }
  }

  /* ── the dashboard: the hosted half, as a product surface ───────── */
  .dash {
    max-width: 960px; margin: 48px auto 0; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line); background: #fff;
    box-shadow: 0 24px 48px -28px rgba(19, 19, 22, .3), 0 2px 6px rgba(19, 19, 22, .05);
  }
  .dash-bar {
    display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 13px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfbfc, #f5f5f7);
  }
  .dash-lights { display: flex; gap: 7px; }
  .dash-lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
  .dash-lights i:nth-child(1) { background: #ff5f57; }
  .dash-lights i:nth-child(2) { background: #febc2e; }
  .dash-lights i:nth-child(3) { background: #28c840; }
  .dash-url {
    flex: 1; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 11.5px;
    color: var(--faint);
  }
  .dash-bar span.in-design { margin-left: 0; flex: none; }
  .dash-body { display: grid; grid-template-columns: 178px minmax(0, 1fr); }
  .dash-side { border-right: 1px solid var(--line); background: var(--ground); padding: 16px 12px; }
  .dash-org {
    display: flex; align-items: center; gap: 8px; padding: 0 8px 14px;
    font-size: 13.5px; font-weight: 600; letter-spacing: -.015em;
  }
  .dash-nav { display: flex; flex-direction: column; gap: 1px; }
  .dash-nav span {
    padding: 7px 9px; border-radius: 6px; font-size: 13px; color: var(--muted);
    letter-spacing: -.01em;
  }
  .dash-nav span.is-on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(19, 19, 22, .05); }
  .dash-main { padding: 20px 22px 22px; }
  .dash-top { display: flex; align-items: baseline; justify-content: space-between; }
  .dash-h { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
  .dash-range {
    font-size: 11.5px; color: var(--faint);
    border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  }
  .dash-lead {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  }
  .dash-lk { display: block; font-size: 12.5px; color: var(--muted); }
  .dash-lv {
    display: block; margin-top: 4px; font-size: 34px; font-weight: 600;
    letter-spacing: -.035em; line-height: 1.05;
  }
  .dash-ln { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }
  .dash-spark { width: 220px; height: 56px; flex: none; opacity: .75; }
  .dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); margin-top: 1px; }
  .dstat { background: #fff; padding: 16px 2px 18px; }
  .dstat:not(:first-child) { padding-left: 18px; }
  .dstat-k { display: block; font-size: 12px; color: var(--muted); }
  .dstat-v { display: block; margin-top: 3px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
  .dstat-d { display: block; margin-top: 2px; font-size: 11.5px; color: var(--faint); }
  .dash-rows { margin-top: 4px; border-top: 1px solid var(--line); }
  .drow {
    display: grid; grid-template-columns: 1.3fr .9fr 1.2fr 96px; gap: 12px; align-items: center;
    padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
  }
  .drow:last-child { border-bottom: 0; }
  .drow .mono { font-size: 11.5px; color: var(--muted); }
  .drow-h { color: var(--faint); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
  .dtag {
    justify-self: start; font-size: 11px; padding: 2px 8px; border-radius: 20px;
    background: #eaf6f0; color: var(--green);
  }
  .dtag-b { background: var(--ground); color: var(--muted); }
  .dtag-o { background: #fdf3e4; color: var(--amber); }
  .drow > :last-child { text-align: right; }
  @media (max-width: 820px) {
    .dash-body { grid-template-columns: minmax(0, 1fr); }
    .dash-side { border-right: 0; border-bottom: 1px solid var(--line); }
    .dash-nav { flex-direction: row; flex-wrap: wrap; }
    .dash-lead { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dash-spark { width: 100%; }
    .dash-stats { grid-template-columns: minmax(0, 1fr); }
    .dstat:not(:first-child) { padding-left: 2px; }
    .drow { grid-template-columns: 1fr 1fr; }
  }

  .facts { margin-top: 30px; border-top: 1px solid var(--line); }
  .fact {
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font-size: 14px; line-height: 1.6; color: var(--muted);
  }
  .fact b { color: var(--ink); font-weight: 600; }

  /* the proportion bar: how much of the inference bill is somebody else's */
  .diagram { width: 100%; height: auto; display: block; }
  .diagram text { font-family: inherit; }
  .o-label { font-size: 13px; font-weight: 600; fill: var(--ink); letter-spacing: -.02em; }
  .o-mine { fill: var(--ink); }
  .o-note { font-size: 11px; fill: var(--muted); }
  .o-rail { stroke: var(--line); stroke-width: 1; fill: none; }
  /* payments running down each route into the side that gets billed */
  .o-flow {
    stroke: var(--line-2); stroke-width: 2; fill: none; stroke-linecap: round;
    stroke-dasharray: 3 11; animation: flow 1.5s linear infinite;
  }
  .o-flow.o-d2 { animation-delay: -.5s; }
  .o-flow.o-d3 { animation-delay: -1s; }
  .o-flow.o-mine { stroke: var(--ink); animation-delay: -.25s; }
  @keyframes flow { to { stroke-dashoffset: -42; } }
  .o-tip { fill: var(--line-2); }
  .o-tip-mine { fill: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .o-flow { animation: none; stroke-dasharray: 3 7; } }
  .seg-theirs { fill: var(--ground); stroke: var(--line-2); stroke-width: 1; }
  .seg-yours { fill: var(--ink); }
  .seg-t { font-size: 15px; font-weight: 600; fill: var(--ink); letter-spacing: -.02em; }
  .seg-n { font-size: 11px; fill: var(--muted); }
  .seg-yn { font-size: 11px; fill: rgba(255, 255, 255, .6); }
  .seg-y { font-size: 15px; font-weight: 600; fill: #fff; letter-spacing: -.02em; }
  .o-rule { stroke: var(--line); stroke-width: 1; }
  .o-foot { font-size: 10.5px; fill: var(--faint); }

  .facts { margin-top: 30px; border-top: 1px solid var(--line); }
  .fact {
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font-size: 14px; line-height: 1.6; color: var(--muted);
  }
  .fact b { color: var(--ink); font-weight: 600; }

  /* the routing diagram: a run walks the trunk and takes the first branch that answers */
  .diagram { width: 100%; height: auto; display: block; }
  .diagram text { font-family: inherit; }
  .d-edge { font-size: 10.5px; fill: var(--faint); }
  .d-boundary { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
  .d-run { fill: var(--ink); }
  .d-runlabel { font-size: 12px; font-weight: 500; fill: #fff; }
  .d-trunk { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
  .wire { stroke: var(--line-2); stroke-width: 1.5; fill: none; transition: stroke .25s ease, stroke-width .25s ease; }
  .box { fill: #fff; stroke: var(--line); transition: stroke .25s ease; }
  .b-name { font-size: 13px; font-weight: 600; fill: var(--ink); letter-spacing: -.015em; }
  .b-sub { font-size: 10.5px; fill: var(--muted); }
  .b-class { font-family: "JetBrains Mono", monospace; font-size: 10px; fill: var(--faint); }
  .b-paid { fill: var(--amber); }
  .wire-state { font-family: "JetBrains Mono", monospace; font-size: 9.5px; fill: var(--faint); }
  .spark { fill: var(--ink); opacity: 0; }

  .b-pay { font-family: "JetBrains Mono", monospace; font-size: 10px; fill: var(--faint); }
  .opt.is-yours .box { stroke-dasharray: 4 4; }
  .opt.is-yours .b-name, .opt.is-yours .b-yours { fill: var(--ink-2); }

  .dark-band { background: var(--dark); color: #fff; padding: 96px 0; }
  .dark-band .eyebrow { color: var(--accent-lite); }
  .dark-band .sec-h { color: #fff; }
  .dark-band .sec-p { color: var(--dark-text); }
  /* ── the daemon, as it arrives: a volume you drag it out of ─────── */
  .dmg {
    max-width: 620px; margin-inline: auto; border-radius: 11px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .08) inset,
      0 36px 74px -26px rgba(0, 0, 0, .9),
      0 4px 16px rgba(0, 0, 0, .45);
  }
  .dmg-bar {
    position: relative; display: flex; align-items: center; height: 40px; padding: 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(60, 60, 64, .96), rgba(46, 46, 50, .96));
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
  }
  .dmg-lights { display: flex; gap: 8px; }
  .dmg-lights i {
    width: 11px; height: 11px; border-radius: 50%; display: block;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .35) inset;
  }
  .dmg-lights i:nth-child(1) { background: #ff5f57; }
  .dmg-lights i:nth-child(2) { background: #febc2e; }
  .dmg-lights i:nth-child(3) { background: #28c840; }
  .dmg-title {
    position: absolute; left: 0; right: 0; text-align: center; pointer-events: none;
    font-size: 13px; font-weight: 600; letter-spacing: -.012em; color: rgba(255, 255, 255, .78);
  }
  .dmg-body {
    display: flex; align-items: center; justify-content: center; gap: 30px;
    padding: 54px 44px 46px;
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 62%),
      linear-gradient(180deg, #202023, #171719);
  }
  .dmg-slot { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 132px; }
  .dmg-art {
    width: 96px; height: 96px; display: block;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45));
  }
  .dmg-name {
    font-size: 12.5px; letter-spacing: -.01em; color: rgba(255, 255, 255, .82);
    padding: 2px 8px; border-radius: 5px; white-space: nowrap;
  }
  /* the app is the selected item, the way a freshly opened volume shows it */
  .dmg-name.is-sel { background: rgba(255, 255, 255, .14); color: #fff; }
  .dmg-arrow { width: 96px; height: 24px; flex: none; margin-bottom: 26px; }
  .dmg-chev {
    fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2.6;
    stroke-linecap: round; stroke-linejoin: round;
    animation: dmgdrift 2.2s ease-in-out infinite;
  }
  .dmg-c1 { animation-delay: 0s; }
  .dmg-c2 { animation-delay: .11s; }
  .dmg-c3 { animation-delay: .22s; }
  .dmg-c4 { animation-delay: .33s; }
  .dmg-c5 { animation-delay: .44s; }
  @keyframes dmgdrift { 0%, 55%, 100% { opacity: .18; } 22% { opacity: .95; } }
  .dmg-foot {
    display: flex; align-items: center; gap: 12px; padding: 13px 18px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .025);
    font-size: 12.5px; line-height: 1.5; color: var(--dark-text);
  }
  .dmg-foot .dmg-cmd {
    font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: 5px; padding: 2px 6px;
    white-space: nowrap;
  }
  .dmg-foot .dmg-vol {
    font-family: "JetBrains Mono", monospace; font-size: 11px; color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: 5px; padding: 3px 7px; flex: none;
  }
  .dmg-foot span.in-design { margin-left: auto; flex: none; }
  @media (max-width: 760px) {
    .dmg-body { gap: 10px; padding: 34px 16px 30px; }
    .dmg-slot { width: 104px; }
    .dmg-art { width: 74px; height: 74px; }
    .dmg-arrow { width: 56px; margin-bottom: 24px; }
    .dmg-foot { flex-wrap: wrap; gap: 8px; }
    .dmg-foot span.in-design { margin-left: 0; }
  }
  /* the path of one run, drawn: your call &#8594; their machine &#8594; your surfaces */
  .nvf {
    margin: 26px auto 0;
    display: grid; grid-template-columns: 1fr auto 2.1fr auto 1fr;
    align-items: stretch; gap: 4px;
  }
  .nvf-node {
    background: rgba(255, 255, 255, .028); border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px; padding: 18px 16px; align-self: center;
  }
  .nvf-mid { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
  /* the two places a run can land, as a pair of tabs over the diagram */
  .opt-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
  .opt-tab {
    display: flex; align-items: center; gap: 9px; cursor: pointer;
    font: inherit; font-size: 14px; letter-spacing: -.014em; color: rgba(255, 255, 255, .82);
    background: transparent; border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px; padding: 7px 16px 7px 8px;
    transition: background .15s, color .15s, border-color .15s;
  }
  .opt-tab:hover { border-color: rgba(255, 255, 255, .34); color: #fff; }
  .opt-tab b {
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    font-size: 11px; font-weight: 600; flex: none;
    color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1);
  }
  .opt-tab[aria-selected="true"] {
    background: #fff; border-color: #fff; color: var(--ink); font-weight: 500;
  }
  .opt-tab[aria-selected="true"] b { color: #fff; background: var(--ink); }
  .nvf-rows { list-style: none; margin: 12px 0 0; padding: 0; }
  .nvf-rows li {
    display: flex; align-items: baseline; gap: 10px; padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px; color: var(--dark-text);
  }
  .nvf-rows li b { margin-left: auto; font-weight: 500; color: rgba(255, 255, 255, .88); }
  /* the cloud visual, packed into the narrower middle column */
  .nvf-opt .sbc { margin-top: 0; gap: 14px; padding-top: 0; }
  .nvf-opt .sbc-phone { width: 150px; background: var(--dark-2); border-color: rgba(255, 255, 255, .16); }
  .nvf-opt .sbc-screen { padding: 10px 10px 14px; }
  .nvf-opt .sbc-box { padding: 14px; }
  .nvf-opt .sbc-rows li { padding: 6px 0; font-size: 11.5px; }
  .nvf-opt .sbc-s { font-size: 11px; }
  .nvf-cap {
    margin-top: 12px; padding: 0 4px; text-align: center;
    font-size: 12.5px; line-height: 1.55; color: var(--dark-text);
  }
  .nvf-cap b { font-weight: 600; color: rgba(255, 255, 255, .92); }
  .nvf-cap a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
  .nvf-k {
    font-size: 13px; font-weight: 600; color: #fff; letter-spacing: -.015em; margin-bottom: 7px;
  }
  .nvf-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    font-size: 13px; font-weight: 600; color: #fff; letter-spacing: -.015em;
  }
  .nvf-head em {
    margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 500;
    color: var(--dark-text); text-transform: uppercase; letter-spacing: .06em;
  }
  .nvf-s { font-size: 12.5px; line-height: 1.5; color: var(--dark-text); }
  .nvf-code {
    display: inline-block; margin-top: 10px; font-size: 11.5px; color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px; padding: 4px 8px;
  }
  .nvf-surf { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .nvf-surf li {
    font-size: 11.5px; color: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; padding: 3px 8px;
  }
  /* the install window, sitting inside the machine it installs onto */
  .nvf-opt .dmg { max-width: none; margin: 0; border-radius: 10px; }
  .nvf-opt .dmg-bar { height: 32px; padding: 0 10px; }
  .nvf-opt .dmg-lights i { width: 9px; height: 9px; }
  .nvf-opt .dmg-title { font-size: 11.5px; }
  .nvf-opt .dmg-body { gap: 12px; padding: 28px 14px 26px; }
  .nvf-opt .dmg-slot { width: 96px; gap: 9px; }
  .nvf-opt .dmg-art { width: 62px; height: 62px; }
  .nvf-opt .dmg-name { font-size: 11.5px; }
  .nvf-opt .dmg-arrow { width: 58px; height: 18px; margin-bottom: 20px; }
  .nvf-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    padding: 0 2px;
  }
  .nvf-lab {
    font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dark-text);
  }
  .nvf-chevs { width: 72px; height: 26px; flex: none; }
  .nvf-chev {
    fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    animation: dmgdrift 2.2s ease-in-out infinite;
  }
  .nvf-c2 { animation-delay: .13s; }
  .nvf-c3 { animation-delay: .26s; }
  @media (prefers-reduced-motion: reduce) { .nvf-chev { animation: none; opacity: .5; } }
  @media (max-width: 900px) {
    .nvf { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 460px; }
    .nvf-link { flex-direction: row; gap: 10px; padding: 4px 0; }
    .nvf-chevs { width: 48px; height: 18px; }
  }
  .dmn-legal {
    max-width: 780px; margin: 34px auto 0; text-align: center;
    font-size: 11.5px; line-height: 1.6; color: rgba(255, 255, 255, .42);
  }
  @media (max-width: 760px) {
    .mwin-body { font-size: 11px; padding: 16px 14px 18px; }
    .mwin-rule { margin-inline: -14px; }
    .mrow { grid-template-columns: 1fr; gap: 2px; }
  }

  /* ── soba cloud: a phone, and the box it is driving ─────────────── */
  .sbc { display: flex; align-items: center; gap: 22px; padding-top: 6px; }
  .sbc-phone {
    width: 186px; flex: none; border-radius: 22px; overflow: hidden;
    background: var(--dark); border: 1px solid var(--ink);
    box-shadow: var(--shadow-pop);
  }
  .sbc-bar { display: flex; justify-content: center; padding: 8px 0 2px; }
  .sbc-bar i { width: 46px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
  .sbc-screen { padding: 12px 12px 18px; }
  .sbc-app {
    font-size: 11.5px; font-weight: 600; color: #fff; letter-spacing: -.01em;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .sbc-app span { float: right; font-weight: 400; color: var(--dark-text); }
  .sbc-msg {
    margin-top: 10px; border-radius: 10px; padding: 8px 10px;
    background: rgba(255, 255, 255, .06); font-size: 11px; line-height: 1.45;
    color: rgba(255, 255, 255, .82);
  }
  .sbc-mine { background: #fff; color: var(--ink); margin-left: 26px; }
  .sbc-run { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--dark-text); }
  .sbc-run i {
    width: 5px; height: 5px; border-radius: 50%; background: #fff; flex: none;
    animation: dmgdrift 2.2s ease-in-out infinite;
  }
  .sbc-ln {
    display: block; height: 5px; margin-top: 7px; border-radius: 3px;
    background: rgba(255, 255, 255, .16);
  }
  .sbc-ln-s { width: 58%; }
  .sbc-box {
    flex: 1; min-width: 0; background: var(--sheet); border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px 18px;
  }
  .sbc-k {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
  }
  .sbc-tag {
    margin-left: auto; font-size: 10.5px; color: var(--muted);
    border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
  }
  .sbc-rows { list-style: none; margin: 12px 0 0; padding: 0; }
  .sbc-rows li {
    display: flex; align-items: baseline; gap: 10px; padding: 7px 0;
    border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
  }
  .sbc-rows li b { margin-left: auto; font-weight: 500; color: var(--ink); }
  .sbc-s { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--faint); }
  @media (max-width: 760px) {
    .sbc { flex-direction: column; align-items: stretch; gap: 16px; }
    .sbc-phone { width: 186px; align-self: center; }
  }

  /* ── code cards ─────────────────────────────────────────────────── */
  .codecard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
  .codecard + .codecard { margin-top: 12px; }
  .codebar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 8px 7px 14px; border-bottom: 1px solid var(--line);
    font-size: 12px; color: var(--muted);
  }
  .codebar b { color: var(--ink); font-weight: 600; }
  .codecard pre {
    margin: 0; padding: 16px; overflow-x: auto; background: #fcfcfd;
    font-family: "JetBrains Mono", monospace; font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
  }
  .k { color: var(--accent); }
  .s { color: #1a7f64; }
  .n { color: #b06f14; }
  .cm { color: var(--faint); }
  .kw { color: var(--ink); font-weight: 500; }

  /* ── quote ──────────────────────────────────────────────────────── */
  .quote-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ground); padding: 76px 0; }
  .quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 40px; box-shadow: var(--shadow-card); text-align: center; }
  .quote-card blockquote { margin: 0; font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
  .quote-card blockquote em { font-style: normal; color: var(--accent); }
  .quote-card p { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 62ch; margin-inline: auto; line-height: 1.6; }

  /* ── small cards ────────────────────────────────────────────────── */
  .lcard { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
  .lcard h3 { font-size: 15px; letter-spacing: -.02em; }
  .lcard p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
  .lcard .tag { font-size: 12px; font-weight: 500; color: var(--accent); }

  /* ── status ─────────────────────────────────────────────────────── */
  .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
  .slist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
  .slist li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
  .slist .m { font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 1.7; }
  .slist.ok .m { color: var(--accent); }
  .slist.todo .m { color: var(--faint); }
  .sfoot { margin-top: 18px; font-size: 13px; color: var(--faint); line-height: 1.55; }

  /* ── changelog releases (changelog.html) ────────────────────────── */
  .rel {
    display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 32px;
    margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line);
  }
  .rel + .rel { margin-top: 44px; }
  .rel-meta { position: sticky; top: 96px; align-self: start; }
  .rel-v {
    font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 600;
    letter-spacing: -.02em; color: var(--ink);
  }
  .rel-d { margin-top: 4px; font-size: 13px; color: var(--muted); }
  .rel-tag { margin-top: 12px; }
  .rel-tag span.in-design { margin-left: 0; }
  .rel-body h3 { font-size: 20px; letter-spacing: -.025em; }
  .rel-lede { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
  .rel-h {
    margin-top: 26px; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
  }
  .rel-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .rel-list li {
    position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2);
    max-width: 62ch;
  }
  .rel-list li::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--line-2);
  }
  @media (max-width: 860px) {
    .rel { grid-template-columns: 1fr; gap: 18px; }
    .rel-meta { position: static; display: flex; align-items: baseline; gap: 12px; }
    .rel-tag { margin-top: 0; }
  }

  /* ── cta ────────────────────────────────────────────────────────── */
  .cta { padding: 104px 0 112px; text-align: center; }
  .cta h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; max-width: 16ch; margin-inline: auto; }

  /* ── footer ─────────────────────────────────────────────────────── */
  .foot { max-width: var(--sheet-w); margin: 0 auto; padding: 48px 32px 56px; }
  .foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
  .foot h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
  .foot-col { display: flex; flex-direction: column; gap: 9px; }
  .foot-col a { font-size: 13.5px; color: var(--muted); }
  .foot-col a:hover { color: var(--ink); }
  .foot-note { font-size: 13px; color: var(--muted); max-width: 34ch; margin-top: 12px; line-height: 1.55; }
  .foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; color: var(--faint); }

  /* ── responsive ─────────────────────────────────────────────────── */
  @media (max-width: 1000px) {
    .split, .split-flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .grid2 { grid-template-columns: minmax(0, 1fr); }
    .bcard-wide { grid-column: span 1; }
    .nav-links { display: none; }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .strip > div:first-child { grid-column: span 2; border-bottom: 1px solid var(--line); }
    .strip > div:nth-child(2), .strip > div:nth-child(4) { border-left: 0; }
    .strip > div:nth-child(4), .strip > div:nth-child(5) { border-top: 1px solid var(--line); }
    .ghost { display: none; }
    .section, .dark-band { padding: 68px 0; }
  }
  @media (max-width: 620px) {
    .inner { padding-inline: 20px; }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 68px 0 64px; }
    .quote-card { padding: 26px; }
  }

  /* ── responsive: tablets and phones ─────────────────────────────── */
  @media (max-width: 760px) {
    /* the banner is a fixed 40px row of centred text on desktop; on a phone
       it has to wrap instead of running off the side. */
    .banner {
      height: auto; min-height: 40px; padding: 9px 16px; gap: 8px;
      flex-wrap: wrap; text-align: center; font-size: 12.5px; line-height: 1.45;
    }
    .navwrap { top: 8px; padding: 8px 10px 10px; }
    .nav { height: 52px; gap: 10px; padding: 0 8px 0 14px; }
    /* .nav-links carried the margin-right:auto and is hidden by now, so the
       logo has to push the actions to the right in its place. */
    .logo { margin-right: auto; font-size: 16px; }
    .nav > .nav-sep { display: none; }
    .hero-sub { font-size: 16px; }
    .sec-p { font-size: 15.5px; }
    .cta { padding: 72px 0 78px; }
    .foot { padding: 40px 24px 48px; }
    .foot-bottom { margin-top: 32px; }
    .quote-band { padding: 56px 0; }
    .split, .split-flip { gap: 32px; }
    .acc-body { padding-left: 0; }
  }

  @media (max-width: 620px) {
    /* below the sheet's max width it is already edge to edge, so the rounded
       corners and side rules only draw a card that isn't there. */
    .sheet { border-radius: 0; border-left: 0; border-right: 0; }
    .strip > div { padding: 22px 16px; }
    .strip > div:first-child { padding-left: 20px; }
    .grid2 { gap: 10px; }
    .lcard { padding: 18px; }
    .mock-body { padding: 22px 18px 20px; }
    .co-line, .co-head { padding-inline: 13px; }
    .section, .dark-band { padding: 56px 0; }
  }

  @media (max-width: 620px) {
    /* the diagram's labels are 13px inside a 520-unit viewBox, so squeezing it
       into a 360px phone renders them at ~8px. Keep its width and scroll it. */
    .board-body-fig { overflow-x: auto; }
    .board-body-fig .diagram { min-width: 460px; }
  }

  @media (max-width: 480px) {
    .inner { padding-inline: 16px; }
    .foot { padding-inline: 16px; }
    /* one column: two 4rem-wide cells of mono text is worse than a list */
    .strip { grid-template-columns: minmax(0, 1fr); }
    .strip > div { border-left: 0; border-top: 1px solid var(--line); justify-content: flex-start; }
    .strip > div:first-child { grid-column: span 1; border-top: 0; border-bottom: 0; }
    .pv-tabs { grid-template-columns: minmax(0, 1fr); }
    .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .foot-note { max-width: none; }
    /* stacked full-width CTAs read as buttons; two half-width ones do not */
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .nav-right .nav-sep { display: none; }
    .nav-right .btn-text { display: none; }
    .quote-card { padding: 22px 18px; }
    .prompt-pill { padding: 6px 6px 6px 12px; }
    .prompt-pill code { font-size: 12px; }
    th, td { padding: 13px 16px; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .pv-viewport { height: auto !important; }
    .stream-row { opacity: 1; transform: none; }
  }
