/* ──────────────────────────────────────────────────────────────────────────
   Lola3d — marketing site
   Design system: "Technical Quartz Precision" (docs/website-design-ref).

   Architectural neoclassicism meets precision technical minimalism: warm quartz
   paper, hairline vector ink, micro radii, and focused luminescence where the
   generative work happens. No build step — this file is the whole system, and
   every value below is a token, never a one-off.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — layered translucent rose-tinted neutrals */
  --surface: #fff8f8;
  --surface-dim: #e2d7d9;
  --surface-lowest: #ffffff;
  --surface-low: #fcf1f3;
  --surface-container: #f6ebed;
  --surface-high: #f0e6e8;
  --surface-highest: #eae0e2;
  --inverse-surface: #241e20;
  --inverse-on-surface: #f9eef0;

  /* Ink — deep slate-plum, never a cold black */
  --on-surface: #1f1a1c;
  --on-surface-variant: #584046;
  --ink-65: rgba(35, 27, 36, 0.65);
  --ink-45: rgba(35, 27, 36, 0.45);
  --hairline: rgba(35, 27, 36, 0.12);
  --hairline-soft: rgba(35, 27, 36, 0.07);

  /* Accents */
  --primary: #b21458;
  --primary-bright: #d93874;
  --primary-container: #ffd9e0;
  --on-primary: #ffffff;
  --secondary: #4648d4;      /* compute / AI */
  --secondary-bright: #6366f1;
  --secondary-container: #e1e0ff;
  --success: #0f8f6a;
  --warning: #b7791f;
  --danger: #c0392b;

  /* Shape */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 14px;
  --r-full: 9999px;

  /* Space (4 / 8 rhythm) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Elevation — value contrast first, shadow last */
  --shadow-low: 0 1px 2px rgba(35, 27, 36, 0.04);
  --shadow-med: 0 8px 24px -4px rgba(35, 27, 36, 0.07), 0 2px 6px -1px rgba(35, 27, 36, 0.04);
  --shadow-high: 0 24px 60px -16px rgba(35, 27, 36, 0.16), 0 4px 12px -4px rgba(35, 27, 36, 0.06);
  --shadow-ai: 0 16px 40px -8px rgba(99, 102, 241, 0.16);

  --page: 1200px;
  --page-wide: 1400px;
}

/* ── reset ─────────────────────────────────────────────────────────────── */

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

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

body {
  font-family: Geist, "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
code, kbd, pre { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }

::selection { background: var(--primary-container); color: var(--on-surface); }

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── type scale ────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.14; text-wrap: balance; }

.display {
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.036em;
}
.h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem); letter-spacing: -0.026em; }
.h3 { font-size: 1.25rem; letter-spacing: -0.018em; }
.h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.3125rem);
  line-height: 1.55;
  color: var(--on-surface-variant);
  text-wrap: pretty;
}
.body  { color: var(--on-surface-variant); text-wrap: pretty; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-65); }
.tiny  { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-45); }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.alt { color: var(--secondary); }

.num { font-variant-numeric: tabular-nums; }
.grad {
  background: linear-gradient(104deg, var(--primary) 0%, var(--primary-bright) 38%, var(--secondary-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── layout ────────────────────────────────────────────────────────────── */

.page { width: min(100% - 2 * var(--s-5), var(--page)); margin-inline: auto; }
.page.wide { width: min(100% - 2 * var(--s-5), var(--page-wide)); }

section { padding-block: clamp(var(--s-8), 6vw, var(--s-10)); }
section.tight { padding-block: clamp(var(--s-7), 4vw, var(--s-8)); }
.rule { border: 0; border-top: 1px solid var(--hairline-soft); }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.wrap    { flex-wrap: wrap; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.gap-7 { gap: var(--s-7); }
.center  { text-align: center; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }

.grid { display: grid; gap: var(--s-5); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s-8); }
.split.lead-left { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline-soft); box-shadow: var(--shadow-low); }
.site-header .bar { display: flex; align-items: center; gap: var(--s-5); height: 68px; }

.brand { display: flex; align-items: center; gap: var(--s-3); margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: var(--r-md); }
.brand .name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.brand .tag {
  font-size: 0.625rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--secondary);
}

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--on-surface-variant);
  transition: background 120ms ease, color 120ms ease;
}
.nav a:hover { background: var(--surface-high); color: var(--on-surface); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 500; }
/* The call to action inside the nav is a button, not a link: `.nav a` would otherwise win on
   specificity and paint slate-plum text on the primary fill, which is unreadable. */
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-primary); font-weight: 500; }
.nav a.btn-primary:hover { background: var(--primary-bright); }
.nav a.btn-ai, .nav a.btn-ai:hover { color: #fff; }
.nav a.btn-ghost, .nav a.btn-ghost:hover { color: var(--on-surface); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--hairline); border-radius: var(--r-sm);
  cursor: pointer;
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.006em;
  cursor: pointer; white-space: nowrap;
  transition: background 130ms ease, border-color 130ms ease, color 130ms ease, transform 130ms ease, box-shadow 130ms ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-low); }
.btn-primary:hover { background: var(--primary-bright); box-shadow: var(--shadow-med); }

.btn-ai { background: var(--secondary); color: #fff; }
.btn-ai:hover { background: var(--secondary-bright); box-shadow: var(--shadow-ai); }

.btn-ghost { background: var(--surface-lowest); border-color: var(--hairline); color: var(--on-surface); }
.btn-ghost:hover { background: var(--surface-low); border-color: var(--ink-45); }

.btn-quiet { background: transparent; color: var(--on-surface-variant); padding-inline: var(--s-3); }
.btn-quiet:hover { background: var(--surface-high); color: var(--on-surface); }

.btn-sm { padding: 7px 14px; font-size: 0.875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ── pills, chips, tokens ──────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--outline-variant, #e9c9d0);
  border-radius: var(--r-full);
  background: var(--surface-lowest);
  font-size: 0.8125rem; color: var(--on-surface-variant);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-bright); flex: none; }
/* A pill hugs its text. Inside a column stack it would otherwise be stretched the full width by the
   stack's default `align-items: stretch`, which turns a chip into a banner. */
.stack > .pill { align-self: flex-start; }
.stack.center > .pill, .center > .pill { align-self: center; }
.pill.ai { border-color: color-mix(in srgb, var(--secondary-bright) 32%, transparent); background: color-mix(in srgb, var(--secondary-bright) 7%, var(--surface-lowest)); color: var(--secondary); }
.pill.ai .dot { background: var(--secondary-bright); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  background: var(--surface-container);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--on-surface-variant);
}

/* ── cards ─────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.card.pad-lg { padding: var(--s-6); }
.card.quiet { background: var(--surface-low); }
.card.lift:hover { border-color: color-mix(in srgb, var(--primary-bright) 42%, transparent); box-shadow: var(--shadow-med); transform: translateY(-2px); }
.card .card-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--surface-container);
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.card.ai .card-icon { background: color-mix(in srgb, var(--secondary-bright) 10%, transparent); color: var(--secondary); }
.card h3 { margin-bottom: var(--s-2); }

/* A card whose left margin carries the category's colour strip. */
.card.strip { border-left-width: 2px; border-left-style: solid; border-left-color: var(--primary-bright); }
.card.strip.s-ai { border-left-color: var(--secondary-bright); }
.card.strip.s-ok { border-left-color: var(--success); }
.card.strip.s-warn { border-left-color: var(--warning); }

/* ── screenshot frames ─────────────────────────────────────────────────── */

.shot {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--surface-lowest);
  padding: 6px;
  box-shadow: var(--shadow-high);
  overflow: hidden;
}
.shot img { border-radius: calc(var(--r-xl) - 5px); display: block; width: 100%; }
.shot.flat { box-shadow: var(--shadow-med); border-radius: var(--r-lg); padding: 4px; }
.shot.flat img { border-radius: var(--r-md); }
.shot figcaption {
  padding: var(--s-3) var(--s-3) var(--s-2);
  font-size: 0.8125rem;
  color: var(--ink-65);
}
.shot .badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--inverse-surface) 82%, transparent);
  backdrop-filter: blur(8px);
  color: var(--inverse-on-surface);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; padding-block: clamp(var(--s-7), 5vw, var(--s-9)) var(--s-8); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(52% 40% at 18% 8%, color-mix(in srgb, var(--primary-container) 58%, transparent) 0%, transparent 62%),
    radial-gradient(44% 38% at 88% 4%, color-mix(in srgb, var(--secondary-container) 52%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
}
/* A faint engineering grid, as on drafting paper. */
.grid-paper::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}

.hero-cta { margin-top: var(--s-6); }
.hero-note { margin-top: var(--s-4); }

/* ── stats ─────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline-soft); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface-lowest); padding: var(--s-5); }
.stat .v { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .k { margin-top: var(--s-1); font-size: 0.8125rem; color: var(--ink-65); }

/* ── feature inventory (features.html) ─────────────────────────────────── */

.toc {
  position: sticky; top: 88px;
  align-self: start;
  border-left: 1px solid var(--hairline-soft);
  padding-left: var(--s-4);
}
.toc a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  color: var(--ink-65);
  border-left: 2px solid transparent;
  margin-left: calc(-1 * var(--s-4) - 1px);
  padding-left: var(--s-4);
  transition: color 120ms ease, border-color 120ms ease;
}
.toc a:hover { color: var(--on-surface); }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 500; }

.inventory { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8); align-items: start; }

.fgroup { scroll-margin-top: 92px; }
.fgroup + .fgroup { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--hairline-soft); }
.fgroup > header { margin-bottom: var(--s-5); }
.fgroup > header p { margin-top: var(--s-2); max-width: 70ch; }

.flist { display: grid; gap: var(--s-1); }
.fitem {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-2);
  border-radius: var(--r-sm);
  transition: background 120ms ease;
}
.fitem:hover { background: var(--surface-low); }
.fitem .tick { margin-top: 5px; color: var(--primary-bright); }
.fitem .tick svg { width: 15px; height: 15px; }
.fitem b { font-weight: 600; }
.fitem span { color: var(--on-surface-variant); }
.fitem code {
  font-size: 0.8125em;
  padding: 1px 5px;
  border-radius: var(--r-xs);
  background: var(--surface-container);
  color: var(--on-surface-variant);
  white-space: nowrap;
}

/* ── code ──────────────────────────────────────────────────────────────── */

.code {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--inverse-surface);
  overflow: hidden;
  box-shadow: var(--shadow-med);
}
.code header {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(249, 238, 240, 0.72);
  font-size: 0.75rem; letter-spacing: 0.04em;
}
.code header .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright); }
.code pre {
  margin: 0; padding: var(--s-4) var(--s-5);
  overflow-x: auto;
  font-size: 0.8125rem; line-height: 1.66;
  color: #f2e6e9;
  tab-size: 4;
}
.code .c { color: rgba(242, 230, 233, 0.42); }          /* comment */
.code .k { color: #ff9ec0; }                             /* keyword */
.code .s { color: #a8e6c9; }                             /* string  */
.code .n { color: #b6b8ff; }                             /* number  */
.code .f { color: #ffd9e0; }                             /* call    */

/* ── pricing ───────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-block: var(--s-4) var(--s-1); }
.plan .price .amount { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plan .price .per { font-size: 0.875rem; color: var(--ink-65); }
.plan ul { display: grid; gap: var(--s-2); margin-block: var(--s-5); }
/* Flex, not grid: a row whose text contains an element (a <strong>) would otherwise put that element
   and the text around it into separate grid cells, and the line would wrap a word at a time. */
.plan li { display: flex; align-items: flex-start; gap: var(--s-2); font-size: 0.9375rem; color: var(--on-surface-variant); }
.plan li svg { width: 15px; height: 15px; margin-top: 5px; flex: none; color: var(--primary-bright); }
.plan li.off { color: var(--ink-45); }
.plan li.off svg { color: var(--ink-45); }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured {
  border-color: color-mix(in srgb, var(--primary-bright) 34%, transparent);
  box-shadow: var(--shadow-med), 0 0 0 1px color-mix(in srgb, var(--primary-bright) 14%, transparent);
}
.plan.featured::before {
  content: attr(data-flag);
  position: absolute; top: -11px; left: var(--s-5);
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── comparison table ──────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--hairline-soft); border-radius: var(--r-lg); background: var(--surface-lowest); }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
thead th {
  position: sticky; top: 0;
  background: var(--surface-container);
  text-align: left;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--hairline);
}
tbody td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--hairline-soft); font-size: 0.9375rem; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--hairline-soft); text-align: left; font-weight: 500; font-size: 0.9375rem; }
td.yes { color: var(--success); } td.no { color: var(--ink-45); }

/* ── gallery ───────────────────────────────────────────────────────────── */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--s-5); }
.gallery .shot { margin: 0; }

/* ── quote ─────────────────────────────────────────────────────────────── */

.quote { border-left: 2px solid var(--primary-bright); padding-left: var(--s-5); }
.quote p { font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.quote footer { margin-top: var(--s-4); font-size: 0.875rem; color: var(--ink-65); }

/* ── call to action band ───────────────────────────────────────────────── */

.cta-band {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-container) 60%, var(--surface-lowest)) 0%, var(--surface-lowest) 46%, color-mix(in srgb, var(--secondary-container) 56%, var(--surface-lowest)) 100%);
  padding: clamp(var(--s-6), 4vw, var(--s-8));
  text-align: center;
  overflow: hidden;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--hairline-soft); background: var(--surface-low); padding-block: var(--s-8) var(--s-6); margin-top: var(--s-8); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.site-footer h4 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-45); margin-bottom: var(--s-3); font-weight: 600; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { font-size: 0.9375rem; color: var(--on-surface-variant); }
.site-footer a:hover { color: var(--primary); }
.site-footer .base { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--hairline-soft); }

/* ── motion ────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory { grid-template-columns: 1fr; gap: var(--s-5); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: var(--s-1); border-left: 0; padding-left: 0; }
  .toc a { margin-left: 0; padding: 5px 10px; border: 1px solid var(--hairline); border-radius: var(--r-full); }
  .toc a.active { border-color: var(--primary); }
}

@media (max-width: 900px) {
  .split, .split.lead-left { grid-template-columns: 1fr; gap: var(--s-6); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch;
    padding: var(--s-3) var(--s-5) var(--s-5);
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-med);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: var(--s-3); font-size: 1rem; }
  .nav .btn { margin-top: var(--s-2); }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  .page, .page.wide { width: calc(100% - 2 * var(--s-4)); }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { background: #fff; }
}
