/* ===================================================================
   anonde: unified design system. Single stylesheet for all pages.
   (Inline CSS was consolidated here.)
   =================================================================== */

/* ---- Homepage / core design system ---- */
      /* ───────────────────────── Tokens ───────────────────────── */
      :root {
        --ink-0: #0b0907;
        --ink-1: #12100d;
        --ink-2: #1a1613;
        --ink-3: #231d18;
        --line: rgba(245, 235, 225, 0.08);
        --line-2: rgba(245, 235, 225, 0.14);
        --fg: #ece6de;
        --fg-dim: #a99f92;
        --fg-mute: #6f665b;

        /* Warm duotone: terracotta = raw PII, gold/copper = safe token / accent */
        --pii: #dd6f54;
        --pii-soft: rgba(221, 111, 84, 0.16);
        --pii-line: rgba(221, 111, 84, 0.42);
        --safe: #efe9df;
        --safe-2: #ffffff;
        --safe-soft: rgba(239, 233, 223, 0.12);
        --safe-line: rgba(239, 233, 223, 0.38);
        --on-safe: #1b1408; /* text/icon color on a --safe background */

        --maxw: 1140px;
        --r-sm: 8px;
        --r: 14px;
        --r-lg: 22px;
        --font-display: "Figtree", system-ui, sans-serif;
        --font-sans: "Figtree", system-ui, sans-serif;
        --font-mono: "JetBrains Mono", ui-monospace, monospace;
      }
      /* Accent palette options. Switchable live in the preview. Default = gold. */
      html[data-pal="copper"] { --safe: #c8804e; --safe-2: #e0a06a; --safe-soft: rgba(200, 128, 78, 0.15); --safe-line: rgba(200, 128, 78, 0.44); }
      html[data-pal="brass"]  { --safe: #d9b87a; --safe-2: #ecd29b; --safe-soft: rgba(217, 184, 122, 0.15); --safe-line: rgba(217, 184, 122, 0.44); }
      html[data-pal="honey"]  { --safe: #e0a94f; --safe-2: #f1c477; --safe-soft: rgba(224, 169, 79, 0.15); --safe-line: rgba(224, 169, 79, 0.44); }
      html[data-pal="bone"]   { --safe: #e7dccb; --safe-2: #f3ece0; --safe-soft: rgba(231, 220, 203, 0.13); --safe-line: rgba(231, 220, 203, 0.4); }
      html[data-pal="white"]  { --safe: #efe9df; --safe-2: #ffffff; --safe-soft: rgba(239, 233, 223, 0.12); --safe-line: rgba(239, 233, 223, 0.38); }

      /* ───────── Light theme (dark is the default; toggle lives in the nav) ───────── */
      html[data-theme="light"] {
        --ink-0: #f7f2ea;
        --ink-1: #f1ebe1;
        --ink-2: #fcf9f3;
        --ink-3: #e9e1d4;
        --line: rgba(40, 28, 16, 0.10);
        --line-2: rgba(40, 28, 16, 0.18);
        --fg: #211b14;
        --fg-dim: #5b5247;
        --fg-mute: #8a8175;
        --pii: #be5029;
        --pii-soft: rgba(190, 80, 41, 0.12);
        --pii-line: rgba(190, 80, 41, 0.40);
        --safe: #2a2117;
        --safe-2: #14100b;
        --safe-soft: rgba(42, 33, 23, 0.08);
        --safe-line: rgba(42, 33, 23, 0.26);
        --on-safe: #f7f2ea;
        --accent-fg: #f7f2ea;
        --code-bg: #efe7d9;
        --shadow-sm: 0 1px 2px rgba(40, 28, 16, 0.12);
        --shadow-md: 0 18px 50px -28px rgba(40, 28, 16, 0.30);
        color-scheme: light;
      }
      html[data-theme="light"] body::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.3' cy='1.3' r='1.3' fill='%23231d18' fill-opacity='0.06'/%3E%3C/svg%3E");
      }
      html[data-theme="light"] body::after { opacity: 0.10; }
      html[data-theme="light"] .btn-ghost { background: rgba(20, 14, 8, 0.04); }
      html[data-theme="light"] .btn-ghost:hover { background: rgba(20, 14, 8, 0.08); border-color: rgba(20, 14, 8, 0.22); }
      /* The live demo is a self-contained app UI with its own dark variables.
         In light mode, flip those variables so it sits flush on the warm page
         (transparent, like the dark version) with dark ink instead of light. */
      html[data-theme="light"] .lens-host {
        --bg: #f7f2ea;
        --bg-soft: #f1ebe1;
        --surface: #fcf9f3;
        --text: #1c1814;
        --muted: #6b6256;
        --border: rgba(20, 14, 8, 0.14);
        --lens-accent: #1c1814;
        --lens-accent-2: #4a4036;
        --lens-stroke: rgba(20, 14, 8, 0.10);
        --lens-stroke-strong: rgba(20, 14, 8, 0.18);
        --lens-ink: #1c1814;
        --lens-ink-soft: rgba(28, 24, 20, 0.66);
        --lens-ink-faint: rgba(28, 24, 20, 0.42);
      }
      /* PII token highlights use light pastel text built for a dark surface.
         Darken them for light mode so the redaction stays readable. */
      html[data-theme="light"] .lens-host .lens-tok[data-kind="person"] { color: #6a4fc4; }
      html[data-theme="light"] .lens-host .lens-tok[data-kind="location"] { color: #0e8a72; }
      html[data-theme="light"] .lens-host .lens-tok[data-kind="date_time"] { color: #936400; }
      html[data-theme="light"] .lens-host .lens-tok[data-kind="email_address"] { color: #b23f8e; }
      html[data-theme="light"] .lens-host .lens-tok[data-kind="phone_number"] { color: #c3324f; }
      html[data-theme="light"] .lens-host .lens-tok[data-kind="organization"] { color: #1f7bb0; }
      html[data-theme="light"] .lens-host .lens-tok[data-kind="url"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="iban_code"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="credit_card"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="us_ssn"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="us_bank_number"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="ip_address"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="medical_license"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="us_passport"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="us_driver_license"],
      html[data-theme="light"] .lens-host .lens-tok[data-kind="nrp"] { color: #7b3fc0; }
      /* Empty-state title is a near-white gradient text fill; give it dark stops. */
      html[data-theme="light"] .lens-host .lens-empty-title {
        background: linear-gradient(110deg,
          rgba(28, 24, 20, 0.92) 0%, rgba(28, 24, 20, 0.92) 35%,
          rgba(28, 24, 20, 0.5) 50%,
          rgba(28, 24, 20, 0.92) 65%, rgba(28, 24, 20, 0.92) 100%);
        background-size: 220% 100%;
        background-clip: text;
        -webkit-background-clip: text;
      }
      html[data-theme="light"] .lens-host .lens-empty-mark {
        background: linear-gradient(140deg, rgba(20, 14, 8, 0.06), rgba(20, 14, 8, 0.02));
        border-color: rgba(20, 14, 8, 0.16);
        box-shadow: 0 0 24px -8px rgba(20, 14, 8, 0.25);
      }

      /* Theme toggle button (injected into .nav-cta by theme.js) */
      .theme-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 38px; height: 38px; padding: 0; border-radius: 999px;
        background: transparent; border: 1px solid var(--line-2);
        color: var(--fg-dim); cursor: pointer;
        transition: color .2s ease, border-color .2s ease, background .2s ease;
      }
      .theme-toggle:hover { color: var(--fg); border-color: var(--safe-line); background: var(--safe-soft); }
      .theme-toggle svg { display: block; }
      .theme-toggle .theme-moon { display: none; }

      /* Related articles (foot of each blog post) */
      .post-related { max-width: 720px; margin: 0 auto; padding: 1rem 0 0; }
      .post-related-title {
        font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-soft);
        margin: 0 0 1rem; padding-top: 2.2rem; border-top: 1px solid var(--border);
      }
      .post-related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
      .post-related-list a {
        display: flex; align-items: center; gap: 0.85rem;
        padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
        background: var(--bg-elev);
        transition: border-color .2s ease, transform .15s ease, background .2s ease;
      }
      .post-related-list a:hover { border-color: var(--accent); transform: translateX(3px); }
      .post-related-tag {
        flex-shrink: 0; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
        background: var(--safe-soft); border: 1px solid var(--safe-line);
        padding: 0.24em 0.6em; border-radius: 999px;
      }
      .post-related-name { flex: 1; font-weight: 600; color: var(--fg); line-height: 1.3; }
      .post-related-arrow { flex-shrink: 0; color: var(--fg-soft); }
      .post-related-list a:hover .post-related-arrow { color: var(--accent); }

      /* Blog index: topic filter chips */
      .blog-filter {
        display: flex; flex-wrap: wrap; gap: 0.5rem;
        margin: 0 0 2rem; padding: 0 0 1.5rem; border-bottom: 1px solid var(--border);
      }
      .blog-chip {
        font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
        letter-spacing: 0.03em; color: var(--fg-soft);
        background: transparent; border: 1px solid var(--border); border-radius: 999px;
        padding: 0.4em 0.95em; cursor: pointer;
        transition: color .2s ease, border-color .2s ease, background .2s ease;
      }
      .blog-chip:hover { color: var(--fg); border-color: var(--border-strong); }
      .blog-chip.is-active { color: var(--on-safe); background: var(--accent); border-color: var(--accent); }
      .blog-card.is-hidden { display: none; }

      /* Hero demo video (sits beside the headline, where the console was) */
      .hero-video {
        border-radius: var(--r-lg); overflow: hidden;
        border: 1px solid var(--line-2); background: var(--ink-2);
        box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        line-height: 0;
      }
      .hero-video video { display: block; width: 100%; height: auto; }
      html[data-theme="light"] .hero-video { box-shadow: 0 30px 70px -45px rgba(40, 28, 16, 0.35); }

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

      html {
        scroll-behavior: smooth;
      }

      body {
        margin: 0;
        background: var(--ink-0);
        color: var(--fg);
        font-family: var(--font-sans);
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        overflow-x: hidden;
      }

      /* Solid ink base + a slow-drifting dot grid + grain. No color gradients. */
      body::before {
        content: "";
        position: fixed;
        inset: -25%;
        z-index: -3;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.3' cy='1.3' r='1.3' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
        background-size: 28px 28px;
        animation: drift 38s linear infinite;
      }
      body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        opacity: 0.32;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
        mix-blend-mode: overlay;
      }
      @keyframes drift { from { transform: translate(0, 0); } to { transform: translate(28px, 28px); } }

      /* Ambient motion: scan lines sweeping down (the redaction motif). */
      .fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
      .fx .scan {
        position: absolute; left: 0; right: 0; top: 0; height: 1px;
        background: var(--safe); opacity: 0;
        box-shadow: 0 0 16px 1px var(--safe);
        animation: scan 11s linear infinite;
      }
      .fx .scan.amber {
        background: var(--pii); box-shadow: 0 0 16px 1px var(--pii);
        animation-delay: 5.5s; animation-duration: 13s;
      }
      @keyframes scan {
        0% { transform: translateY(-6vh); opacity: 0; }
        7% { opacity: 0.4; }
        93% { opacity: 0.4; }
        100% { transform: translateY(106vh); opacity: 0; }
      }

      /* Ambient redaction stream: faint mono tokens drifting down. */
      .rain { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
      .rain .col {
        position: absolute;
        top: -130%;
        font-family: var(--font-mono);
        line-height: 2;
        letter-spacing: 0.04em;
        white-space: pre;
        color: var(--safe);
        opacity: 0.06;
        text-shadow: 0 0 8px currentColor;
        animation: fall linear infinite;
      }
      .rain .col.amber { color: var(--pii); }
      @keyframes fall { to { transform: translateY(150%); } }

      a {
        color: inherit;
        text-decoration: none;
      }
      h1,
      h2,
      h3 {
        font-family: var(--font-display);
        font-weight: 700;
        letter-spacing: -0.025em;
        line-height: 1.04;
        margin: 0;
      }
      p {
        margin: 0;
      }

      .wrap {
        width: 100%;
        max-width: var(--maxw);
        margin: 0 auto;
        padding: 0 1.5rem;
      }

      /* mono eyebrow / labels */
      .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--safe);
      }
      .eyebrow::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: var(--safe);
        box-shadow: 0 0 10px var(--safe);
      }

      /* ───────────────────────── Buttons ───────────────────────── */
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        padding: 0.78em 1.25em;
        border-radius: 999px;
        font-family: var(--font-sans);
        font-weight: 600;
        font-size: 0.95rem;
        border: 1px solid transparent;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
        white-space: nowrap;
      }
      .btn-primary {
        background: var(--safe);
        color: var(--on-safe);
        box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
      }
      .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 42px -12px rgba(0, 0, 0, 0.65);
      }
      .btn-ghost {
        background: rgba(255, 255, 255, 0.03);
        border-color: var(--line-2);
        color: var(--fg);
      }
      .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.25);
      }

      /* ───────────────────────── Nav ───────────────────────── */
      .nav {
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        background: color-mix(in oklab, var(--ink-0) 72%, transparent);
        border-bottom: 1px solid var(--line);
      }
      .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
      }
      .brand {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-family: var(--font-mono);
        font-weight: 700;
        font-size: 1.02rem;
        letter-spacing: -0.01em;
      }
      .brand .dot {
        width: 11px;
        height: 11px;
        border-radius: 999px;
        background: var(--safe);
        box-shadow: 0 0 12px var(--safe);
        animation: pulse 2.6s ease-in-out infinite;
      }
      @keyframes pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(0.82); }
      }
      .nav-links {
        display: flex;
        align-items: center;
        gap: 1.8rem;
        font-size: 0.9rem;
        color: var(--fg-dim);
      }
      .nav-links a:hover { color: var(--fg); }
      .nav-cta { display: flex; align-items: center; gap: 0.8rem; }
      .nav-links-list { display: flex; gap: 1.8rem; }
      .nav-burger { display: none; background: transparent; border: 0; color: var(--fg); cursor: pointer; padding: 0.4rem; margin: -0.4rem; }
      .nav-burger svg { display: block; }
      @media (max-width: 980px) {
        .nav-links-list { gap: 1.1rem; font-size: 0.84rem; }
        .nav-links { gap: 1rem; }
      }
      @media (max-width: 820px) {
        .nav-burger { display: inline-flex; }
        .nav-links, .nav-cta { display: none; }
        .nav.open .nav-inner { height: auto; flex-wrap: wrap; padding-bottom: 0.8rem; }
        .nav.open .nav-links { display: flex; order: 3; width: 100%; }
        .nav.open .nav-links-list { flex-direction: column; width: 100%; gap: 0; }
        .nav.open .nav-links-list a { display: block; padding: 0.7rem 0.1rem; border-bottom: 1px solid var(--line); }
        .nav.open .nav-cta { display: flex; order: 4; width: 100%; padding-top: 0.6rem; }
        .nav.open .nav-cta .btn { width: 100%; justify-content: center; }
      }

      /* ───────────────────────── Hero ───────────────────────── */
      .hero {
        position: relative;
        padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
      }
      .hero-grid {
        display: grid;
        max-width: 1260px;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        align-items: center;
      }
      @media (max-width: 940px) {
        .hero-grid { grid-template-columns: 1fr; }
      }
      .hero h1 {
        font-size: clamp(2.4rem, 5vw, 4rem);
        font-weight: 800;
        margin: 1.2rem 0 0;
      }
      .hero h1 .ink-token {
        position: relative;
        white-space: nowrap;
        color: var(--safe);
      }
      .hero-sub {
        margin: 1.4rem 0 0;
        max-width: 33ch;
        color: var(--fg-dim);
        font-size: 1.12rem;
        line-height: 1.55;
      }
      .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-top: 2rem;
      }
      .hero-meta {
        margin-top: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.4rem;
        font-family: var(--font-mono);
        font-size: 0.74rem;
        color: var(--fg-mute);
      }
      .hero-meta span { display: inline-flex; align-items: center; gap: 0.45em; }
      .hero-meta span::before {
        content: "";
        width: 5px; height: 5px; border-radius: 999px; background: var(--fg-mute);
      }

      /* ── Hero centerpiece: the live redaction console ── */
      .console {
        position: relative;
        border-radius: var(--r-lg);
        background: var(--ink-2);
        border: 1px solid var(--line-2);
        box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        overflow: hidden;
      }
      .console-bar {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--fg-mute);
      }
      .console-bar .lamp { width: 9px; height: 9px; border-radius: 999px; background: var(--line-2); }
      .console-bar .grow { flex: 1; }
      .console-bar .live {
        color: var(--safe);
        display: inline-flex; align-items: center; gap: 0.4em;
      }
      .console-bar .live::before {
        content: ""; width: 6px; height: 6px; border-radius: 999px;
        background: var(--safe); box-shadow: 0 0 8px var(--safe);
        animation: pulse 1.8s ease-in-out infinite;
      }
      .console-body { padding: 1.3rem 1.3rem 1.1rem; }
      .console-label {
        font-family: var(--font-mono);
        font-size: 0.66rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--fg-mute);
        margin-bottom: 0.5rem;
      }

      .redact {
        position: relative;
        font-size: 1.04rem;
        line-height: 1.95;
        padding: 0.2rem 0;
      }
      /* the scanning sweep */
      .redact::after {
        content: "";
        position: absolute;
        top: -4px;
        bottom: -4px;
        width: 64px;
        left: -70px;
        background: linear-gradient(90deg, transparent, var(--safe-soft) 40%, color-mix(in oklab, var(--safe) 55%, transparent) 50%, var(--safe-soft) 60%, transparent);
        border-left: 1px solid var(--safe-line);
        filter: blur(0.3px);
        opacity: 0;
        pointer-events: none;
      }
      .redact.scanning::after {
        animation: sweep 1.25s cubic-bezier(0.5, 0, 0.3, 1) forwards;
      }
      @keyframes sweep {
        0% { left: -70px; opacity: 0; }
        8% { opacity: 1; }
        92% { opacity: 1; }
        100% { left: 102%; opacity: 0; }
      }

      .pii {
        position: relative;
        border-radius: 5px;
        padding: 0.05em 0.28em;
        transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
      }
      .pii .raw,
      .pii .tok { transition: opacity 0.2s ease; }
      .pii .tok {
        position: absolute;
        left: 0.28em;
        top: 0;
        opacity: 0;
        font-family: var(--font-mono);
        font-size: 0.82em;
        color: var(--safe);
        white-space: nowrap;
      }
      /* raw state: amber sensitive highlight */
      .redact.raw .pii,
      .redact.scanning .pii {
        background: var(--pii-soft);
        box-shadow: inset 0 0 0 1px var(--pii-line);
        color: var(--pii);
      }
      /* tokenized state: collapse to mint token pill */
      .redact.tokenized .pii {
        background: var(--safe-soft);
        box-shadow: inset 0 0 0 1px var(--safe-line);
        color: transparent;
      }
      .redact.tokenized .pii .raw { display: none; }
      .redact.tokenized .pii .tok { opacity: 1; position: static; }
      .redact.tokenized .pii { color: var(--safe); }

      /* boundary handoff inside the console */
      .handoff {
        margin-top: 1.15rem;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.9rem;
      }
      .handoff-cell {
        border: 1px solid var(--line);
        border-radius: var(--r);
        padding: 0.7rem 0.8rem;
        background: rgba(255, 255, 255, 0.015);
      }
      .handoff-cell .k {
        font-family: var(--font-mono);
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--fg-mute);
        display: block;
        margin-bottom: 0.3rem;
      }
      .handoff-cell .v { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-dim); }
      .handoff-cell.safe .v { color: var(--safe); }
      .handoff-arrow {
        position: relative;
        font-family: var(--font-mono);
        font-size: 0.58rem;
        color: var(--fg-mute);
        text-align: center;
        white-space: nowrap;
      }
      .handoff-arrow .bd {
        display: block;
        width: 1px;
        height: 30px;
        margin: 0.25rem auto;
        background: repeating-linear-gradient(var(--safe-line) 0 4px, transparent 4px 8px);
      }

      /* ───────────────────────── Section scaffolding ───────────────────────── */
      section { position: relative; }
      /* offset in-page anchors so the sticky header does not cover the target */
      section[id], [id] { scroll-margin-top: 88px; }
      .band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
      .sec-head { max-width: 60ch; }
      .sec-head h2 {
        font-size: clamp(1.9rem, 4vw, 3rem);
        font-weight: 700;
        margin-top: 0.9rem;
      }
      .sec-head p {
        margin-top: 1rem;
        color: var(--fg-dim);
        font-size: 1.08rem;
      }
      .hairline { height: 1px; background: var(--line); width: 100%; }

      /* killer line */
      .killer {
        text-align: center;
        padding: clamp(3rem, 7vw, 5rem) 0;
      }
      .killer p {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: clamp(1.5rem, 3.4vw, 2.5rem);
        line-height: 1.22;
        letter-spacing: -0.02em;
        max-width: 20ch;
        margin: 0 auto;
        color: var(--fg);
      }
      .killer .hl { color: var(--safe); }
      .killer .strike { color: var(--fg-mute); text-decoration: line-through; text-decoration-color: var(--pii-line); }

      /* backend chips */
      .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 1.8rem;
      }
      .chip {
        font-family: var(--font-mono);
        font-size: 0.8rem;
        color: var(--fg-dim);
        padding: 0.5em 0.85em;
        border-radius: 999px;
        border: 1px solid var(--line-2);
        background: rgba(255, 255, 255, 0.02);
      }
      .chip b { color: var(--fg); font-weight: 500; }

      /* how it works */
      .steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.1rem;
        margin-top: 2.5rem;
        position: relative;
      }
      @media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
      .step {
        position: relative;
        padding: 1.5rem 1.4rem;
        border-radius: var(--r);
        border: 1px solid var(--line);
        background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
      }
      .step .n {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--safe);
        letter-spacing: 0.1em;
      }
      .step h3 { font-size: 1.2rem; margin: 0.7rem 0 0.5rem; font-family: var(--font-display); font-weight: 700; }
      .step p { color: var(--fg-dim); font-size: 0.96rem; }
      .step.mid { border-color: var(--safe-line); box-shadow: 0 0 0 1px var(--safe-soft), 0 30px 60px -40px rgba(0, 0, 0, 0.6); }

      /* agent visual: device → boundary → model */
      .agent-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(2rem, 5vw, 3.5rem);
        align-items: center;
      }
      @media (max-width: 940px) { .agent-grid { grid-template-columns: 1fr; } }
      .device {
        border-radius: var(--r-lg);
        border: 1px solid var(--line-2);
        background: var(--ink-2);
        box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
        overflow: hidden;
      }
      .device-top {
        padding: 0.7rem 1rem;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--fg-mute);
        display: flex; align-items: center; gap: 0.5rem;
      }
      .device-body { padding: 1.1rem; display: grid; gap: 0.7rem; }
      .tool-row {
        display: flex; align-items: center; justify-content: space-between;
        gap: 0.8rem;
        padding: 0.75rem 0.9rem;
        border-radius: var(--r-sm);
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.02);
        font-size: 0.92rem;
      }
      .tool-row .tool { display: inline-flex; align-items: center; gap: 0.55rem; }
      .tool-row .ico {
        width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
        display: grid; place-items: center;
        background: rgba(255,255,255,0.05);
        font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-dim);
      }
      .tool-row .state {
        font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
        color: var(--safe); display: inline-flex; align-items: center; gap: 0.4em;
      }
      .tool-row .state::before {
        content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--safe); box-shadow: 0 0 7px var(--safe);
      }
      .device-foot {
        border-top: 1px dashed var(--safe-line);
        padding: 0.7rem 1rem;
        font-family: var(--font-mono); font-size: 0.66rem; color: var(--safe);
        text-align: center; letter-spacing: 0.08em;
      }

      /* edges */
      .edges {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.1rem;
        margin-top: 2.5rem;
      }
      @media (max-width: 820px) { .edges { grid-template-columns: 1fr; } }
      .edge {
        padding: 1.6rem 1.4rem;
        border-radius: var(--r);
        border: 1px solid var(--line);
        background: linear-gradient(180deg, rgba(255,255,255,0.022), transparent);
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
      }
      .edge:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -45px rgba(0,0,0,0.9); }
      .edge .ix {
        width: 42px; height: 42px; border-radius: 11px;
        display: grid; place-items: center;
        background: var(--safe-soft); color: var(--safe);
        border: 1px solid var(--safe-line);
        margin-bottom: 1rem;
      }
      .edge h3 { font-size: 1.22rem; font-family: var(--font-display); font-weight: 700; }
      .edge p { color: var(--fg-dim); font-size: 0.96rem; margin-top: 0.5rem; }

      /* compliance strip */
      .compliance {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
        gap: 0.7rem 1.4rem;
        padding: 1.6rem;
        border-radius: var(--r-lg);
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.015);
      }
      .compliance .lbl { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-mute); letter-spacing: 0.14em; text-transform: uppercase; }
      .compliance .reg { font-family: var(--font-mono); font-size: 0.86rem; color: var(--fg-dim); }

      /* waitlist */
      .waitlist {
        position: relative;
        border-radius: var(--r-lg);
        padding: clamp(2.2rem, 5vw, 3.5rem);
        text-align: center;
        border: 1px solid var(--safe-line);
        background: var(--ink-2);
        box-shadow: 0 0 0 1px var(--safe-soft), 0 50px 100px -50px rgba(0, 0, 0, 0.6);
        overflow: hidden;
      }
      .waitlist h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
      .waitlist p { margin: 0.9rem auto 0; color: var(--fg-dim); max-width: 46ch; }
      .wl-form {
        margin: 1.8rem auto 0;
        display: flex;
        gap: 0.6rem;
        max-width: 460px;
        flex-wrap: wrap;
        justify-content: center;
      }
      .wl-form input {
        flex: 1;
        min-width: 220px;
        padding: 0.85em 1.1em;
        border-radius: 999px;
        border: 1px solid var(--line-2);
        background: rgba(0, 0, 0, 0.3);
        color: var(--fg);
        font: inherit;
        font-size: 0.95rem;
      }
      .wl-form input::placeholder { color: var(--fg-mute); }
      .wl-form input:focus-visible { outline: none; border-color: var(--safe); box-shadow: 0 0 0 3px var(--safe-soft); }
      .wl-note { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-mute); }

      /* footer */
      footer { border-top: 1px solid var(--line); padding: 3rem 0 4rem; margin-top: 2rem; }
      .foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
      .foot-col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin: 0 0 0.9rem; }
      .foot-col a { display: block; color: var(--fg-dim); font-size: 0.92rem; padding: 0.18rem 0; }
      .foot-col a:hover { color: var(--fg); }
      .foot-tag { max-width: 30ch; color: var(--fg-dim); font-size: 0.92rem; margin-top: 0.8rem; }
      .foot-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-mute); }

      /* scroll reveal */
      .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
      .reveal.in { opacity: 1; transform: none; }

      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        .reveal { opacity: 1; transform: none; transition: none; }
        .redact.scanning::after { animation: none; opacity: 0; }
        .brand .dot, .console-bar .live::before, .tool-row .state::before { animation: none; }
      }
      /* ── additions: logos, brand mark, links ── */
      .brand .mark { color: var(--safe); }
      .logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.9rem; margin-top: 1.9rem; }
      .logos img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.72; transition: opacity 0.2s ease; }
      .logos img:hover { opacity: 1; }
      .logos-note { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-mute); }
      .tool-row .ico img { width: 14px; height: 14px; filter: brightness(0) invert(1); opacity: 0.82; }
      .edge-link { display: inline-block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--safe); }
      .edge-link:hover { text-decoration: underline; }
      .btn svg { flex-shrink: 0; }
      .lens-wrap { max-width: 720px; margin: 2.2rem auto 0; }
      /* waitlist modal (preview tokens) */
      .modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
      .modal-overlay.open { display: flex; }
      .modal-overlay .modal { width: 100%; max-width: 420px; padding: 1.9rem 1.6rem 1.6rem; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
      .modal-overlay h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.5rem; }
      .modal-overlay .modal-copy { color: var(--fg-dim); font-size: 0.95rem; margin: 0 0 1.1rem; line-height: 1.5; }
      .modal-overlay .field { margin-bottom: 0.7rem; }
      .modal-overlay .field input { width: 100%; padding: 0.75em 1em; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); color: var(--fg); font: inherit; font-size: 0.95rem; }
      .modal-overlay .field input::placeholder { color: var(--fg-mute); }
      .modal-overlay .field input:focus-visible { outline: none; border-color: var(--safe); box-shadow: 0 0 0 3px var(--safe-soft); }
      .modal-overlay .field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
      .modal-overlay .status { margin: 0.7rem 0 0; min-height: 1.2em; font-size: 0.85rem; }
      .modal-overlay .status.error { color: #ff6b6b; }
      .modal-overlay .status.success { color: var(--safe); }
      .modal-overlay .modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1rem; }
      .modal-overlay .oauth-btn { width: 100%; justify-content: center; margin-bottom: 0.9rem; }
      .modal-overlay .modal-or { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; color: var(--fg-mute); font-family: var(--font-mono); font-size: 0.74rem; }
      .modal-overlay .modal-or::before, .modal-overlay .modal-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
      @media (prefers-reduced-motion: reduce) {
        .fx .scan, body::before { animation: none; }
        .fx .scan { opacity: 0; }
        .rain { display: none; }
      }

      /* news banner above the toolbar */
      .topbar {
        position: relative;
        display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap;
        padding: 0.5rem 2.4rem;
        background: color-mix(in oklab, var(--safe) 13%, var(--ink-0));
        border-bottom: 1px solid color-mix(in oklab, var(--safe) 28%, var(--line));
        font-size: 0.82rem; color: var(--fg-dim); text-align: center;
      }
      .topbar.is-hidden { display: none; }
      .topbar-badge {
        font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
        color: var(--on-safe); background: var(--safe); padding: 0.18em 0.6em; border-radius: 999px;
      }
      .topbar-text strong { color: var(--fg); font-weight: 700; }
      .topbar-cta { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--safe); font: inherit; font-weight: 700; line-height: 1.4; cursor: pointer; white-space: nowrap; text-decoration: none; }
      .topbar-cta:hover { text-decoration: underline; }
      .topbar-x { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--fg-mute); font-size: 1.05rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
      .topbar-x:hover { color: var(--fg); }
      @media (max-width: 600px) { .topbar-badge { display: none; } .topbar { padding: 0.5rem 2rem; font-size: 0.76rem; } }


/* ---- Legacy token aliases (docs/blog components use these names) ---- */
:root {
  --bg: var(--ink-0);
  --bg-soft: var(--ink-1);
  --bg-elev: var(--ink-2);
  --fg-soft: var(--fg-dim);
  --border: var(--line);
  --border-strong: var(--line-2);
  --accent: var(--safe);
  --accent-fg: #1b1408;
  --radius-sm: var(--r-sm);
  --radius: var(--r);
  --radius-lg: var(--r-lg);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 50px -28px rgba(0, 0, 0, 0.85);
  --code-bg: #07060a;
  --code-fg: var(--fg);
  --code-token: var(--safe);
  --container-pad: 1.25rem;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---- Brand mark (moved from inline SVG <style>) ---- */
            .brand-mark { --dur: 3.2s; }
            .brand-mark .ring-bright { stroke: currentColor; }
            .brand-mark .ring-dim { stroke: currentColor; opacity: 0.4; }
            .brand-mark .dot { fill: currentColor; }
            .brand-mark .pulse-glow,
            .brand-mark .pulse-dot {
              offset-path: path("M60 20C37.9086 20 20 37.9086 20 60C20 82.0914 37.9086 100 60 100C82.0914 100 100 82.0914 100 60C100 37.9086 82.0914 20 60 20");
              offset-rotate: 0deg;
              transform-box: fill-box;
              transform-origin: center;
              fill: currentColor;
            }
            @keyframes brandOrbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
            .brand-mark .pulse-glow { opacity: 0.22; filter: blur(4px); animation: brandOrbit var(--dur) linear infinite; }
            .brand-mark .pulse-dot { animation: brandOrbit var(--dur) linear infinite; }
            @media (prefers-reduced-motion: reduce) {
              .brand-mark .pulse-glow,
              .brand-mark .pulse-dot { animation: none; opacity: 0; }
            }

/* ---- Docs page components (moved from docs/index.html inline) ---- */
      /* ─── Docs-page-only styles ────────────────────────────────── */
      .docs-hero {
        background:
          radial-gradient(60% 80% at 80% 0%, color-mix(in oklab, var(--accent) 15%, transparent), transparent 70%),
          radial-gradient(50% 60% at 0% 20%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
          var(--bg);
        padding: 5.5rem 0 2.5rem;
      }
      .docs-hero .eyebrow {
        display: inline-block;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--accent);
        margin: 0 0 0.9rem;
        padding: 0.25em 0.7em;
        background: color-mix(in oklab, var(--accent) 12%, transparent);
        border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
        border-radius: 999px;
      }
      .docs-hero h1 {
        margin: 0 0 0.9rem;
        font-size: clamp(2rem, 4vw, 2.8rem);
        line-height: 1.1;
      }
      .docs-hero p {
        margin: 0;
        max-width: 680px;
        color: var(--fg-soft);
        font-size: 1.05rem;
        line-height: 1.6;
      }

      .docs-layout {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 3rem;
        padding: 2.5rem 0 4rem;
      }

      .docs-toc {
        position: sticky;
        top: 5rem;
        align-self: start;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        padding: 1rem 0;
        border-left: 1px solid var(--border);
      }
      .docs-toc-title {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--fg-mute);
        margin: 0 0 0.75rem 1rem;
      }
      .docs-toc ol {
        list-style: none;
        margin: 0;
        padding: 0;
        counter-reset: toc;
      }
      .docs-toc li {
        counter-increment: toc;
        margin: 0;
      }
      .docs-toc a {
        display: block;
        padding: 0.4rem 0.9rem 0.4rem 1rem;
        font-size: 0.86rem;
        color: var(--fg-soft);
        border-left: 2px solid transparent;
        margin-left: -1px;
        text-decoration: none;
        transition: color 120ms, border-color 120ms, background 120ms;
      }
      .docs-toc a::before {
        content: counter(toc, decimal-leading-zero);
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--fg-mute);
        margin-right: 0.55rem;
      }
      .docs-toc a:hover,
      .docs-toc a:focus-visible {
        color: var(--fg);
        background: var(--bg-soft);
        border-left-color: color-mix(in oklab, var(--accent) 45%, transparent);
      }
      .docs-toc a[aria-current="true"] {
        color: var(--accent);
        border-left-color: var(--accent);
        background: color-mix(in oklab, var(--accent) 8%, transparent);
      }

      .docs-content {
        min-width: 0;
        max-width: 720px;
      }
      .docs-content section + section {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
        border-top: 1px solid var(--border);
      }
      .docs-content h2 {
        margin: 0 0 1rem;
        font-size: 1.5rem;
        line-height: 1.25;
        scroll-margin-top: 5rem;
      }
      .docs-content h2 .docs-anchor {
        margin-right: 0.5rem;
        font-family: var(--font-mono);
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--accent);
        opacity: 0.8;
      }
      .docs-content p {
        margin: 0 0 0.9rem;
        line-height: 1.7;
        color: var(--fg-soft);
      }
      .docs-content p:last-child { margin-bottom: 0; }
      .docs-content code {
        font-family: var(--font-mono);
        font-size: 0.88em;
        background: var(--bg-soft);
        color: var(--fg);
        padding: 0.08em 0.4em;
        border-radius: 4px;
        border: 1px solid var(--border);
      }
      .docs-content strong {
        color: var(--fg);
        font-weight: 700;
      }

      .docs-cta {
        margin-top: 3rem;
        padding: 1.5rem 1.4rem;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius);
        background: var(--bg-soft);
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
      }
      .docs-cta p {
        margin: 0;
        color: var(--fg-soft);
        font-size: 0.95rem;
      }
      .docs-cta-actions {
        display: flex;
        gap: 0.6rem;
        flex-wrap: wrap;
      }

      @media (max-width: 900px) {
        .docs-layout {
          grid-template-columns: 1fr;
          gap: 2rem;
        }
        .docs-toc {
          position: static;
          max-height: none;
          border-left: 0;
          border-bottom: 1px solid var(--border);
          padding-bottom: 1rem;
        }
        .docs-toc ol {
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
          gap: 0.1rem;
        }
        .docs-toc a {
          padding-left: 0.75rem;
          border-left: 0;
          border-bottom: 2px solid transparent;
        }
        .docs-toc a:hover,
        .docs-toc a[aria-current="true"] {
          border-left-color: transparent;
          border-bottom-color: var(--accent);
        }
      }

/* ---- Blog page components (moved from blog/index.html inline) ---- */
      /* ─── Blog list / cards ─────────────────────────────────────── */
      .blog-list {
        list-style: none;
        margin: 0;
        padding: 2.5rem 0 4rem;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
      }

      .blog-card {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.5rem 1.6rem 1.7rem;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        transition:
          transform 0.18s ease,
          border-color 0.18s ease,
          box-shadow 0.18s ease;
      }

      /* Accent hairline along the top edge, revealed on hover */
      .blog-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 30%, transparent));
        opacity: 0;
        transition: opacity 0.18s ease;
      }

      .blog-card:hover,
      .blog-card:focus-within {
        transform: translateY(-3px);
        border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
        box-shadow: var(--shadow-md);
      }

      .blog-card:hover::before,
      .blog-card:focus-within::before {
        opacity: 1;
      }

      .blog-card .blog-meta {
        margin: 0;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--fg-mute);
        display: flex;
        align-items: center;
        gap: 0.55rem;
      }

      .blog-card .blog-tag {
        color: var(--accent);
        padding: 0.15em 0.6em;
        border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
        background: color-mix(in oklab, var(--accent) 12%, transparent);
        border-radius: 999px;
        letter-spacing: 0.06em;
      }

      .blog-card h2 {
        margin: 0;
        font-size: 1.28rem;
        line-height: 1.25;
      }

      /* Stretched link: whole card is clickable, title stays the a11y anchor */
      .blog-card h2 a {
        color: inherit;
        text-decoration: none;
      }

      .blog-card h2 a::after {
        content: "";
        position: absolute;
        inset: 0;
      }

      .blog-card:hover h2 a,
      .blog-card:focus-within h2 a {
        color: var(--accent);
      }

      .blog-card .blog-excerpt {
        margin: 0;
        color: var(--fg-soft);
        font-size: 0.97rem;
        line-height: 1.6;
      }

      .blog-card .blog-more {
        margin-top: auto;
        padding-top: 0.3rem;
        font-size: 0.86rem;
        font-weight: 600;
        color: var(--accent);
        display: inline-flex;
        align-items: center;
        gap: 0.35em;
      }

      .blog-card .blog-more svg {
        transition: transform 0.18s ease;
      }

      .blog-card:hover .blog-more svg,
      .blog-card:focus-within .blog-more svg {
        transform: translateX(3px);
      }

      @media (prefers-reduced-motion: reduce) {
        .blog-card,
        .blog-card::before,
        .blog-card .blog-more svg {
          transition: none;
        }
        .blog-card:hover,
        .blog-card:focus-within {
          transform: none;
        }
      }

/* ---- Parity overrides so docs/blog eyebrow matches the homepage dot style ---- */
.docs-hero { background: var(--ink-0); }
.docs-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0; border: 0; border-radius: 0; background: none;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--safe);
}
.docs-hero .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--safe); box-shadow: 0 0 10px var(--safe);
}

/* Live-demo section sits right under the hero: tighten the top gap and
   land the demo nicely when navigating to #demo. */
#demo { padding-top: 1.75rem; scroll-margin-top: 76px; }
#demo .sec-head { margin-bottom: 0.4rem; }
#demo .lens-wrap { margin-top: 1.4rem; }

/* ─── Benchmark section ───────────────────────────────────────────── */
.bench { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); background: rgba(255, 255, 255, 0.015); margin-top: 2.2rem; }
.bench-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-dim); margin-bottom: 1.5rem; }
.bench-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 0.45em; vertical-align: middle; }
.sw-anonde { background: var(--safe); }
.sw-presidio { background: var(--pii); }
.sw-gliner { background: var(--fg-mute); }
.bench-group { margin-bottom: 1.4rem; }
.bench-glabel { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); margin-bottom: 0.55rem; }
.bench-bar { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 0.7rem; margin: 0.4rem 0; }
.bench-eng { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-dim); }
.bench-track { height: 15px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; overflow: hidden; }
.bench-fill { display: block; height: 100%; border-radius: 4px; animation: benchgrow 1s cubic-bezier(0.4, 0, 0.2, 1) both; }
.bench-fill.a { background: var(--safe); }
.bench-fill.p { background: var(--pii); }
.bench-fill.g { background: var(--fg-mute); }
@keyframes benchgrow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }
.bench-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg); text-align: right; }
.bench-note { margin-top: 1.3rem; color: var(--fg-dim); font-size: 0.95rem; line-height: 1.6; }
.bench-note strong { color: var(--fg); }
.bench-note .good { color: var(--safe); }
.bench-foot { margin-top: 1rem; }
.bench-foot a { color: var(--safe); font-family: var(--font-mono); font-size: 0.82rem; }
@media (prefers-reduced-motion: reduce) { .bench-fill { animation: none; } }
@media (max-width: 560px) { .bench-bar { grid-template-columns: 72px 1fr 46px; gap: 0.5rem; } }

/* Boundary-stream background canvas (homepage) */

/* ─── Signup success / error toast ───────────────────────────────── */
.toast { --toast-green: #16a34a; position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(1rem); z-index: 200; display: flex; align-items: center; gap: 0.6rem; max-width: calc(100vw - 2rem); padding: 0.8rem 1.1rem; background: var(--ink-2); color: var(--fg); border: 1px solid color-mix(in oklab, var(--toast-green) 40%, var(--line)); border-left: 3px solid var(--toast-green); border-radius: var(--r); box-shadow: 0 18px 50px -28px rgba(0,0,0,.85); font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.is-error { --toast-green: #dc2626; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px; background: var(--toast-green); color: #fff; font-size: 0.8rem; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .15s ease; transform: translateX(-50%); } .toast.show { transform: translateX(-50%); } }

