/* Marketing site styles. The design tokens are web/src/ui/tokens.css, inlined at the token marker below by
 * scripts/build-site.mjs (one source for site and app); the site is light by default and follows the OS or the
 * stored app theme. */
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('/fonts/mulish-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('/fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- web/src/ui/tokens.css (inlined) ---- */
/* ==========================================================================
 * UltraDesigner design tokens — the one source for the app (styles.css imports this first)
 * and the marketing site (scripts/build-site.mjs inlines this file into site.css).
 * Brand stays white + red (#e60000). Everything else is tonal scales, fluid type, a 4 px grid,
 * soft elevation, glass, motion. Every token is documented in docs/design-system.md.
 *
 * Layout of this file (build-site.mjs reads the marker comments, keep them):
 *   1. shared tokens   (theme independent)
 *   2. dark colours    (the app default; also `[data-theme='dark']`)
 *   3. light colours   (`[data-theme='light']`)
 * Old token names stay valid: they are aliased at the bottom of each block.
 * ========================================================================== */

/* ud:shared-begin */
:root {
  /* Brand red scale. 600 is the brand fill (white text 4.81:1); 700 is red as text on light (6.3:1 on white). */
  --red-50: #fff0f0;
  --red-100: #ffdede;
  --red-200: #ffbdbd;
  --red-300: #ff8f8f;
  --red-400: #ff6b6b;
  --red-500: #f21f1f;
  --red-600: #e60000;
  --red-700: #c40000;
  --red-800: #a30000;
  --red-900: #7a0000;

  /* Neutral scale with a faint cool tint (use for new surfaces, borders and text; the themed
     --bg-*, --ink-* tokens below are the semantic layer that existing feature CSS reads). */
  --n-0: #ffffff;
  --n-50: #f7f8fa;
  --n-100: #eff1f4;
  --n-200: #e3e6eb;
  --n-300: #cfd3db;
  --n-400: #a4abb8;
  --n-500: #7a8294;
  --n-600: #5a6275;
  --n-700: #434a5b;
  --n-800: #2b3140;
  --n-900: #1a1e29;
  --n-950: #0d1017;

  /* Typography: Mulish (self-hosted). Fluid scale: 390 px phone -> 1440 px desktop. */
  --display: "Mulish", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font: "Mulish", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --text-xs: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.79rem + 0.1vw, 0.9rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
  --text-lg: clamp(1.05rem, 1rem + 0.2vw, 1.175rem);
  --text-xl: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.8rem, 1.45rem + 1.7vw, 2.6rem);
  --text-4xl: clamp(2.1rem, 1.55rem + 2.8vw, 3.5rem);
  --weight-body: 400;
  --weight-strong: 600;
  --weight-display: 800;
  --tracking-display: -0.02em;
  --tracking-caps: 0.06em;
  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-loose: 1.7;
  --measure: 66ch;
  --measure-narrow: 46ch;

  /* Spacing, 4 px grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --space-11: 5rem;
  --space-12: 6rem;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* z-index scale */
  --z-raised: 10;
  --z-sticky: 40;
  --z-drawer: 80;
  --z-modal: 100;
  --z-toast: 110;
  --z-popover: 120;
  --z-tooltip: 130;

  /* Motion (cubic-bezier only). A reduced-motion block in styles.css zeroes the durations. */
  --dur-100: 100ms;
  --dur-160: 160ms;
  --dur-240: 240ms;
  --dur-400: 400ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Breakpoints (custom properties cannot be used inside @media; the numbers are mirrored in
     web/src/ui/breakpoints.ts and every media query in ui.css uses them literally):
     sm 480 · md 720 · lg 1024 · xl 1440 · 2xl 1920 */
  --bp-sm: 480px;
  --bp-md: 720px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;
  --bp-2xl: 1920px;
  --container: 1180px;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);

  /* Legacy aliases (shape and timing only; colour aliases live in the theme blocks) */
  --radius: var(--radius-sm);
  --ease-out: cubic-bezier(0.2, 0, 0.15, 1);
  --dur-fast: var(--dur-100);
  --dur-med: var(--dur-240);

  font-family: var(--font);
}
@media (min-width: 1440px) { :root { --container: 1320px; } }
@media (min-width: 1920px) { :root { --container: 1560px; } }
/* ud:shared-end */

/* ud:dark-begin */
/* Dark = navy ramp. Brand red is #e60000 for fills with white text (4.81:1); red as text on navy is #ff6b6b. */
:root,
:root[data-theme='dark'],
[data-theme='dark'] {
  --bg-0: #0b1220;
  --bg-1: #111a2e;
  --bg-2: #16213a;
  --bg-3: #1d2b4a;
  --line: #2c3b5e;
  --line-soft: #1f2d49;
  --field-line: #6f7d9c;
  --ink: #f5f6f8;
  --ink-dim: #c5cad6;
  --ink-faint: #99a3b8;
  --accent: #e60000;
  --accent-hover: #cc0000;
  --accent-deep: #b30000;
  --accent-pressed: #b30000;
  --accent-soft: rgba(140, 165, 230, 0.16);
  --accent-tint: rgba(255, 107, 107, 0.14);
  --accent-ink: #ff6b6b;
  --on-accent: #ffffff;
  --focus-ring: #ff6b6b;
  --focus-glow: rgba(255, 107, 107, 0.35);
  --glow-accent: 0 0 0 1px rgba(255, 107, 107, 0.5), 0 6px 24px rgba(230, 0, 0, 0.35);
  --paper: #ffffff;
  --paper-line: #e5e5e5;
  --paper-ink: #222222;
  --amber: #e8a13c;
  --amber-soft: rgba(232, 161, 60, 0.13);
  --amber-ink: #f0d3a0;
  --amber-line: #e8a13c;
  --ok: #4cc38a;
  --ok-soft: rgba(76, 195, 138, 0.12);
  --ok-ink: #a9e8c6;
  --danger: #ff9db4;
  --danger-soft: rgba(255, 157, 180, 0.12);
  --danger-ink: #ffc2d0;
  --header-bg: #0b1220;
  --logo-plate: #ffffff;
  --stage: #0f1830;
  --scrim: rgba(6, 10, 20, 0.72);
  --hover: rgba(255, 255, 255, 0.06);
  --pressed: rgba(255, 255, 255, 0.1);
  --tip-bg: #f5f6f8;
  --tip-ink: #0b1220;
  --skel-base: #1d2b4a;
  --skel-shine: rgba(255, 255, 255, 0.07);

  /* Elevation: 1 resting, 2 raised card, 3 menus/popovers/dialogs, 4 sheets/lifted */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.22);
  --shadow-3: 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-4: 0 4px 8px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
  /* Glass */
  --glass-bg: rgba(17, 26, 46, 0.72);
  --glass-line: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
  --glass-filter: saturate(1.4) blur(16px);

  /* Site-only semantic names (page / alternate band / card) */
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --card: #16213a;
  --il-a: #223255;
  --il-b: #e60000;
  --il-c: #3b4c74;
  --il-stroke: #99a3b8;

  /* Legacy aliases */
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);
  --shadow: var(--shadow-2);
  color-scheme: dark;
}
/* ud:dark-end */

/* ud:light-begin */
/* Light: #f5f5f5 page, #fff cards, #222 text, #ddd lines. Contrast (WCAG AA):
 *   --ink #222 on #f5f5f5 14.6:1 · --ink-dim #4a4a4a on #fff 8.9:1 · --ink-faint #6b6b6b on #f5f5f5 4.9:1
 *   --accent #e60000 with white text 4.8:1 · --accent-ink #c40000 on #fff 6.3:1 · --field-line #8c8c8c >= 3:1 */
:root[data-theme='light'],
[data-theme='light'] {
  --bg-0: #f5f5f5;
  --bg-1: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #ececec;
  --line: #dddddd;
  --line-soft: #e9e9e9;
  --field-line: #8c8c8c;
  --ink: #222222;
  --ink-dim: #4a4a4a;
  --ink-faint: #6b6b6b;
  --accent: #e60000;
  --accent-hover: #cc0000;
  --accent-deep: #b30000;
  --accent-pressed: #b30000;
  --accent-soft: rgba(230, 0, 0, 0.09);
  --accent-tint: #fff0f0;
  --accent-ink: #c40000;
  --on-accent: #ffffff;
  --focus-ring: #e60000;
  --focus-glow: rgba(230, 0, 0, 0.22);
  --glow-accent: 0 0 0 1px rgba(230, 0, 0, 0.35), 0 6px 20px rgba(230, 0, 0, 0.22);
  --paper: #ffffff;
  --paper-line: #e5e5e5;
  --paper-ink: #222222;
  --amber: #8a5a00;
  --amber-soft: rgba(138, 90, 0, 0.12);
  --amber-ink: #5a3900;
  --amber-line: #e8a13c;
  --ok: #1f7a4d;
  --ok-soft: rgba(31, 122, 77, 0.12);
  --ok-ink: #14563a;
  --danger: #a80f36;
  --danger-soft: rgba(168, 15, 54, 0.09);
  --danger-ink: #8f0c2e;
  --header-bg: #ffffff;
  --logo-plate: transparent;
  --stage: #e4e4e4;
  --scrim: rgba(34, 34, 34, 0.45);
  --hover: rgba(26, 30, 41, 0.05);
  --pressed: rgba(26, 30, 41, 0.09);
  --tip-bg: #1a1e29;
  --tip-ink: #f5f6f8;
  --skel-base: #ececec;
  --skel-shine: rgba(255, 255, 255, 0.7);

  --shadow-1: 0 1px 2px rgba(34, 34, 34, 0.1);
  --shadow-2: 0 1px 2px rgba(34, 34, 34, 0.08), 0 4px 14px rgba(34, 34, 34, 0.08);
  --shadow-3: 0 2px 4px rgba(34, 34, 34, 0.1), 0 12px 32px rgba(34, 34, 34, 0.14);
  --shadow-4: 0 4px 8px rgba(34, 34, 34, 0.1), 0 24px 60px rgba(34, 34, 34, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(34, 34, 34, 0.08);
  --glass-blur: 16px;
  --glass-filter: saturate(1.4) blur(16px);

  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --card: #ffffff;
  --il-a: #ffffff;
  --il-b: #e60000;
  --il-c: #c9ced8;
  --il-stroke: #8791a7;

  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);
  --shadow: var(--shadow-2);
  color-scheme: light;
}
/* ud:light-end */

/* The one global reduced-motion block (DS), shared by the app and the site (not in a marker section: build-site inlines the whole file). Durations collapse to ~0, animations run once, smooth
 * scrolling is off and press/hover transforms are disabled. Feature files keep only the rules that
 * must swap an animation for a static state (a spinner that becomes a dotted ring and so on). */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-100: 0.01ms; --dur-160: 0.01ms; --dur-240: 0.01ms; --dur-400: 0.01ms; --dur-fast: 0.01ms; --dur-med: 0.01ms; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .pressable:active, [data-ui]:active, .ui-card[data-interactive]:hover { transform: none !important; }
}

/* Site default theme: light, or dark when the OS asks for it and no theme is stored. */
:root:not([data-theme]) {
  --bg-0: #f5f5f5;
  --bg-1: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #ececec;
  --line: #dddddd;
  --line-soft: #e9e9e9;
  --field-line: #8c8c8c;
  --ink: #222222;
  --ink-dim: #4a4a4a;
  --ink-faint: #6b6b6b;
  --accent: #e60000;
  --accent-hover: #cc0000;
  --accent-deep: #b30000;
  --accent-pressed: #b30000;
  --accent-soft: rgba(230, 0, 0, 0.09);
  --accent-tint: #fff0f0;
  --accent-ink: #c40000;
  --on-accent: #ffffff;
  --focus-ring: #e60000;
  --focus-glow: rgba(230, 0, 0, 0.22);
  --glow-accent: 0 0 0 1px rgba(230, 0, 0, 0.35), 0 6px 20px rgba(230, 0, 0, 0.22);
  --paper: #ffffff;
  --paper-line: #e5e5e5;
  --paper-ink: #222222;
  --amber: #8a5a00;
  --amber-soft: rgba(138, 90, 0, 0.12);
  --amber-ink: #5a3900;
  --amber-line: #e8a13c;
  --ok: #1f7a4d;
  --ok-soft: rgba(31, 122, 77, 0.12);
  --ok-ink: #14563a;
  --danger: #a80f36;
  --danger-soft: rgba(168, 15, 54, 0.09);
  --danger-ink: #8f0c2e;
  --header-bg: #ffffff;
  --logo-plate: transparent;
  --stage: #e4e4e4;
  --scrim: rgba(34, 34, 34, 0.45);
  --hover: rgba(26, 30, 41, 0.05);
  --pressed: rgba(26, 30, 41, 0.09);
  --tip-bg: #1a1e29;
  --tip-ink: #f5f6f8;
  --skel-base: #ececec;
  --skel-shine: rgba(255, 255, 255, 0.7);

  --shadow-1: 0 1px 2px rgba(34, 34, 34, 0.1);
  --shadow-2: 0 1px 2px rgba(34, 34, 34, 0.08), 0 4px 14px rgba(34, 34, 34, 0.08);
  --shadow-3: 0 2px 4px rgba(34, 34, 34, 0.1), 0 12px 32px rgba(34, 34, 34, 0.14);
  --shadow-4: 0 4px 8px rgba(34, 34, 34, 0.1), 0 24px 60px rgba(34, 34, 34, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(34, 34, 34, 0.08);
  --glass-blur: 16px;
  --glass-filter: saturate(1.4) blur(16px);

  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --card: #ffffff;
  --il-a: #ffffff;
  --il-b: #e60000;
  --il-c: #c9ced8;
  --il-stroke: #8791a7;

  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);
  --shadow: var(--shadow-2);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg-0: #0b1220;
  --bg-1: #111a2e;
  --bg-2: #16213a;
  --bg-3: #1d2b4a;
  --line: #2c3b5e;
  --line-soft: #1f2d49;
  --field-line: #6f7d9c;
  --ink: #f5f6f8;
  --ink-dim: #c5cad6;
  --ink-faint: #99a3b8;
  --accent: #e60000;
  --accent-hover: #cc0000;
  --accent-deep: #b30000;
  --accent-pressed: #b30000;
  --accent-soft: rgba(140, 165, 230, 0.16);
  --accent-tint: rgba(255, 107, 107, 0.14);
  --accent-ink: #ff6b6b;
  --on-accent: #ffffff;
  --focus-ring: #ff6b6b;
  --focus-glow: rgba(255, 107, 107, 0.35);
  --glow-accent: 0 0 0 1px rgba(255, 107, 107, 0.5), 0 6px 24px rgba(230, 0, 0, 0.35);
  --paper: #ffffff;
  --paper-line: #e5e5e5;
  --paper-ink: #222222;
  --amber: #e8a13c;
  --amber-soft: rgba(232, 161, 60, 0.13);
  --amber-ink: #f0d3a0;
  --amber-line: #e8a13c;
  --ok: #4cc38a;
  --ok-soft: rgba(76, 195, 138, 0.12);
  --ok-ink: #a9e8c6;
  --danger: #ff9db4;
  --danger-soft: rgba(255, 157, 180, 0.12);
  --danger-ink: #ffc2d0;
  --header-bg: #0b1220;
  --logo-plate: #ffffff;
  --stage: #0f1830;
  --scrim: rgba(6, 10, 20, 0.72);
  --hover: rgba(255, 255, 255, 0.06);
  --pressed: rgba(255, 255, 255, 0.1);
  --tip-bg: #f5f6f8;
  --tip-ink: #0b1220;
  --skel-base: #1d2b4a;
  --skel-shine: rgba(255, 255, 255, 0.07);

  /* Elevation: 1 resting, 2 raised card, 3 menus/popovers/dialogs, 4 sheets/lifted */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.22);
  --shadow-3: 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-4: 0 4px 8px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
  /* Glass */
  --glass-bg: rgba(17, 26, 46, 0.72);
  --glass-line: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
  --glass-filter: saturate(1.4) blur(16px);

  /* Site-only semantic names (page / alternate band / card) */
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --card: #16213a;
  --il-a: #223255;
  --il-b: #e60000;
  --il-c: #3b4c74;
  --il-stroke: #99a3b8;

  /* Legacy aliases */
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);
  --shadow: var(--shadow-2);
  color-scheme: dark;
  }
}
/* ---- end tokens ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
ul, ol { padding-left: 1.2em; }
.muted { color: var(--ink-faint); }
.small { font-size: .875rem; }
.lead { font-size: 1.2rem; color: var(--ink-dim); max-width: 46rem; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }
.section { padding: 3rem 0; }
.section:first-child { padding-top: 3.5rem; }
.section > .wrap > h2:first-child { margin-top: 0; }
.alt { background: var(--bg-alt); }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.site-header { position: sticky; top: 0; z-index: var(--z-sticky); border-bottom: 1px solid var(--glass-line); background: var(--bg); transition: box-shadow var(--dur-240) var(--ease-standard); }
/* Blur on ::before: a backdrop-filter on the header would contain the fixed phone sheet. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
.site-header.scrolled { box-shadow: var(--shadow-2); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; min-height: 44px; }
.brand-lockup { display: block; height: 36px; width: auto; transition: transform var(--dur-240) var(--ease-spring); }
.brand-lockup-dark,[data-theme=dark] .brand-lockup-light{display:none}
[data-theme=dark] .brand-lockup-dark{display:block}
@media (prefers-color-scheme:dark){:root:not([data-theme]) .brand-lockup-light{display:none}:root:not([data-theme]) .brand-lockup-dark{display:block}}
.brand:hover .brand-lockup { transform: scale(1.03); }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-pill); font-weight: 700; background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 4px; width: 1.05rem; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-240) var(--ease-standard), opacity var(--dur-160); }
.menu[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu ul, .site-footer ul { list-style: none; padding: 0; margin: 0; }
/* Phone menu: a sheet sliding in from the right with a scrim; items rise in one after the other. */
.sheet-scrim { position: fixed; inset: 0; z-index: 1; background: var(--scrim); animation: fade var(--dur-240) var(--ease-standard) both; }
.sheet { position: fixed; z-index: 2; top: 0; right: 0; bottom: 0; width: min(22rem, 88vw); overflow-y: auto; background: var(--bg-1); border-left: 1px solid var(--line); box-shadow: var(--shadow-4); padding: 4.5rem 1.25rem 1.5rem; animation: slide-in var(--dur-400) var(--ease-emphasized) both; }
.sheet-close { position: absolute; top: .9rem; right: .9rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 400 1.6rem/1 var(--font); cursor: pointer; }
.sheet-close:hover { border-color: var(--ink); }
.sheet a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: .5rem .75rem; color: var(--ink); text-decoration: none; font: 700 1.2rem var(--font); border-bottom: 1px solid var(--line-soft); }
.sheet a:not(.btn):hover, .sheet a[aria-current] { color: var(--accent-ink); }
.sheet-cta { margin-top: 1.5rem; }
.sheet-cta .btn { width: 100%; }
.menu[open] .sheet li, .menu[open] .sheet-cta { animation: rise var(--dur-400) var(--ease-emphasized) both; animation-delay: calc(80ms + var(--i, 0) * 55ms); }
body.sheet-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { display: none; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink); font-weight: 800; text-decoration: none; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-pill); transition: border-color var(--dur-160); }
.lang:hover { border-color: var(--ink); }
.nav-desktop { display: none; margin-left: auto; }
.nav-desktop ul { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav-desktop a { position: relative; display: block; padding: .6rem .8rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-desktop a::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-240) var(--ease-standard); }
.nav-desktop a:hover::after, .nav-desktop a:focus-visible::after, .nav-desktop a[aria-current]::after { transform: scaleX(1); }
.nav-desktop a[aria-current] { color: var(--accent-ink); }
@media (min-width: 62rem) {
  .nav-desktop { display: block; }
  .menu { display: none; }
  .header-actions .btn { display: inline-flex; }
}
@media (max-width: 61.99rem) {
  .header-actions { margin-left: .25rem; }
}
.menu .menu-label { display: none; }
@media (min-width: 30rem) { .menu .menu-label { display: inline; } }
.sheet-close[hidden] { display: none; }

.btn { display: inline-flex; }
}
@media (max-width: 61.99rem) {
  .header-actions .btn { display: inline-flex; padding: .5rem .8rem; font-size: .85rem; }
}
@media (max-width: 40rem) { .header-actions .btn { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .8rem 1.4rem; border-radius: var(--radius-pill); font: 800 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background var(--dur-160), border-color var(--dur-160), box-shadow var(--dur-240), transform var(--dur-160) var(--ease-standard); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--glow-accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

.hero { position: relative; overflow: hidden; padding: 3rem 0 3rem; background: radial-gradient(60rem 28rem at 88% -8%, var(--accent-soft), transparent 62%), var(--bg-alt); }
.hero h1 { font-family: var(--display); font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.1rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.hero .lead { font-size: var(--text-lg); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .hero { padding: 4.5rem 0; } .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.trust-line { margin: 1.25rem 0 0; }

/* Live mosaic: phones get a static 3-up (first image of each column); wide screens a slow vertical drift that
 * pauses on hover. Each column holds its images twice, so the loop has no seam. */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mcol { min-width: 0; }
.mtrack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.mtrack li { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-2); background: var(--card); }
.mtrack img { display: block; width: 100%; height: auto; }
.mtrack li:nth-child(n+2), .mdup { display: none; }
@media (min-width: 52rem) {
  .mosaic { height: clamp(26rem, 38vw, 40rem); gap: .8rem; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
  .mcol { overflow: hidden; display: flex; flex-direction: column; }
  .mtrack { gap: .8rem; padding-bottom: .8rem; flex: none; animation: drift 70s linear infinite; }
  .mtrack li:nth-child(n+2), .mdup { display: flex; }
  .mdup { display: flex; }
  .mtrack li { display: block; }
  .mcol-1 .mtrack { animation-duration: 86s; animation-direction: reverse; }
  .mcol-2 .mtrack { animation-duration: 78s; }
  .mosaic:hover .mtrack, .mosaic:focus-within .mtrack { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateY(-100%); } }

.grid { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cards-grid { grid-template-columns: repeat(2, 1fr); } .three { grid-template-columns: repeat(3, 1fr); } .four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards-grid { grid-template-columns: repeat(3, 1fr); } .four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: .6rem; }
.plan-price { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.price { font-weight: 800; }
.price.muted { font-weight: 600; }

/* Sample designs: collage on family tiles, grid on product pages, thumbnails on /templates. */
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; align-items: center; margin-bottom: .75rem; min-height: 5.5rem; }
.collage[data-count="1"] { grid-template-columns: 1fr; }
.collage[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.collage img, .sample img, .thumbs img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); }
.sample-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 62rem) { .sample-grid { grid-template-columns: repeat(4, 1fr); } }
.sample .btn-row { margin-top: .75rem; gap: .5rem; }
.sample .btn { padding-inline: .8rem; }
.thumbs { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.thumbs a { display: block; }
.thumbs a:focus-visible img, .thumbs a:hover img { outline: 2px solid var(--accent); outline-offset: 1px; }

.illus { width: 100%; height: auto; max-height: 7.5rem; display: block; margin-bottom: .75rem; }
.il-lg { max-height: 14rem; }
.hero-art .illus { margin: 0; }
.il-a { fill: var(--il-a); stroke: var(--il-stroke); stroke-width: 1.5; }
.il-b { fill: var(--il-b); }
.il-c { fill: var(--il-c); }
.il-line { fill: none; stroke: var(--il-stroke); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.family-head { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 1rem; }
@media (min-width: 46rem) { .family-head { grid-template-columns: 14rem 1fr; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.25rem; font-size: .9rem; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--ink-faint); }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.5rem; position: relative; margin-bottom: .35rem; }
.ticks li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-ink); font-weight: 800; }
.plain { list-style: none; padding: 0; margin: 0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th[scope='row'] { font-weight: 700; }
.num-col { text-align: right; font-variant-numeric: tabular-nums; }

.faq { border-bottom: 1px solid var(--line); padding: .25rem 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; cursor: pointer; font-weight: 700; padding: .6rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: .55rem; height: .55rem; border-right: 2px solid var(--ink-dim); border-bottom: 2px solid var(--ink-dim); transform: rotate(45deg); transition: transform var(--dur-240) var(--ease-standard); }
.faq[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--accent-ink); }
/* Height animation: the details content box animates from 0 to auto (Chromium; elsewhere it simply opens). */
:root { interpolate-size: allow-keywords; }
.faq::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--dur-240) var(--ease-standard), opacity var(--dur-240) var(--ease-standard), content-visibility var(--dur-240) allow-discrete; }
.faq[open]::details-content { block-size: auto; opacity: 1; }
.steps { padding-left: 1.2em; }
.steps h2 { margin-top: 1em; font-size: 1.3rem; }

.legal h2 { font-size: 1.25rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: .3rem; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 .6rem; }
.site-footer li { margin-bottom: .35rem; }

.footer-h-gap { margin-top: 1.25rem; }
.footer-id { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); margin-bottom: .75rem; }
.footer-id a { display: inline-flex; align-items: center; min-height: 32px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Operator identification: one line per fact; on wide footers the facts flow on one or two lines. */
.ident { font-style: normal; display: flex; flex-direction: column; gap: .2rem; color: var(--ink-dim); overflow-wrap: anywhere; }
.ident-name { color: var(--ink); }
.ident-k { color: var(--ink-faint); }
@media (min-width: 62rem) {
  .footer-id .ident { flex-direction: row; flex-wrap: wrap; column-gap: 1.25rem; }
}
.ident-full { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.contact-ways { display: grid; gap: 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .contact-ways { grid-template-columns: 1fr 1fr; } }
.contact-big { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-big a { display: inline-flex; align-items: center; min-height: 44px; }

.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 40rem; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1rem 1.25rem; }
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
/* Consent choices carry the same weight: neither is the highlighted default. */
.btn-choice { flex: 1 1 10rem; }
.cookie-settings-open { font: inherit; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.cs-root { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.cs-root[hidden] { display: none; }
.cs-scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade var(--dur-240) var(--ease-standard) both; }
.cs-panel { position: relative; width: min(34rem, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--bg-1); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-4); padding: 1.5rem; animation: rise var(--dur-240) var(--ease-emphasized) both; }
.cs-panel:focus { outline: none; }
.cs-panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cs-title { margin-top: 0; font-size: 1.4rem; }
.cs-analytics { border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1rem; }
.cs-foot { display: flex; justify-content: flex-end; }
body.cs-open { overflow: hidden; }

/* Legal pages: code names wrap, the cookie table becomes one card per row on phones. */
.legal code { font-size: .875em; background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 .25em; overflow-wrap: anywhere; }
.legal-table caption { text-align: left; font-weight: 700; padding: .6rem .9rem; }
.legal-table th, .legal-table td { vertical-align: top; font-size: .925rem; }
.legal-table thead th { white-space: nowrap; }
.legal-table code { white-space: nowrap; overflow-wrap: normal; font-size: .8em; }
@media (min-width: 46.01rem) {
  /* Five columns do not fit the reading column: the table alone widens around it. */
  .legal .legal-table { position: relative; left: 50%; transform: translateX(-50%); width: min(66rem, calc(100vw - 4rem)); }
  .legal-table table { table-layout: fixed; }
  .legal-table thead th:nth-child(1) { width: 26%; } .legal-table thead th:nth-child(2) { width: 12%; }
  .legal-table thead th:nth-child(3) { width: 34%; } .legal-table thead th:nth-child(4) { width: 16%; } .legal-table thead th:nth-child(5) { width: 12%; }
}
@media (max-width: 46rem) {
  .legal-table table, .legal-table caption, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { border-bottom: 2px solid var(--line); padding: .4rem 0; }
  .legal-table th, .legal-table td { border-bottom: 0; padding: .25rem .9rem; }
  .legal-table td::before { content: attr(data-label) ': '; font-weight: 700; color: var(--ink-faint); }
}


/* ---- polish: cards, family tiles, steps, band, carousel, breadcrumbs, 404, big screens ---- */
.lift { transition: transform var(--dur-240) var(--ease-standard), box-shadow var(--dur-240) var(--ease-standard), border-color var(--dur-240); }
@media (hover: hover) {
  .lift:hover, .lift:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--field-line); }
}
.card-primary { border-color: var(--accent-soft); box-shadow: var(--shadow-1), 0 10px 30px var(--accent-soft); }
@media (hover: hover) { .card-primary:hover, .card-primary:focus-within { box-shadow: var(--glow-accent); border-color: var(--accent); } }
.tilt .collage picture { display: block; transform-origin: 50% 100%; transition: transform var(--dur-400) var(--ease-spring); }
@media (hover: hover) {
  .tilt:hover .collage picture:nth-child(1) { transform: rotate(-5deg) translateY(-3px); }
  .tilt:hover .collage picture:nth-child(2) { transform: translateY(-8px) scale(1.05); }
  .tilt:hover .collage picture:nth-child(3) { transform: rotate(5deg) translateY(-3px); }
}
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-400) var(--ease-standard), transform var(--dur-400) var(--ease-standard); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

.band { background: var(--card); padding: 0; margin: 1rem 0 0; }
.band-grid { display: grid; padding-top: 0; padding-bottom: 0; }
.band-a, .band-b { padding: 2.5rem 0; }
.band-a { background: var(--accent); color: var(--on-accent); margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.band-a h2 { margin-top: 0; font-family: var(--display); font-size: var(--text-3xl); }
.band-a p { font-size: var(--text-lg); margin: 0; }
.band-b p { font-size: var(--text-lg); color: var(--ink-dim); }
@media (min-width: 52rem) {
  .band { background: linear-gradient(90deg, var(--accent) 50%, var(--card) 50%); }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-a { margin: 0; padding: 4rem 3rem 4rem 0; }
  .band-b { padding: 4rem 0 4rem 3rem; align-self: center; }
}

.carousel { position: relative; }
.car-btn[hidden], .car-dots[hidden] { display: none; }
.car-track { margin-top: 1rem; }
@media (max-width: 61.99rem) {
  .car-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .25rem; overscroll-behavior-x: contain; padding: .25rem .25rem 1rem; margin-inline: -.25rem; scrollbar-width: none; }
  .car-track::-webkit-scrollbar { display: none; }
  .car-track > li { flex: 0 0 min(72%, 17rem); scroll-snap-align: start; }
}
.car-btn { position: absolute; z-index: 2; top: 35%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); color: var(--ink); font: 400 1.7rem/1 var(--font); cursor: pointer; box-shadow: var(--shadow-2); transition: opacity var(--dur-160), transform var(--dur-160) var(--ease-standard); }
.car-btn:hover:not(:disabled) { transform: scale(1.08); border-color: var(--accent); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-prev { left: .25rem; }
.car-next { right: .25rem; }
.car-dots { display: flex; justify-content: center; }
.car-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-dot::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--field-line); transition: transform var(--dur-160), background var(--dur-160); }
.car-dot[aria-current]::before { background: var(--accent); transform: scale(1.4); }

.crumbs a { color: var(--ink-dim); }
.crumbs a:hover { color: var(--accent-ink); }
.notfound { text-align: center; padding: 2rem 0; }
.notfound .lead { margin-inline: auto; }
.notfound .btn-row { justify-content: center; }
.nf-code { font: 900 clamp(5rem, 24vw, 11rem)/1 var(--display); letter-spacing: -.05em; color: var(--accent-ink); margin: 0; }

@media (max-width: 40rem), (pointer: coarse) {
  .crumbs a, .site-footer li a, .site-footer li button, .thumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer li { margin-bottom: 0; }
  .card h3 a, td a, th a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
@media (max-width: 40rem) {
  .btn-row .btn { flex: 1 1 100%; }
  .section { padding: 2.25rem 0; }
}

@media (min-width: 90rem) {
  :root { --container: 1320px; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 4rem 0; }
}
@media (min-width: 120rem) {
  :root { --container: 1560px; }
  body { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mdup { display: none !important; }
}

/* ---- ANPC SAL pictogram (footer) ---- */
.anpc-sal { display: inline-block; line-height: 0; border-radius: 6px; }
.anpc-sal img { display: block; width: 250px; max-width: 100%; height: auto; border-radius: 6px; }
.anpc-sal:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
/* Terms page: ANPC links above the seller's identification. */
.consumer-links { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; }

/* ---- docs ---- */
/* Guides (pages/docs.tsx) */
.docs-hero { background: var(--bg-alt); }
.doc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.doc-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none; }
.doc-chips a:hover { border-color: var(--ink); }
.doc-card p { margin: 0; }
@media (min-width: 90rem) { .doc-cat .cards-grid, .doc-related .cards-grid { grid-template-columns: repeat(3, 1fr); } }
:is(.docs-hero, .doc-main) .crumbs li { display: flex; align-items: center; }
.doc-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.doc-main { min-width: 0; max-width: 48rem; }
.doc-kicker { margin: 1rem 0 .4rem; color: var(--accent-ink); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.doc-app { margin: 0 0 1rem; }
.doc-section h2 { scroll-margin-top: 5rem; }
.doc-main strong.ui { font-weight: 700; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--radius-xs); padding: 0 .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.doc-steps { list-style: none; counter-reset: docstep; padding: 0; margin: 1rem 0 0; }
.doc-steps > li { counter-increment: docstep; position: relative; padding: 0 0 1.5rem 3rem; scroll-margin-top: 5rem; }
.doc-steps > li::before { content: counter(docstep); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.doc-steps > li:not(:last-child)::after { content: ''; position: absolute; left: calc(1rem - 1px); top: 2.2rem; bottom: .3rem; width: 2px; background: var(--line); }
.doc-steps h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
.doc-steps p { margin-bottom: .75rem; }
.doc-shot { margin: .75rem 0 1.25rem; }
.doc-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-2); background: var(--card); }
.doc-shot figcaption { margin-top: .4rem; color: var(--ink-faint); font-size: .875rem; }
.doc-callout { margin: 1rem 0; padding: .85rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--line); border-left-width: 4px; }
.doc-callout p { margin: 0; }
.doc-tip { background: var(--ok-soft); border-left-color: var(--ok); }
.doc-note { background: var(--amber-soft); border-left-color: var(--amber); }
.doc-qa h3 { font-size: 1.05rem; margin: 1.25rem 0 .35rem; }
.doc-main table caption { text-align: left; font-weight: 700; padding: 0 0 .5rem; }
.doc-main .table-wrap { margin: 1rem 0 1.25rem; }
.doc-main :is(td, th) { vertical-align: top; }
.doc-shotnote { margin-top: 2rem; }
.doc-side { display: none; }
.doc-toc-mobile { margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); padding: .25rem 1rem; }
.doc-toc-mobile summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 800; }
.doc-toc-mobile ol, .doc-toc ol { margin: .25rem 0 .75rem; padding-left: 1.2em; }
.doc-toc-mobile li, .doc-toc li, .doc-list li { margin-bottom: .4rem; }
@media (min-width: 62rem) {
  .doc-layout { grid-template-columns: minmax(0, 1fr) 16rem; gap: 3rem; }
  .doc-side { display: block; }
  .doc-toc { position: sticky; top: 5.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
  .doc-side-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 .5rem; }
  .doc-toc-mobile { display: none; }
}
/* Six header links (Guides added): one line each; narrow desktops drop the header button. */
@media (min-width: 62rem) { .nav-desktop a, .header-actions .btn { white-space: nowrap; } }
@media (min-width: 62rem) and (max-width: 77.99rem) {
  .nav-desktop a { padding-inline: .5rem; }
  .nav-desktop a::after { left: .5rem; right: .5rem; }
  .header-actions .btn { display: none; }
}
