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

/* ⚠️ min-height, NOT height. `height: 100%` pins the body to exactly one
   viewport; combined with the `overflow-x: hidden` the portal and CRM both
   set, that turns body into a fixed-height scroll container and the DOCUMENT
   stops growing — so page scrolling dies as soon as a view is taller than the
   window. It only showed up on the tallest pages, which is why it survived
   this long. */
html, body { min-height: 100%; }
body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--mauve); outline-offset: 2px; border-radius: 4px; }

/* ---------- shared primitives ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--mauve-dark); transform: translateY(-1px); }
.btn-mauve { background: var(--mauve); color: #fff; }
.btn-mauve:hover { background: var(--mauve-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--mauve); color: var(--mauve-deep); background: var(--blush-wash); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--blush-pale); color: var(--mauve-dark);
  white-space: nowrap;
}
.pill-green { background: var(--green-pale); color: #43705480; color: #3F6A50; }
.pill-amber { background: var(--amber-pale); color: #976B2E; }
.pill-ink   { background: #EDE9EA; color: var(--ink-soft); }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.grow    { flex: 1; min-width: 0; }
.muted   { color: var(--text-muted); }
.faint   { color: var(--text-faint); }
.tnum    { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
