/* Hallmark · checked: 2026-11-10 · genre: atmospheric (inferred) · surface: absolute
 * floor: 0 FAIL · fixed: 2a, 24a, 26b, 34, 48, 49a, 54, 67, F6 · structural: printed (3, 42, 58, F15) · copy: verbatim except one cut eyebrow
 * nav: the design.md header (§6.14): wordmark left, mega-menu links centred, theme toggle and one action right
 * footer: the design.md footer (§6.17): wordmark and pitch with one action, then four link columns
 * built: the project · redesign: restyle, scoped to the section backgrounds (2026-11-10): lit seams at every band change, each band its own stacking context · v2.0.0 */
/* Hallmark · card polish 2026-11-10 · fixed: 3 (tile coins), 4 (role-panel aside), 11 (lift on every card, hover on the unlinked workflow cards), 29 (step-disc glow), F15 (workflow radius); tile titles take the one card-title size */
/* Hallmark · critique · the black bands were flat because their glow painted under their own colour, and band changes were unlit hard edges; the seams and isolation fix both without moving a section */
/* Hallmark · waive 7b · stamp says surface: absolute, contrast passes in both modes · the MCPMate dark base is pure black by decision (design §5) so the hero glows read as light in a dark room */
/* Hallmark · waive 81 · each bg-shape sits behind a section that already shows the product (chat demo, wp-admin tour, approval panel) · the glows are the MCPMate background atmosphere, not picture slots */
/* Hallmark · waive 3 · the icons sit on one drawn rail with Step 1 to 3 labels, an ordered list · the workflow icons are stops on the rail joining how MCPMate works, a sequence rather than a feature grid */
/* Hallmark · waive 49b · real page names from site.json, two lines at most and only in the two-column phone footer below 768px · footer links name MCPMate pages such as WP-CLI and read-only database, and read-only is the claim that cannot shorten */
/* Hallmark · dismissed 40 · .hero--fluid is also .on-stage, so --text-primary resolves to the dark-role ink on the black stage, measured 19:1 */
/* Hallmark · dismissed 41 · --cta-text sits on --cta-bg in the CTA band and affiliate offer panel */
/* Hallmark · dismissed 74 · --well-bg #F8FAFC is the demo chat surface, found in the project palette at pre-flight */
/* Hallmark · answered F7 · the pill sits on nav links, chips, toggles and the address capsule, all controls in the MCPMate system */
/* Hallmark · answered F15 · each MCPMate section keeps the gap its design.md composition sets; one shared gap needs a full redesign, printed for the owner */
/* Hallmark · answered F5 · the workflow coins mark the rail stops on the homepage how-it-works rail; the feature-tile coins are gone, these are the last */
/* Hallmark · waive 24b · two existing optical nudges: 14px padding matches the edge-run-halo blur, and 6px padding seats the button inside the connect-capsule pill · comparison cards keep the token spacing scale */
/* Hallmark · component: homepage announcement · genre: atmospheric · theme: MCPMate (docs/design.md) · surface: absolute · v2.0.0 */
/* Hallmark · critique · the offer amount leads in mint and the date recedes in smaller type. The 44px link and close button share one row, and the copy wraps as a sentence on narrow screens. */
/* Generated by build/build.py from build/tokens.css and the component stylesheets in build/. Edit those, not this file. */
/* MCPMate design tokens. Light is the default; dark mode overrides the same roles.
   Colours live here. Component CSS uses role tokens rather than colour literals. */
:root {
  --mask-ink: #000; /* mask stops: only alpha counts, never painted (design §4.4) */
  /* Orange CTA pills, based on the owner's reference (2026-11-16). */
  --cta-orange: #E67E22;
  /* Homepage announcements use the same teal palette in both appearances (design §6.18). */
  --announce-bg: var(--accent-950);
  --announce-text: var(--neutral-50);
  --announce-link: var(--accent-200);
  --announce-link-hover: var(--accent-50);
  --announce-border: rgb(var(--rgb-accent-300) / .20);
  --announce-hover: rgb(var(--rgb-white) / .08);
  --announce-focus: var(--accent-200);
  --announce-sale-bg: var(--accent-900);
  --announce-sale-muted: var(--neutral-300);
  --announce-sale-sheen: rgb(var(--rgb-accent-300) / .13);
  --announce-sale-edge-peak: var(--accent-300);
  --announce-sale-border: var(--accent-500);
  --announce-sale-glow: inset 0 -10px 16px -14px rgb(var(--rgb-neutral-900) / .45);
  --announce-sale-shadow: 0 8px 20px -12px color-mix(in srgb, var(--announce-sale-border) 38%, transparent);
  --hero-card-accent: var(--cta-orange);
  --cta-orange-active: #D8741D;
  --cta-button-bg-dark: #1A130F;
  --cta-button-text-dark: var(--cta-orange);
  --cta-button-border-dark: #B96526;
  --cta-button-sheen-dark: rgb(230 126 34 / .10);
  --cta-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  /* The brand ramp, from the four swatches: 200 = #BFDBFE, 300 = #93C5FD, 600 = #2563EB, 800 = #1E3A8A.
     Generated by build/palette.py. Primary and secondary are the same ramp, with different jobs (design §2.3). */
  --primary-50: #F2F7FE; --primary-100: #E0EDFD; --primary-200: #BFDBFE; --primary-300: #93C5FD;
  --primary-400: #69A7F8; --primary-500: #4387F2; --primary-600: #2563EB; --primary-700: #234EB9;
  --primary-800: #1E3A8A; --primary-900: #071A5A; --primary-950: #020B3F;
  --secondary-50: #F2F7FE; --secondary-100: #E0EDFD; --secondary-200: #BFDBFE; --secondary-300: #93C5FD;
  --secondary-400: #69A7F8; --secondary-500: #4387F2; --secondary-600: #2563EB; --secondary-700: #234EB9;
  --secondary-800: #1E3A8A; --secondary-900: #071A5A; --secondary-950: #020B3F;
  /* Neutral gray scale */
  --neutral-50: #F9FAFB; --neutral-100: #F3F4F6; --neutral-200: #E5E7EB; --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF; --neutral-500: #6B7280; --neutral-600: #4B5563; --neutral-700: #374151;
  --neutral-800: #1F2937; --neutral-900: #111827; --neutral-950: #030712;
  /* Accent teal: #14B8A6, used for success and selected highlights */
  --accent-50: #F0FDFA; --accent-100: #CCFBF1; --accent-200: #99F6E4; --accent-300: #5EEAD4;
  --accent-400: #2DD4BF; --accent-500: #0D9488; --accent-600: #14B8A6; --accent-700: #0F766E;
  --accent-800: #115E59; --accent-900: #134E4A; --accent-950: #042F2E;
  /* Danger (coral): form errors and the "Before" side of a diff only */
  --danger-200: #FFB4A8; --danger-300: #FF8A7A; --danger-700: #B42318;
  /* Warning (amber, OKLCH hue 72): time limits and "check this" callouts only, never decoration */
  --warning-200: #FFD08C; --warning-300: #FDB85B; --warning-700: #7E4B00;
  /* Light-mode page base */
  --paper: #FFFFFF;
  /* Keep vendor artwork on its original light background in both appearances. */
  --integration-logo-bg: #FFFFFF;
  --integration-jetengine-bg: #9D64ED; /* official JetEngine secondary-logo backing */

  /* Channels: the same colours as space-separated RGB, for translucent fills such as
     rgb(var(--rgb-secondary-300) / .16). Change a colour in its scale above and here. */
  --rgb-white: 255 255 255; --rgb-paper: 255 255 255;
  --rgb-shadow: 17 24 39; --rgb-bg: 4 6 9; --rgb-inset: 11 18 32;
  --rgb-primary-950: 2 11 63; --rgb-primary-900: 7 26 90; --rgb-primary-800: 30 58 138; --rgb-primary-600: 37 99 235;
  --rgb-primary-300: 147 197 253; --rgb-primary-200: 191 219 254;
  --rgb-secondary-200: 191 219 254; --rgb-secondary-300: 147 197 253; --rgb-secondary-400: 105 167 248;
  --rgb-secondary-500: 67 135 242; --rgb-secondary-600: 37 99 235;
  --rgb-neutral-400: 156 163 175; --rgb-neutral-500: 107 114 128; --rgb-neutral-900: 17 24 39;
  --rgb-accent-300: 94 234 212; --rgb-accent-600: 20 184 166;
  --rgb-danger-300: 255 138 122; --rgb-danger-700: 180 35 24;
  --rgb-warning-300: 253 184 91; --rgb-warning-700: 126 75 0;

  /* Admin mockups (.shot): a picture of wp-admin, which is light whatever the site's mode,
     so these never change with the mode. Only the frame around them does (--shot-ring). */
  --shot-bg: var(--neutral-50); --shot-text: var(--neutral-900); --shot-heading: var(--primary-950);
  --shot-card: #FFFFFF; --shot-line: var(--neutral-200); --shot-line-soft: var(--neutral-100);
  --shot-muted: var(--neutral-600); --shot-control: var(--neutral-500); --shot-toggle-off: var(--neutral-300);
  --shot-brand: var(--primary-800); --shot-on-brand: #FFFFFF; --shot-code-bg: var(--neutral-100);
  --shot-pill-bg: var(--neutral-100); --shot-pill-text: var(--neutral-700);
  --shot-ok-bg: var(--accent-50); --shot-ok-text: var(--accent-800);
  --shot-wait-bg: var(--secondary-100); --shot-wait-text: var(--primary-900);
  --shot-removed-bg: #F8E9E8; --shot-removed-mark: var(--danger-700); /* danger-700 at 10% over white */
  --shot-added-bg: #E6F1EE; --shot-added-mark: var(--accent-700);     /* accent-700 at 10% over white */
  --wp-bar-bg: #1D2327; --wp-bar-text: #F0F0F1; --wp-bar-muted: #C3C4C7; /* wp-admin's own bar colours */
  /* Numbered callouts sit on the light mockup and the page, in either mode */
  --callout-bg: var(--primary-800); --callout-text: #FFFFFF; --callout-ring: #FFFFFF; --callout-halo: var(--secondary-200);
  /* The user's chat bubble and the step disc are brand fills with light text in both modes */
  --bubble-user-bg: var(--primary-800); --bubble-user-text: var(--neutral-50);
  --step-disc-bg: var(--primary-700); --step-disc-text: var(--neutral-50);
  --demo-glass-bg: #071634; /* Ask your AI panel, the same opaque base in both appearances */

  /* Homepage hero stage (design §5.4): dark in both appearances, like --cta-bg in light mode. Everything
     inside it uses the dark roles (.on-stage, generated by build.py from the dark block). */
  --rgb-stage: 0 0 0;                                   /* hero's independent base beneath its glows and scrim */
  --stage-bg: rgb(var(--rgb-stage));
  --stage-scrim-strong: rgb(var(--rgb-stage) / .80);       /* 0 to 24%: the headline and lead */
  --stage-scrim: rgb(var(--rgb-stage) / .72);              /* 52%: the weakest scrim any text sits on */
  --stage-scrim-soft: rgb(var(--rgb-stage) / .12);         /* 100%: the edges, where the ink shows */
  --stage-glass-fill: rgb(var(--rgb-white) / .08);
  --stage-glass-border: rgb(var(--rgb-white) / .16);
}

/* ==========================================================================
   Roles, light (default)
   ========================================================================== */
:root {
  color-scheme: light;

  --bg: #FFFFFF;
  --bg-raised: #FFFFFF;
  --bg-inset: #F3F4F6;
  --bg-panel: #FFFFFF;
  --section-alt: #F7F8FA;
  --section-alt-under-wash: transparent; /* the tour's band on an even slot: its own wash replaces the band in light mode */
  --seam-line: rgb(var(--rgb-primary-600) / .09);       /* band seams (design §5.2): the hairline's sides */
  --seam-line-peak: rgb(var(--rgb-primary-600) / .28);  /* the hairline's lit centre */
  --seam-glow: transparent;                             /* on paper the seam casts no light: any tint cost the band's secondary text its AA margin */
  --section-soft: #F3F4F6;
  --cta-bg: #111827;
  --cta-text: #F9FAFB;
  --cta-text-accent: #E67E22;
  --cta-muted: #D1D5DB;
  --cta-border: rgb(var(--rgb-white) / .12);
  --cta-shadow: none;
  --cta-mark-tint: var(--primary-300);
  --bg-us-column: #F9FAFB;
  --footer-end: #FFFFFF;
  --footer-bg: linear-gradient(180deg, rgb(var(--rgb-paper) / 0), var(--bg) 9rem, var(--footer-end));

  --text-heading: #171717;
  --text-primary: #171717;       /* heading and control text */
  --text-secondary: #737373;     /* secondary copy */
  --text-muted: #737373;         /* captions; #A3A3A3 is reserved for decoration */
  --text-on-surface: #666666;
  --text-on-section-alt: #666666;
  --text-on-section-soft: #666666;
  --text-decoration: #A3A3A3;
  --text-separator: var(--text-decoration);
  --text-accent: #3F5375; /* slate-blue: editorial emphasis on cool light backgrounds */
  --text-accent-readable: var(--text-accent);
  --text-accent-interactive: var(--text-accent);
  /* Links use the primary blue and remain underlined in running text */
  --link: #2563EB;
  --link-hover: #1D4ED8;
  --focus: #2563EB;
  --selection-bg: rgb(var(--rgb-secondary-400) / .24);

  --success: #0F766E;
  --warning: var(--warning-700);
  --danger: var(--danger-700);
  --danger-border: var(--danger-700);

  --border-faint: #F3F3F3;
  --border-subtle: #EAEAEA;
  --border-chip: #E5E5E5;
  --border-control: rgb(var(--rgb-neutral-900) / .52);
  --border-control-hover: rgb(var(--rgb-neutral-900) / .68);
  --fill-faint: rgb(var(--rgb-neutral-900) / .02);
  --fill-rest: #FFFFFF;
  --fill-hover: rgb(var(--rgb-neutral-900) / .04);
  --fill-active: rgb(var(--rgb-neutral-900) / .07);
  --icon-accent: #2563EB;
  --icon-neutral: #4B5563;
  --icon-muted: #6B7280;

  --selected-bg: #EFF6FF;
  --selected-border: rgb(var(--rgb-primary-600) / .76);
  --selected-ring: rgb(var(--rgb-primary-600) / .12);
  --indicator: #2563EB;

  --tone-success-bg: rgb(var(--rgb-accent-600) / .05); --tone-success-text: #0F766E; --tone-success-border: rgb(var(--rgb-accent-600) / .26);
  --tone-info-bg: rgb(var(--rgb-secondary-600) / .01); --tone-info-text: var(--secondary-800); --tone-info-border: rgb(var(--rgb-secondary-600) / .30);
  --tone-neutral-bg: rgb(var(--rgb-neutral-500) / .10); --tone-neutral-text: var(--neutral-700); --tone-neutral-border: rgb(var(--rgb-primary-950) / .16);
  --tone-danger-bg: rgb(var(--rgb-danger-700) / .06); --tone-danger-text: var(--danger-700); --tone-danger-border: rgb(var(--rgb-danger-700) / .30);
  --tone-warning-bg: rgb(var(--rgb-warning-700) / .03); --tone-warning-text: var(--warning-700); --tone-warning-border: rgb(var(--rgb-warning-700) / .30);
  --badge-bg: rgb(var(--rgb-neutral-500) / .08); --badge-text: var(--neutral-600); --badge-border: rgb(var(--rgb-primary-950) / .10);
  --badge-outline-text: var(--neutral-800); --badge-outline-border: var(--neutral-500);
  --badge-planned-text: var(--neutral-600); --badge-planned-border: rgb(var(--rgb-primary-950) / .40);
  --badge-pro-bg: rgb(var(--rgb-primary-600) / .08); --badge-pro-text: var(--primary-800); --badge-pro-border: rgb(var(--rgb-primary-600) / .32);
  --diff-before-bg: rgb(var(--rgb-danger-700) / .01); --diff-before-mark: var(--danger-700);
  --diff-after-bg: rgb(var(--rgb-accent-600) / .01); --diff-after-mark: var(--accent-700);
  --status-hover-filter: brightness(.97) saturate(1.1);

  --btn-primary-bg: #FFF8F2;
  --btn-primary-bg-hover: var(--cta-orange);
  --btn-primary-bg-active: var(--cta-orange-active);
  --btn-primary-text: #934400;
  --btn-primary-text-hover: var(--neutral-900);
  --btn-primary-border: #B85A13;
  --btn-primary-sheen: rgb(var(--rgb-white) / .45);
  --btn-primary-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .18);
  --btn-primary-shadow-hover: none;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-bg-hover: #F3F4F6;
  --btn-secondary-shadow: none;

  --input-bg: rgb(var(--rgb-white) / .9);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23595A69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  /* Layered and navy-tinted: a tight contact shadow, a mid shadow, and a wide soft blue one */
  --rgb-shadow: var(--rgb-primary-900);
  --shadow-1: 0 1px 2px rgb(var(--rgb-neutral-900) / .04), 0 4px 12px -6px rgb(var(--rgb-neutral-900) / .08);
  --shadow-2: 0 2px 8px rgb(var(--rgb-neutral-900) / .05), 0 12px 28px -18px rgb(var(--rgb-neutral-900) / .10);
  --shadow-3: 0 4px 12px rgb(var(--rgb-neutral-900) / .06), 0 24px 48px -24px rgb(var(--rgb-neutral-900) / .12);
  --shadow-menu: 0 12px 30px -16px rgb(var(--rgb-neutral-900) / .18);
  --shadow-edge: 10px 0 18px -10px rgb(var(--rgb-shadow) / .18);
  --glow-brand: 0 6px 18px -12px rgb(var(--rgb-primary-600) / .30);

  /* Frosted bluish white (OKLCH 0.984 0.007 281): white catches the light at the top-left, a navy hairline
     darkens towards the shade at the bottom-right, soft blue shadows. No inner glow: white on white is invisible,
     so the sheen does that job, and it brightens on hover. */
  --rgb-glass-tint: 255 255 255;                       /* #F9F9FF */
  --glass-noise-mean: rgb(var(--rgb-neutral-900) / .008);
  --glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .055 0 0 0 0 .047 0 0 0 0 .204 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glass-spot: rgb(var(--rgb-primary-600) / .005);
  --glass-1-bg: #FFFFFF; --glass-1-sheen: rgb(var(--rgb-white) / .5); --glass-1-sheen-hover: rgb(var(--rgb-white) / .7);
  --glass-1-hi: #FFFFFF; --glass-1-hi-hover: #FFFFFF;
  --glass-1-edge-peak: #FFFFFF; --glass-1-edge-peak-hover: #FFFFFF;
  --glass-1-edge-a: rgb(var(--rgb-primary-950) / .08); --glass-1-edge-b: rgb(var(--rgb-primary-950) / .14);
  --glass-1-edge-a-hover: rgb(var(--rgb-primary-950) / .12); --glass-1-edge-b-hover: rgb(var(--rgb-primary-950) / .20);
  --glass-1-glow: 0 0 0 transparent;
  --glass-1-solid: #FFFFFF;
  --glass-2-bg: rgb(var(--rgb-white) / .92); --glass-2-sheen: rgb(var(--rgb-white) / .5);
  --glass-2-hi: #FFFFFF;
  --glass-2-edge-peak: #FFFFFF; --glass-2-edge-a: rgb(var(--rgb-primary-950) / .08); --glass-2-edge-b: rgb(var(--rgb-primary-950) / .14);
  --glass-2-glow: 0 0 0 transparent; --glass-2-solid: #FFFFFF;
  --glass-3-bg: rgb(var(--rgb-white) / .94); --glass-3-sheen: rgb(var(--rgb-white) / .5);
  --glass-3-hi: #FFFFFF;
  --glass-3-edge-peak: #FFFFFF; --glass-3-edge-a: rgb(var(--rgb-primary-950) / .09); --glass-3-edge-b: rgb(var(--rgb-primary-950) / .16);
  --glass-3-glow: 0 0 0 transparent; --glass-3-solid: #FFFFFF;
  --surface-plain: #FFFFFF;
  --focus-halo: #FFFFFF;
  --header-glass-bg: rgb(var(--rgb-white) / .94);
  --header-glass-border: rgb(var(--rgb-primary-950) / .08);
  --header-glass-shadow: 0 1px 0 rgb(var(--rgb-white) / .7), 2px 10px 30px -20px rgb(var(--rgb-shadow) / .30);
  --plan-highlight-edge-peak: rgb(var(--rgb-secondary-600) / .50); --plan-highlight-edge-base: rgb(var(--rgb-secondary-600) / .16);
  --plan-highlight-shadow: var(--shadow-3), 8px 30px 80px -34px rgb(var(--rgb-secondary-600) / .45);

  --well-bg: #F8FAFC;
  --bubble-ai-bg: #FFFFFF;
  --bubble-user-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .14), 0 4px 12px -6px rgb(var(--rgb-primary-800) / .5);
  --working-dot: var(--secondary-600);
  --live-dot-ring: rgb(var(--rgb-accent-600) / .16);
  --icon-tile-bg: rgb(var(--rgb-secondary-400) / .18);
  --icon-tile-fg: var(--primary-800);
  --icon-tile-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .9), 0 0 0 1px rgb(var(--rgb-secondary-600) / .18);
  --step-disc-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .25), 0 0 0 1px rgb(var(--rgb-primary-950) / .2), 0 6px 16px -6px rgb(var(--rgb-primary-800) / .5);
  --feature-card-bg: rgb(var(--rgb-secondary-400) / .03);
  --feature-card-border: rgb(var(--rgb-secondary-600) / .22);
  --feature-card-border-hover: rgb(var(--rgb-secondary-600) / .45);
  --tablist-bg: rgb(var(--rgb-primary-950) / .04);
  --legend-disc-ring: rgb(var(--rgb-secondary-600) / .35);
  --shot-ring: rgb(var(--rgb-primary-950) / .10);
  /* Tour section background (design §6.20): a wash of the deep glow colour that fades in and out, two glows
     and a faint grid. Text sits on it: every text run was measured over its worst pixel (2026-11-05): light 4.5+ needs these low alphas. */
  --tour-bg-wash: rgb(var(--rgb-glow-deep) / .10);
  --tour-bg-wash-end: rgb(var(--rgb-glow-deep) / .035);
  --tour-bg-glow-a: rgb(var(--rgb-glow-primary) / .02);
  --tour-bg-glow-b: rgb(var(--rgb-glow-deep) / .08);
  --tour-bg-grid: rgb(var(--rgb-primary-950) / .03);
  --text-on-tour-bg: #525252;   /* body and muted text on the tour background: a step darker than #666, for headroom over the wash and grid */
  --timeline-rail: rgb(var(--rgb-primary-950) / .12);
  --code-chip-bg: rgb(var(--rgb-primary-950) / .045);
  --logo-ink: var(--primary-800); --logo-tint: var(--primary-600);   /* the logo on light: assets/brand/logo-on-light.svg */

  --code-bg: #F9FAFB; --code-text: #111827;
  --syn-comment: #6B7280; --syn-punct: #4B5563; --syn-keyword: #1D4ED8;
  --syn-property: #2563EB; --syn-string: #0F766E; --syn-number: var(--warning-700);

  --prose-text: #6B7280;
  --prose-leading: 1.65;

  /* The same layout on paper: pale tints of the brand pair, much softer than dark mode, never a dark panel.
     The tint floor (design §11.5) bounds them. */
  /* The two light swatches, as dark mode uses the two deep ones: the brand at a low alpha on paper reads grey */
  --rgb-glow-primary: 37 99 235;  /* primary-600 blue */
  --rgb-glow-deep: 191 219 254;     /* primary-200 light blue */
  --rgb-accent-bright: 37 99 235;   /* #2563EB: a highlight on white */
  --accent-bright: rgb(var(--rgb-accent-bright));
  --bg-shape-a: var(--rgb-glow-primary); --bg-shape-a-alpha: .009;
  --bg-shape-b: var(--rgb-glow-deep); --bg-shape-b-alpha: .006;
  --bg-shape-c: var(--rgb-glow-primary); --bg-shape-c-alpha: .009;
  --bg-shape-d: var(--rgb-glow-deep); --bg-shape-d-alpha: .004;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .055 0 0 0 0 .047 0 0 0 0 .204 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: .03;
  --glow-hero-deep: var(--rgb-accent-600);
  --glow-hero-alpha: .02; --glow-hero-deep-alpha: .012;
  --glow-page-hero-alpha: .015;
  --glow-section-alpha: .008;
  --glow-cta-deep: var(--rgb-accent-600);
  --glow-cta-alpha: .02; --glow-cta-deep-alpha: .012;
  --glow-pricing: var(--rgb-secondary-400); --glow-pricing-alpha: .02;
  --edge-run-head: rgb(var(--rgb-primary-600));    /* #2563EB: the primary blue edge */
  --edge-run-tail: rgb(var(--rgb-primary-300) / .35);
  --edge-run-halo: rgb(var(--rgb-primary-300) / .32);
  /* Pools stay above the light floor even over the darkest measured background (§12.8) */
  --pool-a: rgb(var(--rgb-secondary-400) / .01);
  --pool-b: rgb(var(--rgb-primary-200) / .015);
  /* Darker and fainter lines and points */
  --sky-color: rgb(var(--rgb-primary-800)); --sky-line-alpha: .06; --sky-point-alpha: .18;

  --proto-border: rgb(var(--rgb-secondary-600) / .5); --proto-bg: rgb(var(--rgb-secondary-600) / .03);
  --ph-border: rgb(var(--rgb-primary-950) / .35); --ph-text: var(--neutral-600);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #FFFFFF;
  --bg-raised: #FFFFFF;
  --bg-inset: #F3F4F6;
  --bg-panel: #FFFFFF;
  --section-alt: #F7F8FA;
  --section-alt-under-wash: transparent; /* the tour's band on an even slot: its own wash replaces the band in light mode */
  --seam-line: rgb(var(--rgb-primary-600) / .09);       /* band seams (design §5.2): the hairline's sides */
  --seam-line-peak: rgb(var(--rgb-primary-600) / .28);  /* the hairline's lit centre */
  --seam-glow: transparent;                             /* on paper the seam casts no light: any tint cost the band's secondary text its AA margin */
  --section-soft: #F3F4F6;
  --cta-bg: #111827;
  --cta-text: #F9FAFB;
  --cta-text-accent: #E67E22;
  --cta-muted: #D1D5DB;
  --cta-border: rgb(var(--rgb-white) / .12);
  --cta-shadow: none;
  --cta-mark-tint: var(--primary-300);
  --bg-us-column: #F9FAFB;
  --footer-end: #FFFFFF;
  --footer-bg: linear-gradient(180deg, rgb(var(--rgb-paper) / 0), var(--bg) 9rem, var(--footer-end));

  --text-heading: #171717;
  --text-primary: #171717;       /* heading and control text */
  --text-secondary: #737373;     /* secondary copy */
  --text-muted: #737373;         /* captions; #A3A3A3 is reserved for decoration */
  --text-on-surface: #666666;
  --text-on-section-alt: #666666;
  --text-on-section-soft: #666666;
  --text-decoration: #A3A3A3;
  --text-separator: var(--text-decoration);
  --text-accent: #3F5375; /* slate-blue: editorial emphasis on cool light backgrounds */
  --text-accent-readable: var(--text-accent);
  --text-accent-interactive: var(--text-accent);
  /* Links use the primary blue and remain underlined in running text */
  --link: #2563EB;
  --link-hover: #1D4ED8;
  --focus: #2563EB;
  --selection-bg: rgb(var(--rgb-secondary-400) / .24);

  --success: #0F766E;
  --warning: var(--warning-700);
  --danger: var(--danger-700);
  --danger-border: var(--danger-700);

  --border-faint: #F3F3F3;
  --border-subtle: #EAEAEA;
  --border-chip: #E5E5E5;
  --border-control: rgb(var(--rgb-neutral-900) / .52);
  --border-control-hover: rgb(var(--rgb-neutral-900) / .68);
  --fill-faint: rgb(var(--rgb-neutral-900) / .02);
  --fill-rest: #FFFFFF;
  --fill-hover: rgb(var(--rgb-neutral-900) / .04);
  --fill-active: rgb(var(--rgb-neutral-900) / .07);
  --icon-accent: #2563EB;
  --icon-neutral: #4B5563;
  --icon-muted: #6B7280;

  --selected-bg: #EFF6FF;
  --selected-border: rgb(var(--rgb-primary-600) / .76);
  --selected-ring: rgb(var(--rgb-primary-600) / .12);
  --indicator: #2563EB;

  --tone-success-bg: rgb(var(--rgb-accent-600) / .05); --tone-success-text: #0F766E; --tone-success-border: rgb(var(--rgb-accent-600) / .26);
  --tone-info-bg: rgb(var(--rgb-secondary-600) / .01); --tone-info-text: var(--secondary-800); --tone-info-border: rgb(var(--rgb-secondary-600) / .30);
  --tone-neutral-bg: rgb(var(--rgb-neutral-500) / .10); --tone-neutral-text: var(--neutral-700); --tone-neutral-border: rgb(var(--rgb-primary-950) / .16);
  --tone-danger-bg: rgb(var(--rgb-danger-700) / .06); --tone-danger-text: var(--danger-700); --tone-danger-border: rgb(var(--rgb-danger-700) / .30);
  --tone-warning-bg: rgb(var(--rgb-warning-700) / .03); --tone-warning-text: var(--warning-700); --tone-warning-border: rgb(var(--rgb-warning-700) / .30);
  --badge-bg: rgb(var(--rgb-neutral-500) / .08); --badge-text: var(--neutral-600); --badge-border: rgb(var(--rgb-primary-950) / .10);
  --badge-outline-text: var(--neutral-800); --badge-outline-border: var(--neutral-500);
  --badge-planned-text: var(--neutral-600); --badge-planned-border: rgb(var(--rgb-primary-950) / .40);
  --badge-pro-bg: rgb(var(--rgb-primary-600) / .08); --badge-pro-text: var(--primary-800); --badge-pro-border: rgb(var(--rgb-primary-600) / .32);
  --diff-before-bg: rgb(var(--rgb-danger-700) / .01); --diff-before-mark: var(--danger-700);
  --diff-after-bg: rgb(var(--rgb-accent-600) / .01); --diff-after-mark: var(--accent-700);
  --status-hover-filter: brightness(.97) saturate(1.1);

  --btn-primary-bg: #FFF8F2;
  --btn-primary-bg-hover: var(--cta-orange);
  --btn-primary-bg-active: var(--cta-orange-active);
  --btn-primary-text: #934400;
  --btn-primary-text-hover: var(--neutral-900);
  --btn-primary-border: #B85A13;
  --btn-primary-sheen: rgb(var(--rgb-white) / .45);
  --btn-primary-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .18);
  --btn-primary-shadow-hover: none;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-bg-hover: #F3F4F6;
  --btn-secondary-shadow: none;

  --input-bg: rgb(var(--rgb-white) / .9);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23595A69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  /* Layered and navy-tinted: a tight contact shadow, a mid shadow, and a wide soft blue one */
  --rgb-shadow: var(--rgb-primary-900);
  --shadow-1: 0 1px 2px rgb(var(--rgb-neutral-900) / .04), 0 4px 12px -6px rgb(var(--rgb-neutral-900) / .08);
  --shadow-2: 0 2px 8px rgb(var(--rgb-neutral-900) / .05), 0 12px 28px -18px rgb(var(--rgb-neutral-900) / .10);
  --shadow-3: 0 4px 12px rgb(var(--rgb-neutral-900) / .06), 0 24px 48px -24px rgb(var(--rgb-neutral-900) / .12);
  --shadow-menu: 0 12px 30px -16px rgb(var(--rgb-neutral-900) / .18);
  --shadow-edge: 10px 0 18px -10px rgb(var(--rgb-shadow) / .18);
  --glow-brand: 0 6px 18px -12px rgb(var(--rgb-primary-600) / .30);

  /* Frosted bluish white (OKLCH 0.984 0.007 281): white catches the light at the top-left, a navy hairline
     darkens towards the shade at the bottom-right, soft blue shadows. No inner glow: white on white is invisible,
     so the sheen does that job, and it brightens on hover. */
  --rgb-glass-tint: 255 255 255;                       /* #F9F9FF */
  --glass-noise-mean: rgb(var(--rgb-neutral-900) / .008);
  --glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .055 0 0 0 0 .047 0 0 0 0 .204 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glass-spot: rgb(var(--rgb-primary-600) / .005);
  --glass-1-bg: #FFFFFF; --glass-1-sheen: rgb(var(--rgb-white) / .5); --glass-1-sheen-hover: rgb(var(--rgb-white) / .7);
  --glass-1-hi: #FFFFFF; --glass-1-hi-hover: #FFFFFF;
  --glass-1-edge-peak: #FFFFFF; --glass-1-edge-peak-hover: #FFFFFF;
  --glass-1-edge-a: rgb(var(--rgb-primary-950) / .08); --glass-1-edge-b: rgb(var(--rgb-primary-950) / .14);
  --glass-1-edge-a-hover: rgb(var(--rgb-primary-950) / .12); --glass-1-edge-b-hover: rgb(var(--rgb-primary-950) / .20);
  --glass-1-glow: 0 0 0 transparent;
  --glass-1-solid: #FFFFFF;
  --glass-2-bg: rgb(var(--rgb-white) / .92); --glass-2-sheen: rgb(var(--rgb-white) / .5);
  --glass-2-hi: #FFFFFF;
  --glass-2-edge-peak: #FFFFFF; --glass-2-edge-a: rgb(var(--rgb-primary-950) / .08); --glass-2-edge-b: rgb(var(--rgb-primary-950) / .14);
  --glass-2-glow: 0 0 0 transparent; --glass-2-solid: #FFFFFF;
  --glass-3-bg: rgb(var(--rgb-white) / .94); --glass-3-sheen: rgb(var(--rgb-white) / .5);
  --glass-3-hi: #FFFFFF;
  --glass-3-edge-peak: #FFFFFF; --glass-3-edge-a: rgb(var(--rgb-primary-950) / .09); --glass-3-edge-b: rgb(var(--rgb-primary-950) / .16);
  --glass-3-glow: 0 0 0 transparent; --glass-3-solid: #FFFFFF;
  --surface-plain: #FFFFFF;
  --focus-halo: #FFFFFF;
  --header-glass-bg: rgb(var(--rgb-white) / .94);
  --header-glass-border: rgb(var(--rgb-primary-950) / .08);
  --header-glass-shadow: 0 1px 0 rgb(var(--rgb-white) / .7), 2px 10px 30px -20px rgb(var(--rgb-shadow) / .30);
  --plan-highlight-edge-peak: rgb(var(--rgb-secondary-600) / .50); --plan-highlight-edge-base: rgb(var(--rgb-secondary-600) / .16);
  --plan-highlight-shadow: var(--shadow-3), 8px 30px 80px -34px rgb(var(--rgb-secondary-600) / .45);

  --well-bg: #F8FAFC;
  --bubble-ai-bg: #FFFFFF;
  --bubble-user-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .14), 0 4px 12px -6px rgb(var(--rgb-primary-800) / .5);
  --working-dot: var(--secondary-600);
  --live-dot-ring: rgb(var(--rgb-accent-600) / .16);
  --icon-tile-bg: rgb(var(--rgb-secondary-400) / .18);
  --icon-tile-fg: var(--primary-800);
  --icon-tile-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .9), 0 0 0 1px rgb(var(--rgb-secondary-600) / .18);
  --step-disc-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .25), 0 0 0 1px rgb(var(--rgb-primary-950) / .2), 0 6px 16px -6px rgb(var(--rgb-primary-800) / .5);
  --feature-card-bg: rgb(var(--rgb-secondary-400) / .03);
  --feature-card-border: rgb(var(--rgb-secondary-600) / .22);
  --feature-card-border-hover: rgb(var(--rgb-secondary-600) / .45);
  --tablist-bg: rgb(var(--rgb-primary-950) / .04);
  --legend-disc-ring: rgb(var(--rgb-secondary-600) / .35);
  --shot-ring: rgb(var(--rgb-primary-950) / .10);
  /* Tour section background (design §6.20): a wash of the deep glow colour that fades in and out, two glows
     and a faint grid. Text sits on it: every text run was measured over its worst pixel (2026-11-05): light 4.5+ needs these low alphas. */
  --tour-bg-wash: rgb(var(--rgb-glow-deep) / .10);
  --tour-bg-wash-end: rgb(var(--rgb-glow-deep) / .035);
  --tour-bg-glow-a: rgb(var(--rgb-glow-primary) / .02);
  --tour-bg-glow-b: rgb(var(--rgb-glow-deep) / .08);
  --tour-bg-grid: rgb(var(--rgb-primary-950) / .03);
  --text-on-tour-bg: #525252;   /* body and muted text on the tour background: a step darker than #666, for headroom over the wash and grid */
  --timeline-rail: rgb(var(--rgb-primary-950) / .12);
  --code-chip-bg: rgb(var(--rgb-primary-950) / .045);
  --logo-ink: var(--primary-800); --logo-tint: var(--primary-600);   /* the logo on light: assets/brand/logo-on-light.svg */

  --code-text: #111827;
  --syn-comment: #6B7280; --syn-punct: #4B5563; --syn-keyword: #1D4ED8;
  --syn-property: #2563EB; --syn-string: #0F766E; --syn-number: var(--warning-700);

  --prose-text: #6B7280;
  --prose-leading: 1.65;

  /* The same layout on paper: pale tints of the brand pair, much softer than dark mode, never a dark panel.
     The tint floor (design §11.5) bounds them. */
  /* The two light swatches, as dark mode uses the two deep ones: the brand at a low alpha on paper reads grey */
  --rgb-glow-primary: 37 99 235;  /* primary-600 blue */
  --rgb-glow-deep: 191 219 254;     /* primary-200 light blue */
  --rgb-accent-bright: 37 99 235;   /* #2563EB: a highlight on white */
  --bg-shape-a: var(--rgb-glow-primary); --bg-shape-a-alpha: .009;
  --bg-shape-b: var(--rgb-glow-deep); --bg-shape-b-alpha: .006;
  --bg-shape-c: var(--rgb-glow-primary); --bg-shape-c-alpha: .009;
  --bg-shape-d: var(--rgb-glow-deep); --bg-shape-d-alpha: .004;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .055 0 0 0 0 .047 0 0 0 0 .204 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: .03;
  --glow-hero-deep: var(--rgb-accent-600);
  --glow-hero-alpha: .02; --glow-hero-deep-alpha: .012;
  --glow-page-hero-alpha: .015;
  --glow-section-alpha: .008;
  --glow-cta-deep: var(--rgb-accent-600);
  --glow-cta-alpha: .02; --glow-cta-deep-alpha: .012;
  --glow-pricing: var(--rgb-secondary-400); --glow-pricing-alpha: .02;
  --edge-run-head: rgb(var(--rgb-primary-600));    /* #2563EB: the primary blue edge */
  --edge-run-tail: rgb(var(--rgb-primary-300) / .35);
  --edge-run-halo: rgb(var(--rgb-primary-300) / .32);
  /* Pools stay above the light floor even over the darkest measured background (§12.8) */
  --pool-a: rgb(var(--rgb-secondary-400) / .01);
  --pool-b: rgb(var(--rgb-primary-200) / .015);
  /* Darker and fainter lines and points */
  --sky-color: rgb(var(--rgb-primary-800)); --sky-line-alpha: .06; --sky-point-alpha: .18;

  --proto-border: rgb(var(--rgb-secondary-600) / .5); --proto-bg: rgb(var(--rgb-secondary-600) / .03);
  --ph-border: rgb(var(--rgb-primary-950) / .35); --ph-text: var(--neutral-600);
}
:root[data-theme="dark"] {
  color-scheme: dark;

  /* Page and surfaces */
  --bg: #040609;                /* near-black base under the blue glow palette */
  --bg-raised: #111827;          /* raised surface: plain cards, sticky table cells */
  --bg-inset: #080D18;           /* config, prompt and code wells */
  --bg-panel: #111827;           /* solid panels: mega menu, mobile menu, theme menu, open header */
  --section-alt: #000000;        /* alternating band: black against the navy base, so each section reads apart (2026-11-09) */
  --section-alt-under-wash: var(--section-alt); /* the tour keeps the black band under its wash */
  --seam-line: rgb(var(--rgb-white) / .07);             /* band seams (design §5.2): the hairline's sides */
  --seam-line-peak: rgb(var(--rgb-primary-300) / .42);  /* the hairline's lit centre */
  --seam-glow: rgb(var(--rgb-primary-600) / .16);       /* the light falling from the seam into the band */
  --section-soft: #111827;
  --cta-bg: #111827;
  --cta-text: #F9FAFB;
  --cta-text-accent: #E67E22;
  --cta-muted: #D1D5DB;
  --cta-border: rgb(var(--rgb-white) / .12);
  --cta-shadow: none;
  --cta-mark-tint: var(--primary-300);
  --bg-us-column: #172033;       /* "our" column in comparison matrices */
  --footer-end: var(--bg-inset);  /* the footer's gradient ends here */
  /* Calm and dark: clear at the top so the last glow fades into it (no seam), then solid */
  --footer-bg: linear-gradient(180deg, rgb(var(--rgb-bg) / 0), var(--bg) 9rem, var(--footer-end));

  /* Text */
  --text-heading: #F9FAFB;   /* h1 to h3 and heading-like labels */
  --text-primary: #F9FAFB;   /* strong UI text: brand, nav hover, chip and button labels */
  --text-secondary: #D1D5DB;/* body copy */
  --text-muted: #9CA3AF;    /* small print, captions; not for long text */
  --text-on-surface: #D1D5DB;
  --text-on-section-alt: #D1D5DB;
  --text-on-section-soft: #D1D5DB;
  --text-decoration: #9CA3AF;
  --text-separator: #6B7280;/* decorative breadcrumb slashes */
  --text-accent: #E67E22; /* orange, requested by the owner: emphasis on dark backgrounds */
  --text-accent-readable: #EFA96D; /* lighter orange for small text and tinted panels */
  --text-accent-interactive: var(--text-primary);
  --link: #93C5FD;
  --link-hover: #BFDBFE;
  --focus: #93C5FD;
  --selection-bg: rgb(var(--rgb-secondary-500) / .45);

  /* Status colours: always with an icon and words */
  --success: #5EEAD4;
  --warning: var(--warning-200);
  --danger: var(--danger-200);
  --danger-border: var(--danger-300);

  /* Lines and fills (translucent, so they work on any surface) */
  --border-faint: rgb(var(--rgb-white) / .08);   /* inner dividers, bubble and badge edges */
  --border-subtle: rgb(var(--rgb-white) / .11);  /* section dividers, wells */
  --border-chip: rgb(var(--rgb-white) / .16);    /* chips and pills (their text identifies them) */
  --border-control: rgb(var(--rgb-white) / .38); /* identifies a control: 3:1 or more */
  --border-control-hover: rgb(var(--rgb-white) / .56);
  --fill-faint: rgb(var(--rgb-white) / .025);    /* sheens, quiet panels */
  --fill-rest: rgb(var(--rgb-white) / .04);      /* resting fill of chips and small controls */
  --fill-hover: rgb(var(--rgb-white) / .06);     /* hover on links, nav, ghost buttons */
  --fill-active: rgb(var(--rgb-white) / .09);    /* hover on chips and bordered buttons */
  --icon-accent: #93C5FD;           /* list arrows, info icons */
  --icon-neutral: #D1D5DB;            /* "no" and "partly" icons */
  --icon-muted: #9CA3AF;              /* "not stated" and risk icons */

  /* Selected states (tabs, chips, toggles): fill plus border plus a non-colour cue */
  --selected-bg: rgb(var(--rgb-secondary-300) / .14);
  --selected-border: rgb(var(--rgb-secondary-300) / .45);
  --selected-ring: rgb(var(--rgb-secondary-300) / .18);
  --indicator: #93C5FD;             /* tab bar, our column, timeline dot */

  /* Tones for badges, status chips, notices and diffs */
  --tone-success-bg: rgb(var(--rgb-accent-300) / .14); --tone-success-text: #5EEAD4; --tone-success-border: rgb(var(--rgb-accent-300) / .28);
  --tone-info-bg: rgb(var(--rgb-secondary-300) / .14); --tone-info-text: #BFDBFE; --tone-info-border: rgb(var(--rgb-secondary-300) / .30);
  --tone-neutral-bg: rgb(var(--rgb-neutral-400) / .14); --tone-neutral-text: var(--neutral-200); --tone-neutral-border: rgb(var(--rgb-white) / .16);
  --tone-danger-bg: rgb(var(--rgb-danger-300) / .10); --tone-danger-text: var(--danger-200); --tone-danger-border: rgb(var(--rgb-danger-300) / .35);
  --tone-warning-bg: rgb(var(--rgb-warning-300) / .10); --tone-warning-text: var(--warning-200); --tone-warning-border: rgb(var(--rgb-warning-300) / .35);
  --badge-bg: rgb(var(--rgb-neutral-400) / .12); --badge-text: var(--neutral-300); --badge-border: rgb(var(--rgb-white) / .08);
  --badge-outline-text: var(--neutral-100); --badge-outline-border: #9595BD; /* Writes and Security: 4.93:1 on glass L2 */
  --badge-planned-text: var(--neutral-300); --badge-planned-border: rgb(var(--rgb-white) / .4);
  --badge-pro-bg: rgb(var(--rgb-primary-300) / .14); --badge-pro-text: var(--primary-200); --badge-pro-border: rgb(var(--rgb-primary-300) / .34);
  --diff-before-bg: rgb(var(--rgb-danger-300) / .12); --diff-before-mark: var(--danger-200);
  --diff-after-bg: rgb(var(--rgb-accent-300) / .12); --diff-after-mark: var(--accent-300);
  --status-hover-filter: brightness(1.12);

  /* Buttons */
  --btn-primary-bg: var(--cta-button-bg-dark);
  --btn-primary-bg-hover: var(--cta-orange);
  --btn-primary-bg-active: var(--cta-orange-active);
  --btn-primary-text: var(--cta-button-text-dark);
  --btn-primary-text-hover: var(--neutral-900);
  --btn-primary-border: var(--cta-button-border-dark);
  --btn-primary-sheen: var(--cta-button-sheen-dark);
  --btn-primary-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .08);
  --btn-primary-shadow-hover: none;
  --btn-secondary-bg: var(--fill-rest);
  --btn-secondary-bg-hover: var(--fill-active);
  --btn-secondary-shadow: none;

  /* Inputs */
  --input-bg: rgb(var(--rgb-inset) / .6);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6C6D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  /* Shadows: tinted to the page navy, never black. The light is top-left (design §12.3), so every
     shadow falls down and to the right: x offset = a quarter of the y offset. */
  --shadow-1: 0 1px 2px rgb(var(--rgb-shadow) / .24), 0 4px 12px -4px rgb(var(--rgb-shadow) / .30);
  --shadow-2: 0 2px 6px rgb(var(--rgb-shadow) / .24), 0 12px 28px -12px rgb(var(--rgb-shadow) / .35);
  --shadow-3: 0 4px 12px rgb(var(--rgb-shadow) / .28), 0 24px 48px -20px rgb(var(--rgb-shadow) / .38);
  --shadow-menu: 0 16px 36px -18px rgb(var(--rgb-shadow) / .7);
  --shadow-edge: 10px 0 18px -10px rgb(var(--rgb-shadow) / .9); /* sticky column once the table scrolls */
  --glow-brand: 0 8px 24px -12px rgb(var(--rgb-primary-600) / .45);

  /* Glass system v2 (design §12). Levels: 1 surface (cards), 2 raised (header, standalone), 3 focal (hero demo,
     highlighted plan). Each has a brand-tinted fill, a sheen at the top-left, a 1px top highlight, an edge ring
     that is brightest at the top-left (peak) over a base hairline (a to b, top-left to bottom-right), an inner
     glow, a shadow and a solid fallback. The tint is a deep brand colour (OKLCH 0.229 0.092 278.3), a
     little lighter than primary-950 so the glass reads as colour, not as a hole. */
  --rgb-glass-tint: 17 24 39;                          /* #111827 */
  --glass-noise-mean: rgb(var(--rgb-white) / .01);     /* the glass noise's average, for contrast.py only */
  --glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glass-spot: rgb(var(--rgb-secondary-300) / .04);   /* pointer spotlight on interactive glass */
  --glass-1-bg: rgb(var(--rgb-glass-tint) / .64); --glass-1-sheen: rgb(var(--rgb-secondary-300) / .04); --glass-1-sheen-hover: var(--glass-1-sheen);
  --glass-1-hi: rgb(var(--rgb-white) / .10); --glass-1-hi-hover: rgb(var(--rgb-white) / .16);
  --glass-1-edge-peak: rgb(var(--rgb-white) / .30); --glass-1-edge-peak-hover: rgb(var(--rgb-white) / .46);
  --glass-1-edge-a: rgb(var(--rgb-white) / .06); --glass-1-edge-b: rgb(var(--rgb-white) / .06);
  --glass-1-edge-a-hover: rgb(var(--rgb-white) / .09); --glass-1-edge-b-hover: rgb(var(--rgb-white) / .09);
  --glass-1-glow: inset 6px 8px 24px -14px rgb(var(--rgb-secondary-200) / .08);
  --glass-1-shadow: var(--shadow-2); --glass-1-shadow-hover: var(--shadow-3); --glass-1-solid: #111827;
  --glass-2-bg: rgb(var(--rgb-glass-tint) / .78); --glass-2-sheen: rgb(var(--rgb-secondary-300) / .04);
  --glass-2-hi: rgb(var(--rgb-white) / .12);
  --glass-2-edge-peak: rgb(var(--rgb-white) / .30); --glass-2-edge-a: rgb(var(--rgb-white) / .06); --glass-2-edge-b: rgb(var(--rgb-white) / .06);
  --glass-2-glow: inset 6px 8px 24px -14px rgb(var(--rgb-secondary-200) / .10);
  --glass-2-shadow: var(--shadow-1); --glass-2-solid: #111827;
  --glass-3-bg: rgb(var(--rgb-glass-tint) / .70); --glass-3-sheen: rgb(var(--rgb-secondary-300) / .06);
  --glass-3-hi: rgb(var(--rgb-white) / .16);
  --glass-3-edge-peak: rgb(var(--rgb-white) / .46); --glass-3-edge-a: rgb(var(--rgb-white) / .06); --glass-3-edge-b: rgb(var(--rgb-white) / .06);
  --glass-3-glow: inset 6px 8px 24px -14px rgb(var(--rgb-secondary-200) / .12);
  --glass-3-shadow: var(--shadow-3); --glass-3-solid: #111827;
  --surface-plain: var(--bg-raised);                   /* plain card: where nothing sits behind (§12.4) */
  --focus-halo: var(--bg);                             /* fills the gap between a card and its focus ring */
  --header-glass-bg: var(--glass-2-bg);
  --header-glass-border: rgb(var(--rgb-white) / .08);
  --header-glass-shadow: inset 0 -1px 0 rgb(var(--rgb-white) / .03), 2px 10px 30px -18px rgb(var(--rgb-shadow) / .9);
  --plan-highlight-edge-peak: rgb(var(--rgb-secondary-200) / .80); --plan-highlight-edge-base: rgb(var(--rgb-secondary-300) / .16);
  --plan-highlight-shadow: var(--shadow-3), 8px 30px 100px -30px rgb(var(--rgb-secondary-500) / .55);

  /* Component roles */
  --well-bg: rgb(var(--rgb-inset) / .55);        /* demo chat area, role-tab aside */
  --bubble-ai-bg: rgb(var(--rgb-white) / .05);
  --bubble-user-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .1);
  --working-dot: var(--secondary-400);
  --live-dot-ring: rgb(var(--rgb-accent-300) / .16);
  --icon-tile-bg: rgb(var(--rgb-primary-800) / .55);
  --icon-tile-fg: var(--secondary-100);
  --icon-tile-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .22), 0 0 0 1px rgb(var(--rgb-secondary-300) / .18);
  --step-disc-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .25), 0 0 0 1px rgb(var(--rgb-secondary-300) / .25); /* no coloured glow on dark (Hallmark 29) */
  --feature-card-bg: rgb(var(--rgb-primary-800) / .4);
  --feature-card-border: rgb(var(--rgb-secondary-300) / .22);
  --feature-card-border-hover: rgb(var(--rgb-secondary-300) / .45);
  --tablist-bg: rgb(var(--rgb-primary-950) / .62);
  --legend-disc-ring: rgb(var(--rgb-secondary-300) / .5);
  --shot-ring: rgb(var(--rgb-white) / .14);
  /* Tour section background (design §6.20): a wash of the deep glow colour that fades in and out, two glows
     and a faint grid. Text sits on it: every text run was measured over its worst pixel (2026-11-05): light 4.5+ needs these low alphas. */
  --tour-bg-wash: rgb(var(--rgb-glow-deep) / .15);
  --tour-bg-wash-end: rgb(var(--rgb-glow-deep) / .04);
  --tour-bg-glow-a: rgb(var(--rgb-glow-primary) / .11);
  --tour-bg-glow-b: rgb(var(--rgb-glow-deep) / .24);
  --tour-bg-grid: rgb(var(--rgb-white) / .05);
  --text-on-tour-bg: #D1D5DB;   /* body and muted text on the tour background */
  --timeline-rail: rgb(var(--rgb-white) / .12);
  --code-chip-bg: rgb(var(--rgb-white) / .06);
  --logo-ink: #FFFFFF; --logo-tint: var(--primary-200);   /* the logo on dark: assets/brand/logo-on-dark.svg */

  /* Code: wells and syntax (every token 4.5:1 or more on --code-bg) */
  --code-bg: var(--bg-inset); --code-text: var(--neutral-50);
  --syn-comment: var(--neutral-400); --syn-punct: var(--neutral-300); --syn-keyword: var(--secondary-300);
  --syn-property: var(--primary-200); --syn-string: var(--accent-200); --syn-number: var(--warning-200);

  /* Long-form reading (blog, docs, legal) */
  --prose-text: #D1D5DB;     /* a little softer than body text: 12.8:1, less glare on a dark page */
  --prose-leading: 1.65;

  /* Background (design §3, §13): base, four glows, noise, section glows, constellation.
     The three glow colours are the brand pair plus a bright tint for edges. Every glow is a channel token
     plus a peak alpha, drawn with one eased falloff (.glow-fill), so none needs filter: blur(). */
  --rgb-glow-primary: 37 99 235;    /* #2563EB */
  --rgb-glow-deep: 30 58 138;       /* #1E3A8A */
  --rgb-accent-bright: 191 219 254; /* #BFDBFE */
  --glow-primary: rgb(var(--rgb-glow-primary));
  --glow-deep: rgb(var(--rgb-glow-deep));
  --accent-bright: rgb(var(--rgb-accent-bright)); /* borders and highlights: the travelling edge */
  /* The fixed layer, as in a lit room: top-left of centre, lower left, lower right, and a faint upper right */
  --bg-shape-a: var(--rgb-glow-primary); --bg-shape-a-alpha: .08;
  --bg-shape-b: var(--rgb-glow-deep); --bg-shape-b-alpha: .12;
  --bg-shape-c: var(--rgb-glow-primary); --bg-shape-c-alpha: .10;
  --bg-shape-d: var(--rgb-glow-deep); --bg-shape-d-alpha: .06;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: .05;
  /* Section rhythm: hero strongest, final CTA next, inner-page heroes shorter, content sections calm */
  --glow-hero: var(--rgb-glow-primary); --glow-hero-alpha: .20;          /* dominant, behind the headline */
  --glow-hero-deep: var(--rgb-glow-deep); --glow-hero-deep-alpha: .20;    /* its partner, lower right */
  --glow-page-hero: var(--rgb-glow-primary); --glow-page-hero-alpha: .14;
  --glow-section: var(--rgb-glow-primary); --glow-section-alpha: .06;
  --glow-cta: var(--rgb-glow-primary); --glow-cta-alpha: .16;
  --glow-cta-deep: var(--rgb-glow-deep); --glow-cta-deep-alpha: .18;
  --glow-pricing: var(--rgb-secondary-500); --glow-pricing-alpha: .20;
  /* The travelling edge on the demo and the final CTA (design §13.4): a bright head, a brand-blue tail */
  --edge-run-head: rgb(var(--rgb-accent-bright));
  --edge-run-tail: rgb(var(--rgb-glow-primary) / .45);
  --edge-run-halo: rgb(var(--rgb-accent-bright) / .42);
  /* Glow pools behind card groups (§12.8): stacked on the brightest background they stay under the cap */
  --pool-a: rgb(var(--rgb-secondary-500) / .20);
  --pool-b: rgb(var(--rgb-primary-600) / .22);
  --sky-color: rgb(var(--rgb-secondary-200)); --sky-line-alpha: .09; --sky-point-alpha: .24;

  /* Prototype-only parts (never ship) */
  --proto-border: rgb(var(--rgb-secondary-300) / .5); --proto-bg: rgb(var(--rgb-secondary-300) / .07);
  --ph-border: rgb(var(--rgb-white) / .38); --ph-text: var(--neutral-300);
}

/* ==========================================================================
   Roles, dark. Same names, same jobs.
   ========================================================================== */

/* Generated: the light block again, for visitors without JavaScript who prefer light. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;

    --bg: #FFFFFF;
    --bg-raised: #FFFFFF;
    --bg-inset: #F3F4F6;
    --bg-panel: #FFFFFF;
    --section-alt: #F7F8FA;
    --section-alt-under-wash: transparent; /* the tour's band on an even slot: its own wash replaces the band in light mode */
    --seam-line: rgb(var(--rgb-primary-600) / .09);       /* band seams (design §5.2): the hairline's sides */
    --seam-line-peak: rgb(var(--rgb-primary-600) / .28);  /* the hairline's lit centre */
    --seam-glow: transparent;                             /* on paper the seam casts no light: any tint cost the band's secondary text its AA margin */
    --section-soft: #F3F4F6;
    --cta-bg: #111827;
    --cta-text: #F9FAFB;
    --cta-text-accent: #E67E22;
    --cta-muted: #D1D5DB;
    --cta-border: rgb(var(--rgb-white) / .12);
    --cta-shadow: none;
    --cta-mark-tint: var(--primary-300);
    --bg-us-column: #F9FAFB;
    --footer-end: #FFFFFF;
    --footer-bg: linear-gradient(180deg, rgb(var(--rgb-paper) / 0), var(--bg) 9rem, var(--footer-end));

    --text-heading: #171717;
    --text-primary: #171717;       /* heading and control text */
    --text-secondary: #737373;     /* secondary copy */
    --text-muted: #737373;         /* captions; #A3A3A3 is reserved for decoration */
    --text-on-surface: #666666;
    --text-on-section-alt: #666666;
    --text-on-section-soft: #666666;
    --text-decoration: #A3A3A3;
    --text-separator: var(--text-decoration);
    --text-accent: #3F5375; /* slate-blue: editorial emphasis on cool light backgrounds */
    --text-accent-readable: var(--text-accent);
    --text-accent-interactive: var(--text-accent);
    /* Links use the primary blue and remain underlined in running text */
    --link: #2563EB;
    --link-hover: #1D4ED8;
    --focus: #2563EB;
    --selection-bg: rgb(var(--rgb-secondary-400) / .24);

    --success: #0F766E;
    --warning: var(--warning-700);
    --danger: var(--danger-700);
    --danger-border: var(--danger-700);

    --border-faint: #F3F3F3;
    --border-subtle: #EAEAEA;
    --border-chip: #E5E5E5;
    --border-control: rgb(var(--rgb-neutral-900) / .52);
    --border-control-hover: rgb(var(--rgb-neutral-900) / .68);
    --fill-faint: rgb(var(--rgb-neutral-900) / .02);
    --fill-rest: #FFFFFF;
    --fill-hover: rgb(var(--rgb-neutral-900) / .04);
    --fill-active: rgb(var(--rgb-neutral-900) / .07);
    --icon-accent: #2563EB;
    --icon-neutral: #4B5563;
    --icon-muted: #6B7280;

    --selected-bg: #EFF6FF;
    --selected-border: rgb(var(--rgb-primary-600) / .76);
    --selected-ring: rgb(var(--rgb-primary-600) / .12);
    --indicator: #2563EB;

    --tone-success-bg: rgb(var(--rgb-accent-600) / .05); --tone-success-text: #0F766E; --tone-success-border: rgb(var(--rgb-accent-600) / .26);
    --tone-info-bg: rgb(var(--rgb-secondary-600) / .01); --tone-info-text: var(--secondary-800); --tone-info-border: rgb(var(--rgb-secondary-600) / .30);
    --tone-neutral-bg: rgb(var(--rgb-neutral-500) / .10); --tone-neutral-text: var(--neutral-700); --tone-neutral-border: rgb(var(--rgb-primary-950) / .16);
    --tone-danger-bg: rgb(var(--rgb-danger-700) / .06); --tone-danger-text: var(--danger-700); --tone-danger-border: rgb(var(--rgb-danger-700) / .30);
    --tone-warning-bg: rgb(var(--rgb-warning-700) / .03); --tone-warning-text: var(--warning-700); --tone-warning-border: rgb(var(--rgb-warning-700) / .30);
    --badge-bg: rgb(var(--rgb-neutral-500) / .08); --badge-text: var(--neutral-600); --badge-border: rgb(var(--rgb-primary-950) / .10);
    --badge-outline-text: var(--neutral-800); --badge-outline-border: var(--neutral-500);
    --badge-planned-text: var(--neutral-600); --badge-planned-border: rgb(var(--rgb-primary-950) / .40);
    --badge-pro-bg: rgb(var(--rgb-primary-600) / .08); --badge-pro-text: var(--primary-800); --badge-pro-border: rgb(var(--rgb-primary-600) / .32);
    --diff-before-bg: rgb(var(--rgb-danger-700) / .01); --diff-before-mark: var(--danger-700);
    --diff-after-bg: rgb(var(--rgb-accent-600) / .01); --diff-after-mark: var(--accent-700);
    --status-hover-filter: brightness(.97) saturate(1.1);

    --btn-primary-bg: #FFF8F2;
    --btn-primary-bg-hover: var(--cta-orange);
    --btn-primary-bg-active: var(--cta-orange-active);
    --btn-primary-text: #934400;
    --btn-primary-text-hover: var(--neutral-900);
    --btn-primary-border: #B85A13;
    --btn-primary-sheen: rgb(var(--rgb-white) / .45);
    --btn-primary-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .18);
    --btn-primary-shadow-hover: none;
    --btn-secondary-bg: #FFFFFF;
    --btn-secondary-bg-hover: #F3F4F6;
    --btn-secondary-shadow: none;

    --input-bg: rgb(var(--rgb-white) / .9);
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23595A69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    /* Layered and navy-tinted: a tight contact shadow, a mid shadow, and a wide soft blue one */
    --rgb-shadow: var(--rgb-primary-900);
    --shadow-1: 0 1px 2px rgb(var(--rgb-neutral-900) / .04), 0 4px 12px -6px rgb(var(--rgb-neutral-900) / .08);
    --shadow-2: 0 2px 8px rgb(var(--rgb-neutral-900) / .05), 0 12px 28px -18px rgb(var(--rgb-neutral-900) / .10);
    --shadow-3: 0 4px 12px rgb(var(--rgb-neutral-900) / .06), 0 24px 48px -24px rgb(var(--rgb-neutral-900) / .12);
    --shadow-menu: 0 12px 30px -16px rgb(var(--rgb-neutral-900) / .18);
    --shadow-edge: 10px 0 18px -10px rgb(var(--rgb-shadow) / .18);
    --glow-brand: 0 6px 18px -12px rgb(var(--rgb-primary-600) / .30);

    /* Frosted bluish white (OKLCH 0.984 0.007 281): white catches the light at the top-left, a navy hairline
       darkens towards the shade at the bottom-right, soft blue shadows. No inner glow: white on white is invisible,
       so the sheen does that job, and it brightens on hover. */
    --rgb-glass-tint: 255 255 255;                       /* #F9F9FF */
    --glass-noise-mean: rgb(var(--rgb-neutral-900) / .008);
    --glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .055 0 0 0 0 .047 0 0 0 0 .204 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --glass-spot: rgb(var(--rgb-primary-600) / .005);
    --glass-1-bg: #FFFFFF; --glass-1-sheen: rgb(var(--rgb-white) / .5); --glass-1-sheen-hover: rgb(var(--rgb-white) / .7);
    --glass-1-hi: #FFFFFF; --glass-1-hi-hover: #FFFFFF;
    --glass-1-edge-peak: #FFFFFF; --glass-1-edge-peak-hover: #FFFFFF;
    --glass-1-edge-a: rgb(var(--rgb-primary-950) / .08); --glass-1-edge-b: rgb(var(--rgb-primary-950) / .14);
    --glass-1-edge-a-hover: rgb(var(--rgb-primary-950) / .12); --glass-1-edge-b-hover: rgb(var(--rgb-primary-950) / .20);
    --glass-1-glow: 0 0 0 transparent;
    --glass-1-solid: #FFFFFF;
    --glass-2-bg: rgb(var(--rgb-white) / .92); --glass-2-sheen: rgb(var(--rgb-white) / .5);
    --glass-2-hi: #FFFFFF;
    --glass-2-edge-peak: #FFFFFF; --glass-2-edge-a: rgb(var(--rgb-primary-950) / .08); --glass-2-edge-b: rgb(var(--rgb-primary-950) / .14);
    --glass-2-glow: 0 0 0 transparent; --glass-2-solid: #FFFFFF;
    --glass-3-bg: rgb(var(--rgb-white) / .94); --glass-3-sheen: rgb(var(--rgb-white) / .5);
    --glass-3-hi: #FFFFFF;
    --glass-3-edge-peak: #FFFFFF; --glass-3-edge-a: rgb(var(--rgb-primary-950) / .09); --glass-3-edge-b: rgb(var(--rgb-primary-950) / .16);
    --glass-3-glow: 0 0 0 transparent; --glass-3-solid: #FFFFFF;
    --surface-plain: #FFFFFF;
    --focus-halo: #FFFFFF;
    --header-glass-bg: rgb(var(--rgb-white) / .94);
    --header-glass-border: rgb(var(--rgb-primary-950) / .08);
    --header-glass-shadow: 0 1px 0 rgb(var(--rgb-white) / .7), 2px 10px 30px -20px rgb(var(--rgb-shadow) / .30);
    --plan-highlight-edge-peak: rgb(var(--rgb-secondary-600) / .50); --plan-highlight-edge-base: rgb(var(--rgb-secondary-600) / .16);
    --plan-highlight-shadow: var(--shadow-3), 8px 30px 80px -34px rgb(var(--rgb-secondary-600) / .45);

    --well-bg: #F8FAFC;
    --bubble-ai-bg: #FFFFFF;
    --bubble-user-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .14), 0 4px 12px -6px rgb(var(--rgb-primary-800) / .5);
    --working-dot: var(--secondary-600);
    --live-dot-ring: rgb(var(--rgb-accent-600) / .16);
    --icon-tile-bg: rgb(var(--rgb-secondary-400) / .18);
    --icon-tile-fg: var(--primary-800);
    --icon-tile-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .9), 0 0 0 1px rgb(var(--rgb-secondary-600) / .18);
    --step-disc-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .25), 0 0 0 1px rgb(var(--rgb-primary-950) / .2), 0 6px 16px -6px rgb(var(--rgb-primary-800) / .5);
    --feature-card-bg: rgb(var(--rgb-secondary-400) / .03);
    --feature-card-border: rgb(var(--rgb-secondary-600) / .22);
    --feature-card-border-hover: rgb(var(--rgb-secondary-600) / .45);
    --tablist-bg: rgb(var(--rgb-primary-950) / .04);
    --legend-disc-ring: rgb(var(--rgb-secondary-600) / .35);
    --shot-ring: rgb(var(--rgb-primary-950) / .10);
    /* Tour section background (design §6.20): a wash of the deep glow colour that fades in and out, two glows
       and a faint grid. Text sits on it: every text run was measured over its worst pixel (2026-11-05): light 4.5+ needs these low alphas. */
    --tour-bg-wash: rgb(var(--rgb-glow-deep) / .10);
    --tour-bg-wash-end: rgb(var(--rgb-glow-deep) / .035);
    --tour-bg-glow-a: rgb(var(--rgb-glow-primary) / .02);
    --tour-bg-glow-b: rgb(var(--rgb-glow-deep) / .08);
    --tour-bg-grid: rgb(var(--rgb-primary-950) / .03);
    --text-on-tour-bg: #525252;   /* body and muted text on the tour background: a step darker than #666, for headroom over the wash and grid */
    --timeline-rail: rgb(var(--rgb-primary-950) / .12);
    --code-chip-bg: rgb(var(--rgb-primary-950) / .045);
    --logo-ink: var(--primary-800); --logo-tint: var(--primary-600);   /* the logo on light: assets/brand/logo-on-light.svg */

    --code-text: #111827;
    --syn-comment: #6B7280; --syn-punct: #4B5563; --syn-keyword: #1D4ED8;
    --syn-property: #2563EB; --syn-string: #0F766E; --syn-number: var(--warning-700);

    --prose-text: #6B7280;
    --prose-leading: 1.65;

    /* The same layout on paper: pale tints of the brand pair, much softer than dark mode, never a dark panel.
       The tint floor (design §11.5) bounds them. */
    /* The two light swatches, as dark mode uses the two deep ones: the brand at a low alpha on paper reads grey */
    --rgb-glow-primary: 37 99 235;  /* primary-600 blue */
    --rgb-glow-deep: 191 219 254;     /* primary-200 light blue */
    --rgb-accent-bright: 37 99 235;   /* #2563EB: a highlight on white */
    --bg-shape-a: var(--rgb-glow-primary); --bg-shape-a-alpha: .009;
    --bg-shape-b: var(--rgb-glow-deep); --bg-shape-b-alpha: .006;
    --bg-shape-c: var(--rgb-glow-primary); --bg-shape-c-alpha: .009;
    --bg-shape-d: var(--rgb-glow-deep); --bg-shape-d-alpha: .004;
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .055 0 0 0 0 .047 0 0 0 0 .204 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --noise-opacity: .03;
    --glow-hero-deep: var(--rgb-accent-600);
    --glow-hero-alpha: .02; --glow-hero-deep-alpha: .012;
    --glow-page-hero-alpha: .015;
    --glow-section-alpha: .008;
    --glow-cta-deep: var(--rgb-accent-600);
    --glow-cta-alpha: .02; --glow-cta-deep-alpha: .012;
    --glow-pricing: var(--rgb-secondary-400); --glow-pricing-alpha: .02;
    --edge-run-head: rgb(var(--rgb-primary-600));    /* #2563EB: the primary blue edge */
    --edge-run-tail: rgb(var(--rgb-primary-300) / .35);
    --edge-run-halo: rgb(var(--rgb-primary-300) / .32);
    /* Pools stay above the light floor even over the darkest measured background (§12.8) */
    --pool-a: rgb(var(--rgb-secondary-400) / .01);
    --pool-b: rgb(var(--rgb-primary-200) / .015);
    /* Darker and fainter lines and points */
    --sky-color: rgb(var(--rgb-primary-800)); --sky-line-alpha: .06; --sky-point-alpha: .18;

    --proto-border: rgb(var(--rgb-secondary-600) / .5); --proto-bg: rgb(var(--rgb-secondary-600) / .03);
    --ph-border: rgb(var(--rgb-primary-950) / .35); --ph-text: var(--neutral-600);
  }
}

/* Generated: the dark block again, for the hero stage (dark in both appearances, design §5.4). */
:root {
  --on-stage-bg: #040609;
  --on-stage-bg-raised: #111827;
  --on-stage-bg-inset: #080D18;
  --on-stage-bg-panel: #111827;
  --on-stage-section-alt: #000000;
  --on-stage-section-soft: #111827;
  --on-stage-cta-bg: #111827;
  --on-stage-cta-text: #F9FAFB;
  --on-stage-cta-text-accent: #E67E22;
  --on-stage-cta-muted: #D1D5DB;
  --on-stage-bg-us-column: #172033;
  --on-stage-text-heading: #F9FAFB;
  --on-stage-text-primary: #F9FAFB;
  --on-stage-text-secondary: #D1D5DB;
  --on-stage-text-muted: #9CA3AF;
  --on-stage-text-on-surface: #D1D5DB;
  --on-stage-text-on-section-alt: #D1D5DB;
  --on-stage-text-on-section-soft: #D1D5DB;
  --on-stage-text-decoration: #9CA3AF;
  --on-stage-text-separator: #6B7280;
  --on-stage-text-accent: #E67E22;
  --on-stage-text-accent-readable: #EFA96D;
  --on-stage-link: #93C5FD;
  --on-stage-link-hover: #BFDBFE;
  --on-stage-focus: #93C5FD;
  --on-stage-success: #5EEAD4;
  --on-stage-icon-accent: #93C5FD;
  --on-stage-icon-neutral: #D1D5DB;
  --on-stage-icon-muted: #9CA3AF;
  --on-stage-indicator: #93C5FD;
  --on-stage-tone-success-text: #5EEAD4;
  --on-stage-tone-info-text: #BFDBFE;
  --on-stage-badge-outline-border: #9595BD;
  --on-stage-glass-1-solid: #111827;
  --on-stage-glass-2-solid: #111827;
  --on-stage-glass-3-solid: #111827;
  --on-stage-text-on-tour-bg: #D1D5DB;
  --on-stage-logo-ink: #FFFFFF;
  --on-stage-prose-text: #D1D5DB;
}
.on-stage, .site-header--stage:not(.is-scrolled, .is-open) {
  color-scheme: dark;

  /* Page and surfaces */
  --bg: var(--on-stage-bg);                /* near-black base under the blue glow palette */
  --bg-raised: var(--on-stage-bg-raised);          /* raised surface: plain cards, sticky table cells */
  --bg-inset: var(--on-stage-bg-inset);           /* config, prompt and code wells */
  --bg-panel: var(--on-stage-bg-panel);           /* solid panels: mega menu, mobile menu, theme menu, open header */
  --section-alt: var(--on-stage-section-alt);        /* alternating band: black against the navy base, so each section reads apart (2026-11-09) */
  --section-alt-under-wash: var(--section-alt); /* the tour keeps the black band under its wash */
  --seam-line: rgb(var(--rgb-white) / .07);             /* band seams (design §5.2): the hairline's sides */
  --seam-line-peak: rgb(var(--rgb-primary-300) / .42);  /* the hairline's lit centre */
  --seam-glow: rgb(var(--rgb-primary-600) / .16);       /* the light falling from the seam into the band */
  --section-soft: var(--on-stage-section-soft);
  --cta-bg: var(--on-stage-cta-bg);
  --cta-text: var(--on-stage-cta-text);
  --cta-text-accent: var(--on-stage-cta-text-accent);
  --cta-muted: var(--on-stage-cta-muted);
  --cta-border: rgb(var(--rgb-white) / .12);
  --cta-shadow: none;
  --cta-mark-tint: var(--primary-300);
  --bg-us-column: var(--on-stage-bg-us-column);       /* "our" column in comparison matrices */
  --footer-end: var(--bg-inset);  /* the footer's gradient ends here */
  /* Calm and dark: clear at the top so the last glow fades into it (no seam), then solid */
  --footer-bg: linear-gradient(180deg, rgb(var(--rgb-bg) / 0), var(--bg) 9rem, var(--footer-end));

  /* Text */
  --text-heading: var(--on-stage-text-heading);   /* h1 to h3 and heading-like labels */
  --text-primary: var(--on-stage-text-primary);   /* strong UI text: brand, nav hover, chip and button labels */
  --text-secondary: var(--on-stage-text-secondary);/* body copy */
  --text-muted: var(--on-stage-text-muted);    /* small print, captions; not for long text */
  --text-on-surface: var(--on-stage-text-on-surface);
  --text-on-section-alt: var(--on-stage-text-on-section-alt);
  --text-on-section-soft: var(--on-stage-text-on-section-soft);
  --text-decoration: var(--on-stage-text-decoration);
  --text-separator: var(--on-stage-text-separator);/* decorative breadcrumb slashes */
  --text-accent: var(--on-stage-text-accent); /* orange, requested by the owner: emphasis on dark backgrounds */
  --text-accent-readable: var(--on-stage-text-accent-readable); /* lighter orange for small text and tinted panels */
  --text-accent-interactive: var(--text-primary);
  --link: var(--on-stage-link);
  --link-hover: var(--on-stage-link-hover);
  --focus: var(--on-stage-focus);
  --selection-bg: rgb(var(--rgb-secondary-500) / .45);

  /* Status colours: always with an icon and words */
  --success: var(--on-stage-success);
  --warning: var(--warning-200);
  --danger: var(--danger-200);
  --danger-border: var(--danger-300);

  /* Lines and fills (translucent, so they work on any surface) */
  --border-faint: rgb(var(--rgb-white) / .08);   /* inner dividers, bubble and badge edges */
  --border-subtle: rgb(var(--rgb-white) / .11);  /* section dividers, wells */
  --border-chip: rgb(var(--rgb-white) / .16);    /* chips and pills (their text identifies them) */
  --border-control: rgb(var(--rgb-white) / .38); /* identifies a control: 3:1 or more */
  --border-control-hover: rgb(var(--rgb-white) / .56);
  --fill-faint: rgb(var(--rgb-white) / .025);    /* sheens, quiet panels */
  --fill-rest: rgb(var(--rgb-white) / .04);      /* resting fill of chips and small controls */
  --fill-hover: rgb(var(--rgb-white) / .06);     /* hover on links, nav, ghost buttons */
  --fill-active: rgb(var(--rgb-white) / .09);    /* hover on chips and bordered buttons */
  --icon-accent: var(--on-stage-icon-accent);           /* list arrows, info icons */
  --icon-neutral: var(--on-stage-icon-neutral);            /* "no" and "partly" icons */
  --icon-muted: var(--on-stage-icon-muted);              /* "not stated" and risk icons */

  /* Selected states (tabs, chips, toggles): fill plus border plus a non-colour cue */
  --selected-bg: rgb(var(--rgb-secondary-300) / .14);
  --selected-border: rgb(var(--rgb-secondary-300) / .45);
  --selected-ring: rgb(var(--rgb-secondary-300) / .18);
  --indicator: var(--on-stage-indicator);             /* tab bar, our column, timeline dot */

  /* Tones for badges, status chips, notices and diffs */
  --tone-success-bg: rgb(var(--rgb-accent-300) / .14); --tone-success-text: var(--on-stage-tone-success-text); --tone-success-border: rgb(var(--rgb-accent-300) / .28);
  --tone-info-bg: rgb(var(--rgb-secondary-300) / .14); --tone-info-text: var(--on-stage-tone-info-text); --tone-info-border: rgb(var(--rgb-secondary-300) / .30);
  --tone-neutral-bg: rgb(var(--rgb-neutral-400) / .14); --tone-neutral-text: var(--neutral-200); --tone-neutral-border: rgb(var(--rgb-white) / .16);
  --tone-danger-bg: rgb(var(--rgb-danger-300) / .10); --tone-danger-text: var(--danger-200); --tone-danger-border: rgb(var(--rgb-danger-300) / .35);
  --tone-warning-bg: rgb(var(--rgb-warning-300) / .10); --tone-warning-text: var(--warning-200); --tone-warning-border: rgb(var(--rgb-warning-300) / .35);
  --badge-bg: rgb(var(--rgb-neutral-400) / .12); --badge-text: var(--neutral-300); --badge-border: rgb(var(--rgb-white) / .08);
  --badge-outline-text: var(--neutral-100); --badge-outline-border: var(--on-stage-badge-outline-border); /* Writes and Security: 4.93:1 on glass L2 */
  --badge-planned-text: var(--neutral-300); --badge-planned-border: rgb(var(--rgb-white) / .4);
  --badge-pro-bg: rgb(var(--rgb-primary-300) / .14); --badge-pro-text: var(--primary-200); --badge-pro-border: rgb(var(--rgb-primary-300) / .34);
  --diff-before-bg: rgb(var(--rgb-danger-300) / .12); --diff-before-mark: var(--danger-200);
  --diff-after-bg: rgb(var(--rgb-accent-300) / .12); --diff-after-mark: var(--accent-300);
  --status-hover-filter: brightness(1.12);

  /* Buttons */
  --btn-primary-bg: var(--cta-button-bg-dark);
  --btn-primary-bg-hover: var(--cta-orange);
  --btn-primary-bg-active: var(--cta-orange-active);
  --btn-primary-text: var(--cta-button-text-dark);
  --btn-primary-text-hover: var(--neutral-900);
  --btn-primary-border: var(--cta-button-border-dark);
  --btn-primary-sheen: var(--cta-button-sheen-dark);
  --btn-primary-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .08);
  --btn-primary-shadow-hover: none;
  --btn-secondary-bg: var(--fill-rest);
  --btn-secondary-bg-hover: var(--fill-active);
  --btn-secondary-shadow: none;

  /* Inputs */
  --input-bg: rgb(var(--rgb-inset) / .6);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6C6D2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  /* Shadows: tinted to the page navy, never black. The light is top-left (design §12.3), so every
     shadow falls down and to the right: x offset = a quarter of the y offset. */
  --shadow-1: 0 1px 2px rgb(var(--rgb-shadow) / .24), 0 4px 12px -4px rgb(var(--rgb-shadow) / .30);
  --shadow-2: 0 2px 6px rgb(var(--rgb-shadow) / .24), 0 12px 28px -12px rgb(var(--rgb-shadow) / .35);
  --shadow-3: 0 4px 12px rgb(var(--rgb-shadow) / .28), 0 24px 48px -20px rgb(var(--rgb-shadow) / .38);
  --shadow-menu: 0 16px 36px -18px rgb(var(--rgb-shadow) / .7);
  --shadow-edge: 10px 0 18px -10px rgb(var(--rgb-shadow) / .9); /* sticky column once the table scrolls */
  --glow-brand: 0 8px 24px -12px rgb(var(--rgb-primary-600) / .45);

  /* Glass system v2 (design §12). Levels: 1 surface (cards), 2 raised (header, standalone), 3 focal (hero demo,
     highlighted plan). Each has a brand-tinted fill, a sheen at the top-left, a 1px top highlight, an edge ring
     that is brightest at the top-left (peak) over a base hairline (a to b, top-left to bottom-right), an inner
     glow, a shadow and a solid fallback. The tint is a deep brand colour (OKLCH 0.229 0.092 278.3), a
     little lighter than primary-950 so the glass reads as colour, not as a hole. */
  --rgb-glass-tint: 17 24 39;                          /* #111827 */
  --glass-noise-mean: rgb(var(--rgb-white) / .01);     /* the glass noise's average, for contrast.py only */
  --glass-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glass-spot: rgb(var(--rgb-secondary-300) / .04);   /* pointer spotlight on interactive glass */
  --glass-1-bg: rgb(var(--rgb-glass-tint) / .64); --glass-1-sheen: rgb(var(--rgb-secondary-300) / .04); --glass-1-sheen-hover: var(--glass-1-sheen);
  --glass-1-hi: rgb(var(--rgb-white) / .10); --glass-1-hi-hover: rgb(var(--rgb-white) / .16);
  --glass-1-edge-peak: rgb(var(--rgb-white) / .30); --glass-1-edge-peak-hover: rgb(var(--rgb-white) / .46);
  --glass-1-edge-a: rgb(var(--rgb-white) / .06); --glass-1-edge-b: rgb(var(--rgb-white) / .06);
  --glass-1-edge-a-hover: rgb(var(--rgb-white) / .09); --glass-1-edge-b-hover: rgb(var(--rgb-white) / .09);
  --glass-1-glow: inset 6px 8px 24px -14px rgb(var(--rgb-secondary-200) / .08);
  --glass-1-shadow: var(--shadow-2); --glass-1-shadow-hover: var(--shadow-3); --glass-1-solid: var(--on-stage-glass-1-solid);
  --glass-2-bg: rgb(var(--rgb-glass-tint) / .78); --glass-2-sheen: rgb(var(--rgb-secondary-300) / .04);
  --glass-2-hi: rgb(var(--rgb-white) / .12);
  --glass-2-edge-peak: rgb(var(--rgb-white) / .30); --glass-2-edge-a: rgb(var(--rgb-white) / .06); --glass-2-edge-b: rgb(var(--rgb-white) / .06);
  --glass-2-glow: inset 6px 8px 24px -14px rgb(var(--rgb-secondary-200) / .10);
  --glass-2-shadow: var(--shadow-1); --glass-2-solid: var(--on-stage-glass-2-solid);
  --glass-3-bg: rgb(var(--rgb-glass-tint) / .70); --glass-3-sheen: rgb(var(--rgb-secondary-300) / .06);
  --glass-3-hi: rgb(var(--rgb-white) / .16);
  --glass-3-edge-peak: rgb(var(--rgb-white) / .46); --glass-3-edge-a: rgb(var(--rgb-white) / .06); --glass-3-edge-b: rgb(var(--rgb-white) / .06);
  --glass-3-glow: inset 6px 8px 24px -14px rgb(var(--rgb-secondary-200) / .12);
  --glass-3-shadow: var(--shadow-3); --glass-3-solid: var(--on-stage-glass-3-solid);
  --surface-plain: var(--bg-raised);                   /* plain card: where nothing sits behind (§12.4) */
  --focus-halo: var(--bg);                             /* fills the gap between a card and its focus ring */
  --header-glass-bg: var(--glass-2-bg);
  --header-glass-border: rgb(var(--rgb-white) / .08);
  --header-glass-shadow: inset 0 -1px 0 rgb(var(--rgb-white) / .03), 2px 10px 30px -18px rgb(var(--rgb-shadow) / .9);
  --plan-highlight-edge-peak: rgb(var(--rgb-secondary-200) / .80); --plan-highlight-edge-base: rgb(var(--rgb-secondary-300) / .16);
  --plan-highlight-shadow: var(--shadow-3), 8px 30px 100px -30px rgb(var(--rgb-secondary-500) / .55);

  /* Component roles */
  --well-bg: rgb(var(--rgb-inset) / .55);        /* demo chat area, role-tab aside */
  --bubble-ai-bg: rgb(var(--rgb-white) / .05);
  --bubble-user-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .1);
  --working-dot: var(--secondary-400);
  --live-dot-ring: rgb(var(--rgb-accent-300) / .16);
  --icon-tile-bg: rgb(var(--rgb-primary-800) / .55);
  --icon-tile-fg: var(--secondary-100);
  --icon-tile-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .22), 0 0 0 1px rgb(var(--rgb-secondary-300) / .18);
  --step-disc-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .25), 0 0 0 1px rgb(var(--rgb-secondary-300) / .25); /* no coloured glow on dark (Hallmark 29) */
  --feature-card-bg: rgb(var(--rgb-primary-800) / .4);
  --feature-card-border: rgb(var(--rgb-secondary-300) / .22);
  --feature-card-border-hover: rgb(var(--rgb-secondary-300) / .45);
  --tablist-bg: rgb(var(--rgb-primary-950) / .62);
  --legend-disc-ring: rgb(var(--rgb-secondary-300) / .5);
  --shot-ring: rgb(var(--rgb-white) / .14);
  /* Tour section background (design §6.20): a wash of the deep glow colour that fades in and out, two glows
     and a faint grid. Text sits on it: every text run was measured over its worst pixel (2026-11-05): light 4.5+ needs these low alphas. */
  --tour-bg-wash: rgb(var(--rgb-glow-deep) / .15);
  --tour-bg-wash-end: rgb(var(--rgb-glow-deep) / .04);
  --tour-bg-glow-a: rgb(var(--rgb-glow-primary) / .11);
  --tour-bg-glow-b: rgb(var(--rgb-glow-deep) / .24);
  --tour-bg-grid: rgb(var(--rgb-white) / .05);
  --text-on-tour-bg: var(--on-stage-text-on-tour-bg);   /* body and muted text on the tour background */
  --timeline-rail: rgb(var(--rgb-white) / .12);
  --code-chip-bg: rgb(var(--rgb-white) / .06);
  --logo-ink: var(--on-stage-logo-ink); --logo-tint: var(--primary-200);   /* the logo on dark: assets/brand/logo-on-dark.svg */

  /* Code: wells and syntax (every token 4.5:1 or more on --code-bg) */
  --code-bg: var(--bg-inset); --code-text: var(--neutral-50);
  --syn-comment: var(--neutral-400); --syn-punct: var(--neutral-300); --syn-keyword: var(--secondary-300);
  --syn-property: var(--primary-200); --syn-string: var(--accent-200); --syn-number: var(--warning-200);

  /* Long-form reading (blog, docs, legal) */
  --prose-text: var(--on-stage-prose-text);     /* a little softer than body text: 12.8:1, less glare on a dark page */
  --prose-leading: 1.65;

  /* Background (design §3, §13): base, four glows, noise, section glows, constellation.
     The three glow colours are the brand pair plus a bright tint for edges. Every glow is a channel token
     plus a peak alpha, drawn with one eased falloff (.glow-fill), so none needs filter: blur(). */
  --rgb-glow-primary: 37 99 235;    /* #2563EB */
  --rgb-glow-deep: 30 58 138;       /* #1E3A8A */
  --rgb-accent-bright: 191 219 254; /* #BFDBFE */
  --glow-primary: rgb(var(--rgb-glow-primary));
  --glow-deep: rgb(var(--rgb-glow-deep));
  --accent-bright: rgb(var(--rgb-accent-bright)); /* borders and highlights: the travelling edge */
  /* The fixed layer, as in a lit room: top-left of centre, lower left, lower right, and a faint upper right */
  --bg-shape-a: var(--rgb-glow-primary); --bg-shape-a-alpha: .08;
  --bg-shape-b: var(--rgb-glow-deep); --bg-shape-b-alpha: .12;
  --bg-shape-c: var(--rgb-glow-primary); --bg-shape-c-alpha: .10;
  --bg-shape-d: var(--rgb-glow-deep); --bg-shape-d-alpha: .06;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: .05;
  /* Section rhythm: hero strongest, final CTA next, inner-page heroes shorter, content sections calm */
  --glow-hero: var(--rgb-glow-primary); --glow-hero-alpha: .20;          /* dominant, behind the headline */
  --glow-hero-deep: var(--rgb-glow-deep); --glow-hero-deep-alpha: .20;    /* its partner, lower right */
  --glow-page-hero: var(--rgb-glow-primary); --glow-page-hero-alpha: .14;
  --glow-section: var(--rgb-glow-primary); --glow-section-alpha: .06;
  --glow-cta: var(--rgb-glow-primary); --glow-cta-alpha: .16;
  --glow-cta-deep: var(--rgb-glow-deep); --glow-cta-deep-alpha: .18;
  --glow-pricing: var(--rgb-secondary-500); --glow-pricing-alpha: .20;
  /* The travelling edge on the demo and the final CTA (design §13.4): a bright head, a brand-blue tail */
  --edge-run-head: rgb(var(--rgb-accent-bright));
  --edge-run-tail: rgb(var(--rgb-glow-primary) / .45);
  --edge-run-halo: rgb(var(--rgb-accent-bright) / .42);
  /* Glow pools behind card groups (§12.8): stacked on the brightest background they stay under the cap */
  --pool-a: rgb(var(--rgb-secondary-500) / .20);
  --pool-b: rgb(var(--rgb-primary-600) / .22);
  --sky-color: rgb(var(--rgb-secondary-200)); --sky-line-alpha: .09; --sky-point-alpha: .24;

  /* Prototype-only parts (never ship) */
  --proto-border: rgb(var(--rgb-secondary-300) / .5); --proto-bg: rgb(var(--rgb-secondary-300) / .07);
  --ph-border: rgb(var(--rgb-white) / .38); --ph-text: var(--neutral-300);
  --focus-halo: var(--stage-bg);
}
/* ==========================================================================
   MCPMate design prototype, v2. Shared by every prototype page.
   Tokens and recipes: docs/design.md. v1 rules first, v2 components after
   the "v2" banner below.
   ========================================================================== */
/* One self-hosted variable font; the file is shared by every weight and page. */
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Variable.e739aff9b4d0.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Match fallback widths and line metrics to reduce movement while the font loads. */
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial");
  font-weight: 400;
  size-adjust: 99.26%;
  ascent-override: 101.75%;
  descent-override: 24.18%;
  line-gap-override: 10.07%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial");
  font-weight: 500;
  size-adjust: 102.09%;
  ascent-override: 98.93%;
  descent-override: 23.51%;
  line-gap-override: 9.80%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial Bold");
  font-weight: 700;
  size-adjust: 97.31%;
  ascent-override: 103.79%;
  descent-override: 24.66%;
  line-gap-override: 10.28%;
}
/* ==========================================================================
   Tokens. Full reference in docs/design.md §1.
   ========================================================================== */
:root {
  /* Colour tokens live in build/tokens.css, which the build puts first. */

  /* Spacing (4px base) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem; --space-10: 8rem;
  --space-gutter: clamp(1rem, 0.6667rem + 1.481vw, 2rem);
  --space-stack: clamp(1.5rem, 1.167rem + 1.481vw, 2.5rem);
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
  --space-hero-top: clamp(2.5rem, 1rem + 5vw, 6rem);
  --space-hero-gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --space-hero-center-top: clamp(3rem, 1.5rem + 5vw, 6rem);
  --space-hero-center-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --space-catalog-col: clamp(2rem, 5vw, 5rem);
  --space-stage-top: clamp(1.5rem, .5rem + 2vw, 2.5rem);
  --space-stage-bottom: clamp(3rem, 2rem + 4vw, 5rem);

  /* Radius */
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-pill: 999px;

  /* Type */
  --font-sans: "Satoshi", "Satoshi Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  --step-xs: clamp(0.7812rem, 0.7604rem + 0.09259vw, 0.8438rem);
  --step-sm: clamp(0.875rem, 0.8542rem + 0.09259vw, 0.9375rem);
  --step-base: clamp(1rem, 0.9583rem + 0.1852vw, 1.125rem);
  --step-md: clamp(1.094rem, 1.042rem + 0.2315vw, 1.25rem);
  --step-lg: clamp(1.188rem, 1.104rem + 0.3704vw, 1.438rem);
  --step-xl: clamp(1.375rem, 1.25rem + 0.5556vw, 1.75rem);
  --step-2xl: clamp(1.688rem, 1.458rem + 1.019vw, 2.375rem);
  --step-3xl: clamp(2.125rem, 1.75rem + 1.667vw, 3.25rem);
  --step-4xl: clamp(2.375rem, 1.833rem + 2.407vw, 4.5rem);
  --weight-regular: 400; --weight-medium: 500; --weight-bold: 700;
  /* Line lengths in em, never ch: ch follows whichever font is showing, so it changes size on the font swap.
     Font stacks may vary by installed system face; measures use em rather than font-specific character units. */
  --measure: 30em;       /* ~68 characters: body copy */
  --measure-lead: 35em;  /* ~80 characters at subhead size; subheads are short */
  --measure-head: 15.5em; /* ~33 characters: section headings */

  /* Layout */
  --container: 75rem;        /* 1200px */
  --container-wide: 85rem;   /* 1360px */
  --header-h: 4rem;

  /* Motion */
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --dur-4: 600ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 64em) { :root { --header-h: 4.5rem; } }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4)); /* keeps focused targets clear of the sticky header (WCAG 2.4.11) */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--step-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { color: var(--text-heading); font-weight: var(--weight-bold); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
code { font-family: var(--font-mono); font-size: .9em; }
::selection { background: var(--selection-bg); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  background: var(--btn-primary-bg); color: var(--btn-primary-text); font-weight: var(--weight-medium);
}
.skip-link:focus { top: var(--space-3); }

.container { width: min(100% - 2 * var(--space-gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; color: var(--text-secondary); }
.section-head { display: grid; gap: var(--space-4); max-width: 46rem; margin-bottom: var(--space-stack); }
.section-head h2 { font-size: var(--step-3xl); line-height: 1.08; letter-spacing: -0.028em; max-width: var(--measure-head); }
.lead { font-size: var(--step-md); line-height: 1.55; color: var(--text-secondary); max-width: var(--measure-lead); }
.small { font-size: var(--step-sm); color: var(--text-muted); line-height: 1.55; }
.label {
  font-size: var(--step-sm); font-weight: var(--weight-medium);
  color: var(--text-muted);
}

/* Alternating neutral section bands keep the page editorial while leaving cards white. */
main:not(.doc, .compare) > :nth-child(even of .section:not(.cta-section)) {
  background-color: var(--section-alt);
  --text-secondary: var(--text-on-section-alt);
  --text-muted: var(--text-on-section-alt);
}
/* Seams (design §5.2). Where the page changes band, a hairline marks the edge: faint at the sides, lit at its
   centre, with that light falling softly into the band below it. Each band is its own stacking context, so its
   section glow (::before, z-index -1) paints on the band instead of underneath its opaque colour. The first
   section after the homepage stage takes the same top seam. */
main:not(.doc, .compare) > :nth-child(even of .section:not(.cta-section)),
.hero--fluid + .section {
  isolation: isolate;
  background-image:
    linear-gradient(90deg, transparent, var(--seam-line) 18%, var(--seam-line-peak) 50%, var(--seam-line) 82%, transparent),
    linear-gradient(90deg, transparent, var(--seam-line) 18%, var(--seam-line-peak) 50%, var(--seam-line) 82%, transparent),
    radial-gradient(ellipse 44% 100% at 50% 0, var(--seam-glow), color-mix(in srgb, var(--seam-glow) 62%, transparent) 36%, color-mix(in srgb, var(--seam-glow) 24%, transparent) 66%, transparent);
  background-size: 100% 1px, 100% 1px, 100% min(20rem, 70%);
  background-position: 50% 0, 50% 100%, 50% 0;
  background-repeat: no-repeat;
}
/* After the stage only the top seam: its bottom edge meets another section of the same colour */
.hero--fluid + .section:not(:nth-child(even of .section:not(.cta-section))) { background-size: 100% 1px, 0 0, 100% min(20rem, 70%); }

/* ==========================================================================
   Background (docs/design.md §3, §13). One fixed layer behind everything: the base, four soft
   glows placed like light in a room (top-left of centre, lower left, lower right, a faint upper
   right) and static noise on top, which keeps the gradients from banding. Sections add their own
   glows for rhythm: the hero strongest, the final CTA next, inner-page heroes shorter, and one soft
   static glow per content section on alternating sides.
   Motion: transform and opacity only, from 1024px, with motion allowed, and only once the page has
   painted (.bg-live). Every ambient animation reads --ambient-state, which pauses it when the
   visitor or Save-Data asks (data-bg-still), in a hidden tab (.bg-hidden) and, for anything inside
   the page, when it's off screen (.is-offscreen, set by site.js).
   ========================================================================== */
:root { --ambient-state: running; }
[data-bg-still], .bg-hidden, .is-offscreen { --ambient-state: paused; }
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
/* Reading pages carry the hero's blue light across the viewport without moving behind the text. */
.bg--reading {
  background:
    radial-gradient(ellipse 85% 80% at 15% 0%, rgb(var(--bg-shape-a) / var(--glow-page-hero-alpha)), transparent 75%),
    radial-gradient(ellipse 75% 75% at 100% 100%, rgb(var(--bg-shape-b) / var(--bg-shape-b-alpha)), transparent 80%),
    var(--bg);
}
.bg--reading::after { display: none; }
/* One glow, many places: a channel colour (--c) at a peak alpha (--a), centred on --x/--y, eased off in
   four stops, so no filter: blur() is needed and the edge never shows. */
.bg-shape, .glow {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  width: var(--size); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--c) / var(--a)), rgb(var(--c) / calc(var(--a) * .62)) 36%, rgb(var(--c) / calc(var(--a) * .24)) 66%, rgb(var(--c) / 0));
}
.bg-shape--a { --c: var(--bg-shape-a); --a: var(--bg-shape-a-alpha); --size: 64vmax; --x: 38vw; --y: 4vh; }  /* top-left of centre */
.bg-shape--b { --c: var(--bg-shape-b); --a: var(--bg-shape-b-alpha); --size: 60vmax; --x: 3vw; --y: 102vh; } /* lower left: its peak just below the fold, so small print near the bottom edge never sits on it */
.bg-shape--c { --c: var(--bg-shape-c); --a: var(--bg-shape-c-alpha); --size: 54vmax; --x: 97vw; --y: 94vh; } /* lower right */
.bg-shape--d { --c: var(--bg-shape-d); --a: var(--bg-shape-d-alpha); --size: 44vmax; --x: 95vw; --y: 0vh; }  /* faint, upper right */
/* Phones and small tablets: two smaller glows, low left and low right */
@media (max-width: 47.99em) {
  .bg-shape--a, .bg-shape--d { display: none; }
  .bg-shape--b { --size: 110vw; } .bg-shape--c { --size: 95vw; }
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: var(--noise-opacity);
  background-image: var(--noise);
  background-size: 180px 180px;
}
/* Section glows. Clipped sideways so they never widen the page, but free to run past the section's top
   and bottom, so one section's light fades into the next instead of ending in a line. */
.glows { position: absolute; inset: 0; overflow: hidden; overflow: clip visible; z-index: -1; pointer-events: none; }
.glow--hero { --c: var(--glow-hero); --a: var(--glow-hero-alpha); --size: min(64rem, 150vw); --x: 40%; --y: 20%; }        /* dominant: behind the headline */
.glow--hero-deep { --c: var(--glow-hero-deep); --a: var(--glow-hero-deep-alpha); --size: min(46rem, 120vw); --x: 84%; --y: 82%; }
.glow--page-hero { --c: var(--glow-page-hero); --a: var(--glow-page-hero-alpha); --size: min(48rem, 130vw); --x: 46%; --y: 16%; }
/* The final CTA repeats the hero's light at a lower level: top-left of centre, spilling over the band's top edge, with a deep partner low right */
.glow--cta { --c: var(--glow-cta); --a: var(--glow-cta-alpha); --size: min(62rem, 150vw); --x: 38%; --y: 30%; }
.glow--cta-deep { --c: var(--glow-cta-deep); --a: var(--glow-cta-deep-alpha); --size: min(42rem, 110vw); --x: 84%; --y: 84%; }
.glow--pricing { --c: var(--glow-pricing); --a: var(--glow-pricing-alpha); --size: min(44rem, 120vw); --x: 62%; --y: 50%; }
@media (max-width: 47.99em) { .glow--hero-deep, .glow--cta-deep { display: none; } }
/* Content sections: one calm, static glow each, alternating sides (the first on the right, where the
   problem-and-fix "fix" column is). Each circle's centre sits 12% beyond the page edge, so only its soft
   falloff reaches the content column, never its peak. The layer is exactly as wide as the section, so it never widens the
   page, and one glow tall, so the whole circle fits: nothing clips it at a section edge, and a short
   section's glow fades into the next one. It starts at the section's top edge and never reaches above it,
   so a section below the fold can't push its glow into view when something above it grows (that would
   count as layout shift). Not on long-form pages, the CTA or the release-notes block under it. */
main:not(.doc, .compare) > .section:not(.cta-section)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none;
  --size: min(48rem, 110vw); --c: var(--glow-section); --a: var(--glow-section-alpha);
  height: var(--size);
  background: radial-gradient(circle calc(var(--size) / 2) at var(--glow-side, 112%) 50%, rgb(var(--c) / var(--a)), rgb(var(--c) / calc(var(--a) * .62)) 36%, rgb(var(--c) / calc(var(--a) * .24)) 66%, rgb(var(--c) / 0));
}
main:not(.doc, .compare) > :nth-child(even of .section:not(.cta-section)) { --glow-side: -12%; }
@media (prefers-reduced-motion: no-preference) and (min-width: 64em) {
  .bg-live .bg-shape--a { animation: bg-a 34s var(--ease-in-out) infinite; }
  .bg-live .bg-shape--b { animation: bg-b 27s var(--ease-in-out) infinite; }
  .bg-live .bg-shape--c { animation: bg-c 23s var(--ease-in-out) infinite; }
  .bg-live .bg-shape--d { animation: bg-d 37s var(--ease-in-out) infinite; }
  .bg-live :is(.glow--hero, .glow--page-hero) { animation: bg-hero 29s var(--ease-in-out) infinite; }
  .bg-live .glow--hero-deep { animation: bg-hero-deep 31s var(--ease-in-out) infinite; }
  .bg-live .glow--cta { animation: bg-cta 25s var(--ease-in-out) infinite; }
  .bg-live .glow--cta-deep { animation: bg-hero-deep 33s var(--ease-in-out) infinite; }
  .bg-live :is(.bg-shape, .glow) { animation-play-state: var(--ambient-state); }
}
/* Each loop returns to its start, which is also the still frame. Opacity only ever dims (≤ 1), so the
   still frame is the brightest each glow gets; small moves (3–6vw over 8–15 s) keep it unnoticed at a glance. */
@keyframes bg-a { 0%, 100% { transform: none; opacity: 1; } 33% { transform: translate3d(4vw, 3vh, 0) scale(1.07); opacity: .84; } 66% { transform: translate3d(-3vw, 5vh, 0) scale(.94); opacity: .92; } }
@keyframes bg-b { 0%, 100% { transform: none; opacity: 1; } 40% { transform: translate3d(5vw, -4vh, 0) scale(1.06); opacity: .8; } 75% { transform: translate3d(2vw, -7vh, 0) scale(.95); opacity: .9; } }
@keyframes bg-c { 0%, 100% { transform: none; opacity: 1; } 35% { transform: translate3d(-4vw, -5vh, 0) scale(.93); opacity: .82; } 70% { transform: translate3d(-2vw, 3vh, 0) scale(1.06); opacity: .9; } }
@keyframes bg-d { 0%, 100% { transform: none; opacity: 1; } 45% { transform: translate3d(-5vw, 5vh, 0) scale(1.08); opacity: .78; } 80% { transform: translate3d(-7vw, 2vh, 0) scale(.95); opacity: .88; } }
@keyframes bg-hero { 0%, 100% { transform: none; opacity: 1; } 40% { transform: translate3d(3rem, 1.5rem, 0) scale(1.06); opacity: .86; } 75% { transform: translate3d(-2rem, 2.5rem, 0) scale(.95); opacity: .93; } }
@keyframes bg-hero-deep { 0%, 100% { transform: none; opacity: 1; } 45% { transform: translate3d(-3rem, -2rem, 0) scale(1.08); opacity: .8; } 80% { transform: translate3d(-1rem, 1.5rem, 0) scale(.94); opacity: .9; } }
@keyframes bg-cta { 0%, 100% { transform: none; opacity: 1; } 35% { transform: translate3d(-3rem, 1rem, 0) scale(1.05); opacity: .85; } 70% { transform: translate3d(2.5rem, -1rem, 0) scale(.96); opacity: .92; } }
/* The hero constellation (assets/constellation.js). Only from 1024px: below that the hero is one
   column and there is no free space beside the text. */
.constellation { display: none; }
@media (min-width: 64em) {
  .constellation { display: block; position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sky-color); }
}

/* ==========================================================================
   Glass system v2 (design §12). Three glass levels plus a plain card; one light,
   from the top-left. Literal blur values: Safari mishandles var() inside
   -webkit-backdrop-filter, so never tokenise them. Blur only where detail passes
   behind: the header (site-header::after) and the hero demo (.glass--3.is-blurred).
   ========================================================================== */
/* Registered so the edge can ease on hover; without @property it changes at once. */
@property --edge-peak { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --edge-a { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --edge-b { syntax: "<color>"; inherits: true; initial-value: transparent; }
.glass {
  position: relative;
  isolation: isolate;
  --text-secondary: var(--text-on-surface);
  --text-muted: var(--text-on-surface);
  border-radius: var(--radius-lg);
  background:
    var(--glass-noise) 0 0 / 140px 140px,                                  /* frosted texture; also breaks up banding */
    radial-gradient(120% 90% at 0 0, var(--glass-sheen), transparent 60%), /* light gathering at the top-left */
    var(--glass-bg);
  box-shadow: var(--halo, 0 0 0 0 transparent), inset 0 1px 0 0 var(--glass-hi), var(--glass-glow), var(--glass-shadow);
}
.glass::before { /* 1px edge ring, masked to a ring: brightest at the top-left, over a base hairline */
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--edge-peak), transparent 46%), linear-gradient(135deg, var(--edge-a) 40%, var(--edge-b));
  -webkit-mask: linear-gradient(var(--mask-ink) 0 0) content-box, linear-gradient(var(--mask-ink) 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(var(--mask-ink) 0 0) content-box exclude, linear-gradient(var(--mask-ink) 0 0);
}
.glass--1 {
  --glass-bg: var(--glass-1-bg); --glass-sheen: var(--glass-1-sheen); --glass-hi: var(--glass-1-hi); --glass-glow: var(--glass-1-glow);
  --edge-peak: var(--glass-1-edge-peak); --edge-a: var(--glass-1-edge-a); --edge-b: var(--glass-1-edge-b);
  --glass-shadow: var(--glass-1-shadow); --glass-solid: var(--glass-1-solid);
}
.glass--2 {
  --glass-bg: var(--glass-2-bg); --glass-sheen: var(--glass-2-sheen); --glass-hi: var(--glass-2-hi); --glass-glow: var(--glass-2-glow);
  --edge-peak: var(--glass-2-edge-peak); --edge-a: var(--glass-2-edge-a); --edge-b: var(--glass-2-edge-b);
  --glass-shadow: var(--glass-2-shadow); --glass-solid: var(--glass-2-solid);
}
.glass--3 {
  --glass-bg: var(--glass-3-bg); --glass-sheen: var(--glass-3-sheen); --glass-hi: var(--glass-3-hi); --glass-glow: var(--glass-3-glow);
  --edge-peak: var(--glass-3-edge-peak); --edge-a: var(--glass-3-edge-a); --edge-b: var(--glass-3-edge-b);
  --glass-shadow: var(--glass-3-shadow); --glass-solid: var(--glass-3-solid);
}
/* Overlay: menus, modals, drawers. Focal glass made opaque, never blurred (§12.4). */
.glass--overlay {
  --glass-bg: var(--bg-panel); --glass-sheen: var(--glass-3-sheen); --glass-hi: var(--glass-3-hi); --glass-glow: var(--glass-3-glow);
  --edge-peak: var(--glass-3-edge-peak); --edge-a: var(--glass-3-edge-a); --edge-b: var(--glass-3-edge-b);
  --glass-shadow: var(--shadow-menu); --glass-solid: var(--bg-panel);
}
/* The demo receives light frost on larger screens; broad content cards stay unblurred. */
@media (min-width: 48em) {
  .glass--3.is-blurred { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
/* Plain card: the surface where nothing sits behind to frost (§12.4). */
.surface {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-plain);
  box-shadow: var(--halo, 0 0 0 0 transparent), 0 0 0 1px var(--border-subtle), var(--shadow-1);
}

/* Interactive cards: the whole card is one link (.tile-link). Hover lights the edge and deepens the shadow,
   one signal and no lift (Hallmark 11); pressed settles back; focus draws the ring outside the card with a halo in the gap (§12.10).
   The deeper shadow and the pointer spotlight live on ::after and fade by opacity only. */
.glass--interactive::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: var(--glass-1-shadow-hover);
  background: radial-gradient(280px circle at var(--mx, 30%) var(--my, 0%), var(--glass-spot), transparent 70%);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-standard);
}
.glass--interactive { transition: --edge-peak var(--dur-2) var(--ease-standard), --edge-a var(--dur-2) var(--ease-standard), --edge-b var(--dur-2) var(--ease-standard); }
.glass--interactive:hover {
  --edge-peak: var(--glass-1-edge-peak-hover); --edge-a: var(--glass-1-edge-a-hover); --edge-b: var(--glass-1-edge-b-hover);
  --glass-hi: var(--glass-1-hi-hover); --glass-sheen: var(--glass-1-sheen-hover);
}
.glass--interactive:hover::after { opacity: 1; }
.surface--interactive:hover { box-shadow: 0 0 0 1px var(--border-chip), var(--shadow-2); }
.glass--interactive:active, .surface--interactive:active { transition-duration: var(--dur-1); }
.glass--interactive:active {
  --edge-peak: var(--glass-1-edge-peak); --edge-a: var(--glass-1-edge-a); --edge-b: var(--glass-1-edge-b); --glass-hi: var(--glass-1-hi); --glass-sheen: var(--glass-1-sheen);
}
.glass--interactive:active::after { opacity: 0; }
.glass:has(.tile-link:focus-visible), .surface:has(.tile-link:focus-visible) {
  outline: 2px solid var(--focus); outline-offset: 3px; --halo: 0 0 0 3px var(--focus-halo);
}

/* Glow pools: colour behind a card group for the glass to frost (§12.8). The pool is a static radial
   gradient on the group's own layer, so it follows the cards; it reaches 12% above and below the group
   but never wider, so it can't widen the page. */
.has-pool { position: relative; isolation: isolate; }
.has-pool::before {
  content: ""; position: absolute; inset: -12% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at var(--pool-x, 38%) var(--pool-y, 42%), var(--pool, var(--pool-a)), transparent);
}
.has-pool--b { --pool: var(--pool-b); }
/* A long grid: two pools, top-left and mid-right, never two in one viewport height */
.has-pool--tall::before {
  inset: 0;
  background: radial-gradient(40rem 26rem at 26% 12rem, var(--pool-a), transparent), radial-gradient(40rem 26rem at 74% 58%, var(--pool-a), transparent);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass.is-blurred, .site-header::after { background: var(--glass-solid, var(--header-glass-bg, var(--bg-panel))); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-noise) 0 0 / 140px 140px, var(--glass-solid); -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass--interactive::after { background: none; }
  .site-header::after { background: var(--bg-panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .glass, .surface { background: Canvas; border: 1px solid CanvasText; }
  .glass::before, .glass::after, .has-pool::before, .section::before, .section--tour-bg::after, .bg, .glow, .constellation { display: none; }
  main > .section { background-image: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-size: var(--step-sm); font-weight: var(--weight-medium); line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard),
              color var(--dur-2) var(--ease-standard), box-shadow var(--dur-3) var(--ease-standard);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--lg { min-height: 52px; padding: 0 var(--space-6); font-size: var(--step-base); }
.btn--primary {
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  box-shadow: var(--btn-primary-shadow);
}
.btn--primary:hover { background: var(--btn-primary-bg-hover); color: var(--btn-primary-text); box-shadow: var(--btn-primary-shadow-hover); }
.btn--primary:active { background: var(--btn-primary-bg-active); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn--primary:disabled, .btn--primary[aria-disabled="true"] { background: var(--btn-primary-bg); }
.btn--secondary { background: var(--btn-secondary-bg); border-color: var(--border-control); color: var(--text-primary); box-shadow: var(--btn-secondary-shadow); }
.btn--secondary:hover { background: var(--btn-secondary-bg-hover); border-color: var(--border-control-hover); color: var(--text-primary); }
.btn--ghost { padding: 0 var(--space-3); color: var(--link); }
.btn--ghost:hover { background: var(--fill-hover); color: var(--link-hover); }
/* The hover lift and press of primary and secondary buttons are springs in assets/motion.js (design §8). */
@media (prefers-reduced-motion: no-preference) {
  .btn .icon--arrow { transition: transform var(--dur-2) var(--ease-standard); }
  .btn:hover .icon--arrow { transform: translateX(3px); }
}

/* ==========================================================================
   Badge, status chip, placeholder
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: .375em;
  min-height: 1.75rem; padding: .25rem .625rem; border-radius: var(--radius-pill); /* 4px above and below, so a badge that wraps keeps its breathing room (Hallmark 72) */
  font-size: var(--step-xs); font-weight: var(--weight-medium); line-height: 1.3;
  background: var(--badge-bg); color: var(--badge-text); border: 1px solid var(--badge-border);
}
.badge .icon { width: 1.05em; height: 1.05em; }
.status {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px; padding: .25rem .875rem .25rem .75rem; border-radius: var(--radius-pill);
  font-size: var(--step-sm); font-weight: var(--weight-medium); text-decoration: none; line-height: 1.3;
  border: 1px solid transparent;
}
.status .icon { width: 1.1em; height: 1.1em; }
.status--done { background: var(--tone-success-bg); color: var(--tone-success-text); border-color: var(--tone-success-border); }
.status--wait { background: var(--tone-info-bg); color: var(--tone-info-text); border-color: var(--tone-info-border); }
.status--read { background: var(--tone-neutral-bg); color: var(--tone-neutral-text); border-color: var(--tone-neutral-border); }
.ph { /* prototype placeholder: must never ship */
  display: inline-block; padding: 0 .4em; border: 1px dashed var(--ph-border); border-radius: var(--radius-xs);
  color: var(--ph-text); background: var(--fill-rest);
}

/* ==========================================================================
   Header (sticky glass) and mobile menu
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; }
/* Blur lives on a pseudo-layer so the header never becomes a containing block for its children. */
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass-noise) 0 0 / 140px 140px, var(--header-glass-bg);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
  border-bottom: 1px solid var(--header-glass-border);
  transition: background-color var(--dur-3) var(--ease-standard), border-color var(--dur-3) var(--ease-standard), box-shadow var(--dur-3) var(--ease-standard);
}
.site-header.is-scrolled::after { box-shadow: var(--header-glass-shadow); }
.site-header.is-open::after {
  background: var(--bg-panel); border-bottom-color: var(--header-glass-border);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .site-header::after, .glass--interactive, .glass--interactive::after { transition: none; }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  height: var(--header-h); width: min(100% - 2 * var(--space-gutter), var(--container)); margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand .logo { display: block; height: 1.75rem; width: auto; aspect-ratio: 1650.65 / 344; }   /* the mark is the full height */
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-width: 44px; min-height: 44px; padding: 0 .625rem; border-radius: var(--radius-pill);
  background: transparent; border: 1px solid var(--border-control); cursor: pointer; color: var(--text-primary);
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.header-cta { padding-inline: var(--space-4); }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-panel); /* solid, not blurred: large area on phones */
  border-bottom: 1px solid var(--header-glass-border);
  box-shadow: var(--shadow-menu);
  padding: var(--space-2) var(--space-gutter) var(--space-5);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; }
.mobile-menu :is(a, .link-planned) {
  display: flex; align-items: center; min-height: 52px; padding-inline: var(--space-2);
  color: var(--text-primary); text-decoration: none; font-size: var(--step-lg); font-weight: var(--weight-medium);
  border-bottom: 1px solid var(--border-faint);
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: menu-in var(--dur-3) var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 56em) {
  .nav-desktop { display: block; }
  .nav-list { display: flex; gap: var(--space-1); padding: 0; margin: 0; }
  .nav-list > li > :is(a, .link-planned) {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
    color: var(--text-primary); text-decoration: none; font-size: var(--step-sm); font-weight: var(--weight-medium);
    transition: color var(--dur-2) var(--ease-standard), background-color var(--dur-2) var(--ease-standard);
  }
  .nav-list > li > a:hover { color: var(--text-primary); background: var(--fill-hover); }
  .menu-btn, .mobile-menu { display: none !important; }
  .header-cta { padding-inline: var(--space-5); }
}
@media (max-width: 23.74em) { .brand .logo { height: 1.5rem; } .header-cta { padding-inline: .875rem; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: var(--space-hero-top) var(--space-section); }
.hero > .glows { top: calc(var(--header-h) * -1); } /* run the glow up behind the transparent header, so it is clipped at the page top, not in mid-air */
.hero-grid { display: grid; gap: var(--space-hero-gap); align-items: center; }
.hero-copy { display: grid; gap: var(--space-5); justify-items: start; }
.hero h1 { font-size: var(--step-4xl); line-height: 1.04; letter-spacing: -0.034em; max-width: 10em; }
.hero .lead { max-width: 26em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 29.99em) { .hero-copy .cta-row { width: 100%; } .hero-copy .cta-row .btn { flex: 1 1 100%; } }
.microcopy { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding: 0; list-style: none; font-size: var(--step-sm); color: var(--text-muted); }
.microcopy li { display: inline-flex; align-items: center; gap: .4em; }
.microcopy .icon { color: var(--success); }
@media (min-width: 64em) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}
/* Homepage hero: one centred column, then the reassurance row and the compact "Works with" row */
.hero--center { padding-block: var(--space-hero-center-top) var(--space-hero-center-bottom); text-align: center; }
.hero--center .hero-copy { justify-items: center; max-width: 52rem; margin-inline: auto; gap: var(--space-6); }
.hero--center h1 { max-width: 12.5em; }
/* Three balanced lines of about 64 characters on desktop; without balance, at most 67 */
.hero--center .lead { max-width: 31.5em; margin-top: calc(var(--space-2) * -1); text-wrap: balance; }
.lead-em { font-weight: var(--weight-medium); color: var(--text-accent); }
.hero--center .cta-row { justify-content: center; }
/* Reassurance: quieter than the buttons. Two columns on phones (one below 24em), one line from 48em */
.hero--center .microcopy {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center;
  gap: var(--space-2) var(--space-5); text-align: start; margin-top: calc(var(--space-2) * -1);
}
.hero--center .microcopy li { align-items: flex-start; }
.hero--center .microcopy .icon { width: 1em; height: 1em; margin-top: .25em; }
@media (max-width: 23.99em) { .hero--center .microcopy { grid-template-columns: minmax(0, max-content); } }
@media (min-width: 52em) {
  .hero--center .microcopy { display: flex; flex-wrap: nowrap; gap: var(--space-6); }
  .hero--center .microcopy li { white-space: nowrap; }
}
/* Current MCP clients: brand marks identify the app; registry status remains visible on each card. */
.works-with {
  display: grid; justify-items: center; gap: var(--space-3);
  width: min(100%, 52rem); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle);
}
.works-with-heading { display: grid; justify-items: center; gap: var(--space-2); }
.works-with-heading .label { color: var(--text-heading); font-weight: var(--weight-bold); }
.works-with-intro { max-width: 42em; color: var(--text-secondary); font-size: var(--step-sm); }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); width: 100%; padding: 0; list-style: none; text-align: start; }
.client-link {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2);
  border: 1px solid transparent; border-radius: var(--radius-md); background: transparent;
  color: var(--text-primary); text-decoration: none; text-align: start;
  transition: color var(--dur-2) var(--ease-standard), background-color var(--dur-2) var(--ease-standard);
}
.client-link:is(:hover, :focus-visible) { color: var(--text-primary); background: var(--fill-hover); }
.client-mark { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; }
.client-mark img { display: block; width: 1.5rem; height: 1.5rem; object-fit: contain; }
.client-initials { font-size: var(--step-sm); font-weight: var(--weight-bold); color: var(--text-muted); }
.client-mark .mark--dark { display: none; }
:root[data-theme="dark"] .client-mark .mark--light, .on-stage .client-mark .mark--light { display: none; }
:root[data-theme="dark"] .client-mark .mark--dark, .on-stage .client-mark .mark--dark { display: block; }
:root[data-theme="dark"] :is(.client-mark--chatgpt, .client-mark--cursor) img { filter: invert(1); }
.client-copy { display: grid; min-width: 0; gap: .25rem; justify-items: start; }
.client-copy strong { font-size: var(--step-sm); font-weight: var(--weight-bold); }
.client-note { color: var(--text-muted); font-size: var(--step-xs); line-height: 1.35; }
.client-copy .badge { margin-top: .125rem; }
.works-with-disclaimer { color: var(--text-muted); font-size: var(--step-xs); }
.more-clients { width: 100%; text-align: start; }
.more-clients > summary { padding-inline: var(--space-2); }
.more-clients > .client-grid { padding-block: var(--space-2); }
@media (min-width: 52em) {
  .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 23.99em) {
  .client-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Demo panel ("Ask your AI") */
/* The panel stays dark, with an opaque base so light page backgrounds cannot show through. */
.demo.on-stage { --glass-bg: var(--demo-glass-bg); color: var(--text-secondary); }
.demo { padding: var(--space-4); display: grid; gap: var(--space-4); }
@media (min-width: 30em) { .demo { padding: var(--space-5); } }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-inline: var(--space-1); }
.demo-title { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--step-base); font-weight: var(--weight-bold); color: var(--text-heading); }
.demo-title .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--live-dot-ring); }
.demo-pause {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .875rem;
  border-radius: var(--radius-pill); border: 1px solid var(--border-control); background: var(--fill-rest);
  font-size: var(--step-sm); font-weight: var(--weight-medium); color: var(--text-primary); cursor: pointer;
}
.demo-pause:hover { background: var(--fill-active); }
.demo-pause .icon-play { display: none; }
.demo-pause[aria-pressed="true"] .icon-play { display: block; }
.demo-pause[aria-pressed="true"] .icon-pause { display: none; }
.reduced .demo-pause { display: none; }
.convo {
  display: grid; /* every exchange shares one cell, so the panel is always as tall as the tallest one: no layout shift */
  border-radius: var(--radius-md); background: var(--well-bg);
  border: 1px solid var(--border-faint); padding: var(--space-4);
}
.exchange { grid-area: 1 / 1; display: grid; align-content: start; gap: var(--space-3); visibility: hidden; }
.exchange.is-active { visibility: visible; }
.msg { max-width: 92%; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--step-sm); line-height: 1.55; }
.msg--user { justify-self: end; background: var(--bubble-user-bg); color: var(--bubble-user-text); border-bottom-right-radius: var(--radius-xs); box-shadow: var(--bubble-user-shadow); }
.msg--user .rest { color: transparent; }
.working { display: grid; gap: .25rem; padding: 0 .25rem; list-style: none; font-size: var(--step-xs); color: var(--text-on-section-soft); }
.working li { display: flex; align-items: center; gap: .5rem; }
.working li::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--working-dot); flex: none; }
.msg--ai { justify-self: start; display: grid; gap: var(--space-3); background: var(--bubble-ai-bg); border: 1px solid var(--border-faint); border-bottom-left-radius: var(--radius-xs); color: var(--text-secondary); }
.msg--ai .status { justify-self: start; }
.needs { font-size: var(--step-xs); color: var(--text-muted); }
.demo-prompts { display: grid; gap: var(--space-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.chip {
  min-height: 44px; padding: 0 .875rem; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--fill-rest); border: 1px solid var(--border-chip); color: var(--text-secondary);
  font-size: var(--step-xs); font-weight: var(--weight-medium);
  transition: background-color var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard), color var(--dur-2) var(--ease-standard);
}
.chip:hover { background: var(--fill-active); color: var(--text-primary); }
.chip[aria-selected="true"] { background: var(--selected-bg); border-color: var(--selected-border); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--selected-ring); }
.demo-notes { display: grid; gap: .25rem; margin-top: var(--space-4); font-size: var(--step-xs); color: var(--text-muted); max-width: 40em; }
/* The demo pairs a vertical example selector with a readable, chat-style conversation. */
@media (min-width: 48em) { .demo { padding: var(--space-6); gap: var(--space-5); } }
.demo-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.demo-prompts { justify-items: stretch; align-content: start; gap: var(--space-3); text-align: start; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.chip { width: 100%; min-height: 48px; padding-inline: var(--space-3); border-radius: var(--radius-md); text-align: start; white-space: normal; }
.chip[aria-selected="true"] { font-weight: var(--weight-bold); }
.exchange { justify-self: stretch; width: 100%; }
@media (min-width: 48em) { .convo { padding: var(--space-6) var(--space-5); } }
.demo + .demo-notes { margin-inline: 0; text-align: start; }
@media (max-width: 29.99em) { .chips { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 64em) {
  .demo-workspace { grid-template-columns: minmax(12rem, .32fr) minmax(0, 1fr); gap: var(--space-6); }
  .chips { grid-template-columns: minmax(0, 1fr); }
  .convo { min-height: 23rem; }
}
/* Switching examples: the outgoing exchange stays visible while it fades out under the new one (motion.js). */
.exchange.is-leaving { visibility: visible; pointer-events: none; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: grid; gap: var(--space-4); counter-reset: step; padding: 0; list-style: none; }
.step { padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
@media (min-width: 30em) { .step { padding: var(--space-6); } }
.step-num {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-weight: var(--weight-bold); color: var(--step-disc-text); font-size: var(--step-base);
  background: var(--step-disc-bg);
  box-shadow: var(--step-disc-shadow);
  margin-bottom: var(--space-2);
}
.step h3 { font-size: var(--step-lg); line-height: 1.3; letter-spacing: -0.012em; }
.step p { color: var(--text-secondary); }
.after-grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-stack); }
/* On phones a button that carries a badge lets the badge drop to its own line instead of running off the screen */
@media (max-width: 29.99em) { .btn:has(.badge) { flex-wrap: wrap; max-width: 100%; padding-block: var(--space-2); } }
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
}
/* Homepage workflow: a short vertical sequence on phones, a connected three-card row on desktop. */
.workflow-steps { position: relative; display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.workflow-step { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: start; gap: var(--space-3); }
.workflow-step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0; left: 1.4375rem; top: 3rem; bottom: calc(-1 * var(--space-3));
  border-left: 1px solid var(--border-subtle);
}
.workflow-icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 1px solid var(--border-subtle); border-radius: 50%; background: var(--bg); color: var(--icon-accent);
}
.workflow-icon .icon { width: 1.25rem; height: 1.25rem; }
.workflow-card {
  display: grid; align-content: start; gap: var(--space-2); min-height: 100%; padding: var(--space-4);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-raised);
}
.workflow-index { color: var(--text-accent); font-size: var(--step-xs); font-weight: var(--weight-bold); }
.workflow-card h3 { font-size: var(--step-lg); line-height: 1.3; letter-spacing: -0.012em; }
.workflow-card > p:last-child { color: var(--text-secondary); }
@media (min-width: 64em) {
  .workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  .workflow-steps::before { content: ""; position: absolute; z-index: 0; top: 1.4375rem; left: 16.67%; right: 16.67%; border-top: 1px solid var(--border-subtle); }
  .workflow-step { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-4); }
  .workflow-step:not(:last-child)::after { display: none; }
  .workflow-card { width: 100%; min-height: 11rem; }
}

/* Config block with copy button */
.config { margin-top: var(--space-2); border-radius: var(--radius-md); background: var(--code-bg); border: 1px solid var(--border-subtle); overflow: hidden; }
.config-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: .25rem .25rem .25rem .875rem; border-bottom: 1px solid var(--border-faint); }
.config-head .label { font-size: var(--step-xs); }
.copy-btn {
  display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; min-width: 44px; padding: 0 .75rem;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--link); cursor: pointer;
  font-size: var(--step-xs); font-weight: var(--weight-medium);
}
.copy-btn:hover { background: var(--fill-hover); color: var(--link-hover); }
.copy-btn .icon-done { display: none; color: var(--success); }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-done { display: block; }
.config pre { margin: 0; padding: .875rem; font-family: var(--font-mono); font-size: var(--step-xs); line-height: 1.6; color: var(--code-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.config pre span { white-space: nowrap; } /* wrap only after a slash (via <wbr>), never at the hyphen in "wp-json" */

/* ==========================================================================
   Feature grid
   ========================================================================== */
.tiles { display: grid; gap: var(--space-4); padding: 0; list-style: none; }
@media (min-width: 40em) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.tile { padding: var(--space-5); display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-3); }
@media (min-width: 30em) { .tile { padding: var(--space-6); } }
/* The icon stands at text size in the accent, with no coin behind it (Hallmark 3, F5): the title leads the card */
.tile-icon { display: grid; place-items: center start; width: 1.5rem; height: 1.5rem; color: var(--icon-accent); }
.tile-icon .icon { width: 1.375rem; height: 1.375rem; }
.tile h3 { font-size: var(--step-lg); line-height: 1.3; letter-spacing: -0.012em; } /* one title size across card families */
.tile p { color: var(--text-secondary); font-size: var(--step-sm); line-height: 1.6; }
.tile .badge { justify-self: start; }
/* Features page: task-based groups keep the full capability set scannable. */
.feature-groups { display: grid; gap: var(--space-8); }
.feature-group { display: grid; gap: var(--space-4); }
.feature-group > h2 { font-size: var(--step-2xl); letter-spacing: -0.02em; }
.feature-grid { margin-top: 0; }
.feature-grid .tile--featured { border-color: var(--selected-border); background: var(--selected-bg); }
/* Compact grid under the demo: icon and title share a row; the line and any badge run below */
.tiles--compact { margin-top: var(--space-stack); }
.tiles--compact .tile { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-5); }
.tiles--compact .tile-icon { width: 1.5rem; height: 1.5rem; }
.tiles--compact .tile-icon .icon { width: 1.25rem; height: 1.25rem; }
.tiles--compact .tile h3 { font-size: var(--step-base); }
.tiles--compact .tile p, .tiles--compact .tile .badge { grid-column: 1 / -1; }
.tiles--compact .tile p { align-self: start; }
.tiles--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-catalog-col); }
.tiles--catalog .tile {
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: start;
  gap: var(--space-2) var(--space-4); padding: var(--space-5) 0; border: 0; border-bottom: 1px solid var(--border-subtle);
  border-radius: 0; background: transparent; box-shadow: none;
}
.tiles--catalog .tile::before, .tiles--catalog .tile::after { display: none; }
.tiles--catalog .tile-icon { grid-row: 1 / span 2; width: 2rem; height: 2rem; background: transparent; box-shadow: none; color: var(--icon-accent); }
.tiles--catalog .tile-icon .icon { width: 1.25rem; height: 1.25rem; }
.tiles--catalog .tile h3 { grid-column: 2; align-self: center; font-size: var(--step-lg); }
.tiles--catalog .tile p, .tiles--catalog .tile .badge { grid-column: 2; }
@media (max-width: 39.99em) { .tiles--catalog { grid-template-columns: minmax(0, 1fr); } }
.after-grid--center { justify-content: center; }

/* ==========================================================================
   Pricing pair
   ========================================================================== */
.plans { display: grid; gap: var(--space-5); align-items: stretch; max-width: 58rem; padding: 0; list-style: none; }
@media (min-width: 48em) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { padding: var(--space-6); display: grid; gap: var(--space-5); align-content: start; }
.plan-head { display: grid; gap: var(--space-2); }
.plan-name { font-size: var(--step-lg); }
.plan-price { font-size: var(--step-3xl); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; color: var(--text-heading); letter-spacing: -0.03em; line-height: 1.1; }
.plan-price small { font-size: var(--step-sm); font-weight: var(--weight-regular); color: var(--text-muted); letter-spacing: 0; }
.plan .btn { width: 100%; }
.checklist { display: grid; gap: var(--space-3); padding: 0; list-style: none; font-size: var(--step-sm); }
.checklist li { display: flex; gap: .625rem; align-items: flex-start; }
.checklist .icon { color: var(--success); margin-top: .15em; }
.plan--highlight { --edge-peak: var(--plan-highlight-edge-peak); --edge-a: var(--plan-highlight-edge-base); --edge-b: var(--plan-highlight-edge-base); --glass-shadow: var(--plan-highlight-shadow); }
@media (min-width: 48em) { .plan--highlight { margin-block: calc(var(--space-4) * -1); padding-block: calc(var(--space-6) + var(--space-4)); } }
.plan-flag { justify-self: start; }
.fine-print { display: grid; gap: var(--space-2); margin-top: var(--space-6); max-width: 58rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-subtle); background: var(--footer-bg); padding-block: var(--space-9) var(--space-6); }
.footer-grid { display: grid; gap: var(--space-7); }
.footer-brand { display: grid; gap: var(--space-4); justify-items: start; max-width: 24rem; }
.footer-brand p { color: var(--text-muted); font-size: var(--step-sm); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.footer-nav h2 { font-size: var(--step-sm); font-weight: var(--weight-bold); color: var(--text-heading); margin-bottom: var(--space-2); }
.footer-nav ul { display: grid; padding: 0; list-style: none; }
.footer-nav :is(a, .link-planned) { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text-secondary); text-decoration: none; font-size: var(--step-sm); }
.footer-nav a:hover { color: var(--text-primary); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.footer-legal { flex: 1 1 24rem; font-size: var(--step-xs); color: var(--text-muted); }
@media (min-width: 48em) { .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   Scroll reveals (design §8): assets/motion.js parks content below the window with data-reveal (dimmed,
   at its start offset) and plays it in with Anime.js as it arrives. Dimmed, not hidden, so a crawler
   that renders without scrolling still sees the text; motion.js sets --reveal-rest. Only the script sets
   the mark, so without it nothing is dimmed.
   ========================================================================== */
[data-reveal] { opacity: var(--reveal-rest, .3); }
@media print { [data-reveal] { opacity: 1; transform: none !important; } }

/* ==========================================================================
   v2 ======================================================================
   ========================================================================== */

.section--tight { padding-block: calc(var(--space-section) * .7); }
.center { text-align: center; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center h2, .section-head--center .lead { margin-inline: auto; }
.icon--sm { width: 1em; height: 1em; }
.stack { display: grid; gap: var(--space-4); }

/* ==========================================================================
   Announcement bar (design §6.18)
   ========================================================================== */
.announce {
  position: relative; z-index: 51; background: var(--announce-bg); color: var(--announce-text);
  border-bottom: 1px solid var(--announce-border); font-size: var(--step-sm); line-height: 1.28;
  --focus: var(--announce-focus);
}
.announce[hidden], .announce [hidden] { display: none; }
.announce-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  width: min(100% - 2 * var(--space-gutter), var(--container)); margin-inline: auto;
}
.announce-message { min-width: 0; }
.announce .announce-link {
  display: grid; align-content: center; min-height: 44px; padding-block: var(--space-1);
  color: inherit; text-align: center; text-decoration: none; overflow-wrap: anywhere;
}
.announce-label {
  display: inline-block; margin-inline-end: var(--space-1);
  font-size: var(--step-xs); font-weight: var(--weight-bold);
}
.announce-cta {
  display: inline-flex; align-items: center; gap: .35em; margin-inline-start: var(--space-1);
  max-inline-size: calc(100% - var(--space-1)); color: var(--announce-link); font-weight: var(--weight-bold);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.announce-link:is(:hover, :focus-visible, :active) .announce-cta {
  color: var(--announce-link-hover); text-decoration-thickness: 2px;
}
.announce-close {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--announce-text); cursor: pointer;
}
.announce-close .icon { width: 1rem; height: 1rem; }
.announce-link:focus-visible, .announce-close:focus-visible { outline-offset: -2px; }
.announce-close:enabled:hover { background: var(--announce-hover); }
.announce-close:enabled:active { background: var(--announce-border); }
.announce-close:disabled { opacity: .65; cursor: not-allowed; }
@media (width > 42em) {
  .announce-inner:has(.announce-close:not([hidden])) { padding-inline-start: 44px; }
}

/* Sale capsule with an opaque teal fill and a highlight from the top-left (design §4.3). */
.announce:has(.announce-message--sale:not([hidden])) {
  background: var(--stage-bg); border-bottom: 0; padding-block-start: var(--space-1);
}
.announce .announce-inner:has(.announce-message--sale:not([hidden])) {
  isolation: isolate;
  width: fit-content; max-width: min(100% - 2 * var(--space-gutter), var(--container));
  padding-inline: var(--space-4) 0;
  border-radius: var(--radius-pill);
  background:
    var(--glass-noise) 0 0 / 140px 140px,
    radial-gradient(120% 160% at 0 0, var(--announce-sale-sheen), transparent 55%),
    var(--announce-sale-bg);
  box-shadow: var(--announce-sale-glow), var(--announce-sale-shadow);
}
.announce-inner:has(.announce-message--sale:not([hidden])):has(.announce-close[hidden]) {
  padding-inline-end: var(--space-4);
}
.announce-inner:has(.announce-message--sale:not([hidden]))::before { /* the glass edge ring (§4.4) */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--announce-sale-edge-peak), var(--announce-sale-border) 60%);
  -webkit-mask: linear-gradient(var(--mask-ink) 0 0) content-box, linear-gradient(var(--mask-ink) 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(var(--mask-ink) 0 0) content-box exclude, linear-gradient(var(--mask-ink) 0 0);
}
.announce-sale-offer strong {
  color: var(--announce-link); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums;
}
.announce-sale-end {
  display: inline-block; max-inline-size: 100%; color: var(--announce-sale-muted); font-size: var(--step-xs);
}

@media (max-width: 42em) {
  .announce .announce-link { text-align: start; }
  .announce .announce-inner:has(.announce-message--sale:not([hidden])) {
    width: 100%; padding-inline-start: var(--space-3); border-radius: var(--radius-lg);
  }
  .announce-sale-brand { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .announce-inner:has(.announce-message--sale:not([hidden])) { background: var(--announce-sale-bg); }
}
@media (forced-colors: active) {
  .announce-inner:has(.announce-message--sale:not([hidden])) { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
  .announce-inner:has(.announce-message--sale:not([hidden]))::before { display: none; }
}

/* ==========================================================================
   Desktop mega menu (design §4.18): disclosure buttons, solid panels
   ========================================================================== */
.nav-trigger {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-primary); font-size: var(--step-sm); font-weight: var(--weight-medium); cursor: pointer;
  transition: color var(--dur-2) var(--ease-standard), background-color var(--dur-2) var(--ease-standard);
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text-primary); background: var(--fill-hover); }
.nav-trigger .icon { width: 1rem; height: 1rem; transition: transform var(--dur-2) var(--ease-standard); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% - .25rem); left: 50%; translate: -50% 0;
  width: min(100% - 2 * var(--space-gutter), var(--container));
  padding: var(--space-5); /* overlay glass (.glass--overlay): solid, never blurred */
}
.mega[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .mega:not([hidden]) { animation: menu-in var(--dur-3) var(--ease-out); } }
.mega-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.mega-group { display: grid; align-content: start; gap: var(--space-1); }
.mega-label { margin: 0 0 var(--space-2) .75rem; font-size: var(--step-sm); font-weight: var(--weight-medium); color: var(--text-muted); }
.mega-group ul { display: grid; gap: 2px; }
.mega-link { display: grid; gap: 2px; min-height: 44px; padding: .5rem .75rem; border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; font-size: var(--step-sm); font-weight: var(--weight-medium); line-height: 1.35; }
.mega-link .mega-desc { color: var(--text-muted); font-size: var(--step-xs); font-weight: var(--weight-regular); }
.mega-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.mega-link:hover { background: var(--fill-hover); color: var(--text-primary); }
.mega-feature {
  display: grid; align-content: start; align-self: start; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-md);
  background: var(--feature-card-bg); border: 1px solid var(--feature-card-border);
  color: var(--text-heading); text-decoration: none;
}
.mega-feature strong { font-size: var(--step-md); }
.mega-feature span { color: var(--text-on-surface); font-size: var(--step-sm); }
.mega-feature:hover { color: var(--text-heading); border-color: var(--feature-card-border-hover); }
.mega-gated { opacity: .75; }

/* Mobile menu groups (native <details>) */
.mobile-menu details { border-bottom: 1px solid var(--border-faint); }
.mobile-menu summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-inline: var(--space-2);
  font-size: var(--step-lg); font-weight: var(--weight-medium); color: var(--text-primary); cursor: pointer; list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary .icon { transition: transform var(--dur-2) var(--ease-standard); }
.mobile-menu details[open] summary .icon { transform: rotate(180deg); }
.mobile-menu .sub { padding-bottom: var(--space-2); }
.mobile-menu .sub :is(a, .link-planned) { min-height: 48px; padding-inline-start: var(--space-5); font-size: var(--step-md); border-bottom: 0; color: var(--text-secondary); }

/* ==========================================================================
   Problem and fix split (design §4.19)
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: 0; list-style: none; }
@media (min-width: 64em) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
.split-col { display: grid; align-content: start; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); }
@media (min-width: 30em) { .split-col { padding: var(--space-6); } }
.split-col--risk { background: var(--fill-faint); border: 1px solid var(--border-subtle); }
.split-col--fix { background: var(--selected-bg); border: 1px solid var(--selected-border); }
.split-col h3 { font-size: var(--step-lg); }
.split-head { display: flex; align-items: center; gap: var(--space-2); font-size: var(--step-md); font-weight: var(--weight-bold); color: var(--text-heading); }
.split-head .icon { width: 1.1em; height: 1.1em; flex: none; }
.split-col--risk .split-head .icon { color: var(--icon-muted); }
.split-col--fix .split-head .icon { color: var(--icon-accent); }
.split-list { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
.split-list li { display: flex; gap: .75rem; align-items: flex-start; }
.split-list .icon { margin-top: .2em; }
.split-col--risk .split-list .icon { color: var(--icon-muted); }
.split-col--fix .split-list .icon { color: var(--icon-accent); }
.split-list small { color: var(--text-muted); font-size: var(--step-xs); margin-inline-start: .25rem; }

/* ==========================================================================
   Tabs (design §4.7, §4.20): vertical stack on phones, segmented pill from 640px
   ========================================================================== */
.tablist { display: grid; gap: 4px; padding: 4px; margin-bottom: var(--space-5); border-radius: var(--radius-md); background: var(--tablist-bg); border: 1px solid var(--border-subtle); }
@media (min-width: 40em) { .tablist { display: inline-flex; border-radius: var(--radius-pill); } }
.no-js .tablist { display: none; }
.tab {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-5);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-primary); cursor: pointer;
  font-size: var(--step-sm); font-weight: var(--weight-medium);
}
@media (min-width: 40em) { .tab { border-radius: var(--radius-pill); } }
.tab::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: var(--weight-bold); } /* reserves the bold width: no shift on select */
.tab:hover { color: var(--text-primary); background: var(--fill-hover); }
.tab[aria-selected="true"] { background: var(--selected-bg); color: var(--text-primary); font-weight: var(--weight-bold); box-shadow: inset 3px 0 0 var(--indicator); }
@media (min-width: 40em) { .tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--indicator); } }
.tabpanel { padding: var(--space-5); display: grid; gap: var(--space-5); }
@media (min-width: 30em) { .tabpanel { padding: var(--space-6); } }
.panel-aside .label { color: var(--text-primary); }
@media (min-width: 64em) { .tabpanel { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.tabpanel[hidden] { display: none; }
.js [data-tabs]:not(.is-ready) .tabpanel + .tabpanel { display: none; } /* no flash before the script runs; without JS every panel shows */
.no-js .tabpanel + .tabpanel { margin-top: var(--space-4); }
.panel-title { font-size: var(--step-lg); }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ask-list { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
.ask-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-secondary); }
.ask-list .icon { color: var(--icon-accent); margin-top: .2em; }
/* The aside is a column of the panel, parted by a hairline, never a box inside the card (Hallmark 4) */
.panel-aside { display: grid; gap: var(--space-4); align-content: start; padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
@media (min-width: 64em) { .panel-aside { padding: 0 0 0 var(--space-6); border-top: 0; border-left: 1px solid var(--border-subtle); } }
.panel-aside .btn { justify-self: start; }
.caveat { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--step-sm); color: var(--text-secondary); }
.caveat .icon { color: var(--icon-accent); margin-top: .15em; }

/* ==========================================================================
   Admin mockup frame (design §4.21, §4.23): a light wp-admin-like surface
   ========================================================================== */
.shot {
  position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--shot-bg); color: var(--shot-text); font-size: var(--step-xs); line-height: 1.45;
  box-shadow: 0 0 0 1px var(--shot-ring), var(--shadow-1);
}
.shot-bar { display: flex; align-items: center; gap: .625rem; padding: .625rem .875rem; border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--wp-bar-bg); color: var(--wp-bar-text); font-weight: var(--weight-medium); }
.shot-bar .crumb { color: var(--wp-bar-muted); font-weight: var(--weight-regular); }
.shot-body { display: grid; gap: var(--space-3); padding: var(--space-4); }
@media (min-width: 30em) { .shot-body { padding: 1.25rem; } }
/* A real wp-admin capture (data/screens.json): the image fills the frame and links to the full-size file */
.shot--capture { margin: 0; }
.shot--capture a { display: block; border-radius: inherit; }
.shot--capture img { display: block; width: 100%; height: auto; border-radius: inherit; }
/* .shot clips its overflow, so the focus ring sits inside the frame */
.shot--capture a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.shot-h { font-size: var(--step-sm); font-weight: var(--weight-bold); color: var(--shot-heading); }
.shot-card { position: relative; display: grid; gap: .5rem; padding: .75rem .875rem; background: var(--shot-card); border: 1px solid var(--shot-line); border-radius: 8px; }
.shot-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .375rem 0; border-bottom: 1px solid var(--shot-line-soft); }
.shot-row:last-child { border-bottom: 0; }
.shot-muted { color: var(--shot-muted); }
.shot-grid { display: grid; gap: .75rem; }
@media (min-width: 30em) { .shot-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shot-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shot-stat { font-size: var(--step-lg); font-weight: var(--weight-bold); color: var(--shot-heading); line-height: 1.1; }
.shot-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 .75rem; border-radius: 6px; border: 1px solid var(--shot-control); color: var(--shot-text); background: var(--shot-card); font-weight: var(--weight-medium); white-space: nowrap; }
.shot-btn--primary { background: var(--shot-brand); border-color: var(--shot-brand); color: var(--shot-on-brand); }
.shot-pill { display: inline-flex; align-items: center; gap: .3em; padding: .0625rem .5rem; border-radius: 999px; background: var(--shot-pill-bg); color: var(--shot-pill-text); font-weight: var(--weight-medium); white-space: nowrap; }
.shot-pill--ok { background: var(--shot-ok-bg); color: var(--shot-ok-text); }
.shot-pill--wait { background: var(--shot-wait-bg); color: var(--shot-wait-text); }
.shot-toggle { display: inline-flex; align-items: center; gap: .375rem; color: var(--shot-pill-text); white-space: nowrap; }
.shot-toggle::before { content: ""; width: 1.75rem; height: 1rem; border-radius: 999px; background: var(--shot-toggle-off); box-shadow: inset 0 0 0 2px var(--shot-toggle-off), inset -0.75rem 0 0 2px var(--shot-card); }
.shot-toggle.is-on::before { background: var(--shot-brand); box-shadow: inset 0 0 0 2px var(--shot-brand), inset 0.75rem 0 0 2px var(--shot-card); }
.shot-code { font-family: var(--font-mono); font-size: .95em; background: var(--shot-code-bg); border-radius: 4px; padding: .0625rem .375rem; overflow-wrap: anywhere; }
.shot-url { display: block; padding: .5rem .625rem; background: var(--shot-code-bg); border-radius: 6px; font-family: var(--font-mono); overflow-wrap: anywhere; }
.shot-dl { display: grid; grid-template-columns: auto 1fr; gap: .375rem var(--space-4); margin: 0; }
.shot-dl dt { color: var(--shot-muted); }
.shot-dl dd { margin: 0; color: var(--shot-text); }
.shot-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
/* Numbered callout: decorative, mirrors the legend's <ol> numbers */
.callout {
  position: absolute; top: -.7rem; left: -.7rem; z-index: 2;
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--callout-bg); color: var(--callout-text); font-size: .75rem; font-weight: var(--weight-bold); line-height: 1;
  box-shadow: 0 0 0 2px var(--callout-ring), 0 0 0 4px var(--callout-halo);
}

/* Tour layout and progress controls live in tour.css. */
/* Tour background (design §6.20): the whole section is a lit stage. A wash of the deep glow colour fades in
   from the section's top and out at its bottom (a vertical mask, so there is no hard band edge), a primary glow sits top left,
   a deep one bottom right (the §5.1 falloff), and a 2rem hairline grid fades out towards the edges.
   It replaces the section's usual side glow. Static: no motion, no blur. */
main:not(.doc, .compare) > .section.section--tour-bg:not(.cta-section) { isolation: isolate; background-color: transparent; --text-secondary: var(--text-on-tour-bg); --text-muted: var(--text-on-tour-bg); }
main:not(.doc, .compare) > .section.section--tour-bg:not(.cta-section)::before {
  top: 0; bottom: 0; height: auto;
  background:
    radial-gradient(min(56rem, 100vw) 36rem at 14% 30%, var(--tour-bg-glow-a), color-mix(in srgb, var(--tour-bg-glow-a) 62%, transparent) 36%, color-mix(in srgb, var(--tour-bg-glow-a) 24%, transparent) 66%, transparent),
    radial-gradient(min(52rem, 100vw) 34rem at 90% 70%, var(--tour-bg-glow-b), color-mix(in srgb, var(--tour-bg-glow-b) 62%, transparent) 36%, color-mix(in srgb, var(--tour-bg-glow-b) 24%, transparent) 66%, transparent),
    linear-gradient(180deg, var(--tour-bg-wash), var(--tour-bg-wash-end));
  /* Fade the whole layer in at the top and out at the bottom, so the glows never end in a line at a section edge. */
  -webkit-mask: linear-gradient(180deg, transparent, black 22%, black 78%, transparent);
  mask: linear-gradient(180deg, transparent, black 22%, black 78%, transparent);
}
/* On an even slot the tour keeps the section rhythm's band under its wash (black in dark mode, none in light). */
main:not(.doc, .compare) > :nth-child(even of .section:not(.cta-section)).section--tour-bg { background-color: var(--section-alt-under-wash); }
.section--tour-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--tour-bg-grid) 1px, transparent 1px) 50% 0 / 2rem 2rem,
    linear-gradient(90deg, var(--tour-bg-grid) 1px, transparent 1px) 50% 0 / 2rem 2rem;
  -webkit-mask: radial-gradient(ellipse 60% 62% at 50% 52%, black 20%, transparent 88%);
  mask: radial-gradient(ellipse 60% 62% at 50% 52%, black 20%, transparent 88%);
}
.tour .shot { box-shadow: 0 0 0 1px var(--shot-ring), var(--shadow-3); }

/* ==========================================================================
   Safety layout, approval panel and before/after card (design §4.23)
   ========================================================================== */
.safety-grid { display: grid; gap: var(--space-6); }
@media (min-width: 64em) { .safety-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.rows { display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.rows li { display: grid; grid-template-columns: auto 1fr; gap: .25rem .875rem; padding: var(--space-4) 0; border-bottom: 1px solid var(--border-subtle); }
.rows .icon { grid-row: span 2; color: var(--success); margin-top: .2em; }
.rows strong { color: var(--text-primary); font-weight: var(--weight-bold); }
.rows p { color: var(--text-secondary); font-size: var(--step-sm); }
.figure { display: grid; gap: var(--space-3); }
.figure figcaption { font-size: var(--step-xs); color: var(--text-muted); }
.figure-stack { display: grid; gap: var(--space-6); }

.change-card { padding: var(--space-5); display: grid; gap: var(--space-4); }
@media (min-width: 30em) { .change-card { padding: var(--space-6); } }
.change-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.change-head h3 { font-size: var(--step-md); }
.change-field { font-size: var(--step-xs); color: var(--text-muted); font-weight: var(--weight-medium); }
.diff { display: grid; gap: .375rem; padding: 0; margin: 0; list-style: none; font-size: var(--step-sm); }
.diff li { display: grid; grid-template-columns: 1.25rem 3.75rem 1fr; gap: .5rem; align-items: baseline; padding: .625rem .75rem; border-radius: var(--radius-sm); color: var(--text-primary); }
.diff-mark { font-family: var(--font-mono); font-weight: var(--weight-bold); }
.diff-label { font-size: var(--step-xs); color: inherit; font-weight: var(--weight-medium); }
.diff .is-before { background: var(--diff-before-bg); }
.diff .is-before .diff-mark { color: var(--diff-before-mark); }
.diff .is-after { background: var(--diff-after-bg); }
.diff .is-after .diff-mark { color: var(--diff-after-mark); }
.change-meta { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; margin: 0; font-size: var(--step-xs); color: var(--text-muted); }
.change-meta div { display: flex; gap: .35em; }
.change-meta dt { color: var(--text-muted); }
.change-meta dd { margin: 0; color: var(--text-secondary); }
/* Light-surface variant, for use inside admin mockups */
.shot .diff li { color: var(--shot-text); }
.shot .diff .is-before { background: var(--shot-removed-bg); }
.shot .diff .is-before .diff-mark { color: var(--shot-removed-mark); }
.shot .diff .is-after { background: var(--shot-added-bg); }
.shot .diff .is-after .diff-mark { color: var(--shot-added-mark); }
.shot .diff-label { color: var(--shot-muted); }

/* ==========================================================================
   Comparison matrix with a sticky first column (design §4.22)
   ========================================================================== */
.matrix-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: var(--bg-raised); -webkit-overflow-scrolling: touch; }
.matrix-wrap:focus-visible { outline-offset: 2px; }
.matrix { width: 100%; min-width: 50rem; border-collapse: separate; border-spacing: 0; font-size: var(--step-sm); line-height: 1.5; }
.matrix caption { padding: var(--space-4) var(--space-5) 0; text-align: left; font-size: var(--step-xs); color: var(--text-muted); caption-side: bottom; padding-bottom: var(--space-4); }
.matrix th, .matrix td { padding: .875rem var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { color: var(--text-primary); font-weight: var(--weight-bold); font-size: var(--step-sm); white-space: nowrap; background: var(--bg-raised); }
.matrix th[scope="row"], .matrix thead th:first-child {
  position: sticky; left: 0; z-index: 1; width: 11rem; min-width: 9rem; background: var(--bg-raised); color: var(--text-primary); font-weight: var(--weight-medium);
  box-shadow: inset -1px 0 0 var(--border-subtle);
}
.matrix thead th:first-child { z-index: 2; }
.matrix-wrap.is-scrolled th[scope="row"], .matrix-wrap.is-scrolled thead th:first-child { box-shadow: inset -1px 0 0 var(--border-subtle), var(--shadow-edge); }
/* The caption stays in view while the table scrolls sideways, so the note is readable on phones */
.matrix-caption { display: block; position: sticky; left: var(--space-5); max-width: min(46rem, calc(100vw - 2 * var(--space-gutter) - 2 * var(--space-5))); }
@media (max-width: 29.99em) { /* phones: a narrower sticky column leaves room for the cell being read */
  .matrix th[scope="row"], .matrix thead th:first-child { width: 7.5rem; min-width: 7.5rem; }
  .matrix th, .matrix td { padding: .75rem; }
}
.matrix .is-us { background: var(--bg-us-column); }
.matrix thead .is-us { box-shadow: inset 0 3px 0 var(--indicator); }
.matrix td { color: var(--text-secondary); }
.val { display: flex; gap: .45em; align-items: flex-start; }
.val .icon { width: 1.05em; height: 1.05em; margin-top: .2em; flex: none; }
.val--yes .icon { color: var(--success); }
.val--no .icon, .val--part .icon { color: var(--icon-neutral); }
.val--unknown { color: var(--text-muted); }
.val--unknown .icon { color: var(--icon-muted); }
.val sup a { font-size: .75em; color: var(--link); }
.matrix-note { margin-top: var(--space-4); max-width: 46rem; }
/* Free vs Pro (design §6.27): two plan columns fit at any width, so the table never scrolls sideways; its
   head sticks under the site header instead, and each group of rows has a rowgroup header. */
.matrix-wrap--fit { overflow: visible; }
.matrix--plans { min-width: 0; table-layout: fixed; }
.matrix--plans .col-feature { width: 52%; }
.matrix--plans th[scope="row"], .matrix--plans thead th:first-child { position: static; width: auto; min-width: 0; box-shadow: none; }
.matrix--plans thead th { position: sticky; top: var(--header-h); z-index: 3; white-space: normal; }
.matrix--plans thead th:first-child { border-top-left-radius: var(--radius-lg); }
.matrix--plans thead th:last-child { border-top-right-radius: var(--radius-lg); }
.matrix--plans th[scope="row"] .badge { margin-top: var(--space-2); }
.matrix--plans th[scope="row"] { display: table-cell; }
.plans-group th { padding-top: var(--space-5); background: var(--bg-raised); color: var(--text-muted); font-size: var(--step-sm); font-weight: var(--weight-medium); }
.plan-price { display: block; margin-top: 2px; color: var(--text-secondary); font-size: var(--step-xs); font-weight: var(--weight-regular); }
.plan-list .plan-price { display: inline; margin: 0; }
@media (max-width: 29.99em) { .matrix--plans .col-feature { width: 44%; } }
.road-item h3 { margin-top: var(--space-3); }
.section-head h2 .label { display: block; margin-bottom: var(--space-1); }
.gated-note { display: inline-flex; gap: .4em; align-items: center; }

/* ==========================================================================
   Filter bar, recipe cards, integration cards (design §4.26)
   ========================================================================== */
.filters { display: grid; gap: var(--space-5); padding: var(--space-5); margin-bottom: var(--space-5); }
.no-js .filters, .no-js .results-bar { display: none; }
@media (min-width: 64em) { .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-6); } .filters .span-all { grid-column: 1 / -1; } }
.filters fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.filters legend, .field-label { margin-bottom: var(--space-2); padding: 0; font-size: var(--step-sm); font-weight: var(--weight-medium); color: var(--text-muted); }
.opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 .875rem; border-radius: var(--radius-pill);
  background: var(--fill-rest); border: 1px solid var(--border-chip); color: var(--text-secondary);
  font-size: var(--step-xs); font-weight: var(--weight-medium); pointer-events: none;
  transition: background-color var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard);
}
.opt span .icon { width: 1em; height: 1em; }
.opt span .icon-check { display: none; }
.opt:hover span { background: var(--fill-active); color: var(--text-primary); }
.opt input:checked + span { background: var(--selected-bg); border-color: var(--selected-border); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--selected-ring); }
.opt input:checked + span .icon-check { display: block; }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.search { position: relative; display: grid; }
.search .icon { position: absolute; left: .875rem; top: 50%; translate: 0 -50%; color: var(--text-muted); pointer-events: none; }
.input, .search input, .select {
  width: 100%; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1px solid var(--border-control); background: var(--input-bg); color: var(--text-primary);
  font: inherit; font-size: var(--step-sm);
}
.search input { padding-left: 2.5rem; }
.input::placeholder, .search input::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover, .search input:hover, .select:hover { border-color: var(--border-control-hover); }
.input:focus-visible, .search input:focus-visible, .select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--indicator); }
.select { appearance: none; padding-right: 2.5rem; background-image: var(--select-chevron); background-repeat: no-repeat; background-position: right .875rem center; background-size: 1rem; }
.select option { background: var(--bg-panel); color: var(--text-primary); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.results-count { font-size: var(--step-sm); color: var(--text-muted); }
.empty { padding: var(--space-7) var(--space-5); text-align: center; display: grid; gap: var(--space-3); justify-items: center; }
.empty[hidden] { display: none; }
.cards { display: grid; gap: var(--space-4); padding: 0; list-style: none; }
@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.cards > [hidden], [data-filter] [data-item][hidden] { display: none; }

/* Badges: safety and status variants (word + icon + fill) */
.badge--read, .badge--detected { background: var(--tone-neutral-bg); color: var(--tone-neutral-text); border-color: var(--tone-neutral-border); }
.badge--write { background: transparent; color: var(--badge-outline-text); border-color: var(--badge-outline-border); }
.badge--approval, .badge--beta { background: var(--tone-info-bg); color: var(--tone-info-text); border-color: var(--tone-info-border); }
.badge--supported { background: var(--tone-success-bg); color: var(--tone-success-text); border-color: var(--tone-success-border); }
.badge--planned { background: transparent; color: var(--badge-planned-text); border: 1px dashed var(--badge-planned-border); }
/* Plan and release (W2): "Pro" on anything that needs MCPMate Pro; "Coming soon" (the dashed planned look)
   on a feature behind a closed release gate. Both are a word and an icon, never colour alone. */
.badge--pro { background: var(--badge-pro-bg); color: var(--badge-pro-text); border-color: var(--badge-pro-border); }
.badges { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }
.finalising-flow { max-width: 32rem; margin-inline: auto; }
.finalising-diagram { display: block; width: 100%; height: auto; font-family: var(--font-sans); text-anchor: middle; }
.flow-node rect { fill: var(--bg-raised); stroke: var(--border-control); stroke-width: 1.5; }
.flow-title { fill: var(--text-heading); font-size: 20px; font-weight: var(--weight-bold); }
.flow-label { fill: var(--text-secondary); font-size: 16px; }
.flow-arrow { fill: none; stroke: var(--icon-accent); stroke-width: 2; }
.finalising-diagram marker path { fill: var(--icon-accent); }
.finalising-flow figcaption { margin-top: var(--space-4); color: var(--text-secondary); font-size: var(--step-sm); line-height: 1.6; }
.mega-name .badge, .mobile-menu .badge, .footer-nav .badge { min-height: 0; padding-block: 1px; }
.mobile-menu .badge, .footer-nav .badge { margin-inline-start: var(--space-2); }
.dev-note { margin-top: var(--space-4); }

/* Recipe card */
.recipe { padding: var(--space-5); display: grid; grid-template-rows: auto auto auto auto auto 1fr; gap: var(--space-3); }
.recipe .card-foot { align-self: end; }
@media (min-width: 30em) { .recipe { padding: var(--space-6); } }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.recipe h3, .integ h3 { font-size: var(--step-md); line-height: 1.3; letter-spacing: -0.01em; }
.recipe .goal { font-size: var(--step-sm); color: var(--text-secondary); }
.prompt-box { border-radius: var(--radius-md); background: var(--code-bg); border: 1px solid var(--border-subtle); align-self: start; }
.prompt-box .config-head { padding: .25rem .25rem .25rem .875rem; }
.prompt-text { padding: .75rem .875rem .875rem; font-size: var(--step-sm); color: var(--text-primary); line-height: 1.55; }
.more { border-top: 1px solid var(--border-subtle); }
.more summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px;
  font-size: var(--step-sm); font-weight: var(--weight-medium); color: var(--link); cursor: pointer; list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary .icon { transition: transform var(--dur-2) var(--ease-standard); }
.more[open] summary .icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .more summary .icon, .nav-trigger .icon, .mobile-menu summary .icon, .acc summary .icon { transition: none; } }
.more-body { display: grid; gap: var(--space-3); padding-bottom: var(--space-3); font-size: var(--step-sm); }
.tool-list { display: flex; flex-wrap: wrap; gap: .375rem; padding: 0; list-style: none; }
.tool-list code { display: inline-block; padding: .125rem .5rem; border-radius: var(--radius-xs); background: var(--code-chip-bg); border: 1px solid var(--border-faint); color: var(--text-primary); font-size: var(--step-xs); }
.card-foot { display: grid; gap: var(--space-2); font-size: var(--step-xs); color: var(--text-muted); }
.card-foot strong { color: var(--text-secondary); font-weight: var(--weight-medium); }

/* Integration card */
.integ { padding: var(--space-5); display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-3); }
@media (min-width: 30em) { .integ { padding: var(--space-6); } }
.integ-name { display: flex; align-items: center; gap: var(--space-3); }
.monogram { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: var(--radius-sm); font-weight: var(--weight-bold); font-size: var(--step-sm); color: var(--icon-tile-fg); background: var(--icon-tile-bg); box-shadow: var(--icon-tile-shadow); }
.integ-stats { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; font-size: var(--step-xs); color: var(--text-muted); }
.integ-stats div { display: flex; gap: .35em; }
.integ-stats dd { margin: 0; color: var(--text-secondary); font-weight: var(--weight-medium); }
.integ p { font-size: var(--step-sm); color: var(--text-secondary); }
.integ .btn--ghost { justify-self: start; margin-left: calc(var(--space-3) * -1); }
.integ-scope { display: grid; gap: var(--space-3); margin: 0; font-size: var(--step-sm); }
.integ-scope dt { font-weight: var(--weight-medium); color: var(--text-primary); }
.integ-scope dd { margin: var(--space-1) 0 0; color: var(--text-secondary); }
.integ .btn--ghost { align-self: end; }
.integ-name { min-width: 0; }
.integ-name h3 { overflow-wrap: anywhere; }
.integ .card-top { flex-wrap: wrap; }
.integration-shot { margin: 0; }
.integration-shot .surface { padding: var(--space-6); min-height: 12rem; display: grid; align-content: center; gap: var(--space-3); }
.integration-shot figcaption { margin-top: var(--space-3); font-size: var(--step-sm); color: var(--text-muted); }
.key { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
@media (min-width: 48em) { .key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.key li { display: grid; gap: .5rem; justify-items: start; }
.key p { font-size: var(--step-sm); }
.name-list { display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .name-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.name-list p { font-size: var(--step-sm); color: var(--text-secondary); }

/* ==========================================================================
   Change type badges (design §6.23)
   ========================================================================== */
.badge--added { background: var(--tone-success-bg); color: var(--tone-success-text); border-color: var(--tone-success-border); }
.badge--improved { background: var(--tone-info-bg); color: var(--tone-info-text); border-color: var(--tone-info-border); }
.badge--fixed { background: var(--tone-neutral-bg); color: var(--tone-neutral-text); border-color: var(--tone-neutral-border); }
.badge--security { background: transparent; color: var(--badge-outline-text); border-color: var(--badge-outline-border); }

/* ==========================================================================
   Breadcrumb (design §4.25)
   ========================================================================== */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .375rem; padding: 0; margin: 0; list-style: none; font-size: var(--step-sm); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .375rem; }
.breadcrumb li + li::before { content: "/"; color: var(--text-separator); }
.breadcrumb :is(a, .link-planned) { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }

/* ==========================================================================
   Page hero (inner pages), CTA band, FAQ, accordion, columns
   ========================================================================== */
.page-hero { position: relative; padding-block: var(--space-5) var(--space-8); }
.page-hero > .glows { top: calc(var(--header-h) * -1); }
.page-hero-copy { display: grid; gap: var(--space-5); justify-items: start; max-width: 50rem; }
.page-hero .breadcrumb + .page-hero-copy { margin-top: var(--space-5); }
.page-hero h1 { font-size: var(--step-4xl); line-height: 1.04; letter-spacing: -0.034em; max-width: 13em; }
.page-hero .lead { max-width: 32em; }
/* The one final CTA (design §4.13, v4): a centred, spacious panel at every width. Mark, headline, one
   line, then the two buttons. On the homepage the release-notes block follows it, outside the panel. */
.cta-band { position: relative; padding: var(--space-8) var(--space-5); border-radius: var(--radius-xl); display: grid; gap: var(--space-5); justify-items: center; text-align: center; }
.cta-band {
  --edge-peak: var(--cta-border); --edge-a: var(--cta-border); --edge-b: var(--cta-border);
  --glass-hi: transparent; --glass-glow: none; --glass-shadow: var(--cta-shadow);
  --logo-ink: var(--cta-text); --logo-tint: var(--cta-mark-tint);
  background: var(--cta-bg); color: var(--cta-text);
  border: 1px solid var(--cta-border); box-shadow: var(--cta-shadow);
}
.cta-band::before { display: none; }
@media (min-width: 30em) { .cta-band { padding: var(--space-9) var(--space-7); } }
.cta-band h2 { color: var(--cta-text); font-size: var(--step-3xl); line-height: 1.08; letter-spacing: -0.028em; max-width: 12em; }
.cta-band .lead { max-width: 32em; color: var(--cta-muted); }
.cta-band .cta-row { justify-content: center; margin-top: var(--space-3); }
@media (max-width: 29.99em) { .cta-band .cta-row { width: 100%; } .cta-band .cta-row .btn { flex: 1 1 100%; } }
.cta-mark svg { display: block; width: 3.5rem; height: 3.5rem; }

/* ==========================================================================
   Travelling edge (design §13.4): a bright segment runs slowly round a panel's edge, with a soft glow
   just outside it. Only on the "Ask your AI" demo and the final CTA band.
   The angle is a registered custom property, so it eases round. Without @property it can't
   interpolate, and the first and last frames are the same angle, so the segment simply holds still at
   the top-left, where the light comes from: that's the static fallback, and also what phones, reduced
   motion and a paused background show. Nothing here sits under text: the ring is the 1.5px edge, and
   the glow is masked to the outside of the panel.
   ========================================================================== */
@property --edge-run { syntax: "<angle>"; inherits: true; initial-value: -40deg; }
.edge-run { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; }
.edge-run::after, .edge-run-halo::before {
  content: ""; position: absolute; border-radius: inherit;
  /* the head leads clockwise; its tail fades out behind it */
  background: conic-gradient(from var(--edge-run), transparent 0deg 296deg, var(--edge-run-tail) 340deg, var(--edge-run-head) 354deg, transparent 360deg);
  -webkit-mask: linear-gradient(var(--mask-ink) 0 0) content-box, linear-gradient(var(--mask-ink) 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(var(--mask-ink) 0 0) content-box exclude, linear-gradient(var(--mask-ink) 0 0);
}
.edge-run::after { inset: 0; padding: 1.5px; }
/* The glow reaches 2rem past the panel, past the screen edge on phones: the host section clips it sideways
   (clip, not hidden: no scroll container, and the glow can still run up and down) */
.section:has(.edge-run) { overflow-x: clip; }
/* The comparison cards wait 2rem to either side before they slide in (motion.js), past the screen edge
   below 1024px: their section clips that sideways too */
.section:has(.split) { overflow-x: clip; }
/* The glow: a thicker copy of the segment, blurred once (the blur radius never changes), then masked to
   the band outside the panel, so it can't lower the contrast of anything inside. */
/* --edge-r is the host panel's radius. The halo is 2rem bigger all round, so its radius is too: its mask's
   inner edge (content-box) gets the radius minus the padding, and has to match the panel's corners. With the
   panel's own radius it came out square, and the glow stopped short in a square round each corner. */
.edge-run { --edge-r: var(--radius-lg); }
.cta-band .edge-run { --edge-r: var(--radius-xl); }
.edge-run-halo {
  position: absolute; inset: -2rem; padding: var(--space-6); border-radius: calc(var(--edge-r) + 2rem);
  filter: blur(14px);
  -webkit-mask: linear-gradient(var(--mask-ink) 0 0) content-box, linear-gradient(var(--mask-ink) 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(var(--mask-ink) 0 0) content-box exclude, linear-gradient(var(--mask-ink) 0 0);
}
.edge-run-halo::before { inset: 2rem; padding: 14px; border-radius: var(--edge-r); background: conic-gradient(from var(--edge-run), transparent 0deg 300deg, var(--edge-run-halo) 348deg, transparent 360deg); }
@keyframes edge-run { from { --edge-run: -40deg; } to { --edge-run: 320deg; } }
@media (prefers-reduced-motion: no-preference) and (min-width: 64em) {
  .bg-live .edge-run { animation: edge-run 14s linear infinite; animation-play-state: var(--ambient-state); }
}
@media (forced-colors: active) { .edge-run { display: none; } }
/* Release notes by email: quieter than the CTA, no glass, under it on the homepage and on the changelog */
/* Changelog: the launch view's empty state, while no release has a date */
[data-view="launch"] .gated-alt.changelog-empty { display: grid; }
.changelog-empty { gap: var(--space-3); justify-items: start; max-width: 46rem; padding: var(--space-6); }
.changelog-empty h3 { font-size: var(--step-lg); }
.changelog-empty p { color: var(--text-secondary); font-size: var(--step-sm); }
/* FAQ page: one group per section, closer together than ordinary sections */
.faq-group + .faq-group { padding-top: 0; }
.setup-notes { margin-top: var(--space-stack); }
.faq-list { display: grid; gap: var(--space-6) var(--space-7); padding: 0; margin: 0; }
@media (min-width: 64em) { .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq-list div { display: grid; gap: var(--space-2); align-content: start; }
.faq-list dt { font-size: var(--step-md); font-weight: var(--weight-bold); color: var(--text-heading); line-height: 1.35; }
.faq-list dd { margin: 0; color: var(--text-secondary); font-size: var(--step-sm); line-height: 1.65; max-width: var(--measure); }
.acc { border-top: 1px solid var(--border-faint); max-width: 52rem; }
.acc details { border-bottom: 1px solid var(--border-faint); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 52px; padding-block: .75rem; font-size: var(--step-md); font-weight: var(--weight-medium); color: var(--text-primary); cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform var(--dur-2) var(--ease-standard); }
.acc details[open] summary .icon { transform: rotate(180deg); }
.acc details p { padding-bottom: var(--space-5); color: var(--text-secondary); max-width: var(--measure); }
.cols3 { display: grid; gap: var(--space-4); padding: 0; list-style: none; }
.cols2 { display: grid; gap: var(--space-4); padding: 0; list-style: none; }
@media (min-width: 40em) { .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 64em) { .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.col { padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
@media (min-width: 30em) { .col { padding: var(--space-6); } }
.col h3 { font-size: var(--step-md); }
.col p, .col li { font-size: var(--step-sm); color: var(--text-secondary); }
.col ul { display: grid; gap: .5rem; padding-left: 1.1rem; }
.bullets { display: grid; gap: var(--space-3); padding: 0; list-style: none; max-width: 46rem; }
.bullets li { display: flex; gap: .75rem; align-items: flex-start; }
.bullets .icon { color: var(--icon-accent); margin-top: .2em; }
.two-up { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
.teaser-band { display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); border: 1px dashed var(--proto-border); background: var(--proto-bg); color: var(--text-primary); }
.teaser-band .small { color: var(--text-primary); }
.teaser-band--plain { border-style: solid; border-color: var(--border-subtle); background: var(--fill-faint); }

/* ==========================================================================
   Newsletter form and its states (design §4.29)
   ========================================================================== */

/* Footer, v2: five link columns */
/* Four link groups in four content-width columns, spread across the row, so page names stay on one line (Hallmark 49b, 2026-11-09). */
@media (min-width: 48em) { .footer-nav { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
@media (min-width: 80em) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }
.footer-nav :is(a, .link-planned) { line-height: 1.3; }

@media (forced-colors: active) {
  .tab[aria-selected="true"], .opt input:checked + span { outline: 2px solid Highlight; }
  .callout, .legend li::before { forced-color-adjust: none; }
  .matrix th[scope="row"], .matrix thead th { background: Canvas; }
}

/* Linked cards: the title link stretches over the whole card (one target, one tab stop) */
.tile-link { color: inherit; text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tile-link:hover { color: var(--text-heading); text-decoration: underline; text-underline-offset: .2em; }
.tile-link:focus-visible { outline: none; }
.tile:has(.tile-link), .col:has(.tile-link) { cursor: pointer; } /* focus ring and halo: .glass / .surface, site-v1.css */

/* <button class="btn btn--ghost">: drop the browser's default button fill */
button.btn--ghost { background: transparent; }
button.btn--ghost:hover { background: var(--fill-hover); }
.breadcrumb :is(a, .link-planned) { min-width: 44px; justify-content: center; }

.footer-brand { align-content: start; } /* the 5-column nav is taller; keep the brand rows from stretching */

/* ==========================================================================
   Gates (data/gates.json). "Launch state" hides everything behind a closed gate;
   in the theme the same IDs drive block visibility. Prototype-only toggle in the footer.
   ========================================================================== */
[data-view="launch"] [data-gated] { display: none !important; }
.gated-alt { display: none; color: var(--text-muted); }
[data-view="launch"] .gated-alt { display: inline; }
/* A link to a page that isn't built yet (site.json "pages", brief D25) renders as plain text with the link's
   classes, so the layout holds; it takes no hover, lift or pointer until the page exists. */
.link-planned { pointer-events: none; }
.breadcrumb .link-planned { color: var(--text-secondary); }

/* ==========================================================================
   v3: light and dark modes (docs/design.md §11). Colours come from build/tokens.css.
   ========================================================================== */

/* Switching modes is instant and everything changes in the same frame. Without this, elements with
   a colour transition (buttons, chips) would fade while the rest snapped. site.js adds the class for two frames. */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ==========================================================================
   Appearance control (design §11.6). Needs JavaScript, so it is hidden without it;
   the page then follows the system setting through the CSS fallback.
   ========================================================================== */
.no-js .appearance, .no-js .theme-choice { display: none; }
.appearance { position: relative; display: none; }
@media (min-width: 56em) { .js .appearance { display: block; } }
.appearance-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  background: var(--fill-rest); color: var(--text-secondary); cursor: pointer;
  transition: color var(--dur-2) var(--ease-standard), background-color var(--dur-2) var(--ease-standard);
}
.appearance-btn:hover, .appearance-btn[aria-expanded="true"] { color: var(--text-primary); background: var(--fill-hover); }
/* The icon shows the visitor's choice; it is set from data-theme-pref before first paint, so it never flashes. */
.appearance-btn .icon { display: none; width: 1.25rem; height: 1.25rem; }
[data-theme-pref="system"] .appearance-btn .icon-system,
[data-theme-pref="light"] .appearance-btn .icon-light,
[data-theme-pref="dark"] .appearance-btn .icon-dark { display: block; }
.appearance-menu {
  position: absolute; top: calc(100% + var(--space-2)); right: 0; z-index: 2; width: 13rem; padding: var(--space-2);
  border-radius: var(--radius-md); /* overlay glass (.glass--overlay): solid, never blurred (§6) */
}
.appearance-menu[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .appearance-menu:not([hidden]) { animation: menu-in var(--dur-3) var(--ease-out); } }

.theme-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.theme-choice legend { padding: 0; font-size: var(--step-sm); font-weight: var(--weight-medium); color: var(--text-muted); }
.theme-opts { display: grid; gap: 2px; }
.theme-opt { position: relative; display: block; }
.theme-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.theme-opt span {
  display: flex; align-items: center; gap: .625rem; min-height: 44px; padding: 0 .75rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: var(--step-sm); font-weight: var(--weight-medium); pointer-events: none;
}
.theme-opt .icon { width: 1.125rem; height: 1.125rem; }
.theme-opt .icon-check { margin-left: auto; visibility: hidden; color: var(--indicator); }
.theme-opt:hover span { background: var(--fill-hover); color: var(--text-primary); }
/* Selected: fill, stronger text and a check icon, so colour is never the only signal */
.theme-opt input:checked + span { background: var(--selected-bg); color: var(--text-primary); }
.theme-opt input:checked + span .icon-check { visibility: visible; }
.theme-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.theme-choice--menu legend { margin: .375rem .75rem .375rem; }
/* Mobile menu: a row of three pills under the links */
.theme-choice--inline { margin-top: var(--space-5); }
.theme-choice--inline legend { margin-bottom: var(--space-2); padding-inline: var(--space-2); }
.theme-choice--inline .theme-opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.theme-choice--inline .theme-opt span { padding: 0 var(--space-4) 0 .875rem; border: 1px solid var(--border-chip); border-radius: var(--radius-pill); background: var(--fill-rest); }
.theme-choice--inline .theme-opt input:checked + span { border-color: var(--selected-border); box-shadow: inset 0 0 0 1px var(--selected-ring); }
.theme-choice--inline .icon-check { display: none; }
.theme-choice--inline .theme-opt input:checked + span .icon:first-child { color: var(--indicator); }
@media (forced-colors: active) { .theme-opt input:checked + span { outline: 2px solid Highlight; } }

/* ==========================================================================
   Long-form pages: blog, docs, legal (design §11.7). Same mode as the rest of the site,
   with a quiet, static blue wash behind text; no moving shapes or noise.
   ========================================================================== */
.doc { padding-block: var(--space-5) var(--space-section); }
.doc-head { display: grid; gap: var(--space-4); justify-items: start; margin-block: var(--space-5) var(--space-7); max-width: 46rem; }
.doc-head h1 { font-size: var(--step-3xl); line-height: 1.08; letter-spacing: -0.028em; max-width: 14em; }
.doc-head .lead { max-width: 32em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--step-sm); color: var(--text-muted); }
.doc-meta .icon { color: var(--icon-accent); }
.doc-meta span { display: inline-flex; align-items: center; gap: .4em; }
.doc-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); } /* the vendor help link: a 44px target (WCAG 2.5.8) */

/* Text keeps the reading measure; code, callouts and figures may use the column's full 46rem. */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); } /* minmax(0…): a long code line scrolls in its block, never widens the page */
@media (min-width: 80em) { .doc-layout { grid-template-columns: minmax(0, 46rem) 14rem; justify-content: space-between; } }
.prose { max-width: 46rem; color: var(--prose-text); font-size: var(--step-base); line-height: var(--prose-leading); }
.prose > p:not(.note), .prose > ul:not([role]), .prose > h2, .prose > h3, .guide-steps > li > p { max-width: var(--measure); }
.prose ul[role="list"], .prose .guide-steps { padding-left: 0; }
/* On this page (§4.25): H2s only, the current one marked as you read */
.toc { display: none; }
@media (min-width: 80em) {
  .toc { display: grid; gap: var(--space-2); align-self: start; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
  .toc ul { display: grid; padding: 0; border-left: 1px solid var(--border-subtle); }
  .toc a { display: flex; align-items: center; min-height: 44px; margin-left: -1px; padding-left: var(--space-4); border-left: 2px solid transparent; color: var(--text-secondary); text-decoration: none; font-size: var(--step-sm); }
  .toc a:hover { color: var(--text-primary); }
  .toc a[aria-current="location"] { color: var(--text-primary); font-weight: var(--weight-medium); border-left-color: var(--indicator); }
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: var(--step-2xl); line-height: 1.15; letter-spacing: -0.02em; }
.prose h3 { margin-top: 1.8em; font-size: var(--step-xl); line-height: 1.25; letter-spacing: -0.015em; }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose strong { color: var(--text-primary); font-weight: var(--weight-bold); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .5em; }
.prose [role="list"] > li + li { margin-top: 0; } /* card and box lists space themselves with gap */
.prose li::marker { color: var(--text-muted); }
.prose :not(pre) > code { padding: .1em .375em; border-radius: var(--radius-xs); background: var(--code-chip-bg); border: 1px solid var(--border-faint); color: var(--text-primary); font-size: .86em; }
.prose hr { margin-block: 2.5em; border: 0; border-top: 1px solid var(--border-subtle); }

/* Numbered guide steps: the step disc (§4.4) beside each step */
.guide-steps { display: grid; gap: var(--space-6); padding: 0; list-style: none; counter-reset: guide; }
.guide-steps > li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 var(--space-4); counter-increment: guide; }
.guide-steps > li::before {
  content: counter(guide); grid-row: span 9; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--step-disc-bg); color: var(--step-disc-text); font-weight: var(--weight-bold); box-shadow: var(--step-disc-shadow);
}
.guide-steps > li > * + * { margin-top: .75em; }
.guide-steps h3 { margin-top: .35em; font-size: var(--step-lg); line-height: 1.3; }
/* Phones: the disc sits beside the step's heading only; what follows uses the full width */
@media (max-width: 29.99em) {
  .guide-steps > li::before { grid-row: auto; }
  .guide-steps > li > :not(h3) { grid-column: 1 / -1; }
}
@media (forced-colors: active) { .guide-steps > li::before { forced-color-adjust: none; } }

/* Code block: the config block (§4.6) with a scrolling, syntax-coloured <pre> */
.code pre { margin: 0; padding: .875rem var(--space-4) var(--space-4); overflow-x: auto; font-family: var(--font-mono); font-size: var(--step-sm); line-height: 1.6; color: var(--code-text); white-space: pre; tab-size: 2; }
.code pre:focus-visible { outline-offset: -2px; }
.tok-c { color: var(--syn-comment); font-style: italic; } /* the system monospace face may include an italic */
.tok-p { color: var(--syn-punct); }
.tok-k { color: var(--syn-keyword); }
.tok-a { color: var(--syn-property); }
.tok-s { color: var(--syn-string); }
.tok-n { color: var(--syn-number); }

/* Callouts: note (info) and warning, always with an icon and a bold label */
.note { display: flex; gap: .75rem; align-items: flex-start; padding: var(--space-4) var(--space-5); border: 1px solid var(--tone-info-border); border-radius: var(--radius-md); background: var(--tone-info-bg); font-size: var(--step-sm); line-height: 1.6; color: var(--text-secondary); }
.note .icon { margin-top: .2em; color: var(--icon-accent); }
.note strong { color: var(--text-primary); }
.note--warning { border-color: var(--tone-warning-border); background: var(--tone-warning-bg); }
.note--warning .icon, .note--warning strong { color: var(--tone-warning-text); }

.other-apps { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
/* Security: how a request travels, as a numbered chain of boxes (no MCPMate server in it) */
.flow { display: grid; gap: var(--space-2); padding: 0; list-style: none; counter-reset: flow; }
.flow li { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--fill-faint); }
.flow li span { color: var(--text-muted); font-size: var(--step-xs); }
@media (min-width: 48em) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 40em) { .other-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.other-apps :is(a, .link-planned) { display: grid; gap: 2px; min-height: 44px; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--fill-faint); text-decoration: none; color: var(--text-primary); font-weight: var(--weight-medium); }
.other-apps :is(a, .link-planned) span { color: var(--text-muted); font-size: var(--step-xs); font-weight: var(--weight-regular); }
.other-apps a:hover { background: var(--fill-hover); border-color: var(--border-chip); }

/* ==========================================================================
   Prototype only: compare.html shows one page in both modes, side by side. Never ships.
   ========================================================================== */
.compare { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; padding: var(--space-3) var(--space-gutter) var(--space-4); gap: var(--space-3); }
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); font-size: var(--step-sm); }
.compare-bar h1 { font-size: var(--step-md); margin-right: auto; }
.compare-bar label { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); }
.compare-bar .select { width: auto; min-width: 12rem; }
.compare-check input { width: 1.125rem; height: 1.125rem; accent-color: var(--indicator); }
.compare-bar a { display: inline-flex; align-items: center; min-height: 44px; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); min-height: 0; }
.compare-col { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--space-2); min-height: 0; }
.compare-col figcaption { font-size: var(--step-sm); font-weight: var(--weight-medium); color: var(--text-muted); }
.compare-frame { position: relative; overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-2); }
.compare-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }

/* ==========================================================================
   Company pages (W6): comparison sources and contact form
   ========================================================================== */
.flow--two { max-width: 46rem; }
@media (min-width: 48em) { .flow--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sources { display: grid; gap: var(--space-2); padding: 0; list-style: none; color: var(--text-secondary); }
.sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }
.contact-layout { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 64em) { .contact-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.contact-form { display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); }
.contact-form h2 { font-size: var(--step-xl); }
.field { display: grid; gap: var(--space-2); }
.field .input, .field .select { width: 100%; }
textarea.input { min-height: 9rem; padding-block: var(--space-3); border-radius: var(--radius-md); resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-aside h2 { font-size: var(--step-xl); margin-bottom: var(--space-4); }
/* Phase 6 recording slot: static poster, native controls, never autoplay. */
.live-view-media { margin: 0; }
.live-view-media img, .live-view-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--space-4);
}
.live-view-media figcaption { margin-top: var(--space-4); color: var(--text-secondary); }
/* ==========================================================================
   Homepage hero stage (design §5.4). A dark stage in both appearances, like the final CTA band in light
   mode: everything on it reads the dark roles (.on-stage, generated by build.py). Layers, bottom first:
   the stage colour, the two static glows, the radial scrim, then the copy. The section is pulled up under
   the sticky header, which is
   transparent and on-stage until the page scrolls (.site-header--stage).
   ========================================================================== */
.hero--fluid {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-items: center;
  min-height: 100svh;
  margin-top: calc(var(--header-h) * -1);
  padding-block: calc(var(--header-h) + var(--space-stage-top)) var(--space-stage-bottom);
  background: var(--stage-bg); color: var(--text-primary);
}
/* A badge and the capsule join the column, so it closes up a step to keep the whole hero above the fold
   at 1440 × 900 with the announcement bar showing (design §6.11). */
.hero--fluid .hero-copy { gap: var(--space-5); }
.hero--fluid > .glows { top: 0; z-index: 0; }
.hero--fluid > .container { position: relative; z-index: 3; }

/* The scrim: strongest behind the headline, never weaker than --stage-scrim where text sits (contrast.py
   "Hero stage"), soft at the edges where the ink shows. A band at the top keeps the header strip as dark. */
.stage-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--stage-scrim) 0, var(--stage-scrim) var(--header-h), transparent calc(var(--header-h) * 2.5)),
    radial-gradient(115% 95% at 50% 46%, var(--stage-scrim-strong) 0%, var(--stage-scrim-strong) 28%, var(--stage-scrim) var(--stage-text-radius), var(--stage-scrim-soft) 100%);
}

/* Badge: stage glass, unblurred (the blur budget, design §10.1) */
.stage-badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-3);
  border: 1px solid var(--stage-glass-border); border-radius: var(--radius-pill); background: var(--stage-glass-fill);
  font-size: var(--step-xs); font-weight: var(--weight-medium); color: var(--text-secondary);
}
@media (min-width: 40em) { .stage-badge { min-height: 30px; padding-inline: var(--space-4); } }

/* Connect capsule: what an MCP URL looks like, and the one primary action */
.hero-actions { display: grid; justify-items: center; gap: var(--space-3); width: 100%; margin-top: var(--space-2); }
.connect-capsule {
  display: flex; align-items: center; gap: var(--space-3);
  width: min(37rem, 100%); min-height: 3.5rem; padding: 6px 6px 6px var(--space-5);
  border: 1px solid var(--stage-glass-border); border-radius: var(--radius-pill);
  background: var(--stage-glass-fill); box-shadow: var(--shadow-1);
}
@media (min-width: 40em) { .connect-capsule { min-height: 4rem; padding-inline-start: var(--space-6); } }
.capsule-url { flex: 1 1 auto; min-width: 0; margin: 0; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capsule-url code { font-family: var(--font-mono); font-size: var(--step-sm); color: var(--text-secondary); background: none; padding: 0; }
.connect-capsule .btn { flex: none; border-radius: var(--radius-pill); }
@media (max-width: 29.99em) {
  .connect-capsule { flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-xl); }
  .capsule-url { text-align: center; }
  .connect-capsule .btn { width: 100%; }
}
/* Client marks that are black on light are inverted on the stage, as in dark mode */
.on-stage :is(.client-mark--chatgpt, .client-mark--cursor) img { filter: invert(1); }

/* The header over the stage: transparent, no blur, dark roles, until the page scrolls or the menu opens */
.site-header--stage:not(.is-scrolled, .is-open)::after {
  background: transparent; border-bottom-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* The entrance (owner-approved exception to design §8, 2026-11-04) runs in assets/motion.js, on the headline
   and the connect capsule only. Before first paint, html.hero-enter (set by the head script when motion is
   allowed and the background isn't paused or saving data) holds both hidden; motion.js drops the class in
   the same frame its animations start. If the script never runs, the 3 s fail-safe shows them. Nothing else
   in the hero is ever hidden or moved. */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter .hero--fluid :is(h1, .connect-capsule) { opacity: 0; animation: hero-failsafe 1ms 3s forwards; }
}
@keyframes hero-failsafe { to { opacity: 1; } }
/* The words splitText makes in the headline move on their own (inline-block, set by splitText), so a word
   and the punctuation touching it (.split-glue, motion.js) are kept from breaking apart. */
.hero--fluid h1 :is(.split-word, .split-glue) { white-space: nowrap; }

@media (forced-colors: active) {
  .stage-scrim { display: none; }
  .hero--fluid { background: Canvas; }
  .stage-badge, .connect-capsule { border-color: CanvasText; }
}

/* Hallmark · component: AppSumo banner · redesign: full · genre: atmospheric · theme: MCPMate · v2.0.0 */
/* Hallmark · critique · the offer leads in live type. Two rules frame the artwork and action as one band. */
.appsumo-banner__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-stack);
  padding-block: var(--space-stack);
  border-block: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
}
.appsumo-banner__link:hover { color: var(--text-secondary); }
.appsumo-banner__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.appsumo-banner__copy { display: grid; justify-items: start; gap: var(--space-4); }
.appsumo-banner__terms { display: grid; gap: var(--space-2); }
.appsumo-banner__title {
  min-width: 0;
  max-inline-size: 17ch;
  color: var(--text-accent);
  font-size: var(--step-2xl);
  line-height: 1.1;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}
.appsumo-banner__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.appsumo-banner__action { max-inline-size: 100%; white-space: normal; text-align: center; }
.appsumo-banner__link:is(:hover, :focus-visible, :active) .appsumo-banner__action {
  background: var(--btn-secondary-bg-hover);
  border-color: var(--border-control-hover);
}
@media (min-width: 60em) {
  .appsumo-banner__link { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
/* Hallmark · component: sticky admin tour · genre: modern-minimal · theme: MCPMate (locked) · copy: verbatim · v2.0.0 */
/* Hallmark · critique · the heading and image stay pinned while the description column scrolls through the product story; the complete stack is the default */
/* Hallmark · checked: 2026-11-16 · Floor 0 FAIL · Reflex 0 · finish-review: in-thread, ship · gap: none */

.tour, .tour-chapters, .tour-slide, .tour-media, .tour-visual, .tour-summary { min-width: 0; }
.tour-chapter-track { display: grid; gap: var(--space-7); }
.tour-slide { display: grid; gap: var(--space-5); scroll-margin-block-start: calc(var(--header-h) + var(--space-5)); }
.tour-summary { display: grid; gap: var(--space-3); align-content: center; }
.tour-summary h3 { font-size: var(--step-xl); overflow-wrap: break-word; min-width: 0; }
.tour-summary p { max-width: 34em; color: var(--text-secondary); }
.tour .shot { font-size: clamp(.75rem, .72rem + .22vw, .875rem); }
.tour-pin[hidden] { display: none; }
.tour-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); aspect-ratio: 2670 / 1624; }
.tour-open { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-md); }
.tour-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.tour-progress { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.tour-step {
  display: flex; align-items: center; flex: 1; min-width: 44px; min-height: 44px; padding: .25rem 0;
  border-radius: var(--radius-sm); text-decoration: none;
}
.tour-track { display: block; width: 100%; height: 3px; overflow: clip; border-radius: var(--radius-pill); background: var(--border-control); }
.tour-fill { display: block; height: 100%; background: var(--indicator); transform: scaleX(0); transform-origin: left center; }
.tour-step:hover .tour-track, .tour-step:active .tour-track { background: var(--text-muted); }
.tour-step:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tour-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tour-current { font-size: var(--step-sm); font-weight: var(--weight-medium); color: var(--text-primary); }
.tour-arrows { display: flex; align-items: center; gap: var(--space-2); }
.tour-pos { min-width: 4.5em; text-align: center; font-size: var(--step-sm); color: var(--text-muted); }
.round-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-control); background: var(--fill-rest); color: var(--text-primary); cursor: pointer; }
.round-btn:hover, .round-btn:active { background: var(--fill-active); }
.round-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.shot-note { margin-top: var(--space-4); font-size: var(--step-xs); color: var(--text-muted); }

@media (min-width: 64em) and (min-height: 45em) and (prefers-reduced-motion: no-preference) {
  .tour-scroll.is-enhanced { height: calc(var(--tour-frame-height) + var(--tour-distance)); }
  .tour-scroll.is-enhanced .tour-frame { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
  .tour.is-enhanced { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-7); align-items: start; }
  .tour.is-enhanced .tour-chapters { height: var(--tour-copy-height); overflow: clip; }
  .tour.is-enhanced .tour-chapter-track { gap: 0; }
  .tour.is-enhanced .tour-slide { min-height: var(--tour-step-distance); align-content: center; gap: 0; }
  .tour.is-enhanced .tour-media { display: none; }
  .tour.is-enhanced .tour-visual { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; }
  .tour.is-enhanced .tour-visual.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
  .tour.is-enhanced .tour-visual.is-leaving { visibility: visible; }
  .tour.is-enhanced .tour-slide.is-active .tour-summary p { color: var(--text-primary); }
}

@media print {
  .tour-scroll.is-enhanced { height: auto; }
  .tour-scroll.is-enhanced .tour-frame { position: static; }
  .tour.is-enhanced { display: block; }
  .tour.is-enhanced .tour-pin { display: none; }
  .tour.is-enhanced .tour-slide { min-height: 0; margin-bottom: var(--space-7); }
  .tour.is-enhanced .tour-media { display: block; }
}

@media (forced-colors: active) {
  .tour-step[aria-current="step"] { outline: 2px solid Highlight; }
  .tour-track { border: 1px solid ButtonText; }
  .tour-fill { background: Highlight; forced-color-adjust: none; }
}

.tour-viewport {
  display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
  overflow: clip; isolation: isolate; border-radius: var(--radius-md);
  background: var(--shot-bg); box-shadow: 0 0 0 1px var(--shot-ring), var(--shadow-3);
}
.tour-viewport .shot { box-shadow: none; }
.tour-viewport .tour-visual.is-active { z-index: 1; }
/* Hallmark · component: typography accents · theme: MCPMate (locked docs/design.md) · genre: modern-minimal · palette: restrained · v2.0.0 */
/* Hallmark · critique: P4 H4 E4 S4 R4 V4 · section accents reinforce the audit's grouping hierarchy; whole headings carry one colour, with neutral catalogue titles and readable body text. */
/* Hallmark · waive 72 · block-editor li.recipe has 48px padding and all children sit at least 48px from its bottom · the resting prompt-card capture and DOM measurements contradict the reported negative inset. */

main h2,
main .prose h3,
main .guide-steps h3 {
  color: var(--text-accent);
}

.audit-feature main .section:where(:not(#related)) .col > h3,
main :is(.lead, .bullets li, .prose p, .prose li) > strong:not(.note strong, .dev-note strong, .badge strong, :any-link strong),
.lead-em,
.workflow-index,
.theme-page main .guide-steps > li::before {
  color: var(--text-accent-readable);
}

.audit-page--features-access-control #levels .col > h3,
.audit-page--features-chat #plan-first .col > h3,
.audit-page--features-design-system #starters .col > h3,
.hero--fluid .lead > strong.lead-em {
  color: var(--text-accent);
}

#get-the-plugin h2 {
  color: var(--cta-text-accent);
}

.feature-stage :is(dt, strong) {
  color: var(--text-accent);
}

.feature-stage--blocks .feature-block-target strong,
.recipe .card-top > .label,
.integration-entry .integ-name > .label {
  color: var(--text-accent-readable);
}

.audit-page .feature-stage .feature-chat-sequence > li::marker {
  color: var(--text-accent);
}
/* Hallmark · component: shared typography · theme: MCPMate (locked docs/design.md) · genre: modern-minimal · scope: all canonical pages · v2.0.0 */
/* Hallmark · critique: readable body roles, compact heading leading and adaptable text replace undersized copy without changing the local font stacks or approved palette. */
/* Hallmark · waive 24b · two existing optical nudges: the 14px travelling-edge halo and the 6px connect-capsule inset · both align nested outlines around existing controls without changing the shared spacing scale. */
/* Hallmark · dismissed 38iii · the matched label is a numbered roadmap phase identifier; badge variants are independent plan and release metadata, rather than an accented word in heading copy. */
/* Hallmark · answered F1 · prompt-library keeps the supplied literal prompt strings, including their straight apostrophes. */
/* Hallmark · dismissed F4 · the five matched hero action pairs have one primary button and a separate neutral secondary recipe; rendered light and dark controls retain that hierarchy. */
/* Hallmark · finish-review: in-thread · ship · confirmed typography findings resolved; local fonts, semantic metadata and the approved appearance-specific palette retained. */

body { font-synthesis: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
p, li, dt, dd, figcaption, label, summary { min-width: 0; overflow-wrap: anywhere; }
h1, h2 { line-height: 1.12; }
h3, h4, h5, h6 { line-height: 1.3; font-weight: var(--weight-bold); }

main :is(.col p, .col li, .tile p, .rows p, .recipe .goal, .recipe .more-body,
  .prompt-text, .integ > p, .integ-scope, .key p, .name-list p,
  .faq-list dd, .checklist li, .theme-live dd, .builders-scope, .command-note,
  .works-with-intro, .msg--user, .msg--ai p, .bullets > li > span, .changelog-empty p,
  .matrix td, .builder-table td, .command-table td),
.footer-brand p {
  font-size: var(--step-base);
  line-height: 1.6;
}

main :is(.col p, .tile p, .recipe .goal, .recipe .more-body p, .faq-list dd,
  .name-list p) { max-width: var(--measure); }
main .col h3 { font-size: var(--step-lg); }
.works-with-disclaimer { font-size: var(--step-sm); }
.prose h4 { margin-top: 1.5em; font-size: var(--step-lg); line-height: 1.3; }
.prose h4 + * { margin-top: .75em; }

.input, .search input, .select, textarea {
  min-width: 0;
  font-size: var(--step-base);
}
.btn {
  max-width: 100%;
  padding-block: var(--space-2);
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}
.page-hero-copy, .cta-row { min-width: 0; max-width: 100%; }
.hero-copy, .hero-actions, .works-with, .client-grid, .client-link, .client-copy,
.more-clients { min-width: 0; max-width: 100%; }
.page-hero-copy > h1 { width: 100%; }
.hero--fluid, .hero-copy, .hero-actions, .works-with, .works-with-heading,
.demo .convo, .demo .exchange, .demo .msg--ai {
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
.connect-capsule { min-width: 0; max-width: 100%; }
.demo .exchange, .demo .msg { min-width: 0; }
.more-clients { width: 100%; }
.hero--fluid h1 :is(.split-word, .split-glue) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.badges, .badge { min-width: 0; max-width: 100%; }
main .badge { white-space: normal; overflow-wrap: anywhere; }
.mega-name .badge, .mobile-menu .badge, .footer-nav .badge { padding-block: var(--space-1); }
.builders-snapshot dt { flex-wrap: wrap; }

.footer-nav, .footer-nav :is(div, section, ul, li) { min-width: 0; }
.footer-nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
@media (min-width: 48em) {
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-nav :is(a, .link-planned) {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-nav .badge { flex: 0 0 auto; }
body .site-footer .footer-nav .badge { white-space: normal; }

.compare-bar label { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.compare-bar .select { min-width: 0; max-width: 100%; }
.compare { grid-template-columns: minmax(0, 1fr); }
.compare-bar { min-width: 0; max-width: 100%; }
@media (max-width: 47.99em) {
  .compare-bar label { flex: 1 1 100%; }
  .compare-bar .select { width: 100%; }
}
/* Hallmark · component: CTA buttons · genre: modern-minimal · theme: MCPMate (locked docs/design.md) · v2.0.0 */
/* Hallmark · critique · the reference's tinted pill, fine outline and trailing arrow carry the existing orange accent; hover fills the whole control with orange and uses dark ink. */

.btn--primary {
  gap: var(--space-3);
  border-radius: var(--radius-pill);
  border-color: var(--btn-primary-border);
  background: linear-gradient(180deg, var(--btn-primary-sheen), transparent), var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--btn-primary-shadow);
  /* Fill and ink change together; only the decorative arrow moves. */
  transition: none;
}

.btn--primary::after {
  content: "";
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--cta-arrow-mask) center / contain no-repeat;
  mask: var(--cta-arrow-mask) center / contain no-repeat;
}

.btn--primary:hover {
  background: var(--btn-primary-bg-hover);
  border-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-text-hover);
  box-shadow: var(--btn-primary-shadow-hover);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--btn-primary-border);
  outline-offset: 3px;
}

.btn--primary:active {
  background: var(--btn-primary-bg-active);
  border-color: var(--btn-primary-bg-active);
  color: var(--btn-primary-text-hover);
}

.btn--primary:is(:disabled, [aria-disabled="true"]) {
  background: linear-gradient(180deg, var(--btn-primary-sheen), transparent), var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-text);
  box-shadow: none;
}

/* The closing band stays dark in the light appearance as well. */
.cta-band {
  --btn-primary-bg: var(--cta-button-bg-dark);
  --btn-primary-text: var(--cta-button-text-dark);
  --btn-primary-border: var(--cta-button-border-dark);
  --btn-primary-sheen: var(--cta-button-sheen-dark);
}

@media (prefers-reduced-motion: no-preference) {
  .btn--primary::after { transition: transform var(--dur-2) var(--ease-standard); }
  .btn--primary:where(:hover, :focus-visible):not(:disabled, [aria-disabled="true"])::after { transform: translateX(3px); }
}

@media (forced-colors: active) {
  .btn--primary::after { forced-color-adjust: none; }
}
/* Hallmark · component: platform identification · genre: modern-minimal · theme: MCPMate locked brand · copy: verbatim · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 · weakest: H, grouped pages need names beside each mark; retain labelled lists and the existing reading hierarchy */
/* Hallmark · waive 72 · unchanged WooCommerce recipe cards reproduce the same -3px bottom measurement before platform logos · preserve existing recipe geometry during the agreed logo-only update */
:root {
  --platform-logo-size: 2rem;
  --platform-logo-art: 1.5rem;
  --platform-logo-header-size: 3.5rem;
  --platform-logo-header-art: 2.25rem;
}
.platform-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--platform-logo-size);
  height: var(--platform-logo-size);
  background: var(--integration-logo-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.platform-logo img {
  display: block;
  width: var(--platform-logo-art);
  height: var(--platform-logo-art);
  object-fit: contain;
}
.platform-logo--jetengine { background: var(--integration-jetengine-bg); }
.platform-logo--header { width: var(--platform-logo-header-size); height: var(--platform-logo-header-size); }
.platform-logo--header img { width: var(--platform-logo-header-art); height: var(--platform-logo-header-art); }
.platform-title { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.platform-title h1 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
.platform-label { display: inline-flex; align-items: center; gap: var(--space-3); max-width: 100%; min-width: 0; }
.platform-label-name { min-width: 0; overflow-wrap: break-word; color: var(--text-primary); }
.platform-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4) var(--space-6); }
.platform-list > li { min-width: 0; }
.platform-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); margin-block: var(--space-6); }
.platform-group { display: grid; align-content: start; gap: var(--space-4); min-width: 0; }
.platform-group h3 { margin: 0; font-size: var(--step-base); font-weight: var(--weight-medium); }
.platform-group .platform-list { grid-template-columns: minmax(0, 1fr); }
.feature-entry-body > .platform-label { margin-block: var(--space-2); }
.comparison-platforms { display: none; }
.matrix th a .platform-label-name { color: inherit; }
@media (max-width: 47.99em) {
  .comparison-platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-block-end: var(--space-4);
  }
  .comparison-platforms .platform-label { gap: var(--space-2); }
}
@media (min-width: 40em) {
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48em) {
  :root { --platform-logo-header-size: 4rem; --platform-logo-header-art: 2.5rem; }
  .platform-title { grid-template-columns: var(--platform-logo-header-size) minmax(0, 1fr); }
  .platform-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .platform-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Hallmark · component: cookie consent · genre: modern-minimal · theme: MCPMate brand (locked docs/design.md) · states: 8 · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 · weakest: hierarchy; use a compact lower-right panel while keeping consent copy readable and both choices equally visible. */
/* Hallmark · finish-review: in-thread · ship · resolved hidden-banner precedence, Escape focus restoration and footer access beneath the initial banner. */

:root {
  --consent-layer: 80;
  --consent-width: 23rem;
  --consent-dialog-width: 34rem;
  --consent-banner-height: 0px;
  --consent-banner-bg: color-mix(in oklab, var(--btn-primary-bg) 92%, var(--cta-orange) 8%);
  --consent-scrim: rgb(var(--rgb-shadow) / .6);
}

html, body { overflow-x: clip; }
html.has-cookie-banner { scroll-padding-bottom: calc(var(--consent-banner-height) + var(--space-5)); }
html.has-cookie-banner body { padding-bottom: calc(var(--consent-banner-height) + var(--space-7)); }
.cookie-banner { position: fixed; inset: auto; inset-inline-end: var(--space-5); inset-block-end: var(--space-5); z-index: var(--consent-layer); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); width: calc(100% - 2 * var(--space-5)); max-width: var(--consent-width); margin: 0; padding: var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--consent-banner-bg); color: var(--text-primary); box-shadow: var(--shadow-menu); }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-copy { display: grid; min-width: 0; gap: var(--space-1); }
.cookie-banner h2, .cookie-dialog h2 { margin: 0; min-width: 0; overflow-wrap: break-word; color: var(--text-primary); font-size: var(--step-xl); font-weight: var(--weight-bold); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.cookie-banner p, .cookie-dialog p { max-width: var(--measure); margin: 0; color: var(--text-primary); font-size: var(--step-base); line-height: 1.6; text-wrap: pretty; }
.cookie-banner h2 { font-size: var(--step-md); }
.cookie-banner p { line-height: 1.5; }
.cookie-banner .cookie-banner-links { gap: var(--space-4); }
.cookie-banner-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.cookie-banner-links > a, .consent-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-xs); background: none; color: var(--link); font-family: var(--font-sans); font-size: var(--step-sm); font-weight: var(--weight-medium); line-height: 1.4; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.consent-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-3) var(--space-5); border: 1px solid var(--border-control); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text-primary); font-family: var(--font-sans); font-size: var(--step-base); font-weight: var(--weight-medium); line-height: 1.3; white-space: nowrap; cursor: pointer; }
.consent-button:hover, .consent-button.is-hover { background: var(--fill-hover); }
.consent-button:active, .consent-button.is-active { background: var(--fill-active); }
:is(.consent-button, .consent-link, .consent-close):disabled { opacity: .55; cursor: not-allowed; }
.consent-button[aria-busy="true"] { cursor: progress; }
.cookie-banner .consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.cookie-banner .consent-button { min-width: 0; min-height: 44px; padding: var(--space-2); font-size: var(--step-sm); }
:is(.consent-button, .consent-link, .consent-close):focus-visible, .consent-button.is-focus, .cookie-banner-links > a:focus-visible, .cookie-dialog a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.consent-link:hover, .cookie-banner-links > a:hover { color: var(--link-hover); }
.consent-link:active { color: var(--text-accent); }
.cookie-dialog { position: fixed; inset: 0; width: calc(100% - var(--space-6)); max-width: var(--consent-dialog-width); height: fit-content; max-height: calc(100dvh - var(--space-6)); margin: auto; padding: var(--space-7); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow-y: auto; background: var(--bg-panel); color: var(--text-primary); }
.cookie-dialog::backdrop { background: var(--consent-scrim); }
.cookie-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-4); }
.cookie-dialog h2 { font-size: var(--step-2xl); }
.consent-close { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); background: none; color: var(--text-primary); font-family: var(--font-sans); font-size: var(--step-sm); font-weight: var(--weight-medium); cursor: pointer; }
.consent-close:hover { background: var(--fill-hover); }
.consent-close:active { background: var(--fill-active); }
.cookie-preference-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-5); border-top: 1px solid var(--border-subtle); }
.cookie-preference-row:first-of-type { margin-top: var(--space-5); }
.cookie-preference-row > div { min-width: 0; }
.cookie-preference-row > span { min-width: 0; }
.cookie-analytics-option { cursor: pointer; }
.cookie-option-title { display: block; margin-bottom: var(--space-2); font-weight: var(--weight-bold); font-size: var(--step-base); }
.cookie-option-description { display: block; max-width: 23em; font-size: var(--step-sm); line-height: 1.6; }
.cookie-preference-row h3, .cookie-preference-row label { display: block; margin: 0 0 var(--space-2); color: var(--text-primary); font-size: var(--step-base); font-weight: var(--weight-bold); line-height: 1.4; }
.cookie-preference-row label { cursor: pointer; }
.cookie-preference-row p { max-width: 23em; font-size: var(--step-sm); }
.consent-fixed { flex: none; color: var(--text-muted); font-size: var(--step-sm); }
.cookie-preference-row input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--focus); cursor: pointer; }
.cookie-preference-row input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.cookie-preference-row input:disabled { opacity: .55; cursor: not-allowed; }
.cookie-dialog .cookie-preference-note { margin-top: var(--space-2); font-size: var(--step-sm); }
.cookie-dialog .consent-feedback { min-height: 1lh; margin-block: var(--space-4); font-size: var(--step-sm); }
.consent-feedback--error, .cookie-dialog .consent-feedback--error { color: var(--danger); }
.cookie-dialog .consent-actions > .consent-button { flex: 1; }
.cookie-dialog .cookie-dialog-policy { margin-top: var(--space-5); font-size: var(--step-sm); }
.cookie-dialog-policy a { display: inline-flex; align-items: center; min-height: 44px; }
.cookie-settings-section { padding-bottom: var(--space-5); }
.cookie-settings-section .cookie-current-choice { color: var(--text-primary); font-weight: var(--weight-medium); }
.cookie-settings-section > .consent-button { margin-top: var(--space-4); }
.footer-bottom .consent-link { margin-top: var(--space-3); }
.js .consent-nojs, .no-js .consent-actions, .no-js [data-consent-open] { display: none; }
.no-js .cookie-banner { position: static; margin: var(--space-5) auto; }
.consent-preview { background: var(--bg); }
.consent-preview main { padding-block: var(--space-7); }
.consent-preview h1 { min-width: 0; overflow-wrap: break-word; }
.consent-preview-state { display: grid; justify-items: start; gap: var(--space-5); padding-block: var(--space-6); border-bottom: 1px solid var(--border-subtle); }
.consent-preview-state h2 { margin: 0; }

@media (max-width: 39.99em) {
  .cookie-banner { inset-inline-end: var(--space-4); inset-block-end: var(--space-4); width: calc(100% - 2 * var(--space-4)); padding: var(--space-4); max-height: calc(100dvh - var(--space-6)); overflow-y: auto; }
  .cookie-dialog { padding: var(--space-5); }
  .cookie-dialog .consent-actions { flex-direction: column; }
  .cookie-dialog-heading { align-items: start; gap: var(--space-3); }
}
@media print {
  .cookie-banner, .cookie-dialog, [data-consent-open] { display: none !important; }
}
@media (max-width: 22.49em) {
  .cookie-banner .consent-actions { grid-template-columns: minmax(0, 1fr); }
}
