/* UIX Icons design system v2. Load AFTER brand/tokens.css and BEFORE page CSS. Docs: src/site/ds/DESIGN.md.
  Modern clean SaaS: flat surfaces, hairlines, bento grids. Tactility only as accents (keys, plates, one glass, the mark).
  Colours use light-dark(): the theme is the element's color-scheme (light by default, dark from the system,
  <html data-theme>, or any .ux-dark band / dark tile).
  1 tokens · 2 base · 3 layout · 4 header/subnav · 5 footer · 6 buttons · 7 seg/tabs · 8 forms/chips · 9 cards
  10 bento · 11 section patterns · 12 plates · 13 badges/pro/lock/tooltip · 14 code · 15 tables · 16 accordion
  17 crumbs/callout/timeline · 18 frames/stage · 19 hero · 20 docs/prose · 21 icon browser · 22 utilities · 23 motion */

/* == 1. TOKENS */
:root {
  color-scheme: light;
  --ux-bg: light-dark(#FAF9FF, #0C0A13); --ux-bg-alt: light-dark(#F4F2FC, #110E1A);
  --ux-surface: light-dark(#FFFFFF, #15121F); --ux-surface-2: light-dark(#FCFBFF, #1A1726);
  --ux-well: light-dark(#F4F2FA, #100E18); --ux-well-2: light-dark(#ECE9F5, #1F1B2D); --ux-field: light-dark(#FFFFFF, #110F1A);
  --ux-text: light-dark(#130B2E, #EEECF6); --ux-muted: light-dark(#5A5472, #A6A1BA);
  --ux-line: light-dark(#E9E5F3, #24202F); --ux-line-strong: light-dark(#D8D2E7, #363049); --ux-control-line: light-dark(#857F9C, #6F688C); --ux-hover: light-dark(#F2EFFA, #1C1929);
  --ux-accent: light-dark(#6301E4, #B79BFF); --ux-accent-soft: light-dark(#F1EAFE, #201A36); --ux-on-accent: light-dark(#FFFFFF, #120E20);
  --ux-deep: light-dark(#16035E, #DCD0FF); --ux-gold: #FBAE17; --ux-focus: light-dark(#6301E4, #B79BFF);
  --ux-hi: light-dark(rgb(255 255 255 / .9), rgb(255 255 255 / .06));            /* top-edge highlight on keys */
  --ux-edge: light-dark(rgb(255 255 255 / 0), rgb(255 255 255 / .045));          /* dark-only inner top edge on tiles */
  --ux-shadow: light-dark(rgb(30 18 80 / .06), rgb(0 0 0 / .4)); --ux-shadow-lg: light-dark(rgb(30 18 80 / .13), rgb(0 0 0 / .6));
  --ux-card-bg: linear-gradient(180deg, light-dark(#FFFFFF, #17141F), light-dark(#FFFFFF, #131019));
  --ux-grid-line: light-dark(rgb(99 1 228 / .07), rgb(183 155 255 / .06)); --ux-dot: light-dark(rgb(19 11 46 / .14), rgb(238 236 246 / .11));
  /* keys */
  --ux-key-bg: linear-gradient(180deg, light-dark(#FFFFFF, #221E30), light-dark(#F9F8FD, #1A1726));
  --ux-key-bg-pressed: linear-gradient(180deg, light-dark(#EFECF7, #121019), light-dark(#F5F3FA, #181524));
  --ux-key-border: light-dark(#DCD6EA, #353047); --ux-key-edge: light-dark(#CEC7DF, #07060B);
  --ux-pri-bg: linear-gradient(180deg, light-dark(#7424F7, #8443FF), light-dark(#6301E4, #6A10EE));
  --ux-pri-bg-pressed: linear-gradient(180deg, light-dark(#5300C4, #5508C8), light-dark(#6301E4, #6A10EE));
  --ux-pri-border: light-dark(#5000BD, #5A08D0); --ux-pri-ink: #FFFFFF;
  /* brand surfaces */
  --ux-tile-bg: linear-gradient(155deg, #2A0796 0%, #5201CF 48%, #7A27F6 100%);
  --ux-lilac-bg: light-dark(#F1EBFF, #1C1631); --ux-lilac-line: light-dark(#E3D8FF, #2E2550);
  --ux-pro-bg: light-dark(#FFF5DB, #2A1F07); --ux-pro-ink: light-dark(#6A4300, #FFD27A); --ux-pro-edge: light-dark(#E8AE45, #9C6C0E);
  /* code display (dark in both themes) */
  --ux-code-bg: light-dark(#17102F, #110E1A); --ux-code-bar: light-dark(#1E1740, #161321); --ux-code-text: #ECE8FA; --ux-code-muted: #A29CBC;
  --ux-code-k: #C9B6FF; --ux-code-s: #A6C8FF; --ux-code-a: #E7DEFF; --ux-code-line: rgb(255 255 255 / .08);
  --ux-tip-bg: light-dark(#1C1438, #EEECF6); --ux-tip-text: light-dark(#FFFFFF, #120E20);
  --ux-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23857F9C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ux-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* elevation: soft, single layer */
  --ux-e1: 0 1px 2px var(--ux-shadow); --ux-e2: 0 4px 14px -6px var(--ux-shadow-lg); --ux-e3: 0 14px 36px -14px var(--ux-shadow-lg);
  --ux-e4: 0 28px 64px -24px light-dark(rgb(30 18 80 / .24), rgb(0 0 0 / .75));
  --ux-inset: inset 0 1px 2px var(--ux-shadow); --ux-inset-deep: inset 0 2px 8px var(--ux-shadow);
  --ux-key: inset 0 1px 0 var(--ux-hi), 0 1px 2px var(--ux-shadow); --ux-key-hover: inset 0 1px 0 var(--ux-hi), 0 3px 8px -3px var(--ux-shadow-lg);
  --ux-key-pressed: inset 0 1px 3px var(--ux-shadow-lg);
  --ux-pri: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(22 3 94 / .22), 0 6px 16px -6px rgb(99 1 228 / .5);
  --ux-pri-pressed: inset 0 2px 4px rgb(22 3 94 / .45);
  /* textures: only in hero and showcase stages */
  --ux-grid: linear-gradient(var(--ux-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--ux-grid-line) 1px, transparent 1px);
  --ux-dots: radial-gradient(circle at 1px 1px, var(--ux-dot) 1px, transparent 1.4px);
  --ux-hatch: repeating-linear-gradient(135deg, light-dark(rgb(30 18 80 / .04), rgb(255 255 255 / .04)) 0 6px, transparent 6px 12px);
  /* triplets and numbers that cannot use light-dark() (also flipped in the theme blocks below) */
  --ux-sh: 30 18 80; --ux-pri-glow: 99 1 228; --ux-gloss: .5; --ux-engrave: none;
  /* type, shape, layout */
  --ux-font-display: var(--uix-font-display); --ux-font: var(--uix-font-body); --ux-mono: var(--uix-font-mono);
  --ux-fs-display: clamp(2.75rem, 1.5rem + 5vw, 5.25rem); --ux-fs-h1: clamp(2.25rem, 1.55rem + 2.8vw, 3.75rem);
  --ux-fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 3.125rem); --ux-fs-h3: 1.1875rem; --ux-fs-lede: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  --ux-r-sm: 6px; --ux-r: 10px; --ux-r-lg: 14px; --ux-r-xl: 18px; --ux-r-2xl: 24px; --ux-r-tile: 20px; --ux-r-pill: 999px;
  --ux-gutter: clamp(16px, 4vw, 32px); --ux-max: 1200px; --ux-header-h: 64px; --ux-space: clamp(64px, 2.5rem + 6vw, 128px);
  --ux-ease: cubic-bezier(.2, .7, .2, 1); --ux-dur: .16s;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --ux-sh: 0 0 0; --ux-pri-glow: 120 50 255; --ux-gloss: .12; } }
:root[data-theme="dark"], .ux-dark, .ux-tile--dark, .ux-tile--code { color-scheme: dark; --ux-sh: 0 0 0; --ux-pri-glow: 120 50 255; --ux-gloss: .12; }
.ux-dark { --uix-logo-a: #6301E4; --uix-logo-b: #B79BFF; --uix-logo-text: #FFFFFF; }

/* == 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ux-header-h) + 16px); }
body, .ux-dark { background-color: var(--ux-bg); color: var(--ux-text); }
body { margin: 0; min-height: 100vh; font: 400 1rem/1.6 var(--ux-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--ux-font-display); font-weight: 600; color: var(--ux-text); text-wrap: balance; }
h1 { font-size: var(--ux-fs-h1); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: var(--ux-fs-h2); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: var(--ux-fs-h3); line-height: 1.3; letter-spacing: -.015em; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--ux-accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img, svg, video { max-width: 100%; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre, samp { font-family: var(--ux-mono); }
hr { height: 1px; margin: 2.5rem 0; border: 0; background: var(--ux-line); }
::selection { background: color-mix(in srgb, var(--ux-accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--ux-focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.ux-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--ux-r); background: var(--ux-surface); color: var(--ux-text); box-shadow: var(--ux-e3); font-weight: 600; text-decoration: none; }
.ux-skip:focus { top: 12px; }

/* == 3. LAYOUT: containers, sections, heads, grids */
.ux-container { width: 100%; max-width: calc(var(--ux-max) + 2 * var(--ux-gutter)); margin-inline: auto; padding-inline: var(--ux-gutter); }
.ux-container--narrow { --ux-max: 760px; } .ux-container--mid { --ux-max: 960px; } .ux-container--wide { --ux-max: 1360px; }
.ux-section { position: relative; isolation: isolate; padding-block: var(--ux-space); }
.ux-section--tight { padding-block: calc(var(--ux-space) * .6); }
.ux-section--flush-top { padding-top: 0; }
.ux-section--alt { background-color: var(--ux-bg-alt); border-block: 1px solid var(--ux-line); }
.ux-section--dots::before, .ux-section--grid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ux-dots); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 72%); }
.ux-section--grid::before { background: var(--ux-grid); background-size: 24px 24px; }
.ux-section.ux-dark { border-block: 1px solid var(--ux-line); }
.ux-head, .ux-section__head { max-width: 720px; margin-bottom: clamp(36px, 2rem + 2vw, 64px); }
.ux-head--center, .ux-section__head--center { margin-inline: auto; text-align: center; }
.ux-head--center .ux-lede, .ux-section__head--center .ux-lede, .ux-section__head--center .ux-lead { margin-inline: auto; }
.ux-section__head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; max-width: none; }
.ux-section__head--split > :last-child > :last-child { margin-bottom: 0; }
@media (max-width: 899px) { .ux-section__head--split { grid-template-columns: minmax(0, 1fr); } }
.ux-head > :last-child, .ux-section__head > :last-child { margin-bottom: 0; }
.ux-head h2, .ux-section__head h2 { margin-bottom: .4em; }
.ux-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; margin: 0 0 18px; padding: 0 12px 0 10px; border: 1px solid var(--ux-line); border-radius: var(--ux-r-pill);
  background: var(--ux-surface); box-shadow: var(--ux-e1); color: var(--ux-text); font: 500 .8125rem/1 var(--ux-font); letter-spacing: 0; }
.ux-eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ux-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ux-gold) 22%, transparent); }
.ux-eyebrow--plain { height: auto; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ux-accent); font-weight: 600; }
.ux-display { font-size: var(--ux-fs-display); line-height: 1; letter-spacing: -.045em; }
.ux-lede, .ux-lead { max-width: 40em; font-size: var(--ux-fs-lede); line-height: 1.55; color: var(--ux-muted); }
.ux-grid { display: grid; gap: var(--gap, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }
.ux-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ux-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ux-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 959px) { .ux-grid--3, .ux-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .ux-grid--2, .ux-grid--3, .ux-grid--4 { grid-template-columns: minmax(0, 1fr); } }
.ux-split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.ux-split--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ux-split--flip > :first-child { order: 2; }
@media (max-width: 899px) { .ux-split, .ux-split--wide { grid-template-columns: minmax(0, 1fr); } .ux-split--flip > :first-child { order: 0; } }
.ux-stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.ux-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.ux-pagehead { position: relative; isolation: isolate; padding-block: clamp(40px, 2rem + 4vw, 96px) clamp(32px, 1.5rem + 3vw, 64px); }
.ux-pagehead::before { content: ""; position: absolute; inset: 0 0 -40%; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--ux-accent) 8%, transparent), transparent 70%); }
.ux-pagehead .ux-crumbs { margin-bottom: 28px; }
.ux-pagehead h1 { max-width: 18em; }
.ux-pagehead .ux-lede { margin-bottom: 0; }

/* == 4. HEADER, NAV, SUB-NAV */
.ux-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--ux-line) 85%, transparent);
  background: color-mix(in srgb, var(--ux-bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); }
.ux-header__row { display: flex; align-items: center; gap: 8px; height: var(--ux-header-h); }
.ux-brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; border-radius: var(--ux-r-sm); }
.ux-brand svg { display: block; width: auto; height: 28px; }
.ux-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ux-nav li > a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; color: var(--ux-muted); font-weight: 500; font-size: .9375rem; text-decoration: none; transition: color var(--ux-dur), background var(--ux-dur); }
.ux-nav li > a:hover { color: var(--ux-text); background: var(--ux-hover); }
.ux-nav li > a[aria-current="page"], .ux-nav li > a[aria-current="true"] { color: var(--ux-text); background: var(--ux-hover); }
.ux-nav__pro::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ux-gold); }
.ux-nav__cta { display: none; }
.ux-header__actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.ux-header .ux-menu-btn { display: none; }
.ux-theme-btn .ux-i-sun { display: none; }
:root[data-theme="dark"] .ux-theme-btn .ux-i-sun { display: block; } :root[data-theme="dark"] .ux-theme-btn .ux-i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ux-theme-btn .ux-i-sun { display: block; } :root:not([data-theme="light"]) .ux-theme-btn .ux-i-moon { display: none; } }
.ux-menu-btn .ux-i-close, .ux-header.is-open .ux-menu-btn .ux-i-menu { display: none; }
.ux-header.is-open .ux-menu-btn .ux-i-close { display: block; }
@media (max-width: 1023px) {
  .ux-header .ux-menu-btn { display: inline-flex; }
  .ux-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; max-height: calc(100vh - var(--ux-header-h)); overflow-y: auto; padding: 8px var(--ux-gutter) 24px;
  border-bottom: 1px solid var(--ux-line); background: var(--ux-surface); box-shadow: var(--ux-e3); }
  .ux-header.is-open .ux-nav { display: block; }
  .ux-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .ux-nav li + li { border-top: 1px solid var(--ux-line); }
  .ux-nav li > a { padding: 14px 4px; border-radius: 0; font-size: 1.0625rem; color: var(--ux-text); }
  .ux-nav li > a:hover, .ux-nav li > a[aria-current="page"] { background: none; color: var(--ux-accent); }
  .ux-nav__cta { display: block; margin-top: 16px; } .ux-nav__cta .ux-btn { width: 100%; }
}
@media (max-width: 639px) { .ux-header .ux-header__cta { display: none; } .ux-brand svg { height: 24px; } }
.ux-subnav { position: sticky; top: var(--ux-header-h); z-index: 40; border-bottom: 1px solid var(--ux-line); background: color-mix(in srgb, var(--ux-bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); }
.ux-subnav__row { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.ux-subnav ul { display: flex; gap: 4px; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ux-subnav ul::-webkit-scrollbar { display: none; }
.ux-subnav li > a { display: block; padding: 6px 12px; border-radius: var(--ux-r-pill); color: var(--ux-muted); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.ux-subnav li > a:hover { color: var(--ux-text); background: var(--ux-hover); }
.ux-subnav li > a[aria-current] { color: var(--ux-text); background: var(--ux-surface); box-shadow: inset 0 0 0 1px var(--ux-line-strong), var(--ux-e1); }

/* == 5. FOOTER */
.ux-footer { margin-top: clamp(48px, 6vw, 96px); padding-block: clamp(48px, 6vw, 80px) 28px; border-top: 1px solid var(--ux-line); background: var(--ux-bg-alt); font-size: .9375rem; }
.ux-footer__grid { display: grid; gap: 40px 32px; grid-template-columns: minmax(220px, 1.6fr) repeat(auto-fit, minmax(130px, 1fr)); }
.ux-footer__brand p { max-width: 24em; margin: 16px 0; color: var(--ux-muted); }
.ux-footer h2 { margin: 0 0 16px; font: 600 .8125rem/1 var(--ux-font); letter-spacing: 0; color: var(--ux-text); }
.ux-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ux-footer a { color: var(--ux-muted); text-decoration: none; }
.ux-footer a:hover { color: var(--ux-text); }
.ux-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ux-line); color: var(--ux-muted); font-size: .875rem; }
@media (max-width: 639px) { .ux-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ux-footer__brand { grid-column: 1 / -1; } }

/* == 6. BUTTONS: keys with a real press */
.ux-btn { --h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 16px; border: 1px solid var(--ux-key-border); border-radius: var(--ux-r);
  background: var(--ux-key-bg); box-shadow: var(--ux-key); color: var(--ux-text); font: 600 .9375rem/1 var(--ux-font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: box-shadow var(--ux-dur) var(--ux-ease), transform var(--ux-dur) var(--ux-ease), background var(--ux-dur), border-color var(--ux-dur), filter var(--ux-dur); -webkit-tap-highlight-color: transparent; user-select: none; }
.ux-btn:hover { box-shadow: var(--ux-key-hover); border-color: var(--ux-line-strong); text-decoration: none; }
.ux-btn:active, .ux-btn[aria-pressed="true"] { transform: translateY(1px); background: var(--ux-key-bg-pressed); box-shadow: var(--ux-key-pressed); transition-duration: .05s; }
.ux-btn svg { width: 18px; height: 18px; }
.ux-btn--primary { border-color: var(--ux-pri-border); background: var(--ux-pri-bg); box-shadow: var(--ux-pri); color: var(--ux-pri-ink); }
.ux-btn--primary:hover { border-color: var(--ux-pri-border); box-shadow: var(--ux-pri); filter: brightness(1.08); }
.ux-btn--primary:active, .ux-btn--primary[aria-pressed="true"] { background: var(--ux-pri-bg-pressed); box-shadow: var(--ux-pri-pressed); filter: none; }
.ux-btn--ghost { border-color: transparent; background: transparent; box-shadow: none; }
.ux-btn--ghost:hover { border-color: transparent; background: var(--ux-hover); box-shadow: none; }
.ux-btn--ghost:active, .ux-btn--ghost[aria-pressed="true"] { background: var(--ux-well-2); box-shadow: none; }
/* on brand gradients and dark bands */
.ux-btn--inverse { border-color: #FFFFFF; background: #FFFFFF; color: #4A00B0; box-shadow: inset 0 -1px 0 rgb(22 3 94 / .12), 0 1px 2px rgb(22 3 94 / .3), 0 8px 20px -8px rgb(22 3 94 / .5); }
.ux-btn--inverse:hover { border-color: #FFFFFF; box-shadow: inset 0 -1px 0 rgb(22 3 94 / .12), 0 10px 24px -8px rgb(22 3 94 / .6); }
.ux-btn--inverse:active { background: #F1EAFE; box-shadow: inset 0 2px 3px rgb(22 3 94 / .2); }
.ux-btn--glass { border-color: rgb(255 255 255 / .28); background: rgb(255 255 255 / .1); color: #FFFFFF; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); backdrop-filter: blur(10px); }
.ux-btn--glass:hover { border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .16); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); }
.ux-btn--glass:active { background: rgb(255 255 255 / .06); box-shadow: inset 0 2px 4px rgb(0 0 0 / .25); }
.ux-btn--sm { --h: 34px; padding: 0 12px; border-radius: 8px; font-size: .875rem; }
.ux-btn--lg { --h: 50px; padding: 0 24px; border-radius: 12px; font-size: 1.0625rem; }
.ux-btn--block { width: 100%; }
.ux-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.ux-btn--locked, .ux-btn--locked:hover, .ux-btn--locked:active { transform: none; border-color: var(--ux-line-strong); background: var(--ux-surface-2); box-shadow: none; color: var(--ux-muted); cursor: not-allowed; filter: none; }
.ux-btn--locked svg:first-child { color: var(--ux-pro-ink); }
.ux-btn .ux-arrow { display: inline-flex; transition: transform var(--ux-dur) var(--ux-ease); }
.ux-btn:hover .ux-arrow { transform: translateX(3px); }
.ux-icon-btn { --h: 38px; width: var(--h); padding: 0; flex: none; }
.ux-icon-btn svg { width: 19px; height: 19px; }
.ux-icon-btn.ux-btn--sm { --h: 32px; } .ux-icon-btn.ux-btn--sm svg { width: 17px; height: 17px; }
.ux-btn--round { border-radius: 50%; }

/* == 7. SEGMENTED CONTROL, TABS, VERTICAL FEATURE TABS */
.ux-seg { display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; border: 1px solid var(--ux-line); border-radius: 12px; background: var(--ux-well); overflow-x: auto; scrollbar-width: none; }
.ux-seg::-webkit-scrollbar { display: none; }
.ux-seg > button, .ux-seg > a { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--ux-muted); font-weight: 600; font-size: .875rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: color var(--ux-dur), background var(--ux-dur), box-shadow var(--ux-dur); }
.ux-seg > :hover { color: var(--ux-text); }
.ux-seg > [aria-selected="true"], .ux-seg > [aria-pressed="true"], .ux-seg > [aria-current="page"] { border-color: var(--ux-line); background: var(--ux-surface); box-shadow: var(--ux-e1); color: var(--ux-text); }
.ux-seg svg { width: 16px; height: 16px; }
.ux-seg .ux-pro { margin-left: 2px; }
.ux-seg--block { display: flex; } .ux-seg--block > * { flex: 1 0 auto; justify-content: center; }
.ux-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--ux-line); }
.ux-tabs > button, .ux-tabs > a { flex: none; padding: 12px 14px; border: 0; background: none; color: var(--ux-muted); font-weight: 600; font-size: .9375rem; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.ux-tabs > :hover { color: var(--ux-text); }
.ux-tabs > [aria-selected="true"], .ux-tabs > [aria-current="page"] { color: var(--ux-text); box-shadow: inset 0 -2px 0 var(--ux-accent); }
/* these rows scroll (overflow-x:auto clips y too), so the ring is drawn inside the control */
.ux-seg > :focus-visible, .ux-tabs > :focus-visible, .ux-subnav li > a:focus-visible { outline-offset: -2px; }
.ux-tabpanel { padding-top: 20px; }
.ux-tabpanel:focus-visible { outline-offset: 6px; border-radius: var(--ux-r-sm); }
.ux-vtabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ux-vtabs__list { display: grid; gap: 6px; }
.ux-vtabs__list > [role="tab"] { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid transparent; border-radius: var(--ux-r-lg); background: transparent; color: var(--ux-muted); text-align: left; transition: background var(--ux-dur), border-color var(--ux-dur); }
.ux-vtabs__list > [role="tab"] b { font: 600 1.0625rem/1.3 var(--ux-font-display); letter-spacing: -.01em; color: var(--ux-text); }
.ux-vtabs__list > [role="tab"] span { font-size: .9375rem; line-height: 1.5; }
.ux-vtabs__list > [role="tab"]:hover { background: var(--ux-hover); }
.ux-vtabs__list > [aria-selected="true"] { border-color: var(--ux-line); background: var(--ux-surface); box-shadow: inset 3px 0 0 var(--ux-accent), var(--ux-e2); }
.ux-vtabs .ux-tabpanel { padding-top: 0; }
@media (max-width: 899px) { .ux-vtabs { grid-template-columns: minmax(0, 1fr); } }

/* == 8. FORMS, CHIPS */
.ux-field { display: grid; gap: 7px; }
.ux-label { font-weight: 600; font-size: .875rem; color: var(--ux-text); }
.ux-hint { margin: 0; font-size: .8125rem; color: var(--ux-muted); }
.ux-input, .ux-select, .ux-textarea { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--ux-control-line); border-radius: var(--ux-r); background: var(--ux-field); box-shadow: var(--ux-e1);
  color: var(--ux-text); transition: border-color var(--ux-dur), box-shadow var(--ux-dur); }
.ux-textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.ux-input::placeholder, .ux-textarea::placeholder, .ux-search input::placeholder { color: var(--ux-muted); opacity: 1; }
.ux-input:focus, .ux-select:focus, .ux-textarea:focus, .ux-search:focus-within { outline: none; border-color: var(--ux-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ux-accent) 22%, transparent); }
.ux-select { appearance: none; padding-right: 40px; background: var(--ux-chevron) right 12px center / 16px no-repeat, var(--ux-field); cursor: pointer; }
.ux-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px; border: 1px solid var(--ux-control-line); border-radius: 12px; background: var(--ux-field); box-shadow: var(--ux-e1);
  color: var(--ux-muted); transition: border-color var(--ux-dur), box-shadow var(--ux-dur); }
.ux-search svg { width: 19px; height: 19px; }
.ux-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; color: var(--ux-text); font-size: 1rem; }
.ux-search input::-webkit-search-cancel-button { cursor: pointer; }
.ux-search--lg { height: 58px; padding: 0 10px 0 20px; border-radius: 16px; border-color: var(--ux-control-line); box-shadow: var(--ux-e3); }
.ux-search--lg svg { width: 22px; height: 22px; } .ux-search--lg input { font-size: 1.0625rem; }
/* range: ds.js sets --p (0–100%) */
.ux-range { --p: 50%; width: 100%; height: 24px; background: transparent; cursor: pointer; appearance: none; }
.ux-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ux-accent) var(--p), transparent var(--p)), var(--ux-well-2); }
.ux-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--ux-well-2); }
.ux-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--ux-accent); }
.ux-range::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; border: 1px solid var(--ux-key-border); border-radius: 50%; background: var(--ux-key-bg); box-shadow: var(--ux-key-hover); -webkit-appearance: none; }
.ux-range::-moz-range-thumb { width: 18px; height: 18px; border: 1px solid var(--ux-key-border); border-radius: 50%; background: var(--ux-key-bg); box-shadow: var(--ux-key-hover); }
.ux-range:focus-visible { outline: none; } .ux-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ux-focus); outline-offset: 2px; }
.ux-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--ux-focus); outline-offset: 2px; }
.ux-toggle { position: relative; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 99px; background: var(--ux-well-2); box-shadow: inset 0 0 0 1px var(--ux-control-line); cursor: pointer; transition: background var(--ux-dur); appearance: none; }
.ux-toggle::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgb(19 11 46 / .3); transition: transform var(--ux-dur) var(--ux-ease); }
.ux-toggle:checked { background: var(--ux-pri-bg); box-shadow: none; }
.ux-toggle:checked::before { transform: translateX(18px); }
.ux-toggle:disabled { opacity: .5; cursor: not-allowed; }
.ux-check { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; cursor: pointer; }
.ux-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.ux-swatch { position: relative; cursor: pointer; }
.ux-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ux-swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); transition: box-shadow var(--ux-dur); }
.ux-swatch input:checked + span { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 0 0 3px var(--ux-bg), 0 0 0 5px var(--ux-text); }
.ux-swatch input:focus-visible + span { outline: 2px solid var(--ux-focus); outline-offset: 6px; }
.ux-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--ux-line-strong); border-radius: var(--ux-r-pill); background: var(--ux-surface); color: var(--ux-text); font-size: .8125rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.ux-chip:is(a, button):hover { border-color: var(--ux-accent); }
.ux-chip[aria-pressed="true"], .ux-chip--on { border-color: color-mix(in srgb, var(--ux-accent) 45%, transparent); background: var(--ux-accent-soft); color: var(--ux-accent); }
.ux-chip svg { width: 15px; height: 15px; }
.ux-chip__x { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1rem; line-height: 1; }
.ux-chip__x:hover { background: var(--ux-hover); }

/* == 9. CARDS */
.ux-card { position: relative; padding: clamp(20px, 1rem + 1vw, 28px); border: 1px solid var(--ux-line); border-radius: var(--ux-r-xl); background: var(--ux-card-bg); box-shadow: inset 0 1px 0 var(--ux-edge), var(--ux-e1); }
.ux-card > :last-child { margin-bottom: 0; }
.ux-card h3 { margin-bottom: .4em; }
.ux-card p { color: var(--ux-muted); }
.ux-card--well { border-color: var(--ux-line); background: var(--ux-well); box-shadow: none; }
.ux-card--glass { border-color: rgb(255 255 255 / .5); background: color-mix(in srgb, var(--ux-surface) 62%, transparent); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), var(--ux-e3); }
.ux-card--feature { display: flex; flex-direction: column; gap: 4px; }
.ux-card--feature .ux-plate { margin-bottom: 16px; }
.ux-card--link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform var(--ux-dur) var(--ux-ease), box-shadow var(--ux-dur), border-color var(--ux-dur); }
.ux-card--link:hover { transform: translateY(-2px); border-color: var(--ux-line-strong); box-shadow: inset 0 1px 0 var(--ux-edge), var(--ux-e3); text-decoration: none; }
.ux-card--link:active { transform: none; box-shadow: var(--ux-e1); }
.ux-card__more, .ux-tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--ux-accent); font-weight: 600; font-size: .9375rem; }
.ux-card__more::after, .ux-tile__more::after { content: "\2192"; transition: transform var(--ux-dur) var(--ux-ease); }
.ux-card--link:hover .ux-card__more::after, .ux-tile--link:hover .ux-tile__more::after { transform: translateX(3px); }
.ux-card__media { display: grid; place-items: center; min-height: 160px; margin: calc(-1 * clamp(20px, 1rem + 1vw, 28px)) calc(-1 * clamp(20px, 1rem + 1vw, 28px)) 20px; padding: 24px;
  border-bottom: 1px solid var(--ux-line); border-radius: var(--ux-r-xl) var(--ux-r-xl) 0 0; background: var(--ux-dots), var(--ux-surface-2); background-size: 18px 18px, auto; }
.ux-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: ux-step; }
.ux-step { position: relative; padding-top: 60px; counter-increment: ux-step; }
.ux-step::before { content: counter(ux-step, decimal-leading-zero); position: absolute; top: 22px; left: clamp(20px, 1rem + 1vw, 28px); font: 600 .8125rem/1 var(--ux-mono); color: var(--ux-accent); }
.ux-step.ux-card { padding-top: 64px; }
/* stat card: number from the build, never typed by hand */
.ux-stat { display: grid; gap: 6px; }
.ux-stat__num, .ux-tile__num, .ux-stats__num { font: 600 clamp(2.25rem, 1.7rem + 2vw, 3.25rem)/1 var(--ux-font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ux-deep);
  background: linear-gradient(180deg, var(--ux-deep) 30%, var(--ux-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ux-stat__label, .ux-tile__label, .ux-stats__label { color: var(--ux-muted); font-size: .9375rem; }

/* == 10. BENTO GRID + TILES */
.ux-bento { --gap: 16px; --row: 208px; display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(var(--row), auto); grid-auto-flow: row dense; }
.ux-tile { --c: 4; --r: 1; --tp: clamp(20px, 1rem + 1vw, 28px); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; min-width: 0; grid-column: span var(--c); grid-row: span var(--r);
  padding: var(--tp); overflow: hidden; border: 1px solid var(--ux-line); border-radius: var(--ux-r-tile); background: var(--ux-card-bg); box-shadow: inset 0 1px 0 var(--ux-edge), var(--ux-e1); color: var(--ux-text); }
.ux-tile--s { --c: 3; } .ux-tile--m { --c: 4; } .ux-tile--h { --c: 6; } .ux-tile--w { --c: 8; } .ux-tile--full { --c: 12; }
.ux-tile--t { --c: 4; --r: 2; } .ux-tile--l { --c: 6; --r: 2; } .ux-tile--xl { --c: 8; --r: 2; }
@media (max-width: 1023px) {
  .ux-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ux-tile--s, .ux-tile--m, .ux-tile--h, .ux-tile--t { --c: 3; } .ux-tile--w, .ux-tile--l, .ux-tile--xl, .ux-tile--full { --c: 6; } .ux-tile--l { --r: 1; }
}
@media (max-width: 639px) {
  .ux-bento { --row: 160px; --gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ux-tile { --c: 2; --r: 1; } .ux-tile--s { --c: 1; }
}
.ux-tile > :last-child { margin-bottom: 0; }
.ux-tile h3, .ux-tile__title { margin: 0; font: 600 1.1875rem/1.25 var(--ux-font-display); letter-spacing: -.015em; }
.ux-tile p { margin: 0; color: var(--ux-muted); font-size: .9375rem; line-height: 1.55; }
.ux-tile__kicker { margin: 0; color: var(--ux-accent); font: 600 .8125rem/1.2 var(--ux-font); }
.ux-tile__body { display: grid; gap: 8px; align-content: start; }
.ux-tile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ux-tile__corner { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 6px; }
/* media: stage inside a tile (faint dots). --bleed runs it to the tile edges. */
.ux-tile__media { position: relative; flex: 1 1 auto; display: grid; place-items: center; min-height: 120px; margin-top: 8px; padding: 16px; border: 1px solid var(--ux-line); border-radius: calc(var(--ux-r-tile) - 8px);
  background: var(--ux-dots), var(--ux-surface-2); background-size: 18px 18px, auto; overflow: hidden; }
.ux-tile__media--bleed { margin: auto calc(-1 * var(--tp)) calc(-1 * var(--tp)); border-width: 1px 0 0; border-radius: 0; }
.ux-tile__media--top { order: -1; margin: calc(-1 * var(--tp)) calc(-1 * var(--tp)) 8px; border-width: 0 0 1px; border-radius: 0; }
.ux-tile--media { padding: 0; gap: 0; }
.ux-tile--media > .ux-tile__media { margin: 0; border-width: 0 0 1px; border-radius: 0; }
.ux-tile--media > .ux-tile__media:last-child { border-width: 1px 0 0; }
.ux-tile--media > .ux-tile__body { padding: var(--tp); }
/* stat */
.ux-tile--stat { justify-content: space-between; }
.ux-tile--stat .ux-tile__num { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.75rem); }
.ux-tile__icons { flex: 1 1 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); align-content: start; gap: 4px; min-height: 96px; margin-top: 8px; overflow: hidden; color: var(--ux-text); }
.ux-tile__icons > * { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; transition: background var(--ux-dur), color var(--ux-dur); }
.ux-tile__icons > :hover { background: var(--ux-hover); color: var(--ux-accent); }
.ux-tile__icons svg { width: 24px; height: 24px; }
.ux-tile--icons .ux-tile__icons { mask-image: linear-gradient(180deg, #000 60%, transparent); }
/* feature */
.ux-tile--feature .ux-plate { margin-bottom: 10px; }
/* code: a dark tile; put .ux-code inside, it runs to the edges */
.ux-tile--code { border-color: var(--ux-code-line); background: var(--ux-code-bg); color: var(--ux-code-text); --ux-muted: var(--ux-code-muted); }
.ux-tile--code .ux-code { flex: 1 1 auto; margin: auto calc(-1 * var(--tp)) calc(-1 * var(--tp)); border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.ux-tile--link { text-decoration: none; transition: transform var(--ux-dur) var(--ux-ease), box-shadow var(--ux-dur), border-color var(--ux-dur); }
.ux-tile--link:hover { transform: translateY(-2px); border-color: var(--ux-line-strong); box-shadow: inset 0 1px 0 var(--ux-edge), var(--ux-e3); text-decoration: none; }
.ux-tile--link:active { transform: none; }
/* dark, gradient, lilac, pro */
.ux-tile--dark { border-color: var(--ux-line); background: radial-gradient(120% 80% at 100% 0%, rgb(99 1 228 / .22), transparent 60%), var(--ux-surface); }
.ux-tile--gradient { color-scheme: dark; --ux-text: #FFFFFF; --ux-muted: rgb(255 255 255 / .84); --ux-accent: #FFFFFF; --ux-line: rgb(255 255 255 / .18); --ux-dot: rgb(255 255 255 / .16); --ux-surface-2: rgb(255 255 255 / .06);
  border-color: transparent; background: radial-gradient(90% 70% at 0% 0%, rgb(255 255 255 / .18), transparent 60%), var(--ux-tile-bg); box-shadow: 0 18px 40px -20px rgb(var(--ux-pri-glow) / .6); }
.ux-tile--lilac { border-color: var(--ux-lilac-line); background: var(--ux-lilac-bg); }
.ux-tile--pro { border-color: color-mix(in srgb, var(--ux-pro-edge) 55%, var(--ux-line)); background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--ux-gold) 12%, transparent), transparent 70%), var(--ux-card-bg); }

/* == 11. SECTION PATTERNS */
.ux-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 0; padding: 0; list-style: none; color: var(--ux-muted); font-size: .9375rem; }
.ux-proof li { display: inline-flex; align-items: center; gap: 8px; }
.ux-proof svg { width: 18px; height: 18px; color: var(--ux-accent); }
.ux-proof b { color: var(--ux-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ux-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; overflow: hidden; border-block: 1px solid var(--ux-line); }
.ux-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 28px); box-shadow: -1px 0 0 var(--ux-line), 0 -1px 0 var(--ux-line); }
.ux-stats dt, .ux-stats dd { margin: 0; }
.ux-stats__num { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
@media (max-width: 639px) { .ux-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ux-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 20px 24px; margin: 0; }
.ux-specs > div { padding-top: 14px; border-top: 1px solid var(--ux-line); }
.ux-specs dt { margin-bottom: 4px; color: var(--ux-muted); font-size: .8125rem; font-weight: 500; }
.ux-specs dd { margin: 0; font: 600 1.125rem/1.3 var(--ux-font-display); letter-spacing: -.01em; }
/* check list */
.ux-checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ux-checks li { position: relative; padding-left: 30px; }
.ux-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--ux-accent-soft); }
.ux-checks li::after { content: ""; position: absolute; left: 1px; top: calc(.2em + 1px); width: 18px; height: 18px; background: var(--ux-accent); mask: var(--ux-check) center / 18px no-repeat; }
.ux-flow { --gap: 24px; --node: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; counter-reset: ux-flow; }
.ux-flow > li { position: relative; padding-top: calc(var(--node) + 20px); counter-increment: ux-flow; }
.ux-flow > li::before { content: counter(ux-flow); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: var(--node); height: var(--node); border: 1px solid var(--ux-key-border); border-radius: 12px;
  background: var(--ux-key-bg); box-shadow: var(--ux-key); color: var(--ux-accent); font: 600 .9375rem/1 var(--ux-font-display); }
.ux-flow > li:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--node) / 2); left: calc(var(--node) + 12px); right: calc(12px - var(--gap)); height: 1px;
  background: repeating-linear-gradient(90deg, var(--ux-line-strong) 0 6px, transparent 6px 11px); }
.ux-flow > li[aria-current="step"]::before { border-color: var(--ux-pri-border); background: var(--ux-pri-bg); box-shadow: var(--ux-pri); color: #FFFFFF; }
.ux-flow h3 { margin-bottom: .35em; } .ux-flow p { margin: 0; color: var(--ux-muted); }
.ux-flow__media { margin-top: 16px; }
@media (max-width: 767px) {
  .ux-flow { grid-auto-flow: row; }
  .ux-flow > li { min-height: var(--node); padding: 6px 0 0 calc(var(--node) + 18px); }
  .ux-flow > li:not(:last-child)::after { top: calc(var(--node) + 8px); bottom: calc(8px - var(--gap)); left: calc(var(--node) / 2); right: auto; width: 1px; height: auto;
  background: repeating-linear-gradient(180deg, var(--ux-line-strong) 0 6px, transparent 6px 11px); }
}
.ux-wall { --cell: 76px; --icon: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--ux-text); }
.ux-wall > li { min-width: 0; }
.ux-wall__cell { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 14px; background: transparent; color: inherit; text-decoration: none;
  transition: background var(--ux-dur), border-color var(--ux-dur), box-shadow var(--ux-dur), color var(--ux-dur); }
.ux-wall__cell svg { width: var(--icon); height: var(--icon); transition: transform var(--ux-dur) var(--ux-ease); }
.ux-wall__name { position: absolute; left: 6px; right: 6px; bottom: 7px; overflow: hidden; color: var(--ux-muted); font: 500 .625rem/1.2 var(--ux-mono); text-align: center; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity var(--ux-dur); }
.ux-wall__cell:hover, .ux-wall__cell:focus-visible { border-color: var(--ux-line); background: var(--ux-surface); box-shadow: var(--ux-e2); color: var(--ux-accent); }
.ux-wall__cell:hover svg, .ux-wall__cell:focus-visible svg { transform: translateY(-6px); }
.ux-wall__cell:hover .ux-wall__name, .ux-wall__cell:focus-visible .ux-wall__name { opacity: 1; }
.ux-wall__cell[aria-pressed="true"], .ux-wall__cell[aria-current="true"] { border-color: color-mix(in srgb, var(--ux-accent) 45%, transparent); background: var(--ux-accent-soft); color: var(--ux-accent); }
.ux-wall--named .ux-wall__cell svg { transform: translateY(-6px); } .ux-wall--named .ux-wall__name { opacity: 1; }
.ux-wall--lg { --cell: 96px; --icon: 28px; }
.ux-wall--panel { padding: clamp(10px, 2vw, 20px); border: 1px solid var(--ux-line); border-radius: var(--ux-r-2xl); background: var(--ux-surface); }
.ux-wall--fade { max-height: var(--h, 440px); overflow: hidden; mask-image: linear-gradient(180deg, #000 70%, transparent); }
.ux-cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(44px, 2rem + 5vw, 96px) clamp(20px, 5vw, 80px); border-radius: 28px; text-align: center; color-scheme: dark;
  --ux-text: #FFFFFF; --ux-muted: rgb(255 255 255 / .84); --ux-accent: #FFFFFF; background: radial-gradient(60% 90% at 50% 0%, rgb(255 255 255 / .16), transparent 70%), var(--ux-tile-bg); color: #FFFFFF; box-shadow: 0 30px 60px -30px rgb(var(--ux-pri-glow) / .6); }
.ux-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .2) 1px, transparent 1.4px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000, transparent 70%); }
.ux-cta h2 { max-width: 16em; margin-inline: auto; color: #FFFFFF; }
.ux-cta p { max-width: 36em; margin-inline: auto; color: var(--ux-muted); font-size: var(--ux-fs-lede); }
.ux-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.ux-cta--plain { color-scheme: inherit; --ux-text: inherit; --ux-muted: inherit; --ux-accent: inherit; border: 1px solid var(--ux-line); background: var(--ux-dots), var(--ux-surface); background-size: 22px 22px, auto; color: var(--ux-text); box-shadow: var(--ux-e2); }
.ux-cta--plain::before { content: none; } .ux-cta--plain h2 { color: var(--ux-text); }
@media (max-width: 639px) { .ux-cta { border-radius: 22px; } .ux-cta__actions .ux-btn { flex: 1 1 100%; } }

/* == 12. ICON PLATES (key-style; tactile accent) */
.ux-plate { --s: 56px; position: relative; isolation: isolate; display: inline-grid; flex: none; place-items: center; width: var(--s); height: var(--s); border: 1px solid var(--ux-line); border-radius: calc(var(--s) * .28);
  background: var(--ux-key-bg); box-shadow: inset 0 1px 0 var(--ux-hi), inset 0 -2px 0 light-dark(rgb(30 18 80 / .04), rgb(0 0 0 / .3)), var(--ux-e1); color: var(--ux-accent); }
.ux-plate svg { width: calc(var(--s) * .5); height: calc(var(--s) * .5); filter: var(--ux-engrave); }
.ux-plate--sm { --s: 40px; } .ux-plate--md { --s: 56px; } .ux-plate--lg { --s: 88px; } .ux-plate--xl { --s: 128px; }
.ux-plate--solid { border-color: var(--ux-pri-border); background: var(--ux-pri-bg); box-shadow: var(--ux-pri); color: #FFFFFF; }
.ux-plate--duotone { border-color: color-mix(in srgb, var(--ux-accent) 20%, transparent); background: var(--ux-accent-soft); box-shadow: none; color: var(--ux-accent); }
.ux-plate--tile { border-color: transparent; background: radial-gradient(130% 70% at 50% -12%, rgb(255 255 255 / .34), rgb(255 255 255 / .04) 58%, transparent 60%), var(--ux-tile-bg); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 -2px 4px -1px rgb(22 3 94 / .45), 0 10px 22px -10px rgb(var(--ux-pri-glow) / .55); }
.ux-plate--glass { border-color: light-dark(rgb(255 255 255 / .6), rgb(255 255 255 / .16)); background: linear-gradient(160deg, light-dark(rgb(255 255 255 / .62), rgb(255 255 255 / .14)), light-dark(rgb(255 255 255 / .2), rgb(255 255 255 / .03)));
  backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / .8), rgb(255 255 255 / .18)), 0 10px 24px -10px rgb(var(--ux-sh) / .4); color: light-dark(#16035E, #FFFFFF); }
.ux-plate--metal { border-color: light-dark(#B6B1C6, #4C4566); color: light-dark(#2A2342, #ECE9F6);
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0) 0 1px, light-dark(rgb(255 255 255 / .16), rgb(255 255 255 / .04)) 1px 2px), linear-gradient(180deg, light-dark(#F7F6FA, #4B4566) 0%, light-dark(#D9D6E3, #322C4A) 46%, light-dark(#C9C5D6, #29243F) 54%, light-dark(#E9E7F0, #3B3556) 100%);
  box-shadow: inset 0 1px 0 light-dark(#FFFFFF, rgb(255 255 255 / .2)), 0 8px 16px -8px rgb(var(--ux-sh) / .4); }
/* tray: a row of plates or icons on a faint grid (style showcases) */
.ux-tray { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 28px; border: 1px solid var(--ux-line); border-radius: var(--ux-r-2xl);
  background: var(--ux-dots), var(--ux-surface-2); background-size: 18px 18px, auto; }
.ux-tray--aurora { background: radial-gradient(60% 80% at 15% 20%, rgb(99 1 228 / .3), transparent 70%), radial-gradient(50% 70% at 85% 80%, rgb(251 174 23 / .26), transparent 70%), radial-gradient(60% 80% at 80% 10%, rgb(45 107 255 / .2), transparent 70%), var(--ux-well); }

/* == 13. BADGES, PRO, LOCK, TOOLTIP, KBD */
.ux-badge { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border: 1px solid var(--ux-line-strong); border-radius: var(--ux-r-pill); background: var(--ux-surface);
  color: var(--ux-text); font: 600 .75rem/1 var(--ux-font); letter-spacing: .01em; white-space: nowrap; vertical-align: middle; }
.ux-badge--soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ux-gold); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--ux-gold) 24%, transparent); }
.ux-badge--placeholder { border-style: dashed; background: var(--ux-hatch), transparent; color: var(--ux-muted); }
.ux-badge--legal { border-color: rgb(251 174 23 / .7); background: repeating-linear-gradient(135deg, rgb(251 174 23 / .2) 0 6px, rgb(251 174 23 / .07) 6px 12px), var(--ux-surface); }
.ux-badge--accent { border-color: color-mix(in srgb, var(--ux-accent) 30%, transparent); background: var(--ux-accent-soft); color: var(--ux-accent); }
.ux-badge--lg { height: 30px; padding: 0 13px; font-size: .8125rem; }
.ux-pro { display: inline-flex; align-items: center; flex: none; height: 19px; padding: 0 6px; border: 1px solid var(--ux-pro-edge); border-radius: 5px; background: var(--ux-pro-bg);
  box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / .8), rgb(255 255 255 / .08)); color: var(--ux-pro-ink); font: 700 .625rem/1 var(--ux-font-display); letter-spacing: .09em; vertical-align: middle; }
.ux-pro--lg { height: 24px; padding: 0 9px; border-radius: 6px; font-size: .75rem; }
.ux-locked { position: relative; }
.ux-locked:has(> .ux-lock:not(.ux-lock--corner)) { padding-bottom: 60px; }
.ux-lock { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 14px; border-radius: inherit;
  background: linear-gradient(180deg, transparent 15%, color-mix(in srgb, var(--ux-surface) 96%, transparent) 78%); color: var(--ux-text); }
.ux-lock > svg { width: 34px; height: 34px; padding: 8px; border: 1px solid var(--ux-line-strong); border-radius: 50%; background: var(--ux-surface); box-shadow: var(--ux-e2); color: var(--ux-pro-ink); }
.ux-lock p { display: inline-flex; align-items: center; height: 34px; margin: 0; padding: 0 14px; border: 1px solid var(--ux-line-strong); border-radius: var(--ux-r-pill); background: var(--ux-surface); box-shadow: var(--ux-e2); color: var(--ux-text); font-size: .8125rem; font-weight: 600; }
.ux-lock--corner { inset: 8px 8px auto auto; padding: 0; flex-direction: row; background: none; }
.ux-lock--corner > svg { width: 24px; height: 24px; padding: 5px; box-shadow: var(--ux-e1); }
/* tooltip: data-ux-tip="Text" on a focusable element (CSS only; aria-label stays the name) */
[data-ux-tip] { position: relative; }
[data-ux-tip]::after { content: attr(data-ux-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 70; padding: 7px 10px; border-radius: 8px; background: var(--ux-tip-bg); color: var(--ux-tip-text);
  font: 500 .75rem/1.2 var(--ux-font); letter-spacing: 0; white-space: nowrap; box-shadow: var(--ux-e3); pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity var(--ux-dur), transform var(--ux-dur) var(--ux-ease); }
[data-ux-tip]:hover::after, [data-ux-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .2s; }
[data-ux-tip][data-ux-tip-pos="bottom"]::after { top: calc(100% + 10px); bottom: auto; }
.ux-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--ux-key-border); border-radius: 6px; background: var(--ux-key-bg);
  box-shadow: inset 0 -1px 0 var(--ux-key-border); color: var(--ux-muted); font: 600 .6875rem/1 var(--ux-mono); }

/* == 14. CODE BLOCK (dark in both themes) */
.ux-code { position: relative; overflow: hidden; border: 1px solid light-dark(rgb(0 0 0 / .4), rgb(255 255 255 / .08)); border-radius: var(--ux-r-lg); background: var(--ux-code-bg); color: var(--ux-code-text); box-shadow: var(--ux-e2); }
.ux-code__bar { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--ux-code-line); background: var(--ux-code-bar); }
.ux-code__title { font: 500 .8125rem/1 var(--ux-mono); color: var(--ux-code-muted); }
.ux-code__tabs { display: flex; gap: 2px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.ux-code__tabs > button { flex: none; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ux-code-muted); font: 500 .8125rem/1 var(--ux-mono); }
.ux-code__tabs > button:hover { color: var(--ux-code-text); }
.ux-code__tabs > [aria-selected="true"] { background: rgb(255 255 255 / .09); color: #FFFFFF; }
.ux-code__copy { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 30px; margin-left: auto; padding: 0 10px; border: 1px solid rgb(255 255 255 / .12); border-radius: 8px; background: rgb(255 255 255 / .05); color: var(--ux-code-text); font: 600 .8125rem/1 var(--ux-font); }
.ux-code__copy:hover { background: rgb(255 255 255 / .09); }
.ux-code__copy:active { transform: translateY(1px); }
.ux-code__copy svg { width: 15px; height: 15px; }
.ux-code__copy[data-copied] { border-color: rgb(183 155 255 / .5); color: #FFFFFF; }
.ux-code :focus-visible { outline-color: #B79BFF; }
.ux-code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; color: var(--ux-code-text); font-size: .84375rem; line-height: 1.7; tab-size: 2; }
.ux-code pre code { font: inherit; }
.ux-code .t-k { color: var(--ux-code-k); } .ux-code .t-s { color: var(--ux-code-s); } .ux-code .t-a { color: var(--ux-code-a); font-style: italic; } .ux-code .t-c { color: var(--ux-code-muted); }
code:not(pre code) { padding: .12em .42em; border: 1px solid var(--ux-line); border-radius: 6px; background: var(--ux-well); color: var(--ux-text); font-size: .875em; overflow-wrap: anywhere; }

/* == 15. TABLES */
.ux-table-wrap { overflow-x: auto; border: 1px solid var(--ux-line); border-radius: var(--ux-r-xl); background: var(--ux-surface); }
.ux-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.ux-table caption { padding: 14px 16px 0; color: var(--ux-muted); font-size: .875rem; text-align: left; caption-side: top; }
.ux-table th, .ux-table td { padding: 13px 16px; text-align: left; vertical-align: top; }
.ux-table thead th { position: sticky; top: 0; border-bottom: 1px solid var(--ux-line); background: var(--ux-surface-2); color: var(--ux-muted); font: 600 .75rem/1.2 var(--ux-font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ux-table tbody tr + tr > * { border-top: 1px solid var(--ux-line); }
.ux-table tbody tr:hover > * { background: color-mix(in srgb, var(--ux-hover) 60%, transparent); }
.ux-table--spec th[scope="row"] { width: 34%; color: var(--ux-text); font-weight: 600; }
.ux-table--spec td { color: var(--ux-muted); }
.ux-table--pricing th, .ux-table--pricing td, .ux-table--compare th, .ux-table--compare td { text-align: center; vertical-align: middle; }
.ux-table--pricing :is(th, td):first-child, .ux-table--compare :is(th, td):first-child { text-align: left; }
.ux-table .is-featured { background: color-mix(in srgb, var(--ux-accent-soft) 55%, transparent); }
.ux-table thead .is-featured { box-shadow: inset 0 2px 0 var(--ux-accent); color: var(--ux-accent); }
.ux-table--compare thead th { color: var(--ux-text); font: 600 1rem/1.3 var(--ux-font-display); letter-spacing: -.01em; text-transform: none; }
.ux-table--compare thead th .ux-pro { margin-left: 6px; }
.ux-table--compare tbody th[scope="row"] { color: var(--ux-text); font-weight: 500; }
.ux-table--compare :is(th, td):first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; background: var(--ux-surface); }
.ux-table--compare thead :is(th, td):first-child { z-index: 2; background: var(--ux-surface-2); }
.ux-table__group > th { padding-block: 10px; background: var(--ux-surface-2) !important; color: var(--ux-muted) !important; font: 600 .75rem/1.2 var(--ux-font) !important; letter-spacing: .04em; text-transform: uppercase; text-align: left !important; }
.ux-table--log td:first-child { width: 1%; color: var(--ux-muted); font: 500 .8125rem/1.7 var(--ux-mono); white-space: nowrap; }
.ux-yes, .ux-no { position: relative; display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: -4px; }
.ux-yes { background: var(--ux-accent); }
.ux-yes::after { content: ""; position: absolute; inset: 1px; background: var(--ux-on-accent); mask: var(--ux-check) center / 18px no-repeat; }
.ux-no { background: linear-gradient(var(--ux-muted), var(--ux-muted)) center / 8px 2px no-repeat; }

/* == 16. ACCORDION / FAQ (native details) */
.ux-faq { display: grid; border-top: 1px solid var(--ux-line); }
.ux-acc { border-bottom: 1px solid var(--ux-line); }
.ux-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; border-radius: var(--ux-r-sm); cursor: pointer; list-style: none;
  font: 500 1.125rem/1.4 var(--ux-font-display); letter-spacing: -.01em; }
.ux-acc > summary::-webkit-details-marker { display: none; }
.ux-acc > summary::after { content: ""; flex: none; width: 28px; height: 28px; border: 1px solid var(--ux-line-strong); border-radius: 50%;
  background: linear-gradient(var(--ux-text), var(--ux-text)) center / 10px 1.5px no-repeat, linear-gradient(var(--ux-text), var(--ux-text)) center / 1.5px 10px no-repeat, var(--ux-surface); transition: transform var(--ux-dur) var(--ux-ease); }
.ux-acc[open] > summary::after { transform: rotate(45deg); }
.ux-acc > summary:hover { color: var(--ux-accent); }
.ux-acc__body { max-width: 62ch; padding: 0 4px 24px; color: var(--ux-muted); }
.ux-acc__body > :last-child { margin-bottom: 0; }

/* == 17. BREADCRUMBS, CALLOUT, TIMELINE */
.ux-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--ux-muted); font-size: .875rem; }
.ux-crumbs li { display: inline-flex; align-items: center; }
.ux-crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--ux-line-strong); }
.ux-crumbs a { border-radius: 4px; color: var(--ux-muted); text-decoration: none; }
.ux-crumbs a:hover { color: var(--ux-text); text-decoration: underline; }
.ux-crumbs [aria-current="page"] { color: var(--ux-text); font-weight: 500; }
.ux-callout { --tone: var(--ux-accent); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--tone) 26%, var(--ux-line)); border-radius: var(--ux-r-lg);
  background: color-mix(in srgb, var(--tone) 6%, var(--ux-surface)); }
.ux-callout > svg, .ux-callout > .ux-plate { color: var(--tone); }
.ux-callout > svg { width: 20px; height: 20px; margin-top: 2px; }
.ux-callout__title { margin: 0 0 4px; font: 600 1rem/1.4 var(--ux-font-display); }
.ux-callout p { margin: 0; color: var(--ux-muted); } .ux-callout p + p { margin-top: .6em; }
.ux-callout--note { --tone: var(--ux-muted); }
.ux-callout--warn, .ux-callout--legal { --tone: var(--ux-gold); }
.ux-callout--warn > svg, .ux-callout--legal > svg { color: var(--ux-text); }
.ux-callout--legal { background: repeating-linear-gradient(135deg, rgb(251 174 23 / .09) 0 10px, transparent 10px 20px), var(--ux-surface); }
.ux-timeline { position: relative; margin: 0; padding: 0 0 0 32px; list-style: none; }
.ux-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 6px; width: 1px; background: var(--ux-line-strong); }
.ux-timeline > li { position: relative; padding-bottom: 32px; }
.ux-timeline > li:last-child { padding-bottom: 0; }
.ux-timeline > li::before { content: ""; position: absolute; top: 5px; left: -31px; width: 11px; height: 11px; border-radius: 50%; background: var(--ux-gold); box-shadow: 0 0 0 4px var(--ux-bg), 0 0 0 5px color-mix(in srgb, var(--ux-gold) 40%, transparent); }
.ux-timeline > li.is-next::before { background: var(--ux-bg); box-shadow: inset 0 0 0 1.5px var(--ux-line-strong), 0 0 0 4px var(--ux-bg); }
.ux-timeline__date { display: block; margin-bottom: 4px; color: var(--ux-muted); font: 500 .8125rem/1.4 var(--ux-mono); }
.ux-timeline h3 { margin-bottom: .3em; font-size: 1.125rem; }
.ux-timeline p { margin: 0; color: var(--ux-muted); }

/* == 18. DEVICE FRAMES + SHOWCASE STAGE */
.ux-phone { --w: 300px; position: relative; width: var(--w); max-width: 100%; aspect-ratio: 9 / 19.5; padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .155);
  background: linear-gradient(145deg, #3A3456 0%, #14111F 22%, #0C0A14 60%, #2C2744 85%, #15121F 100%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14), 0 40px 70px -30px rgb(var(--ux-sh) / .5); }
.ux-phone::before { content: ""; position: absolute; z-index: 2; top: calc(var(--w) * .065); left: 50%; width: 30%; height: calc(var(--w) * .085); border-radius: 99px; background: #05040A; transform: translateX(-50%); }
.ux-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .12); background: var(--ux-bg); color: var(--ux-text); }
.ux-phone--silver { background: linear-gradient(145deg, #FFFFFF 0%, #D8D5E2 25%, #B9B5C8 60%, #EDEBF3 85%, #C5C1D3 100%); }
.ux-window { overflow: hidden; border: 1px solid var(--ux-line-strong); border-radius: var(--ux-r-lg); background: var(--ux-surface); box-shadow: var(--ux-e4); }
.ux-window__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--ux-line); background: var(--ux-surface-2); }
.ux-window__dots { display: flex; flex: none; gap: 7px; }
.ux-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ux-line-strong); }
.ux-window__url { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; max-width: 440px; height: 24px; margin-inline: auto; padding: 0 12px; overflow: hidden; border-radius: 7px; background: var(--ux-well);
  color: var(--ux-muted); font: 500 .75rem/1 var(--ux-mono); text-overflow: ellipsis; white-space: nowrap; }
.ux-window__url svg { width: 12px; height: 12px; }
.ux-window__title { flex: 1; color: var(--ux-muted); font: 600 .8125rem/1 var(--ux-font-display); text-align: center; }
.ux-window__body { position: relative; min-height: 200px; background: var(--ux-bg); }
/* stage: the showcase surface for visuals and mockups (faint dots, one soft halo) */
.ux-stage, .ux-mockup { position: relative; isolation: isolate; display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); overflow: hidden; border: 1px solid var(--ux-line); border-radius: var(--ux-r-2xl);
  background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--ux-accent) 10%, transparent), transparent 70%), var(--ux-dots), var(--ux-surface-2); background-size: auto, 22px 22px, auto; }
.ux-stage--grid { background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--ux-accent) 10%, transparent), transparent 70%), var(--ux-grid), var(--ux-surface-2); background-size: auto, 24px 24px, auto; }
.ux-stage--plain { background: var(--ux-surface-2); }
.ux-stage__caption { margin: 14px 0 0; color: var(--ux-muted); font-size: .875rem; text-align: center; }

/* == 19. HERO */
.ux-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(48px, 2rem + 6vw, 136px) clamp(48px, 2rem + 4vw, 104px); }
.ux-hero::before { content: ""; position: absolute; inset: 0 -10% auto; height: 110%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 50% at 50% 0%, color-mix(in srgb, var(--ux-accent) 13%, transparent), transparent 70%), radial-gradient(18% 22% at 78% 12%, rgb(251 174 23 / .09), transparent 70%); }
.ux-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ux-dots); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 55% 50% at 50% 20%, #000, transparent 75%); }
.ux-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ux-hero__copy .ux-display { margin-bottom: 22px; }
.ux-hero__lede { max-width: 32em; margin-bottom: 32px; color: var(--ux-muted); font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem); line-height: 1.55; }
.ux-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ux-hero__search { max-width: 600px; margin-bottom: 20px; }
.ux-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ux-muted); font-size: .9375rem; }
.ux-hero__meta li { display: inline-flex; align-items: baseline; gap: 6px; }
.ux-hero__meta li + li::before { content: ""; align-self: center; width: 3px; height: 3px; margin: 0 14px; border-radius: 50%; background: var(--ux-muted); }
.ux-hero__meta b { color: var(--ux-text); font: 600 1rem/1 var(--ux-font-display); font-variant-numeric: tabular-nums; }
.ux-hero__stage { position: relative; justify-self: end; width: 100%; max-width: 600px; aspect-ratio: 1; padding: 6%; border: 1px solid var(--ux-line); border-radius: 28px;
  background: var(--ux-grid), var(--ux-surface-2); background-size: 24px 24px; box-shadow: inset 0 1px 0 var(--ux-edge), var(--ux-e3); }
.ux-hero__stage > svg { display: block; width: 100%; height: 100%; }
.ux-hero__stage--wide { justify-self: stretch; max-width: none; aspect-ratio: auto; margin-top: clamp(40px, 6vw, 80px); padding: clamp(16px, 3vw, 40px); }
.ux-hero--center { text-align: center; }
.ux-hero--center .ux-hero__copy { max-width: 880px; margin-inline: auto; }
.ux-hero--center .ux-display { max-width: 13em; margin-inline: auto; }
.ux-hero--center .ux-hero__lede, .ux-hero--center .ux-hero__search { margin-inline: auto; }
.ux-hero--center .ux-hero__actions, .ux-hero--center .ux-hero__meta { justify-content: center; }
@media (max-width: 959px) { .ux-hero__grid { grid-template-columns: minmax(0, 1fr); } .ux-hero__stage { justify-self: center; max-width: 520px; } .ux-hero__stage--wide { max-width: none; } }
@media (max-width: 639px) { .ux-hero__stage { border-radius: 20px; } .ux-hero__actions .ux-btn { flex: 1 1 auto; } }

/* == 20. DOCS LAYOUT + PROSE */
.ux-docs { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.ux-docs--toc { grid-template-columns: 232px minmax(0, 1fr) 200px; }
.ux-sidenav, .ux-toc { position: sticky; top: calc(var(--ux-header-h) + 24px); max-height: calc(100vh - var(--ux-header-h) - 48px); overflow-y: auto; font-size: .9375rem; }
.ux-sidenav h2, .ux-toc h2 { margin: 22px 0 8px; padding-left: 10px; color: var(--ux-text); font: 600 .8125rem/1 var(--ux-font); letter-spacing: 0; }
.ux-sidenav h2:first-child, .ux-toc h2:first-child { margin-top: 0; }
.ux-sidenav ul, .ux-toc ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.ux-sidenav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ux-muted); text-decoration: none; }
.ux-sidenav a:hover { background: var(--ux-hover); color: var(--ux-text); }
.ux-sidenav a[aria-current="page"] { background: var(--ux-accent-soft); color: var(--ux-accent); font-weight: 600; }
.ux-toc a { display: block; padding: 5px 12px; box-shadow: inset 1px 0 0 var(--ux-line); color: var(--ux-muted); font-size: .875rem; text-decoration: none; }
.ux-toc a:hover, .ux-toc a[aria-current="true"] { box-shadow: inset 2px 0 0 var(--ux-accent); color: var(--ux-accent); }
@media (max-width: 1099px) { .ux-docs--toc { grid-template-columns: 232px minmax(0, 1fr); } .ux-docs--toc .ux-toc { display: none; } }
@media (max-width: 859px) { .ux-docs, .ux-docs--toc { grid-template-columns: minmax(0, 1fr); gap: 24px; } .ux-sidenav { position: static; max-height: none; } }
.ux-prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.7; }
.ux-prose > * { margin-bottom: 0; } .ux-prose > * + * { margin-top: 1.1em; }
.ux-prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }
.ux-prose h3 { margin-top: 1.8em; }
.ux-prose h2 + *, .ux-prose h3 + * { margin-top: .6em; }
.ux-prose ul, .ux-prose ol { padding-left: 1.4em; } .ux-prose li + li { margin-top: .4em; }
.ux-prose li::marker { color: var(--ux-accent); }
.ux-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; box-shadow: inset 2px 0 0 var(--ux-line-strong); color: var(--ux-muted); }
.ux-prose .ux-code, .ux-prose .ux-table-wrap, .ux-prose .ux-callout { margin-block: 1.6em; }
.ux-prose :is(h2, h3)[id] { scroll-margin-top: calc(var(--ux-header-h) + 20px); }

/* == 21. ICON BROWSER PARTS: categories list, bottom detail sheet */
.ux-catlist ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.ux-catlist :is(a, button) { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ux-muted);
  font-size: .9375rem; text-align: left; text-decoration: none; }
.ux-catlist :is(a, button):hover { background: var(--ux-hover); color: var(--ux-text); }
.ux-catlist :is([aria-current="true"], [aria-current="page"], [aria-pressed="true"]) { background: var(--ux-accent-soft); color: var(--ux-accent); font-weight: 600; }
.ux-catlist__n { color: var(--ux-muted); font: 500 .75rem/1 var(--ux-mono); font-variant-numeric: tabular-nums; }
.ux-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: min(72vh, 560px); overflow-y: auto; border-top: 1px solid var(--ux-line); border-radius: 20px 20px 0 0; background: var(--ux-surface);
  box-shadow: 0 -18px 48px -18px var(--ux-shadow-lg); }
.ux-sheet__inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px 32px; max-width: calc(var(--ux-max) + 2 * var(--ux-gutter)); margin-inline: auto; padding: 24px var(--ux-gutter); }
.ux-sheet__close { position: absolute; top: 12px; right: 12px; }
.ux-sheet__preview { display: grid; place-items: center; width: 224px; aspect-ratio: 1; padding: 16px; border: 1px solid var(--ux-line); border-radius: 16px; background: var(--ux-grid), var(--ux-well); background-size: 8px 8px; color: var(--ux-text); }
.ux-sheet__preview svg { width: 100%; height: 100%; }
.ux-sheet__info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ux-sheet__name { margin: 0; font: 600 1.25rem/1.3 var(--ux-mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ux-sheet__props { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; }
.ux-sheet__actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; align-content: start; }
.ux-sheet__actions .ux-btn { justify-content: flex-start; }
@media (max-width: 899px) { .ux-sheet__inner { grid-template-columns: auto minmax(0, 1fr); } .ux-sheet__actions { grid-column: 1 / -1; } }
@media (max-width: 559px) { .ux-sheet__inner { grid-template-columns: minmax(0, 1fr); padding-top: 20px; } .ux-sheet__preview { width: 128px; } .ux-sheet__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* == 22. UTILITIES */
.ux-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.ux-muted { color: var(--ux-muted); } .ux-mono { font-family: var(--ux-mono); } .ux-center { text-align: center; } .ux-num { font-variant-numeric: tabular-nums; }
.ux-mt-0 { margin-top: 0; } .ux-mb-0 { margin-bottom: 0; }

/* == 23. MOTION (nothing moves on its own; hover only) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .ux-card--link:hover, .ux-tile--link:hover, .ux-wall__cell:hover svg, .ux-wall__cell:focus-visible svg { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .ux-header, .ux-subnav, .ux-footer, .ux-sheet, .ux-code__copy, .ux-menu-btn, .ux-theme-btn { display: none !important; } body { background: #fff; } }

/* == 24. FORCED COLOURS (Windows High Contrast): swatches keep their colour, on/off and selected states use system colours */
@media (forced-colors: active) {
  .ux-swatch span, .ib-custom span, .st-swatch, .pg-cp { forced-color-adjust: none; border: 1px solid CanvasText; }
  .ux-swatch input:checked + span, .ib-custom.is-on span, .ib-custom[aria-expanded="true"] span, .pg-cp.is-on, .pg-cp[aria-expanded="true"] { outline: 3px solid Highlight; outline-offset: 2px; }
  :is([aria-pressed="true"], [aria-selected="true"], [aria-current]:not([aria-current="false"])) { background: Highlight !important; color: HighlightText !important; border-color: Highlight !important; }
  .ux-toggle { border: 1px solid CanvasText; }
  .ux-toggle::before { background: CanvasText; }
  .ux-toggle:checked { background: Highlight; border-color: Highlight; }
  .ux-toggle:checked::before { background: HighlightText; }
}
