
/* ---- Design tokens (theme.ts). Components below use var(--*) only. ---- */
:root {
  color-scheme: light dark;
  --emerald-50: #eaf6f1;
  --emerald-100: #e3f3ed;
  --emerald-200: #6fd6b5;
  --emerald-300: #5fd0ac;
  --emerald-400: #3fbf98;
  --emerald-600: #187f65;
  --emerald-700: #146553;
  --emerald-750: #0f6650;
  --emerald-800: #10503f;
  --emerald-850: #0f4d3d;
  --emerald-900: #0b3b2f;
  --emerald-950: #082720;
  --emerald-975: #06201a;
  --emerald-990: #04140f;
  --mint: #5ee0b5;
  --white: #ffffff;
  --gray-25: #f5f7f6;
  --gray-50: #eef2f0;
  --gray-100: #e1e7e4;
  --gray-200: #cdd6d2;
  --gray-400: #9aa8a2;
  --gray-600: #5a6673;
  --gray-800: #1d2733;
  --gray-850: #18222e;
  --gray-900: #15202b;
  --ink-50: #f2f6f4;
  --ink-100: #dfe7e3;
  --ink-150: #d7e5df;
  --ink-700: #31403a;
  --ink-750: #233029;
  --ink-800: #141c19;
  --ink-850: #111816;
  --ink-875: #0f1a17;
  --ink-900: #0d1311;
  --ink-950: #0a110f;
  --black: #000000;
  --blue-50: #e8effc;
  --blue-300: #8db0ff;
  --blue-600: #2457c5;
  --violet-50: #efe9fc;
  --violet-300: #b9a0ff;
  --violet-600: #6b3fd1;
  --amber-50: #fdf1e2;
  --amber-300: #f0b46a;
  --amber-700: #a5520f;
  --red-50: #fdecea;
  --red-300: #ff9b91;
  --red-700: #b3261e;

  /* Semantic colour */
  --bg: var(--gray-25);
  --surface: var(--white);
  --surface-2: var(--gray-50);
  --text: var(--gray-800);
  --heading: var(--gray-900);
  --muted: var(--gray-600);
  --border: var(--gray-100);
  --border-strong: var(--gray-200);
  --primary: var(--emerald-600);
  --primary-hover: var(--emerald-700);
  --primary-ink: var(--emerald-750);
  --primary-soft: var(--emerald-100);
  --on-primary: var(--white);
  --accent: var(--primary);
  --blue: var(--blue-600); --blue-soft: var(--blue-50);
  --violet: var(--violet-600); --violet-soft: var(--violet-50);
  --amber: var(--amber-700); --amber-soft: var(--amber-50);
  --danger: var(--red-700); --danger-soft: var(--red-50);
  --success: var(--primary); --success-soft: var(--primary-soft);
  --warn: var(--amber); --warn-soft: var(--amber-soft);
  --focus: var(--emerald-600);
  --code-bg: var(--ink-875);
  --code-text: var(--ink-150);

  /* Dark brand panels (hero, CTA band): the same in both colour schemes */
  --hero-from: var(--emerald-700);
  --hero-to: var(--emerald-950);
  --on-dark: var(--white);
  --on-dark-muted: rgb(255 255 255 / 0.82);
  --on-dark-soft: rgb(255 255 255 / 0.8);
  --on-dark-label: rgb(255 255 255 / 0.62);
  --on-dark-faint: rgb(255 255 255 / 0.55);
  --on-dark-rule: rgb(255 255 255 / 0.14);
  --on-dark-divider: rgb(255 255 255 / 0.16);
  --on-dark-dot: rgb(255 255 255 / 0.18);
  --on-dark-grid: rgb(255 255 255 / 0.05);
  --on-dark-bar: rgb(255 255 255 / 0.04);
  --on-dark-hairline: rgb(255 255 255 / 0.08);
  --glass-bg: rgb(255 255 255 / 0.12);
  --glass-bg-hover: rgb(255 255 255 / 0.2);
  --glass-border: rgb(255 255 255 / 0.22);
  --glass-border-soft: rgb(255 255 255 / 0.2);
  --glow: rgb(94 224 181 / 0.22);
  --glow-strong: rgb(94 224 181 / 0.25);
  --live: var(--mint);
  --light-btn-bg: var(--white);
  --light-btn-text: var(--emerald-850);
  --light-btn-bg-hover: var(--emerald-50);
  --light-btn-text-hover: var(--emerald-900);
  --mask-opaque: var(--black);

  /* Typography */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --font-size-root: 16px;
  --fs-50: 0.7rem;
  --fs-75: 0.72rem;
  --fs-100: 0.75rem;
  --fs-125: 0.78rem;
  --fs-150: 0.8rem;
  --fs-175: 0.82rem;
  --fs-200: 0.85rem;
  --fs-225: 0.875rem;
  --fs-250: 0.9rem;
  --fs-300: 0.95rem;
  --fs-400: 1rem;
  --fs-450: 1.05rem;
  --fs-500: 1.1rem;
  --fs-525: 1.125rem;
  --fs-550: 1.15rem;
  --fs-600: 1.2rem;
  --fs-650: 1.25rem;
  --fs-700: 1.3rem;
  --fs-725: 1.35rem;
  --fs-750: 1.4rem;
  --fs-800: 1.6rem;
  --fs-h1: clamp(2rem, 4.6vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.25rem);
  --fs-h2-band: clamp(1.5rem, 3vw, 2rem);
  --fs-h1-card: clamp(1.6rem, 4vw, 2.2rem);
  --fs-h1-panel: clamp(1.5rem, 4vw, 2rem);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.2;
  --leading-body: 1.6;
  --leading-code: 1.7;
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-caps-sm: 0.06em;
  --tracking-caps: 0.08em;
  --tracking-caps-lg: 0.09em;

  /* Spacing (0.25rem steps; odd optical nudges stay literal) */
  --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: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-18: 4.5rem;
  --space-20: 5rem;

  /* Layout */
  --container: 76rem;
  --container-narrow: 50rem;
  --container-ops: 72rem;
  --gutter: var(--space-5);
  --header-height: 4.25rem;
  --scroll-offset: 5rem;

  /* Radii */
  --radius-2xs: 4px;
  --radius-xs: 5px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(16 24 22 / 0.05);
  --shadow: 0 1px 2px rgb(16 24 22 / 0.04), 0 8px 24px -12px rgb(16 24 22 / 0.12);
  --shadow-lg: 0 24px 48px -20px rgb(8 39 32 / 0.45);
  --shadow-primary: 0 8px 18px -10px var(--primary);
  --shadow-mock: 0 30px 60px -25px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.08);
  --ring-input: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
  --ring-live: 0 0 0 3px var(--glow-strong);
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
  --opacity-disabled: 0.5;

  /* Layers */
  --z-behind: -1;
  --z-raised: 1;
  --z-header: 50;
  --z-skip: 100;

  /* Motion (disabled under prefers-reduced-motion) */
  --duration-fast: 0.15s;
  --ease: ease;
  --motion: var(--duration-fast) var(--ease);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink-900);
    --surface: var(--ink-800);
    --surface-2: var(--ink-850);
    --text: var(--ink-100);
    --heading: var(--ink-50);
    --muted: var(--gray-400);
    --border: var(--ink-750);
    --border-strong: var(--ink-700);
    --primary: var(--emerald-400);
    --primary-hover: var(--emerald-300);
    --primary-ink: var(--emerald-200);
    --primary-soft: rgb(63 191 152 / 0.14);
    --on-primary: var(--emerald-990);
    --blue: var(--blue-300); --blue-soft: rgb(110 150 255 / 0.15);
    --violet: var(--violet-300); --violet-soft: rgb(160 130 255 / 0.15);
    --amber: var(--amber-300); --amber-soft: rgb(240 170 90 / 0.14);
    --danger: var(--red-300); --danger-soft: rgb(255 120 110 / 0.14);
    --hero-from: var(--emerald-800);
    --hero-to: var(--emerald-975);
    --code-bg: var(--ink-950);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.02), 0 10px 30px -16px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 24px 48px -20px rgb(0 0 0 / 0.7);
    --focus: var(--emerald-300);
  }
}
/* ---- End of design tokens ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--scroll-offset); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--font-size-root)/var(--leading-body) var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: var(--focus-ring-width) solid var(--focus); outline-offset: var(--focus-ring-offset); border-radius: var(--radius-2xs); }
h1, h2, h3 { color: var(--heading); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); margin: 0 0 0.6rem; }
h1 { font-size: var(--fs-h1); font-weight: var(--weight-heavy); }
h2 { font-size: var(--fs-h2); font-weight: var(--weight-heavy); }
h3, .h3 { font-size: var(--fs-500); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); }
p { margin: 0 0 var(--space-4); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 0.05em 0.35em; border-radius: var(--radius-xs); overflow-wrap: anywhere; }
strong { color: var(--heading); }
.muted { color: var(--muted); }
.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; }
.skip { position: absolute; left: -999px; top: var(--space-3); z-index: var(--z-skip); background: var(--surface); color: var(--heading); padding: 0.6rem var(--space-4); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: var(--weight-semibold); }
.skip:focus { left: var(--space-4); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: var(--space-20) 0; }
.section-tight { padding: var(--space-10) 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: var(--space-10); }
.section-head .lead { margin-bottom: 0; }
.eyebrow { display: inline-block; font-size: var(--fs-125); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps-lg); text-transform: uppercase; color: var(--primary-ink); margin-bottom: var(--space-3); }
.lead { font-size: var(--fs-525); color: var(--muted); max-width: 44rem; }
.grid { display: grid; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.split { display: grid; gap: var(--space-12); grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-items: center; }
.stack { display: grid; gap: var(--space-4); }
.stack-lg { display: grid; gap: var(--space-6); }
.actions-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: 0; }
.more { margin: var(--space-8) 0 0; font-weight: var(--weight-semibold); }
.more a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.more a:hover .icon { transform: translateX(3px); }
.note { margin: var(--space-6) 0 0; color: var(--muted); text-align: center; }

/* Icons */
.icon { width: 1.25rem; height: 1.25rem; flex: none; transition: transform var(--motion); }
.icon-sm { width: 1rem; height: 1rem; }
.icon-tile { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); flex: none; }
.icon-tile .icon { width: 1.35rem; height: 1.35rem; }
.icon-tile-lg { width: 3.5rem; height: 3.5rem; border-radius: var(--radius-lg); }
.icon-tile-lg .icon { width: 1.75rem; height: 1.75rem; }
.tone-green { background: var(--primary-soft); color: var(--primary-ink); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--heading); }
.brand:hover { color: var(--heading); }
.logo-mark { width: 2rem; height: 2rem; color: var(--primary); }
.logo-word { font-weight: var(--weight-heavy); font-size: var(--fs-700); letter-spacing: var(--tracking-tighter); }
.logo-d { color: var(--primary); }
.logo-suffix { font-size: var(--fs-50); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps-sm); text-transform: uppercase; color: var(--primary-ink); background: var(--primary-soft); border-radius: var(--radius-pill); padding: 0.15rem 0.55rem; }

/* Buttons */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: inherit; font-size: var(--fs-300); font-weight: var(--weight-semibold); line-height: var(--leading-snug); white-space: nowrap;
  padding: 0.7rem 1.15rem; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color var(--motion), box-shadow var(--motion), transform var(--motion), border-color var(--motion);
}
.btn:hover .icon { transform: translateX(2px); }
.btn-lg { padding: 0.85rem 1.4rem; font-size: var(--fs-400); }
.btn-block { width: 100%; }
.btn-primary, button { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-primary); }
.btn-primary:hover, button:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--heading); }
.btn-ghost:hover { background: var(--surface-2); color: var(--heading); }
.btn-link { background: none; color: var(--primary-ink); padding-inline: var(--space-2); }
.btn-light { background: var(--light-btn-bg); color: var(--light-btn-text); }
.btn-light:hover { background: var(--light-btn-bg-hover); color: var(--light-btn-text-hover); transform: translateY(-1px); }
.btn-glass, .btn-ghost-light { background: var(--glass-bg); color: var(--on-dark); border-color: var(--glass-border); }
.btn-glass:hover, .btn-ghost-light:hover { background: var(--glass-bg-hover); color: var(--on-dark); }
button:disabled, button:disabled:hover, .btn[aria-disabled='true'] { opacity: var(--opacity-disabled); cursor: not-allowed; transform: none; box-shadow: none; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-100); font-weight: var(--weight-bold); padding: var(--space-1) 0.65rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.pill-primary { background: var(--primary-soft); color: var(--primary-ink); border-color: transparent; }
.pill-glass { background: var(--glass-bg); color: var(--on-dark); border-color: var(--glass-border-soft); }
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: var(--radius-round); background: var(--live); box-shadow: var(--ring-live); }

/* Header */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-height); }
.nav-desktop { display: flex; gap: var(--space-1); margin-left: var(--space-4); }
.nav-desktop a, .nav-mobile-panel > a { color: var(--muted); text-decoration: none; font-weight: var(--weight-semibold); font-size: var(--fs-300); padding: 0.45rem var(--space-3); border-radius: var(--radius-pill); }
.nav-desktop a:hover, .nav-mobile-panel > a:hover { color: var(--heading); background: var(--surface-2); }
.nav-desktop a[aria-current='page'], .nav-mobile-panel > a[aria-current='page'] { color: var(--primary-ink); background: var(--primary-soft); }
.header-actions { display: flex; gap: var(--space-2); margin-left: auto; }
.header-actions .btn { padding: 0.55rem var(--space-4); }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--heading); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile:not([open]) .nav-mobile-panel { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: var(--space-3) var(--space-5) var(--space-5); display: grid; gap: var(--space-1); }
.nav-mobile-panel > a { padding: var(--space-3) 0.9rem; font-size: var(--fs-400); border-radius: var(--radius); }
.nav-mobile-actions { display: grid; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
@media (max-width: 60rem) {
  .nav-desktop, .header-actions { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile-actions .btn-ghost { border-color: var(--border-strong); }
}

/* Hero */
.hero-wrap { padding: var(--space-6) 0 0; }
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark);
  display: grid; gap: var(--space-10); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to) 68%);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: var(--z-behind); opacity: 0.55;
  background-image: linear-gradient(var(--on-dark-grid) 1px, transparent 1px), linear-gradient(90deg, var(--on-dark-grid) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 30% 20%, var(--mask-opaque) 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, var(--mask-opaque) 20%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; z-index: var(--z-behind); width: 34rem; height: 34rem; right: -10rem; top: -14rem; border-radius: var(--radius-round);
  background: radial-gradient(circle, var(--glow), transparent 65%);
}
.hero h1 { color: var(--on-dark); margin: var(--space-4) 0 var(--space-4); max-width: 20ch; }
.hero-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.hero-lead { font-size: var(--fs-550); color: var(--on-dark-muted); max-width: 38rem; margin-bottom: var(--space-7); }
.hero-note { color: var(--on-dark-muted); max-width: 38rem; margin: var(--space-5) 0 0; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: var(--space-9) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--on-dark-rule); }
.hero-facts div { padding: 0 var(--space-5); border-left: 1px solid var(--on-dark-divider); }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { font-size: var(--fs-75); font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--on-dark-label); }
.hero-facts dd { margin: 0.2rem 0 0; font-weight: var(--weight-bold); font-size: var(--fs-450); }
@media (max-width: 60rem) {
  .hero { grid-template-columns: 1fr; }
}
@media (min-width: 60.01rem) and (max-width: 82rem) {
  .hero-facts { grid-template-columns: repeat(2, auto); gap: var(--space-4) var(--space-10); }
  .hero-facts div, .hero-facts div:first-child { padding: 0; border: 0; }
}
@media (max-width: 40rem) {
  .hero-wrap { padding-top: var(--space-3); }
  .hero-wrap .container { padding: 0 var(--space-3); }
  .hero { border-radius: var(--radius-lg); }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .hero-facts div, .hero-facts div:first-child { padding: 0; border: 0; }
  .hero .actions-row .btn { width: 100%; }
}

/* Product mock */
.mock { margin: 0; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-mock); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem var(--space-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar .dot { width: 0.6rem; height: 0.6rem; border-radius: var(--radius-round); background: var(--border-strong); }
.mock-url { margin-left: 0.6rem; font: var(--fs-100) var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: var(--space-5) var(--space-5) 1.1rem; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-4); }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; font: var(--weight-semibold) var(--fs-75) var(--mono); padding: var(--space-1) 0.55rem; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary-ink); }
.chip:first-child { background: var(--blue-soft); color: var(--blue); font-family: var(--font); }
.mock-title { font-weight: var(--weight-heavy); color: var(--heading); font-size: var(--fs-500); margin: 0 0 var(--space-3); letter-spacing: var(--tracking-snug); }
.mock-line { height: 0.55rem; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); margin: 0.45rem 0; }
.mock-line.short { width: 72%; }
.mock-line.shorter { width: 55%; }
.mock-block { margin-top: 0.9rem; padding: var(--space-3) 0.85rem; border-radius: var(--radius); }
.mock-block.shown { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.mock-block.shown .mock-line { background: color-mix(in srgb, var(--primary) 22%, var(--surface)); border-color: transparent; }
.mock-block.hidden { border: 1.5px dashed var(--border-strong); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.mock-tag { display: inline-flex; align-items: center; gap: 0.3rem; font: var(--weight-semibold) var(--fs-75) var(--mono); color: var(--primary-ink); }
.mock-block.hidden .mock-tag { color: var(--muted); text-decoration: line-through; }
.mock-hidden-text { font-size: var(--fs-150); color: var(--muted); }
.mock-outputs { display: flex; flex-wrap: wrap; gap: 0.4rem var(--space-4); margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: var(--fs-125); font-weight: var(--weight-semibold); color: var(--muted); }
.mock-outputs span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.card.flush { padding: 0; overflow: hidden; }
.feature { position: relative; display: flex; flex-direction: column; gap: var(--space-1); transition: border-color var(--motion), box-shadow var(--motion), transform var(--motion); }
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .icon-tile { margin-bottom: 0.9rem; }
.feature p { color: var(--muted); margin: 0; font-size: var(--fs-300); }
.feature h3 a { color: inherit; text-decoration: none; }
.feature .stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.option { display: flex; flex-direction: column; gap: var(--space-2); }
.option h3 { font-size: var(--fs-725); margin-top: var(--space-3); }
.option .checklist { flex: 1; align-content: start; }
.option p { margin: var(--space-2) 0 0; }
.featured { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent), var(--shadow); }
.checklist { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checklist .icon { color: var(--primary); width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; stroke-width: 2.4; }
.checklist.two-col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--space-3) var(--space-8); margin-bottom: 0; }

/* Steps */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: step; }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.step-num { font-weight: var(--weight-heavy); font-size: var(--fs-800); color: var(--border-strong); letter-spacing: var(--tracking-tighter); }
.step p { color: var(--muted); margin: 0; font-size: var(--fs-300); }

/* Code */
.code-window { border-radius: var(--radius-lg); overflow: hidden; background: var(--code-bg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.code-window .mock-bar { background: var(--on-dark-bar); border-bottom-color: var(--on-dark-hairline); }
.code-window .mock-bar .dot { background: var(--on-dark-dot); }
.code-window .mock-url { color: var(--on-dark-faint); }
.code-window pre { margin: 0; padding: var(--space-5); overflow-x: auto; }
.code-window code { background: none; border: 0; padding: 0; color: var(--code-text); font-size: var(--fs-175); line-height: var(--leading-code); white-space: pre; overflow-wrap: normal; }

/* Tables */
.table-scroll { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 0.85rem var(--space-5); text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare thead th { font-size: var(--fs-150); text-transform: uppercase; letter-spacing: var(--tracking-caps-sm); color: var(--muted); background: var(--surface-2); }
.compare thead th:not(:first-child), .compare td { text-align: center; }
.compare tbody th { font-weight: var(--weight-medium); color: var(--text); }
.compare tr.group th { background: var(--surface); color: var(--primary-ink); font-size: var(--fs-125); text-transform: uppercase; letter-spacing: var(--tracking-caps); font-weight: var(--weight-bold); padding-top: var(--space-5); }
.compare tbody:last-child tr:last-child > * { border-bottom: 0; }
.compare.compact th, .compare.compact td { padding: 0.65rem 0.9rem; font-size: var(--fs-250); }
.compare.compact thead th { font-size: var(--fs-75); }
.compare td .icon { margin: 0 auto; }
.yes { color: var(--primary); display: inline-flex; }
.yes .icon { stroke-width: 2.4; }
.no { color: var(--border-strong); display: inline-flex; }

/* Pricing */
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: stretch; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan-card.featured { position: relative; }
.plan-head { min-height: 1.9rem; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.plan-head h3 { margin: 0; font-size: var(--fs-650); }
.plan-price { font-size: var(--fs-800); font-weight: var(--weight-heavy); color: var(--heading); letter-spacing: var(--tracking-tight); margin: var(--space-3) 0 var(--space-1); }
.plan-card .checklist { flex: 1; align-content: start; margin-bottom: var(--space-6); }
.plan-cta { margin: 0; }
.signup-grid { display: grid; gap: var(--space-12); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 60rem) { .signup-grid { grid-template-columns: 1fr; } }
.next-steps { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-5); }
.next-steps li { display: flex; gap: var(--space-4); align-items: flex-start; }
.next-steps h3 { margin: 0.1rem 0 0.2rem; font-size: var(--fs-400); }
.next-steps p { margin: 0; color: var(--muted); font-size: var(--fs-300); }

/* Forms */
.form { display: grid; gap: var(--space-5); }
.form.card { padding: var(--space-8); box-shadow: var(--shadow); }
label, legend { display: block; font-weight: var(--weight-semibold); color: var(--heading); margin-bottom: 0.35rem; font-size: var(--fs-300); }
input[type='text'], input[type='email'], input[type='password'], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  padding: 0.7rem 0.85rem; border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color var(--motion), box-shadow var(--motion);
}
input[type='text']:focus, input[type='email']:focus, input[type='password']:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring-input); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 7rem; line-height: inherit; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4) 0.9rem; margin: 0; }
legend { padding: 0 0.35rem; margin-bottom: 0; }
.choice { display: flex; gap: 0.6rem; align-items: center; font-weight: var(--weight-medium); margin: 0.35rem 0 0; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); cursor: pointer; }
.choice:hover { background: var(--surface-2); }
.choice input { accent-color: var(--primary); width: 1.05rem; height: 1.05rem; margin: 0; }
.hint { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: var(--fs-225); margin: 0.4rem 0 0; }
.field-note { font-size: var(--fs-225); margin: 0.4rem 0 0; }
.field-error { color: var(--danger); font-size: var(--fs-225); font-weight: var(--weight-semibold); margin: 0.4rem 0 0; }
.alert { padding: 0.85rem var(--space-4); border-radius: var(--radius); background: var(--primary-soft); color: var(--heading); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); margin: 0 0 var(--space-4); }
.alert.error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); font-weight: var(--weight-semibold); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem var(--space-5); font-weight: var(--weight-bold); color: var(--heading); display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: var(--fs-750); font-weight: var(--weight-regular); line-height: var(--leading-none); color: var(--primary); }
.faq details[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 var(--space-5) var(--space-1); color: var(--muted); }

/* The account panel: a person's docs sites */
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.account-head h1 { margin-bottom: var(--space-1); }
.account-sites { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.account-site { display: grid; gap: var(--space-3); align-content: start; }
.account-site h2 { font-size: var(--fs-550); margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.account-site-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.account-site-url { margin: 0; overflow-wrap: anywhere; }
.account-site form { margin: 0; }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.account-domain { border-top: 1px solid var(--border); padding-top: var(--space-3); }
.account-domain summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); font-weight: var(--weight-bold); color: var(--heading); border-radius: var(--radius-sm); }
.account-domain-body { display: grid; gap: var(--space-3); padding-top: var(--space-3); }
.account-domain-body p { margin: 0; }
.account-domain-name { overflow-wrap: anywhere; }
.account-domain-checked { font-size: var(--fs-225); }
.account-domain-form label { font-size: var(--fs-225); }
.account-domain-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.account-domain-row input { flex: 1 1 12rem; min-width: 0; }
.dns-records { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.dns-records li { padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.dns-records dl { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--space-1) var(--space-3); margin: 0; font-size: var(--fs-225); }
.dns-records dt { color: var(--muted); font-weight: var(--weight-semibold); }
.dns-records dd { margin: 0; min-width: 0; }
.dns-records code { overflow-wrap: anywhere; user-select: all; }

/* Long-form text: the privacy policy */
.legal { display: grid; gap: var(--space-8); }
.legal h2 { margin-bottom: var(--space-3); }
.legal h3 { margin: var(--space-5) 0 var(--space-2); }
.legal p, .legal li { max-width: 44rem; }
.legal p + p { margin-top: var(--space-3); }
.legal ul { display: grid; gap: var(--space-2); padding-left: var(--space-5); margin-top: var(--space-2); }

/* Feature blocks */
.feature-block { padding: var(--space-8); }
.feature-block-head { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-5); }
.feature-block-head h2 { font-size: var(--fs-750); margin: 0.15rem 0 var(--space-1); }
.feature-block-head p { color: var(--muted); margin: 0; }

/* Inner page hero */
.page-hero { padding: var(--space-18) 0 var(--space-12); background: radial-gradient(ellipse 60% 120% at 0% 0%, var(--primary-soft), transparent 60%), var(--bg); border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 24ch; }
.page-hero .lead { font-size: var(--fs-600); }
.page-hero .actions-row { margin-top: var(--space-7); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6) var(--space-8); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-xl); color: var(--on-dark); background: linear-gradient(120deg, var(--hero-from), var(--hero-to)); box-shadow: var(--shadow-lg); }
.cta-band::after { content: ''; position: absolute; width: 24rem; height: 24rem; right: -6rem; bottom: -14rem; border-radius: var(--radius-round); background: radial-gradient(circle, var(--glow-strong), transparent 65%); pointer-events: none; }
.cta-band h2 { color: var(--on-dark); margin-bottom: 0.4rem; font-size: var(--fs-h2-band); }
.cta-band p { margin: 0; color: var(--on-dark-soft); }
.cta-band .actions-row { position: relative; z-index: var(--z-raised); }

/* Message and reveal pages */
.message-card { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); }
.message-card .icon-tile { margin: 0 auto var(--space-5); }
.message-card h1 { font-size: var(--fs-h1-card); }
.message-card .lead { margin-inline: auto; }
.message-card .actions-row { justify-content: center; margin-top: var(--space-6); }
.panel { padding: clamp(1.5rem, 4vw, 2.5rem); }
.panel h1 { font-size: var(--fs-h1-panel); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-3) var(--space-4); margin: var(--space-4) 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
dl.facts dt { color: var(--muted); font: var(--weight-semibold) var(--fs-150) var(--mono); padding-top: var(--space-3); }
dl.facts dd { margin: 0; }
.secret { display: block; padding: var(--space-3); background: var(--surface); border: 1px dashed var(--amber); border-radius: var(--radius-sm); user-select: all; font-size: var(--fs-200); }
@media (max-width: 40rem) { dl.facts { grid-template-columns: 1fr; } dl.facts dt { padding-top: var(--space-1); } }

/* Footer */
.site-footer { margin-top: var(--space-8); background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: 2fr repeat(3, 1fr); padding-top: var(--space-14); padding-bottom: var(--space-10); }
.footer-brand p { color: var(--muted); font-size: var(--fs-300); max-width: 24rem; margin-top: var(--space-4); }
.site-footer nav { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer nav h2 { font-size: var(--fs-125); text-transform: uppercase; letter-spacing: var(--tracking-caps-lg); color: var(--muted); margin-bottom: 0.4rem; font-weight: var(--weight-bold); }
.site-footer nav a { color: var(--text); text-decoration: none; font-size: var(--fs-300); }
.site-footer nav a:hover { color: var(--primary-ink); text-decoration: underline; }
.footer-base { padding-bottom: var(--space-6); }
.footer-base p { margin: 0; padding-top: var(--space-5); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-225); }
@media (max-width: 50rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (max-width: 40rem) {
  .section { padding: var(--space-14) 0; }
  .section-tight { padding: var(--space-8) 0; }
  .page-hero { padding: var(--space-12) 0 var(--space-9); }
  .card, .plan-card, .feature-block { padding: var(--space-5); }
  .form.card { padding: var(--space-5); }
  .feature-block-head { flex-direction: column; }
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-4); row-gap: 0.2rem; align-content: start; }
  .feature .icon-tile { grid-row: span 2; margin: 0; width: 2.5rem; height: 2.5rem; }
  .feature h3 { margin: 0.15rem 0 0; }
  .hero-lead { font-size: var(--fs-450); }
  .cta-band .actions-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
