@charset "utf-8";

/* ==========================================================================
   Merlin — marketing site
   Product-led and dark-forward. The palette is lifted from the product itself:
   a deep violet-black field (#0A0818), glass panels, and the purple→magenta
   ramp that runs through every chart in the app.

   Three surface families, and the distinction matters:

     themed   --bg / --bg-alt / --surface   flip with the light/dark theme
     stage    --stage-*                     stay dark in BOTH themes — the hero,
                                            the product bands and the closing CTA
                                            are always the product's own ground
     accent   --purple / --grad-*           the brand ramp, used with intent

   Every themed value is a token so the two dark blocks below are pure variable
   assignment — no duplicated rule bodies, and `npm run check` fails if they
   ever drift apart.
   ========================================================================== */

/* --- Typeface -------------------------------------------------------------
   Plus Jakarta Sans, variable 400..800, self-hosted. No third-party requests:
   a reviewer inspecting the network tab should see this origin only.        */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ---------------------------------------------------------------
   Three surface families, and the distinction is load-bearing:

     themed   --bg / --bg-alt / --surface   the ordinary page
     stage    --stage-*                     the hero, the tour, "how it works"
                                            and the closing CTA — a lavender-lit
                                            band on a light page, the product's
                                            own violet field on a dark one
     accent   --purple / --grad / --acc-*   the brand ramp and the app's chart
                                            colours, used with intent

   The design's signature is the diminuendo — the brand mark is an M of ~34
   dots that shrink and fade down the ramp, and the site quotes that gesture
   at three scales: the tapered dot rule under eyebrows, the ramp-stepped
   badges and accents, and the full constellation in the hero and CTA bands.

   The stage is themed, not constant. A "light mode" that opens on a dark hero
   is not a light mode — so the band changes ground with the theme and keeps
   its shape, lighting and hierarchy either way.                              */

:root {
  --purple: #7033ed; /* 6.2:1 on white — AA for text and for white-on-purple */

  /* The ramp from the icon mark and the product's own charts. */
  --ramp-1: #7033ed;
  --ramp-2: #9568f0;
  --ramp-3: #a882f2;
  --ramp-4: #bda0f4;
  --ramp-5: #cbb4f7;
  --ramp-6: #d8cbf9;

  /* Chart accents, sampled from the app. Each module and platform owns one —
     the same coding the product's own dashboard uses for its widgets. */
  --acc-magenta: #d926a4;
  --acc-cyan: #22b8d4;
  --acc-green: #10a37f;
  --acc-amber: #d98324;

  /* Partner accents. Not part of the platform key — these exist so a
     white-label brand can be shown in its own colour rather than in ours. */
  --acc-blue: #2f6fe0;
  --acc-coral: #e0563c;
  --acc-olive: #6f9a20;
  --acc-indigo: #4a4fbf;

  --grad: linear-gradient(118deg, #7033ed 0%, #9d3ae4 52%, #d926a4 100%);

  --purple-tint: rgba(112, 51, 237, 0.07);
  --purple-line: rgba(112, 51, 237, 0.28);
  --btn-hover: #5b26c9;
  --link-hover: #5b26c9;
  --step-ink: #5b26c9;
  --focus: #7033ed;
  --bg: #ffffff;
  --bg-alt: #f7f6fc;
  --surface: #ffffff;
  --bg-tint: #faf9fd;
  --header-bg: rgba(253, 252, 255, 0.86);
  --ink: #14121f;
  --ink-body: #3c3854;
  --ink-muted: #625d7c;
  --line: #e9e6f4;
  --line-strong: #d5d0e8;
  --line-tint: #e8e4f5;
  --link: #6428d9;
  --link-underline: rgba(100, 40, 217, 0.35);
  --selection: rgba(112, 51, 237, 0.14);
  --wash-a: rgba(112, 51, 237, 0.06);
  --wash-b: rgba(217, 38, 164, 0.035);
  --wash-footer: rgba(112, 51, 237, 0.05);
  --ghost-bg: #ffffff;
  --ghost-bg-hover: #f7f6fc;
  --ghost-border-hover: #bfb8d8;
  --card-glow: rgba(112, 51, 237, 0.1);
  --mesh-a: rgba(112, 51, 237, 0.1);
  --mesh-b: rgba(217, 38, 164, 0.07);
  --tx-cyan: #0d7c92;
  --tx-green: #0d7a60;
  --tx-amber: #9a5b10;
  --tx-magenta: #b0158a;
  --tx-blue: #1a55c4;
  --tx-coral: #bd3c22;
  --tx-olive: #527214;
  --tx-indigo: #3c40a8;
  --dot-grid: rgba(112, 51, 237, 0.09);
  --grad-soft: linear-gradient(118deg, rgba(112, 51, 237, 0.1), rgba(217, 38, 164, 0.08));
  --shadow-card: 0 1px 2px rgba(20, 18, 31, 0.04), 0 10px 30px -18px rgba(20, 18, 31, 0.14);
  --shadow-frame: 0 1px 2px rgba(20, 18, 31, 0.06), 0 30px 60px -28px rgba(20, 18, 31, 0.28);
  --stage: #f5f2fe;
  --stage-raised: #ffffff;
  --stage-ink: #14121f;
  --stage-body: #3c3854;
  --stage-muted: #625d7c;
  --stage-line: rgba(112, 51, 237, 0.16);
  --stage-line-strong: rgba(112, 51, 237, 0.3);
  --stage-glass: rgba(255, 255, 255, 0.72);
  --stage-glass-hi: #ffffff;
  --stage-link: #6428d9;
  --stage-link-hover: #5b26c9;
  --stage-link-underline: rgba(100, 40, 217, 0.35);
  --stage-ghost-border-hover: #b3a8d6;
  --stage-step-bg: rgba(112, 51, 237, 0.09);
  --stage-step-ink: #5b26c9;
  --stage-mesh-a: rgba(112, 51, 237, 0.17);
  --stage-mesh-b: rgba(217, 38, 164, 0.1);
  --stage-mesh-c: rgba(112, 51, 237, 0.1);
  --stage-grid: rgba(112, 51, 237, 0.055);
  --stage-glow: rgba(146, 104, 245, 0.32);
  --stage-frame-shadow: 0 2px 4px rgba(20, 18, 31, 0.05), 0 40px 90px -30px rgba(60, 30, 140, 0.35);
  --stage-grad-ink: linear-gradient(118deg, #7033ed 0%, #9d3ae4 52%, #d926a4 100%);

  --shell: 1180px;
  --shell-wide: 1320px;
  --prose: 68ch;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --step: clamp(64px, 8vw, 116px);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* Dark palette — deep violet-black, sampled from the product's own field
   (#08091E–#2A2158), not neutral slate: the app and the site share one ground. */

:root {
  --d-purple-tint: rgba(146, 104, 245, 0.14);
  --d-purple-line: rgba(160, 125, 245, 0.36);
  --d-btn-hover: #7d45ef;
  --d-link-hover: #d3c2fb;
  --d-step-ink: #b79cf8;
  --d-focus: #b79cf8;
  --d-bg: #0a0818;
  --d-bg-alt: #100d22;
  --d-surface: #161129;
  --d-bg-tint: #070511;
  --d-header-bg: rgba(10, 8, 24, 0.82);
  --d-ink: #f4f2fb;
  --d-ink-body: #c5c0dc;
  --d-ink-muted: #938db4;
  --d-line: rgba(255, 255, 255, 0.09);
  --d-line-strong: rgba(173, 143, 250, 0.26);
  --d-line-tint: rgba(173, 143, 250, 0.18);
  --d-link: #b79cf8;
  --d-link-underline: rgba(183, 156, 248, 0.4);
  --d-selection: rgba(146, 104, 245, 0.3);
  --d-wash-a: rgba(112, 51, 237, 0.14);
  --d-wash-b: rgba(217, 38, 164, 0.08);
  --d-wash-footer: rgba(112, 51, 237, 0.09);
  --d-ghost-bg: rgba(255, 255, 255, 0.05);
  --d-ghost-bg-hover: rgba(255, 255, 255, 0.09);
  --d-ghost-border-hover: rgba(255, 255, 255, 0.28);
  --d-card-glow: rgba(146, 104, 245, 0.18);
  --d-mesh-a: rgba(112, 51, 237, 0.26);
  --d-mesh-b: rgba(217, 38, 164, 0.16);
  --d-tx-cyan: #63d6ea;
  --d-tx-green: #52d9ae;
  --d-tx-amber: #f0ab57;
  --d-tx-magenta: #f478cd;
  --d-tx-blue: #8ab6f7;
  --d-tx-coral: #ff9078;
  --d-tx-olive: #a8ce5c;
  --d-tx-indigo: #9c9ff0;
  --d-dot-grid: rgba(173, 143, 250, 0.09);
  --d-grad-soft: linear-gradient(118deg, rgba(112, 51, 237, 0.3), rgba(217, 38, 164, 0.2));
  --d-shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  --d-shadow-frame: 0 1px 2px rgba(0, 0, 0, 0.5), 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  --d-stage: #0a0818;
  --d-stage-raised: #150e30;
  --d-stage-ink: #ffffff;
  --d-stage-body: #c5c0dc;
  --d-stage-muted: #938db4;
  --d-stage-line: rgba(255, 255, 255, 0.1);
  --d-stage-line-strong: rgba(173, 143, 250, 0.3);
  --d-stage-glass: rgba(255, 255, 255, 0.045);
  --d-stage-glass-hi: rgba(255, 255, 255, 0.075);
  --d-stage-link: #c3aefa;
  --d-stage-link-hover: #ded1fd;
  --d-stage-link-underline: rgba(195, 174, 250, 0.4);
  --d-stage-ghost-border-hover: rgba(255, 255, 255, 0.45);
  --d-stage-step-bg: rgba(146, 104, 245, 0.18);
  --d-stage-step-ink: #d3c2fb;
  --d-stage-mesh-a: rgba(112, 51, 237, 0.42);
  --d-stage-mesh-b: rgba(217, 38, 164, 0.24);
  --d-stage-mesh-c: rgba(90, 40, 200, 0.3);
  --d-stage-grid: rgba(255, 255, 255, 0.028);
  --d-stage-glow: rgba(146, 104, 245, 0.55);
  --d-stage-frame-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --d-stage-grad-ink: linear-gradient(112deg, #b79cf8 0%, #cf8ff2 46%, #f472c6 100%);
}

/* `--dark-tokens` is a marker the switcher reads back to confirm which theme is
   live without re-implementing this logic in JavaScript. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --dark-tokens: 1;
  }
}

:root[data-theme='dark'] {
  --dark-tokens: 1;
}

/* Applied in two situations, and the rule body is shared between them:
     1. the system asks for dark and the visitor has not overridden it —
        this is the only path with JavaScript disabled;
     2. the visitor picked dark explicitly, which the head script writes to
        [data-theme] before first paint.                                     */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --purple-tint: var(--d-purple-tint);
    --purple-line: var(--d-purple-line);
    --btn-hover: var(--d-btn-hover);
    --link-hover: var(--d-link-hover);
    --step-ink: var(--d-step-ink);
    --focus: var(--d-focus);
    --bg: var(--d-bg);
    --bg-alt: var(--d-bg-alt);
    --surface: var(--d-surface);
    --bg-tint: var(--d-bg-tint);
    --header-bg: var(--d-header-bg);
    --ink: var(--d-ink);
    --ink-body: var(--d-ink-body);
    --ink-muted: var(--d-ink-muted);
    --line: var(--d-line);
    --line-strong: var(--d-line-strong);
    --line-tint: var(--d-line-tint);
    --link: var(--d-link);
    --link-underline: var(--d-link-underline);
    --selection: var(--d-selection);
    --wash-a: var(--d-wash-a);
    --wash-b: var(--d-wash-b);
    --wash-footer: var(--d-wash-footer);
    --ghost-bg: var(--d-ghost-bg);
    --ghost-bg-hover: var(--d-ghost-bg-hover);
    --ghost-border-hover: var(--d-ghost-border-hover);
    --card-glow: var(--d-card-glow);
    --mesh-a: var(--d-mesh-a);
    --mesh-b: var(--d-mesh-b);
    --tx-cyan: var(--d-tx-cyan);
    --tx-green: var(--d-tx-green);
    --tx-amber: var(--d-tx-amber);
    --tx-magenta: var(--d-tx-magenta);
    --tx-blue: var(--d-tx-blue);
    --tx-coral: var(--d-tx-coral);
    --tx-olive: var(--d-tx-olive);
    --tx-indigo: var(--d-tx-indigo);
    --dot-grid: var(--d-dot-grid);
    --grad-soft: var(--d-grad-soft);
    --shadow-card: var(--d-shadow-card);
    --shadow-frame: var(--d-shadow-frame);
    --stage: var(--d-stage);
    --stage-raised: var(--d-stage-raised);
    --stage-ink: var(--d-stage-ink);
    --stage-body: var(--d-stage-body);
    --stage-muted: var(--d-stage-muted);
    --stage-line: var(--d-stage-line);
    --stage-line-strong: var(--d-stage-line-strong);
    --stage-glass: var(--d-stage-glass);
    --stage-glass-hi: var(--d-stage-glass-hi);
    --stage-link: var(--d-stage-link);
    --stage-link-hover: var(--d-stage-link-hover);
    --stage-link-underline: var(--d-stage-link-underline);
    --stage-ghost-border-hover: var(--d-stage-ghost-border-hover);
    --stage-step-bg: var(--d-stage-step-bg);
    --stage-step-ink: var(--d-stage-step-ink);
    --stage-mesh-a: var(--d-stage-mesh-a);
    --stage-mesh-b: var(--d-stage-mesh-b);
    --stage-mesh-c: var(--d-stage-mesh-c);
    --stage-grid: var(--d-stage-grid);
    --stage-glow: var(--d-stage-glow);
    --stage-frame-shadow: var(--d-stage-frame-shadow);
    --stage-grad-ink: var(--d-stage-grad-ink);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --purple-tint: var(--d-purple-tint);
  --purple-line: var(--d-purple-line);
  --btn-hover: var(--d-btn-hover);
  --link-hover: var(--d-link-hover);
  --step-ink: var(--d-step-ink);
  --focus: var(--d-focus);
  --bg: var(--d-bg);
  --bg-alt: var(--d-bg-alt);
  --surface: var(--d-surface);
  --bg-tint: var(--d-bg-tint);
  --header-bg: var(--d-header-bg);
  --ink: var(--d-ink);
  --ink-body: var(--d-ink-body);
  --ink-muted: var(--d-ink-muted);
  --line: var(--d-line);
  --line-strong: var(--d-line-strong);
  --line-tint: var(--d-line-tint);
  --link: var(--d-link);
  --link-underline: var(--d-link-underline);
  --selection: var(--d-selection);
  --wash-a: var(--d-wash-a);
  --wash-b: var(--d-wash-b);
  --wash-footer: var(--d-wash-footer);
  --ghost-bg: var(--d-ghost-bg);
  --ghost-bg-hover: var(--d-ghost-bg-hover);
  --ghost-border-hover: var(--d-ghost-border-hover);
  --card-glow: var(--d-card-glow);
  --mesh-a: var(--d-mesh-a);
  --mesh-b: var(--d-mesh-b);
  --tx-cyan: var(--d-tx-cyan);
  --tx-green: var(--d-tx-green);
  --tx-amber: var(--d-tx-amber);
  --tx-magenta: var(--d-tx-magenta);
  --tx-blue: var(--d-tx-blue);
  --tx-coral: var(--d-tx-coral);
  --tx-olive: var(--d-tx-olive);
  --tx-indigo: var(--d-tx-indigo);
  --dot-grid: var(--d-dot-grid);
  --grad-soft: var(--d-grad-soft);
  --shadow-card: var(--d-shadow-card);
  --shadow-frame: var(--d-shadow-frame);
  --stage: var(--d-stage);
  --stage-raised: var(--d-stage-raised);
  --stage-ink: var(--d-stage-ink);
  --stage-body: var(--d-stage-body);
  --stage-muted: var(--d-stage-muted);
  --stage-line: var(--d-stage-line);
  --stage-line-strong: var(--d-stage-line-strong);
  --stage-glass: var(--d-stage-glass);
  --stage-glass-hi: var(--d-stage-glass-hi);
  --stage-link: var(--d-stage-link);
  --stage-link-hover: var(--d-stage-link-hover);
  --stage-link-underline: var(--d-stage-link-underline);
  --stage-ghost-border-hover: var(--d-stage-ghost-border-hover);
  --stage-step-bg: var(--d-stage-step-bg);
  --stage-step-ink: var(--d-stage-step-ink);
  --stage-mesh-a: var(--d-stage-mesh-a);
  --stage-mesh-b: var(--d-stage-mesh-b);
  --stage-mesh-c: var(--d-stage-mesh-c);
  --stage-grid: var(--d-stage-grid);
  --stage-glow: var(--d-stage-glow);
  --stage-frame-shadow: var(--d-stage-frame-shadow);
  --stage-grad-ink: var(--d-stage-grad-ink);
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, sans-serif;
  font-size: 1.0313rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

::selection {
  background: var(--selection);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Typography ----------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.35rem);
  letter-spacing: -0.042em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(2rem, 4.1vw, 3.05rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--link-hover);
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 62ch;
}

.prose {
  max-width: var(--prose);
}

.prose h2 {
  margin-top: 0;
}

/* Eyebrow + the dot rule beneath it — the one place the full icon ramp shows. */
.eyebrow {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
}

.dotrule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 1.6rem;
}

.dotrule span {
  border-radius: 50%;
}

/* The mark's own gesture: each dot smaller and paler than the last. */
.dotrule span:nth-child(1) { width: 8px; height: 8px; background: var(--ramp-1); }
.dotrule span:nth-child(2) { width: 7px; height: 7px; background: var(--ramp-2); }
.dotrule span:nth-child(3) { width: 6px; height: 6px; background: var(--ramp-3); }
.dotrule span:nth-child(4) { width: 5px; height: 5px; background: var(--ramp-4); }
.dotrule span:nth-child(5) { width: 4px; height: 4px; background: var(--ramp-5); }
.dotrule span:nth-child(6) { width: 3px; height: 3px; background: var(--ramp-6); }

/* The brand full stop — the app's own "merlin." gesture, on every display
   heading. letter-spacing: normal also cures the detached-period artefact
   that heavy negative tracking causes at display sizes. */
.hd-dot {
  color: var(--step-ink);
  letter-spacing: normal;
}

.on-stage .hd-dot {
  color: var(--stage-step-ink);
}

/* Gradient ink for the one phrase per page that carries the idea. */
.grad-ink {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Layout --------------------------------------------------------------- */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.shell--wide {
  width: min(100% - 2.5rem, var(--shell-wide));
}

.section {
  padding-block: var(--step);
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1.5px);
  background-size: 30px 30px;
  border-block: 1px solid var(--line);
}

.section--tight {
  padding-block: calc(var(--step) * 0.6);
}

.section__head {
  max-width: 46rem;
  margin-bottom: 3.2rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .dotrule {
  justify-content: center;
}

.section__head h2 {
  margin-bottom: 0.55rem;
  max-width: 26ch;
}

.section__head--center h2,
.section__head--center .lede {
  margin-inline: auto;
}

/* The section that directly follows a stage hero — one named value, not an
   inline style invented per page. */
.section--flush {
  padding-block-start: clamp(44px, 5.5vw, 72px);
}

/* Sub-heads inside a long section (connections' scope list, withdrawal). */
.section-subhead {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 3rem 0 1.2rem;
}

.section-subhead::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  margin-right: 0.55rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--purple);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  left: 0;
  color: #fff;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  --btn-py: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-py) 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--purple);
  color: #fff; /* 6.2:1 — AA at normal weight, both themes */
  box-shadow: 0 1px 2px rgba(20, 18, 31, 0.16), 0 12px 28px -14px rgba(112, 51, 237, 0.7);
}

.btn--primary:hover {
  background: var(--btn-hover);
  color: #fff;
}

.btn--grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20, 18, 31, 0.16), 0 14px 34px -14px rgba(157, 58, 228, 0.8);
}

.btn--grad:hover {
  color: #fff;
  filter: saturate(1.12) brightness(1.06);
}

.btn--ghost {
  background: var(--ghost-bg);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--ghost-border-hover);
  color: var(--ink);
}

.btn--sm {
  --btn-py: 0.55rem;
  padding: var(--btn-py) 1.05rem;
  font-size: 0.875rem;
}

.btn--lg {
  --btn-py: 0.95rem;
  padding: var(--btn-py) 1.75rem;
  font-size: 1.02rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

/* On a stage the ghost button has to work against the dark ground. */
.on-stage .btn--ghost {
  background: var(--stage-glass);
  border-color: var(--stage-line-strong);
  color: var(--stage-ink);
}

.on-stage .btn--ghost:hover {
  background: var(--stage-glass-hi);
  border-color: var(--stage-ghost-border-hover);
  color: var(--stage-ink);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--ghost-bg);
  color: var(--ink-body);
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.icon-btn:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--ghost-border-hover);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line-tint);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 68px;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  width: 120px;
  height: 28px;
}

.brand__dark {
  display: none;
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand__light {
    display: none;
  }

  :root:not([data-theme='light']) .brand__dark {
    display: block;
  }
}

:root[data-theme='dark'] .brand__light {
  display: none;
}

:root[data-theme='dark'] .brand__dark {
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-inline: auto 0;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink-body);
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.site-nav a:hover {
  background: var(--purple-tint);
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--purple-tint);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 17px;
}

.nav-toggle__bars span {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Both controls are inert without scripting, so they must not render without
   it. `[data-js]` is written by the pre-paint snippet in each <head>. */
.theme-toggle,
.nav-toggle {
  display: none;
}

[data-js] .theme-toggle {
  display: inline-flex;
}

.icon-moon {
  display: none;
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .icon-sun {
    display: none;
  }

  :root:not([data-theme='light']) .icon-btn .icon-moon {
    display: block;
  }
}

:root[data-theme='dark'] .icon-btn .icon-sun {
  display: none;
}

:root[data-theme='dark'] .icon-btn .icon-moon {
  display: block;
}

/* --- Accents ---------------------------------------------------------------
   Every module and platform owns one chart colour — the same coding the
   product's dashboard uses. A component under an .acc-* class reads
   --a (the raw accent, for tints and rings) and --a-tx (the text-safe form,
   AA in both themes).                                                        */

.acc-p { --a: var(--purple);      --a-tx: var(--step-ink); }
.acc-v { --a: var(--ramp-2);      --a-tx: var(--step-ink); }
.acc-c { --a: var(--acc-cyan);    --a-tx: var(--tx-cyan); }
.acc-g { --a: var(--acc-green);   --a-tx: var(--tx-green); }
.acc-a { --a: var(--acc-amber);   --a-tx: var(--tx-amber); }
.acc-m { --a: var(--acc-magenta); --a-tx: var(--tx-magenta); }
.acc-b { --a: var(--acc-blue);   --a-tx: var(--tx-blue); }
.acc-r { --a: var(--acc-coral);  --a-tx: var(--tx-coral); }
.acc-o { --a: var(--acc-olive);  --a-tx: var(--tx-olive); }
.acc-i { --a: var(--acc-indigo); --a-tx: var(--tx-indigo); }

/* --- Documentation search -------------------------------------------------
   Inert without scripting, so it follows the same rule as the theme switch and
   the menu: hidden until [data-js] confirms the script is live. The articles
   and the contents list are in the served HTML either way — search narrows the
   page, it never gates it.                                                   */

.docsearch { display: none; margin-bottom: 2rem; }
[data-js] .docsearch { display: block; }
.docsearch__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.55rem;
}
.docsearch__input {
  width: 100%;
  padding: 0.78rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
}
.docsearch__input::placeholder { color: var(--ink-muted); }
.docsearch__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--purple);
}
.docsearch__status { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--ink-muted); }
.docsearch__status:empty { display: none; }
.docsearch__results { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.docsearch__results:empty { display: none; }
.docsearch__results li { border-top: 1px solid var(--line); }
.docsearch__results a { display: block; padding: 0.85rem 0; text-decoration: none; }
.docsearch__results a:hover { background: var(--bg-tint); }
.docsearch__results b { display: block; font-size: 0.97rem; color: var(--ink); }
.docsearch__results i {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--step-ink);
}
.docsearch__results span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.87rem;
  color: var(--ink-body);
}
.docsearch__results mark {
  padding: 0 0.1em;
  border-radius: 2px;
  background: var(--purple-tint);
  color: inherit;
  font-weight: 700;
}

/* --- Partner roster — the same chrome redrawn from one accent, which is what
   a brand's stored theme does at runtime. All of it derives from --a.       */

.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.4rem; list-style: none; margin: 2.2rem 0 0; padding: 0; }
.bcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.bcard__ui { display: grid; grid-template-columns: 30px 1fr; gap: 7px; padding: 9px; background: color-mix(in srgb, var(--a) 8%, var(--bg-alt)); border-bottom: 1px solid var(--line); }
.bcard__rail { display: grid; gap: 5px; justify-items: center; padding: 7px 0; border-radius: 7px; background: var(--a); }
.bcard__rail span { width: 11px; height: 11px; border-radius: 3px; background: #fff; }
.bcard__rail span + span { opacity: 0.45; }
.bcard__screen { display: grid; gap: 5px; }
.bcard__top { display: flex; align-items: center; gap: 5px; height: 17px; padding: 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--a) 20%, transparent); }
.bcard__top i { width: 7px; height: 7px; border-radius: 50%; background: var(--a); }
.bcard__top b { font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-tx); }
.bcard__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.bcard__tiles i { height: 27px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--a) 26%, transparent); }
.bcard__meta { padding: 1.1rem 1.25rem 1.25rem; }
.bcard__meta b { display: block; font-size: 1.02rem; }
.bcard__meta span { display: block; margin-top: 0.28rem; font-size: 0.83rem; color: var(--a-tx); }
.bcard__meta p { margin: 0.65rem 0 0; font-size: 0.88rem; color: var(--ink-muted); }
.bcard__mods { display: flex; flex-wrap: wrap; gap: 0.32rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.bcard__mods li { font-size: 0.72rem; padding: 0.2rem 0.52rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--a) 30%, transparent); color: var(--ink-body); }

/* --- Stage ----------------------------------------------------------------
   A band that stays on the product's dark ground in both themes. Everything
   inside switches to the --stage-* family; nothing themed leaks in.         */

.on-stage {
  position: relative;
  background: var(--stage);
  color: var(--stage-body);
  isolation: isolate;
}

.on-stage h1,
.on-stage h2,
.on-stage h3,
.on-stage h4,
.on-stage strong,
.on-stage b {
  color: var(--stage-ink);
}

.on-stage .eyebrow {
  color: var(--stage-muted);
}

/* The base ramp starts too dark to read as display text on the deep field. */
.on-stage .grad-ink {
  background: var(--stage-grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
}

.on-stage .lede {
  color: var(--stage-body);
}

.on-stage a:not(.btn) {
  color: var(--stage-link);
  text-decoration-color: var(--stage-link-underline);
}

.on-stage a:not(.btn):hover {
  color: var(--stage-link-hover);
}

/* The mesh: two soft lobes of the brand ramp over the deep field, plus a fine
   grid that gives the dark ground some architecture. Purely decorative. */
.on-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 68% at 12% 0%, var(--stage-mesh-a), transparent 62%),
    radial-gradient(46% 60% at 92% 8%, var(--stage-mesh-b), transparent 64%),
    radial-gradient(70% 60% at 60% 108%, var(--stage-mesh-c), transparent 66%);
  pointer-events: none;
}

.on-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--stage-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding-block: clamp(3.6rem, 8vw, 6.4rem) clamp(3.6rem, 7vw, 5.6rem);
  overflow: hidden;
}

.hero__inner {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.hero__inner .dotrule {
  justify-content: center;
}

/* Inner pages get the same ground, at about half the height. */
.hero--page {
  padding-block: clamp(2.8rem, 5.5vw, 4.6rem) clamp(2.8rem, 5vw, 4.2rem);
}

.hero--page h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero__lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--stage-body);
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero .btn-row {
  justify-content: center;
}

.hero__note {
  margin: 1.4rem 0 0;
  font-size: 0.875rem;
  color: var(--stage-muted);
}

/* The pill above the headline. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.55rem;
  margin-bottom: 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stage-line-strong);
  background: var(--stage-glass);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--stage-body);
  text-decoration: none;
}

.tag__cst {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-left: 0.35rem;
}

.tag__cst i {
  border-radius: 50%;
}

.tag__cst i:nth-child(1) { width: 8px; height: 8px; background: var(--ramp-1); }
.tag__cst i:nth-child(2) { width: 6px; height: 6px; background: var(--ramp-3); }
.tag__cst i:nth-child(3) { width: 4px; height: 4px; background: var(--ramp-5); }

.hero__inner {
  position: relative;
}

/* The product frame — the hero's real subject. */
.hero__stage {
  position: relative;
  margin-top: clamp(2.8rem, 5vw, 4.2rem);
}

.hero__stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8%;
  width: 76%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--stage-glow), transparent 72%);
  filter: blur(58px);
  z-index: 0;
  pointer-events: none;
}

.frame {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stage-line-strong);
  background: var(--stage-raised);
  padding: 8px;
  box-shadow: var(--stage-frame-shadow);
}

.frame img,
.frame video {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 9px);
  display: block;
}

.frame figcaption {
  padding: 0.85rem 0.4rem 0.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--stage-muted);
}

.frame--tour {
  max-width: 960px;
  margin-inline: auto;
}

/* Off-stage (light theme, on a light band) the frame needs its own weight. */
.frame--light {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.frame--light figcaption {
  color: var(--ink-muted);
}

/* --- Source strip ---------------------------------------------------------
   The platforms Merlin reads from. Named, not logo-dropped — these are other
   companies' marks and this site ships no third-party assets.               */

.sources {
  padding-block: 2.4rem;
  border-top: 1px solid var(--stage-line);
}

.sources__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--stage-muted);
  margin: 0 0 1.4rem;
}

.sources__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sources__row li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stage-line);
  background: var(--stage-glass);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--stage-body);
}

.sources__row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sources__row li:nth-child(1) i { background: var(--ramp-1); }
.sources__row li:nth-child(2) i { background: var(--acc-cyan); }
.sources__row li:nth-child(3) i { background: var(--acc-green); }
.sources__row li:nth-child(4) i { background: var(--acc-amber); }
.sources__row li:nth-child(5) i { background: var(--acc-magenta); }

/* --- Stat band ------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats div {
  background: var(--surface);
  padding: 1.6rem 1.3rem;
  text-align: center;
}

.stats b {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: var(--grad);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 9 → 5 → 2 → 1 is a literal diminuendo — let the row perform the ramp. */
.stats div:nth-child(1) b { background-position: 0% 0; }
.stats div:nth-child(2) b { background-position: 34% 0; }
.stats div:nth-child(3) b { background-position: 67% 0; }
.stats div:nth-child(4) b { background-position: 100% 0; }

.stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* --- Bento ---------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.tile {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.tile:hover {
  border-color: color-mix(in srgb, var(--a, var(--purple)) 42%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 0 4px color-mix(in srgb, var(--a, var(--purple)) 10%, transparent);
}

.tile--wide {
  grid-column: span 3;
}

.tile__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--a, var(--purple)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--a, var(--purple)) 40%, transparent);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--a-tx, var(--step-ink));
}

/* Merlin AI is the one module that wears the full ramp. */
.acc-grad .tile__mark {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.tile__mark svg {
  width: 17px;
  height: 17px;
}

.tile h3 {
  margin-bottom: 0.4rem;
}

.tile p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* --- Split rows ----------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.4rem);
  align-items: center;
}

.split + .split {
  margin-top: var(--step);
}

.split--flip {
  grid-template-columns: 1.15fr 1fr;
}

.split--flip .split__text {
  order: 2;
}

.split__text h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  margin-bottom: 0.7rem;
}

.split__text p {
  color: var(--ink-muted);
}

.on-stage .split__text p {
  color: var(--stage-body);
}

.ticks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.95rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps--4 {
  grid-template-columns: repeat(4, 1fr);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.9rem 1.6rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sb, var(--purple)) 40%, transparent);
  background: color-mix(in srgb, var(--sb, var(--purple)) 10%, transparent);
  color: var(--step-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Badges step down the ramp — the sequence itself performs the diminuendo. */
.steps li:nth-child(1) { --sb: var(--ramp-1); }
.steps li:nth-child(2) { --sb: var(--ramp-2); }
.steps li:nth-child(3) { --sb: var(--ramp-3); }
.steps li:nth-child(4) { --sb: var(--ramp-4); }
.steps li:nth-child(5) { --sb: var(--ramp-5); }

/* Dotted thread joining one step to the next. */
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(1.9rem + 17px);
  left: calc(100% + 1px);
  width: 1.4rem;
  border-top: 2px dotted var(--purple-line);
}

.steps h3,
.steps b {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.steps p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* Vertical flow for legal-page processes: badge left, copy right, a dotted
   spine running down between them. */
.steps--flow {
  grid-template-columns: 1fr;
  gap: 0;
}

.steps--flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 1.1rem;
  border: 0;
  background: none;
  padding: 0 0 1.7rem;
}

.steps--flow li::before {
  grid-row: 1 / 3;
  margin-bottom: 0;
}

.steps--flow li:not(:last-child)::after {
  top: 40px;
  left: 16px;
  width: 0;
  height: calc(100% - 46px);
  border-top: 0;
  border-left: 2px dotted var(--purple-line);
}

.steps--flow h3,
.steps--flow b {
  font-size: 1.05rem;
  align-self: center;
}

.steps--flow p {
  grid-column: 2;
}

.on-stage .steps li {
  background: var(--stage-glass);
  border-color: var(--stage-line);
}

.on-stage .steps li::before {
  background: color-mix(in srgb, var(--sb, var(--purple)) 16%, transparent);
  border-color: var(--stage-line-strong);
  color: var(--stage-step-ink);
}

.on-stage .steps h3,
.on-stage .steps b {
  color: var(--stage-ink);
}

.on-stage .steps p {
  color: var(--stage-body);
}

/* --- Cards (platform, connections, FAQ pages) ----------------------------- */

.cards,
.scopes,
.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

/* Feature lists inside a card follow the same dot bullets as everywhere else. */
.card ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.card ul li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ramp-3);
}

.card {
  position: relative;
  padding: 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--a, var(--purple)) 42%, transparent);
}

.card__dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--a, var(--purple)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a, var(--purple)) 32%, transparent);
  margin-bottom: 1rem;
}

.card__dot > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a, var(--purple));
}

.acc-grad .card__dot {
  background: var(--grad);
  border-color: transparent;
}

.acc-grad .card__dot > span {
  background: #fff;
}


.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.card--wide {
  grid-column: 1 / -1;
}

.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--media > div {
  padding: 1.7rem;
}

.card--media img {
  width: calc(100% - 3.4rem);
  margin: 0 1.7rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.card--band {
  grid-column: 1 / -1;
  background: var(--grad-soft);
  border-color: var(--purple-line);
}

/* --- Support portal ------------------------------------------------------
   The hub is a search box over a card per guide; each guide is its own page.  */

/* The hub column shares one left edge: search, labels and cards. */
.docsearch--hub { max-width: 46rem; }
/* Gutter close to the card's own padding, so a border reads as an object edge. */
.cards--guides { gap: 1.4rem; }
.cards--guides .card { border-color: var(--line-strong); }
/* A guide card is a navigational tile, not a feature card: the mark sits beside
   the title it marks rather than floating above it, and the description spans. */
.card--link { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 0.5rem 0.8rem; padding: 1.25rem; }
.card--link .tile__mark { margin: 0; }
.card--link h3 { margin: 0; font-size: 1.05rem; }
.card--link p { grid-column: 1 / -1; margin: 0; color: var(--ink-body); }
.card--link:is(:hover, :has(a:focus-visible)) h3 { color: var(--a-tx, var(--purple)); }
/* Whole-card click target without nesting interactive elements: the heading
   holds the only link, stretched over the card. */
.card--link h3 a { text-decoration: none; color: inherit; }
.card--link h3 a::after { content: ''; position: absolute; inset: 0; }
.card--link:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.crumbs { display: flex; gap: 0.5rem; align-items: center; font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 1.6rem; }
.crumbs span[aria-hidden] { opacity: 0.5; }
.guide-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.guide-nav a { display: block; text-decoration: none; max-width: 20rem; }
.guide-nav small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.guide-nav b { color: var(--link); }
.guide-nav__next { text-align: right; margin-left: auto; }

/* Small module list. */
.minis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini {
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.mini b {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.mini b::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mb, var(--ramp-1));
  margin-right: 0.55rem;
}

.mini:nth-child(1) { --mb: var(--ramp-1); }
.mini:nth-child(2) { --mb: var(--ramp-2); }
.mini:nth-child(3) { --mb: var(--ramp-3); }
.mini:nth-child(4) { --mb: var(--ramp-4); }

.mini span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.on-stage .mini {
  background: var(--stage-glass);
  border-color: var(--stage-line);
}

.on-stage .mini span {
  color: var(--stage-body);
}

/* Platform module block — circular monogram, echoing the mark. */
.platform {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.2rem;
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
}

.platform__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a, var(--purple)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--a, var(--purple)) 34%, transparent);
  color: var(--a-tx, var(--step-ink));
  font-weight: 800;
  font-size: 1.05rem;
}

.platform h3 {
  margin-bottom: 0.3rem;
}

.platform ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.platform ul li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.platform ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ramp-3);
}

/* Scope table — /connections. */
.scopes {
  display: grid;
  gap: 0.85rem;
}

.scope {
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--a, var(--purple));
  background: var(--surface);
}

.scope h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.scope b {
  display: block;
  margin-bottom: 0.3rem;
}

.scope code {
  display: inline-block;
  margin: 0.2rem 0.3rem 0 0;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: var(--purple-tint);
  border: 1px solid var(--purple-line);
  color: var(--step-ink);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1rem 1.6rem;
}

.callout {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--purple-line);
  background: var(--grad-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .trust--3 {
    grid-template-columns: 1fr;
  }
}

.trust li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
}

.trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.trust b {
  display: block;
}

.scroll-x {
  overflow-x: auto;
}

.tour-caption {
  margin: 1.2rem auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--stage-muted);
}

/* --- FAQ ------------------------------------------------------------------
   <details>, so every answer is in the served HTML and open-able with
   scripting off.                                                            */

.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
  margin-inline: auto;
}

/* Group label above a run of questions. */
.faq-group {
  max-width: 52rem;
  margin: 2.6rem auto 1rem;
}

.faq-group:first-of-type {
  margin-top: 0;
}

.faq-group .dotrule {
  margin-bottom: 0;
}

.faq-group .eyebrow {
  margin-bottom: 0.55rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: var(--purple-line);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* The dot is the state: an open ring while closed, filled with the ramp when
   the answer is showing. */
.faq summary::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--purple-line);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.faq details[open] summary::before {
  background: var(--grad);
  border-color: transparent;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq details > div {
  padding: 1.05rem 1.4rem 1.3rem 3.15rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
  max-width: 66ch;
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* --- Closing CTA ---------------------------------------------------------- */

.cta-band {
  padding-block: clamp(3.6rem, 7vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.cta-band .shell {
  position: relative;
}

/* The full 34-dot mark, watermark-quiet, closing every page. */
.cta-band .shell::before {
  content: '';
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22512%22 height=%22512%22 viewBox=%220 0 512 512%22 fill=%22none%22%3E%3Ccircle cx=%22432.327%22 cy=%22121.999%22 r=%2223.353%22 fill=%22%237033ED%22/%3E%3Ccircle cx=%2280.334%22 cy=%22124.074%22 r=%2223.381%22 fill=%22%237032ED%22/%3E%3Ccircle cx=%22374.215%22 cy=%22176.790%22 r=%2220.443%22 fill=%22%23844FEF%22/%3E%3Ccircle cx=%22140.522%22 cy=%22177.620%22 r=%2220.129%22 fill=%22%23814BEF%22/%3E%3Ccircle cx=%22432.742%22 cy=%22188.413%22 r=%2222.148%22 fill=%22%238855F0%22/%3E%3Ccircle cx=%2278.259%22 cy=%22188.828%22 r=%2221.939%22 fill=%22%23834DEF%22/%3E%3Ccircle cx=%22324.405%22 cy=%22228.261%22 r=%2216.705%22 fill=%22%239568F0%22/%3E%3Ccircle cx=%22188.672%22 cy=%22229.091%22 r=%2216.751%22 fill=%22%239366EF%22/%3E%3Ccircle cx=%22140.107%22 cy=%22234.487%22 r=%2218.570%22 fill=%22%239568F0%22/%3E%3Ccircle cx=%22372.140%22 cy=%22234.902%22 r=%2218.464%22 fill=%22%23986DF0%22/%3E%3Ccircle cx=%2279.504%22 cy=%22253.581%22 r=%2220.852%22 fill=%22%239E74F1%22/%3E%3Ccircle cx=%22434.402%22 cy=%22254.411%22 r=%2220.794%22 fill=%22%239D74F1%22/%3E%3Ccircle cx=%22235.991%22 cy=%22275.165%22 r=%2213.878%22 fill=%22%23A37BF1%22/%3E%3Ccircle cx=%22279.990%22 cy=%22275.165%22 r=%2213.799%22 fill=%22%23A37CF2%22/%3E%3Ccircle cx=%22322.329%22 cy=%22276.826%22 r=%2214.322%22 fill=%22%23A47EF2%22/%3E%3Ccircle cx=%22192.407%22 cy=%22278.071%22 r=%2214.504%22 fill=%22%23A882F2%22/%3E%3Ccircle cx=%22142.182%22 cy=%22292.599%22 r=%2215.548%22 fill=%22%23AE8BF3%22/%3E%3Ccircle cx=%22372.970%22 cy=%22292.599%22 r=%2215.619%22 fill=%22%23AE8CF3%22/%3E%3Ccircle cx=%22233.916%22 cy=%22322.070%22 r=%2211.784%22 fill=%22%23BDA0F4%22/%3E%3Ccircle cx=%22280.406%22 cy=%22322.070%22 r=%2211.634%22 fill=%22%23BDA0F4%22/%3E%3Ccircle cx=%2281.164%22 cy=%22323.731%22 r=%2218.237%22 fill=%22%23B798F4%22/%3E%3Ccircle cx=%22435.233%22 cy=%22323.731%22 r=%2218.049%22 fill=%22%23B798F4%22/%3E%3Ccircle cx=%22322.329%22 cy=%22324.146%22 r=%2211.280%22 fill=%22%23B89AF5%22/%3E%3Ccircle cx=%22193.238%22 cy=%22324.561%22 r=%2211.511%22 fill=%22%23BC9EF5%22/%3E%3Ccircle cx=%22141.767%22 cy=%22347.806%22 r=%2212.241%22 fill=%22%23C2A8F5%22/%3E%3Ccircle cx=%22372.970%22 cy=%22347.806%22 r=%2212.259%22 fill=%22%23C2A9F5%22/%3E%3Ccircle cx=%22193.653%22 cy=%22365.239%22 r=%228.483%22 fill=%22%23CBB4F8%22/%3E%3Ccircle cx=%22320.669%22 cy=%22365.239%22 r=%228.379%22 fill=%22%23CBB4F7%22/%3E%3Ccircle cx=%2278.259%22 cy=%22390.144%22 r=%2216.137%22 fill=%22%23CFBCF8%22/%3E%3Ccircle cx=%22435.648%22 cy=%22390.144%22 r=%2216.171%22 fill=%22%23CEBBF8%22/%3E%3Ccircle cx=%22141.352%22 cy=%22401.767%22 r=%2211.034%22 fill=%22%23D4C4F8%22/%3E%3Ccircle cx=%22373.385%22 cy=%22402.182%22 r=%2211.172%22 fill=%22%23D3C3F8%22/%3E%3Ccircle cx=%22192.822%22 cy=%22403.842%22 r=%227.010%22 fill=%22%23D7CAF8%22/%3E%3Ccircle cx=%22321.499%22 cy=%22403.842%22 r=%226.915%22 fill=%22%23D8CBF9%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
}

@media (max-width: 1040px) {
  .cta-band .shell::before {
    display: none;
  }
}

.cta-band h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.cta-band .lede {
  margin-inline: auto;
  margin-bottom: 2rem;
  max-width: 46ch;
}

.cta-band__note {
  margin: 1.4rem 0 0;
  font-size: 0.875rem;
  color: var(--stage-muted);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--line-tint);
  padding-block: clamp(3rem, 5vw, 4.4rem) 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.4rem;
}

.site-footer__brand p {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 34ch;
}

.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer ul a {
  font-size: 0.925rem;
  color: var(--ink-body);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--link);
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.site-footer__legal p {
  margin: 0 0 0.35rem;
}

/* --- Legal pages ---------------------------------------------------------- */

.legal {
  padding-block: clamp(2.6rem, 5vw, 4rem) var(--step);
}

.on-stage + .legal {
  padding-block-start: clamp(1.8rem, 3vw, 2.6rem);
}

.legal__head {
  max-width: var(--prose);
  margin: 0 auto 2.4rem;
}


.legal__toc {
  margin: 0 auto 2.8rem;
  max-width: var(--prose);
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.legal__toc h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.8rem;
}

.legal__toc ol {
  margin: 0;
  padding-left: 1.5rem;
  columns: 2;
  column-gap: 2.4rem;
  font-size: 0.93rem;
}

.legal__toc li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

.legal__toc li::marker {
  color: var(--step-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.legal__toc a {
  text-decoration: none;
}

.legal__toc a:hover {
  text-decoration: underline;
}

.legal__body {
  max-width: var(--prose);
  margin-inline: auto;
  counter-reset: sec;
}

/* Section numbers are a designed system, not typed-in text: a hanging purple
   numeral, so clause cross-references ("see clause 4.4") stay navigable. */
.legal__body h2 {
  font-size: 1.45rem;
  margin-top: 2.8rem;
  scroll-margin-top: 90px;
}

.legal__body h2[id] {
  counter-increment: sec;
}

.legal__body h2[id]::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.7rem;
  color: var(--step-ink);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
}

.legal__body > ol:not(.steps) {
  counter-reset: cl;
}

.legal__body > ol:not(.steps) > li {
  counter-increment: cl;
}

.legal__body > ol:not(.steps) > li::marker {
  content: counter(sec) '.' counter(cl) '\2002';
  color: var(--step-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.legal__body ul > li::marker {
  color: var(--ramp-2);
}

.legal__body .steps {
  margin-block: 1.6rem 0;
}

.legal__body .callout {
  margin-block: 1.6rem;
}

.legal__body h3 {
  margin-top: 1.8rem;
}

.legal__body ul,
.legal__body ol {
  padding-left: 1.3rem;
}

.legal__body li {
  margin-bottom: 0.45rem;
}

.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.92rem;
}

.legal__body th,
.legal__body td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal__body th {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--purple-line);
}

/* --- Scroll reveal --------------------------------------------------------
   Opt-in and script-gated: without [data-js] nothing is ever hidden, so a
   reviewer with scripting off sees a complete page.                         */

[data-reveal] .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal] .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1040px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile,
  .tile--wide {
    grid-column: span 2;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1000px) {
  .steps--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .split,
  .split--flip .split__text {
    grid-template-columns: 1fr;
    order: 0;
  }

  .steps:not(.steps--flow) {
    grid-template-columns: 1fr;
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .steps--flow li:not(:last-child)::after {
    display: block;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal__toc ol {
    columns: 1;
  }
}

/* The collapsing panel only exists when scripting does. Without it the links
   simply wrap onto a second row and stay visible — never a button nobody can
   press. */
@media (max-width: 780px) {
  [data-js] .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.6rem 1.25rem 1.1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    display: none;
  }

  [data-js] .site-nav[data-open] {
    display: flex;
  }

  [data-js] .site-nav a {
    padding: 0.7rem 0.85rem;
  }

  [data-js] .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin: 0.3rem 0 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile,
  .tile--wide {
    grid-column: span 1;
  }

  .platform {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

@media (max-width: 560px) {
  .shell,
  .shell--wide {
    width: min(100% - 1.8rem, var(--shell));
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .btn-row .btn {
    width: 100%;
  }

  .frame {
    padding: 5px;
    border-radius: var(--radius);
  }
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .skip {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* --- Reduced motion -------------------------------------------------------
   Everything decorative stops; nothing becomes unreachable.                 */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] .reveal {
    opacity: 1;
    transform: none;
  }
}
