/* ============================================================
   ORTUS CHEQIT — public site stylesheet
   Tokens · components · sections · responsive · light theme
   ============================================================ */

/* ---------- Self-hosted typefaces ------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-400-normal.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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-600-normal.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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-700-normal.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: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.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;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-mono-latin-ext-400-normal.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: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-mono-latin-400-normal.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;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-mono-latin-ext-700-normal.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: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-mono-latin-700-normal.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;
}

/* ---------- Theme tokens --------------------------------- */

:root {
  color-scheme: dark;

  --bg: #0a0c10;
  --bg-soft: #0d111a;
  --bg-elevated: #0f1723;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --panel-glass: rgba(17, 24, 39, 0.86);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text-strong: #ffffff;
  --text: #d4d7df;
  --muted: #9ca3af;
  --dim: #7b8493;

  --primary: #8c26ea;          /* CHEQIT purple */
  --primary-strong: #a754f0;
  --primary-ink: #bb82f6;      /* accent TEXT only — --primary-strong is a button bg */
  --primary-soft: rgba(140, 38, 234, 0.18);
  --primary-line: rgba(140, 38, 234, 0.45);
  --primary-text: #ffffff;

  --accent: #e8d98e;           /* warm cream secondary */
  --accent-strong: #f2e6ad;

  --vms: #22d3ee;              /* live signals / cyan */
  --ok: #34d399;
  --warn: #e8d98e;
  --danger: #ff4e4e;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 22px 70px rgba(0, 0, 0, 0.36);
  --shadow-cta: 0 10px 28px rgba(140, 38, 234, 0.34);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --site-bg-image: url('/assets/site-atmosphere-dark.webp');
  --site-bg-opacity: 0.68;
  --site-bg-section-opacity: 0.1;
  --bg-glow:
    radial-gradient(ellipse at 14% -8%, rgba(140, 38, 234, 0.18), transparent 36rem),
    radial-gradient(ellipse at 86% 4%, rgba(34, 211, 238, 0.1), transparent 38rem);

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme='light'] {
  color-scheme: light;

  --bg: #f6f7fb;
  --bg-soft: #eef1f7;
  --bg-elevated: #ffffff;
  --panel: rgba(15, 23, 42, 0.035);
  --panel-strong: rgba(15, 23, 42, 0.06);
  --panel-glass: rgba(255, 255, 255, 0.86);
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.22);

  --text-strong: #0f172a;
  --text: #1f2937;
  --muted: #475569;
  --dim: #5b6879;

  --primary: #6e1bc6;          /* deeper purple for AA contrast on white */
  --primary-strong: #8c26ea;
  --primary-ink: #7d20d2;
  --primary-soft: rgba(110, 27, 198, 0.12);
  --primary-line: rgba(110, 27, 198, 0.4);
  --primary-text: #ffffff;

  --accent: #b8870a;
  --accent-strong: #95680a;

  --vms: #0369a1;
  --ok: #047857;
  --warn: #b45309;
  --danger: #b91c1c;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 18px 50px rgba(15, 23, 42, 0.1);
  --shadow-cta: 0 10px 24px rgba(110, 27, 198, 0.24);

  --site-bg-image: url('/assets/site-atmosphere-light.webp');
  --site-bg-opacity: 0.72;
  --site-bg-section-opacity: 0.2;
  --bg-glow:
    radial-gradient(ellipse at 14% -8%, rgba(110, 27, 198, 0.1), transparent 36rem),
    radial-gradient(ellipse at 86% 4%, rgba(3, 105, 161, 0.07), transparent 38rem);
}

/* Reduce motion for the few animations we use */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Reset & base --------------------------------- */

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html {
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg-glow), var(--bg);
  color: var(--text);
  font-size: 16px;
  isolation: isolate;
  line-height: 1.55;
  min-width: 320px;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: '';
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  background-image: var(--site-bg-image);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--site-bg-opacity);
}

body::after {
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.42), transparent 26rem, rgba(10, 12, 16, 0.58)),
    radial-gradient(ellipse at 48% 18%, rgba(140, 38, 234, 0.08), transparent 34rem),
    radial-gradient(ellipse at 88% 58%, rgba(34, 211, 238, 0.06), transparent 32rem);
}

:root[data-theme='light'] body::after {
  background:
    linear-gradient(180deg, rgba(246, 247, 251, 0.36), transparent 24rem, rgba(246, 247, 251, 0.72)),
    radial-gradient(ellipse at 46% 12%, rgba(110, 27, 198, 0.06), transparent 34rem),
    radial-gradient(ellipse at 88% 58%, rgba(3, 105, 161, 0.05), transparent 32rem);
}

a {
  color: var(--text-strong);
  text-decoration: none;
  text-decoration-color: var(--primary-line);
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

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

::selection {
  background: var(--primary-soft);
  color: var(--text-strong);
}

img, svg { display: block; max-width: 100%; }

.skip-link {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 700;
  left: 12px;
  padding: 8px 12px;
  position: fixed;
  top: 12px;
  transform: translateY(-160%);
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }

.shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Top bar / nav ------------------------------- */

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: var(--panel-glass);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  min-height: 34px;
}
.brand img {
  height: 26px;
  max-width: 170px;
  width: auto;
}
/* Unscoped so the footer wordmark reuses the same swap as the topbar. */
.brand-logo--light { display: none; }
.brand-logo--dark  { display: block; }
:root[data-theme='light'] .brand-logo--dark  { display: none; }
:root[data-theme='light'] .brand-logo--light { display: block; }

.nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
}

.nav a[aria-current='page'],
.nav a:hover {
  background: var(--panel-strong);
  border-color: var(--line);
  color: var(--text-strong);
  text-decoration: none;
}

.nav .signin-link {
  color: var(--text);
}

.nav .platform-link {
  color: var(--text);
  margin-left: 4px;
  position: relative;
}

.nav .platform-link::before {
  background: var(--line-strong);
  content: '';
  height: 22px;
  left: -4px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}

.nav .primary-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-cta);
}
.nav .primary-link:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: var(--primary-text);
  text-decoration: none;
}

.nav-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: none;
  height: 38px;
  width: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--panel-strong); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  background: currentColor;
  border-radius: 2px;
  display: block;
  height: 2px;
  width: 18px;
  position: relative;
  transition: transform 160ms ease, opacity 160ms ease;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { content: ''; position: absolute; top:  6px; left: 0; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  width: 42px;
  padding: 0;
  justify-content: center;
}
.theme-toggle:hover {
  background: var(--panel-strong);
  color: var(--text-strong);
}
.theme-toggle:focus-visible {
  background: var(--panel-strong);
}
.theme-toggle svg { height: 18px; width: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme='light'] .theme-toggle .icon-sun  { display: block; }
:root[data-theme='light'] .theme-toggle .icon-moon { display: none;  }

.account-menu {
  position: relative;
}

.account-avatar {
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.account-avatar:hover,
.account-avatar:focus-visible {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.account-menu-popover {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: grid;
  min-width: 190px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
}

.account-menu-popover a,
.account-menu-popover button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 14px;
  min-height: 0;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.account-menu-popover a:hover,
.account-menu-popover button:hover,
.account-menu-popover a:focus-visible,
.account-menu-popover button:focus-visible {
  background: var(--panel-strong);
  color: var(--text-strong);
  text-decoration: none;
}

/* ---------- Page container ------------------------------ */

.page {
  margin: 0 auto;
  max-width: 1200px;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 52px) 56px;
  width: 100%;
  flex: 1;
}

/* ---------- Typography ---------------------------------- */

h1, h2, h3, h4 {
  color: var(--text-strong);
  letter-spacing: -0.012em;
  line-height: 1.07;
  margin: 0;
}
h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 920px; font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 750; letter-spacing: -0.014em; }
h3 { font-size: 18px; font-weight: 650; }
h4 { font-size: 14px; font-weight: 650; }

.eyebrow {
  color: var(--primary-ink);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.copy {
  color: var(--muted);
  font-size: 17px;
  margin: 18px 0 0;
  max-width: 720px;
}

.copy.lg { font-size: 19px; }

.compact-lead h1 { font-size: clamp(34px, 4.8vw, 56px); }

/* ---------- Buttons ------------------------------------- */

.button, button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.button.primary, button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-cta);
}
.button.primary:hover, button.primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: var(--primary-text);
  transform: translateY(-1px);
}

.button.secondary, button.secondary {
  background: var(--panel);
  color: var(--text-strong);
}
.button.secondary:hover, button.secondary:hover {
  background: var(--panel-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button:hover, button:hover { text-decoration: none; }

button:disabled, .button[aria-disabled='true'], .disabled-link {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.text-link {
  color: var(--primary-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.text-link:hover { color: var(--primary); }

/* ---------- Hero ---------------------------------------- */

/* Two even columns pinned the headline into 520px at every desktop width, so a
   57-character sentence set at 72px broke into six one-word lines. Give the text
   the larger share and cap the hero h1 below the global clamp: the headline then
   lands in three lines and still out-scales every other heading on the page. */
.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, 0.82fr);
  padding-top: clamp(20px, 3vw, 40px);
}
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); }

.lead { max-width: 720px; }

.hero .audience-line {
  border-left: 3px solid var(--primary-line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 22px;
  max-width: 640px;
  padding: 4px 0 4px 14px;
}

/* Spans the whole hero rather than sitting inside the text column: five items in
   a 520px column gave each 104px, so half the labels wrapped mid-phrase. */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
  padding: 14px 0;
}
.trust-strip span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Hero visual --------------------------------- */

.product-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}
.hero-screenshot {
  display: grid;
  gap: 6px;
  margin: 0;
  overflow: visible;
}
.hero-screenshot picture { display: block; }
.hero-screenshot img {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  width: 100%;
}
.hero-screenshot picture + picture img {
  aspect-ratio: 16 / 9;
  object-position: center 35%;
}

/* ---------- Section bands ------------------------------- */

.band {
  border-top: 1px solid var(--line);
  isolation: isolate;
  margin-top: 56px;
  padding-top: 40px;
  position: relative;
}
.band:nth-of-type(2n)::before,
.footer-cta::before {
  background-image: var(--site-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.band:nth-of-type(2n)::before {
  border-radius: 999px;
  height: min(24vw, 260px);
  opacity: var(--site-bg-section-opacity);
  right: max(-8vw, -72px);
  top: 6px;
  transform: rotate(-4deg);
  width: min(46vw, 540px);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
}
.band.no-rule {
  border-top: 0;
  margin-top: 36px;
  padding-top: 0;
}

.section-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 8px;
}
.section-head h2 { max-width: 760px; }
.section-head .copy { margin-top: 10px; }

/* ---------- Pain band ----------------------------------- */

.pain-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}
.pain-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 20px;
}
.pain-grid h3 {
  color: var(--text-strong);
  font-size: 16px;
  margin: 0 0 8px;
}
.pain-grid p { color: var(--muted); margin: 0; }

/* ---------- Outcomes grid (what you get) --------------- */

.outcome-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Works-with strip --------------------------- */

.works-with {
  border-top: 1px solid var(--line);
  margin-top: 36px;
}
.works-with-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 14px 0;
}
.works-kicker {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.works-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.works-item {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}
.works-item::before {
  background: var(--ok);
  border-radius: 50%;
  content: '';
  height: 6px;
  width: 6px;
}
.works-pending { color: var(--muted); }
.works-pending::before { background: var(--vms); }
.works-link {
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}
.works-link:hover { color: var(--primary); }

/* ---------- What we check (capabilities) ---------------- */

.degradation-carousel {
  background:
    linear-gradient(135deg, rgba(154, 48, 255, 0.10), rgba(40, 206, 255, 0.05) 46%, rgba(7, 10, 16, 0) 72%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  margin-top: 22px;
  overflow: hidden;
  position: relative;
}

.degradation-carousel-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 18px 14px;
}
.degradation-carousel-kicker {
  color: var(--primary-ink);
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.degradation-carousel h3 {
  color: var(--text-strong);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.04;
  margin: 0;
  min-height: 1.08em;
}
.degradation-carousel p {
  color: var(--muted);
  line-height: 1.52;
  margin: 8px 0 0;
  max-width: 720px;
  min-height: calc(1.52em * 2);
}
.degradation-carousel-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
}

.degradation-carousel-stage {
  padding: 0 18px 18px;
  position: relative;
}
.degradation-track {
  overflow: hidden;
}
.degradation-slide {
  animation: degradationFade 360ms ease both;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.degradation-slide[hidden] { display: none; }
.degradation-slide figure {
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  margin: 0;
  overflow: hidden;
  position: relative;
}
.degradation-slide figure::after {
  background: linear-gradient(180deg, rgba(7, 10, 16, 0) 55%, rgba(7, 10, 16, 0.22));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.degradation-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.degradation-nav {
  align-items: center;
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
  color: var(--text-strong);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
  width: 42px;
  z-index: 2;
}
.degradation-nav:disabled {
  cursor: progress;
  opacity: 0.42;
}
.degradation-nav svg {
  height: 21px;
  width: 21px;
}
.degradation-nav--prev { left: 28px; }
.degradation-nav--next { right: 28px; }
.degradation-carousel:hover .degradation-nav,
.degradation-carousel:focus-within .degradation-nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.degradation-nav:hover {
  background: var(--panel-strong);
  border-color: var(--primary-line);
  color: var(--primary-ink);
  transform: translateY(-50%) scale(1.03);
}

@media (hover: none) {
  .degradation-nav {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes degradationFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.caps {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.caps-tabs {
  margin-top: 18px;
}
.caps-tabs-head {
  display: grid;
  gap: 10px;
}
.caps-tabs-label {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.caps-tablist {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.caps-tab {
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 12px 14px;
  position: relative;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}
.caps-tab span {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.caps-tab small {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}
.caps-tab:hover {
  background: var(--panel-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.caps-tab:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 2px;
}
.caps-tab.is-active,
.caps-tab[aria-selected="true"] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 72%), var(--panel-strong);
  border-color: var(--primary-line);
  box-shadow: inset 0 -3px 0 var(--primary);
}
.caps-tabs .caps {
  display: block;
  margin-top: 12px;
}
.caps-tabs .caps-group {
  animation: degradationFade 220ms ease both;
}
.caps-tabs .caps-group[hidden] {
  display: none;
}
.caps-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.caps-group-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.caps-group-head h3 {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.caps-group-head .pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  padding: 3px 8px;
}

.caps-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cap {
  align-items: start;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  padding: 12px 14px;
}
.cap:has(.cap-icon) {
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
}
.cap:not(:has(.cap-icon)) {
  border-left: 3px solid var(--primary-line);
  padding-left: 16px;
}
.cap-icon {
  align-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: 8px;
  color: var(--primary-ink);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.cap-icon svg { height: 16px; width: 16px; }
.cap > div { min-width: 0; }
.cap strong { color: var(--text-strong); display: block; font-size: 13px; }
.cap span   { color: var(--muted);       display: block; font-size: 12px; margin-top: 2px; }

/* ---------- How it works ------------------------------- */

.how-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}
.pipeline-note { margin-top: 14px; }

.how-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 12px;
  /* All three rows were auto, so a card whose copy runs short had its spare
     height shared across every track — including the mock, whose aspect-ratio
     refuses to grow. The gap opened under the image and pushed the heading down
     by a different amount per card. Let the last row absorb the slack instead. */
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  padding: 0 0 18px 0;
}
.how-card .step-mock {
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  margin: 0;
  overflow: hidden;
  position: relative;
}
.how-card .step-mock img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.how-card .step-mock picture { display: block; height: 100%; }
.how-card .step-mock::after {
  background: linear-gradient(180deg, rgba(7, 10, 16, 0) 62%, rgba(7, 10, 16, 0.36));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.how-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  padding: 0 18px;
}
.how-card p { color: var(--muted); margin: 0; padding: 0 18px; }

.step-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-ink);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  left: 12px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  position: absolute;
  top: 12px;
  text-transform: uppercase;
  z-index: 1;
}

/* ---------- Audience cards ----------------------------- */

.audience-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}
.audience {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 18px;
}
.audience strong { color: var(--text-strong); display: block; font-size: 16px; }
.audience span   { color: var(--muted); display: block; font-size: 14px; margin-top: 6px; }
.audience .examples {
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  /* auto pins the tag row to the card floor, so the rule lines up across the
     row instead of tracking each card's copy length. */
  margin-top: auto;
  padding-top: 12px;
  text-transform: uppercase;
}

/* ---------- Connector strip ---------------------------- */

.connector-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
}
.connector-strip-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.connector-strip-footer .meta { margin: 0; }
.connector-strip-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.connector-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.connector-tile {
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}
.connector-tile strong { color: var(--text-strong); font-size: 14px; }
.connector-tile small  { color: var(--muted); display: block; font-size: 12px; }

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill.live {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--ok);
}
.status-pill.progress {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--vms);
}
.status-pill.planned {
  background: var(--panel);
  border-color: var(--line);
  color: var(--muted);
}

/* ---------- Privacy callout ---------------------------- */

.privacy-callout {
  align-items: center;
  background:
    linear-gradient(135deg, var(--primary-soft), transparent 70%),
    var(--panel);
  border: 1px solid var(--primary-line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
  padding: 22px;
}
.privacy-callout h3 { font-size: 22px; font-weight: 700; margin: 0; }
.privacy-callout p  { color: var(--text); margin: 8px 0 0; max-width: 640px; }

/* ---------- Pricing teaser cards ----------------------- */

.pricing-teaser {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.pricing-teaser .plan-tease {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 6px;
  padding: 18px;
}
.pricing-teaser .plan-tease strong { color: var(--text-strong); font-size: 18px; }
.pricing-teaser .plan-tease .plan-capacity { color: var(--text-strong); font-size: 15px; font-weight: 700; }
.pricing-teaser .plan-tease small  { color: var(--muted);      font-size: 12px; }
.pricing-teaser .plan-tease p      { color: var(--muted);      font-size: 13px; margin: 4px 0 0; }
.pricing-teaser .plan-tease.recommended {
  background: var(--primary-soft);
  border-color: var(--primary-line);
}
.pricing-teaser .plan-tease.recommended strong::after {
  background: var(--primary);
  border-radius: 999px;
  color: var(--primary-text);
  content: 'Recommended';
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 8px;
  padding: 3px 8px;
  text-transform: uppercase;
}

/* ---------- FAQ --------------------------------------- */

.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-width: 920px;
}
.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
}
.faq summary {
  align-items: center;
  color: var(--text-strong);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 650;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 16px 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  content: '+';
  font-family: "Space Mono", monospace;
  font-size: 14px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  transition: transform 200ms ease;
  width: 22px;
}
.faq[open] summary::after { content: '–'; color: var(--primary-ink); border-color: var(--primary-line); }
.faq[open] summary { padding-bottom: 8px; }
.faq .faq-body {
  color: var(--muted);
  padding: 0 18px 16px;
  max-width: 760px;
}
.faq .faq-body p { margin: 0 0 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq .faq-body a { color: var(--primary-ink); text-decoration: underline; text-decoration-color: var(--primary-line); text-underline-offset: 3px; }
.faq .faq-body a:hover { color: var(--primary); }
.faq .faq-body ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.faq .faq-body ul li {
  border-left: 2px solid var(--primary-line);
  margin: 6px 0;
  padding: 2px 0 2px 12px;
}
.faq .faq-body ul li strong { color: var(--text-strong); }

/* ---------- Footer CTA + footer ------------------------ */

.footer-cta {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(140, 38, 234, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid var(--primary-line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  isolation: isolate;
  margin-top: 56px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}
.footer-cta::before {
  inset: -40% -18% -60% 38%;
  opacity: 0.18;
  transform: rotate(3deg);
}
:root[data-theme='light'] .footer-cta::before {
  opacity: 0.26;
}
.footer-cta h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.footer-cta p  { color: var(--muted); margin: 6px 0 0; max-width: 640px; }

/* Brand block left, link columns right, full-width bottom bar — the same shape
   the ORTUS AI site uses, so the two footers read as one family. Page-specific
   notes belong in the bottom bar; dropping them into a link column (as they were)
   makes them look like stray links and leaves the columns ragged. */
.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 28px 40px;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  font-size: 13px;
  margin: 32px auto 0;
  max-width: 1200px;
  padding: 30px clamp(18px, 4vw, 52px) 0;
  width: 100%;
}
.footer-brand {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-mark { align-items: center; display: inline-flex; }
.footer-mark img { height: 24px; max-width: 160px; width: auto; }
.footer-tagline {
  color: var(--dim);
  line-height: 1.5;
  margin: 0;
  max-width: 24rem;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social a { color: var(--muted); display: block; padding: 3px 0; }
.footer-social a:hover { color: var(--text-strong); }

.footer-cols {
  display: grid;
  gap: 22px 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.footer .footer-col strong { color: var(--text); display: block; font-size: 12px; letter-spacing: 0.04em; margin-bottom: 6px; text-transform: uppercase; }
.footer .footer-col a { color: var(--muted); display: block; padding: 3px 0; }
.footer .footer-col a:hover { color: var(--text-strong); }
.footer .footer-col a[aria-current='page'] { color: var(--text); }

.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 2px;
  padding: 16px 0 24px;
}
.footer-note {
  color: var(--dim);
  line-height: 1.45;
  margin: 0;
  max-width: 34rem;
}

/* ---------- Pricing page ------------------------------- */

/* Was 920px while every section below used the 1200px container, which stepped
   the page in at the top. */
.pricing-lead { max-width: none; }

.access-highlights {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  max-width: 920px;
}
.access-highlights div {
  display: grid;
  gap: 4px;
  padding: 14px 18px 14px 0;
}
.access-highlights div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.access-highlights strong {
  color: var(--text-strong);
  font-size: 13px;
}
.access-highlights span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.checkout-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.6fr);
  margin-top: 26px;
}
.checkout-layout.limited-release-mode {
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
}

.pricing-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pricing-toolbar p,
.panel-intro {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.pricing-footnote { margin-top: 10px; }

.cycle-control {
  align-items: center;
  display: inline-grid;
  gap: 8px;
  grid-template-columns: auto 160px;
  margin-bottom: 0;
}

/* Segmented billing-cycle toggle (replaces dropdown) */
.cycle-toggle-wrap {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cycle-toggle-wrap > .cycle-toggle-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.cycle-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  position: relative;
}
.cycle-toggle-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  gap: 6px;
  justify-content: center;
  min-height: 34px;
  padding: 6px 18px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.cycle-toggle-btn:hover { color: var(--text-strong); }
.cycle-toggle-btn.is-active {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--text-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 16px rgba(0, 0, 0, 0.22);
}
.cycle-toggle-btn .save-pill {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  color: var(--ok);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  text-transform: uppercase;
}
:root[data-theme='light'] .cycle-toggle-btn.is-active {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 6px 16px rgba(15, 23, 42, 0.08);
}

.purchase-shell .plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-wide {
  grid-column: 1 / -1;
}

.waitlist-access-card,
.waitlist-join {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.waitlist-access-card {
  display: grid;
  gap: clamp(22px, 5vw, 54px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  padding: clamp(24px, 4vw, 38px);
}
.waitlist-access-card h2 {
  color: var(--text-strong);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.03;
  margin: 0;
}
.waitlist-access-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.waitlist-access-card .waitlist-copy {
  align-content: start;
  display: grid;
  gap: 14px;
  max-width: 560px;
}
.waitlist-next {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 18px;
}
.waitlist-next ol {
  counter-reset: access-step;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.waitlist-next li {
  counter-increment: access-step;
  display: grid;
  gap: 3px;
  grid-template-columns: 36px minmax(0, 1fr);
}
.waitlist-next li::before {
  align-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: 50%;
  color: var(--primary-ink);
  content: counter(access-step);
  display: inline-flex;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  margin-top: 2px;
  width: 26px;
}
.waitlist-next strong,
.waitlist-next span {
  grid-column: 2;
}
.waitlist-next strong {
  color: var(--text-strong);
  font-size: 14px;
}
.waitlist-next span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.waitlist-join {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  padding: 24px;
}

.waitlist-copy {
  max-width: 760px;
}

.waitlist-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.waitlist-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.waitlist-actions .primary,
.waitlist-actions .secondary {
  text-decoration: none;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.plan:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.plan.selected {
  background: var(--primary-soft);
  border-color: var(--primary-line);
  box-shadow: 0 0 0 1px var(--primary-line) inset;
}

/* Aligned-row plan cards: fixed-height header / price / meta rows so
   name, price label, camera limit, and CTA sit on the same baseline
   across cards. Inclusions list flexes to fill, button pins to bottom. */
.plan > div:first-child {
  display: grid;
  gap: 8px;
}
.plan > div:first-child p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  min-height: calc(3 * 1.45 * 14px);
  overflow: hidden;
}
.plan .plan-audience {
  margin-top: 0;
  min-height: calc(1 * 1.4 * 12px);
}
.plan .plan-price { min-height: 32px; }
.plan .meta { min-height: calc(1 * 1.5 * 13px); margin-top: 2px; }
.plan .plan-inclusions { flex: 1 1 auto; }
.plan > button:last-child { margin-top: auto; }

.plan-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.plan-head span {
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  color: var(--primary-ink);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-audience { color: var(--accent); font-size: 12px; font-weight: 700; margin-top: 7px; }
.plan-price { color: var(--text-strong); font-size: 30px; font-weight: 800; line-height: 1; }
.plan-price small { color: var(--muted); font-size: 13px; font-weight: 600; }
.plan-inclusions {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-inclusions li {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 12px 1fr;
}
.plan-inclusions li::before {
  background: var(--ok);
  border-radius: 50%;
  content: '';
  height: 6px;
  margin-top: 0.55em;
  width: 6px;
}

.purchase-panel {
  position: sticky;
  top: 78px;
}
.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.panel-body { padding: 20px; }

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 7px;
}

input, select, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text-strong);
  font: inherit;
  min-height: 42px;
  padding: 9px 12px;
  resize: vertical;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input[type='file'] { cursor: pointer; padding: 9px; }
.form-grid { display: grid; gap: 12px; }

/* compare table */
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 22px;
  overflow-x: auto;
}
.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--panel);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.compare-table thead th.recommended {
  background: var(--primary-soft);
  border-bottom-color: var(--primary-line);
  color: var(--primary-ink);
}
.compare-table tbody th {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.compare-table td { color: var(--muted); font-size: 13px; }
.compare-table td.yes::before { color: var(--ok);    content: '✓ '; font-weight: 700; }
.compare-table td.no::before  { color: var(--dim);   content: '–';  font-weight: 700; }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }

/* ---------- Account / portal -------------------------- */

.portal-layout {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

/* 404 has almost no content; without this the copy clings to the top of a very
   tall viewport with the footer stranded far below. */
.page-404 { align-content: center; display: grid; min-height: min(58vh, 520px); }

.account-lead {
  max-width: 820px;
}
/* Signed out, the lead and the auth card are the entire page — centre them.
   showWorkspace() hides .account-lead once the visitor is in, and the workspace
   keeps the full-width layout it needs. */
.account-page:has(.account-lead:not(.hidden)) .account-lead { margin-inline: auto; text-align: center; }

.account-lead h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.account-entry {
  align-items: start;
  display: grid;
  justify-items: center;
}

.account-entry-card {
  display: grid;
  justify-items: stretch;
  max-width: 480px;
  width: 100%;
}

.account-signin {
  max-width: 480px;
  width: 100%;
}
.account-signin .panel-body {
  display: grid;
  gap: 14px;
}

.account-loading {
  max-width: 480px;
  width: 100%;
}

.account-loading .panel-body {
  display: grid;
  gap: 8px;
}

html.account-session-hint [data-account-loading] {
  display: block !important;
}

html.account-session-hint [data-account-entry] {
  display: none;
}

.form-message {
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.form-message.error {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.28);
  color: var(--text-strong);
}

.account-signin.has-error input[name='user'],
.account-signin.has-error input[name='password'] {
  border-color: rgba(185, 28, 28, 0.55);
}

.field-group {
  display: grid;
  gap: 7px;
}

.form-label-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.form-label-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.form-label-row button {
  background: none;
  border: 0;
  color: var(--primary-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}

.field-label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.auth-alt {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.auth-alt button {
  background: none;
  border: 0;
  color: var(--primary-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}

.auth-alt button:hover,
.auth-alt button:focus-visible {
  color: var(--primary);
}

.otp-field {
  display: grid;
  gap: 8px;
}

.otp-entry {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(34px, 46px));
  max-width: 324px;
  width: 100%;
}

.otp-cell {
  aspect-ratio: 1;
  border-color: var(--line-strong);
  font-size: 20px;
  font-weight: 800;
  min-height: 0;
  padding: 0;
  text-align: center;
}

.otp-cell:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: 0;
}

.otp-entry.complete .otp-cell {
  border-color: var(--ok);
}

.otp-entry.shake .otp-cell {
  animation: otp-shake 0.34s ease both;
  border-color: var(--danger);
}

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .otp-entry.shake .otp-cell {
    animation: none;
  }
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.optional {
  color: var(--dim);
  font-weight: 600;
}

.check-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
}
.check-row input {
  margin-top: 2px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.signin-providers {
  display: grid;
  gap: 10px;
}

.signin-provider {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.signin-provider--google {
  background: #fff;
  border: 1px solid #747775;
  color: #1f1f1f;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.signin-provider--google:hover {
  background: #f8fafd;
  border-color: #5f6368;
  color: #1f1f1f;
}

.signin-provider--google:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.signin-provider--sso {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--text-strong);
}

.signin-provider-google-icon {
  background: #fff;
  display: block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.signin-provider-mark {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 5px;
}

.signin-provider-divider {
  align-items: center;
  color: var(--dim);
  display: grid;
  font-size: 12px;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
}

.signin-provider-divider::before,
.signin-provider-divider::after {
  background: var(--line);
  content: '';
  height: 1px;
}

.account-workspace {
  display: grid;
  gap: 18px;
}

.account-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.account-toolbar h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0;
}

.account-tabs {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
}

.account-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  min-height: 42px;
  padding: 10px 14px;
  width: auto;
}

.account-tabs button.active {
  background: var(--bg-elevated);
  color: var(--text-strong);
}

.account-tabs button:hover,
.account-tabs button:focus-visible,
.auth-alt button:hover,
.auth-alt button:focus-visible,
.form-label-row button:hover,
.form-label-row button:focus-visible {
  color: var(--primary);
}

.account-section {
  display: grid;
  gap: 14px;
}

.account-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
}

.account-grid.account-start-grid {
  grid-template-columns: minmax(0, 1fr);
}

.account-start-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.account-start-panel h2 {
  font-size: 22px;
  margin: 4px 0 0;
}

.account-start-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-start-step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
}

.account-start-step::before {
  background: var(--line);
  border-radius: 999px;
  content: '';
  display: block;
  height: 8px;
  margin-bottom: 10px;
  width: 8px;
}

.account-start-step.done::before {
  background: var(--success);
}

.account-start-step.current {
  border-color: var(--primary-line);
}

.account-start-step.current::before {
  background: var(--primary);
}

.account-start-step strong,
.account-start-step span {
  display: block;
}

.account-start-step strong {
  color: var(--text-strong);
  font-size: 13px;
}

.account-start-step span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.account-start-steps.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.account-profile-panel .panel-body,
.account-security-panel .panel-body,
.security-form {
  display: grid;
  gap: 12px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 72px;
  padding: 10px 12px;
}
.metric strong { color: var(--text-strong); display: block; font-size: 19px; line-height: 1; font-weight: 800; }
.metric span   { color: var(--muted);       display: block; font-size: 12px; margin-top: 6px; }

.account-profile-panel button[type='submit'],
.account-security-panel .security-form button,
.account-security-panel .actions button,
.account-workspace .account-toolbar .actions .button,
.account-workspace .account-toolbar .actions button {
  justify-self: start;
  width: auto;
}

/* ---------- Responsive: works-with + outcomes --------- */

@media (max-width: 980px) {
  .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .outcome-grid { grid-template-columns: 1fr; }
  .works-with-inner { align-items: flex-start; }
  .works-link { margin-left: 0; }
}


.account-security-panel .actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-layout {
  display: grid;
  gap: 14px;
}

.billing-panel .panel-body,
.billing-request-panel .panel-body {
  display: grid;
  gap: 14px;
}

.billing-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-account-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}

.billing-actions button,
.billing-account-actions button,
.billing-request-panel button {
  width: auto;
}

.billing-list {
  display: grid;
  gap: 8px;
}

.billing-row {
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.billing-row strong,
.billing-row span {
  display: block;
}

.billing-row strong {
  color: var(--text-strong);
  font-size: 13px;
}

.billing-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.security-callout {
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}

.security-callout strong {
  color: var(--text-strong);
  font-size: 13px;
}

.security-callout span {
  color: var(--muted);
  font-size: 12px;
}

body.modal-open {
  overflow: hidden;
}

.account-setup-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 80;
}

.account-modal-scrim {
  background: rgba(5, 7, 12, 0.62);
  border: 0;
  border-radius: 0;
  cursor: default;
  inset: 0;
  min-height: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.account-modal-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 16px;
  max-height: min(720px, calc(100vh - 36px));
  max-width: 620px;
  overflow: auto;
  padding: 18px;
  position: relative;
  width: min(100%, 620px);
}

.account-modal-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.account-modal-head h2 {
  color: var(--text-strong);
  font-size: 22px;
  margin: 0;
}

.icon-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--panel-strong);
  color: var(--text-strong);
}

.account-download-panel {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.account-section-head {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.status-stack {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.totp-setup {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: 132px 1fr;
  padding: 12px;
}
.totp-setup img {
  background: #fff;
  border-radius: 7px;
  display: block;
  height: 132px;
  padding: 6px;
  width: 132px;
}
.totp-setup code {
  display: block;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.offline-history-row strong,
.activation-mini strong { color: var(--text-strong); }

.license-workflow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}
.license-workflow div,
.activation-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.license-workflow strong { display: block; font-size: 13px; }
.license-workflow span,
.activation-mini span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.license-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  overflow: hidden;
}

.license-list.account-empty-list {
  border: 0;
  margin-top: 0;
  overflow: visible;
}

.license-card {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  padding: 18px;
}
.license-card:last-child { border-bottom: 0; }

.license-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.license-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}
.fact { border-left: 2px solid var(--line); padding-left: 10px; }
.fact span   { color: var(--muted);       display: block; font-size: 12px; }
.fact strong { color: var(--text-strong); display: block; font-size: 14px; margin-top: 2px; }

.activation-summary {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}
.activation-summary h4 { font-size: 13px; margin: 0 0 8px; }
.activation-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offline-history {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
}
.offline-history-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.offline-history-row span { color: var(--muted); font-size: 12px; }
.offline-history-row strong { font-size: 13px; text-align: right; }

.license-actions {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.offline-preview {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 7px;
  color: var(--text);
  display: grid;
  font-size: 13px;
  gap: 3px;
  padding: 12px;
}
.offline-preview strong { color: var(--text-strong); font-size: 13px; }
.offline-preview span   { color: var(--muted); }
.offline-preview.error {
  background: rgba(255, 78, 78, 0.1);
  border-color: rgba(255, 78, 78, 0.36);
  color: var(--text);
}
.offline-request-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 14px;
}

/* ---------- Notice / status --------------------------- */

.notice {
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: 7px;
  color: var(--text);
  margin-top: 14px;
  padding: 12px 14px;
}
.notice.error {
  background: rgba(255, 78, 78, 0.1);
  border-color: rgba(255, 78, 78, 0.38);
  color: var(--text);
}
.notice.ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--text);
}

.meta { color: var(--muted); font-size: 13px; margin-top: 3px; }

.quiet-list { color: var(--muted); margin: 12px 0 0; padding-left: 18px; }
.quiet-list li { margin: 6px 0; }

/* ---------- Download page ----------------------------- */

.download-table { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 20px; overflow: hidden; }
.download-row {
  align-items: center;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px 16px;
}
.download-row:last-child { border-bottom: 0; }

.release-panel { margin-top: 24px; }
.release-panel .notice { margin-bottom: 14px; }

.release-summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}
.release-summary h2 { margin-top: 4px; }
.release-summary p { color: var(--muted); margin: 10px 0 0; }
.release-primary:empty { display: none; }

.release-card {
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 20px;
}
.release-card h3 {
  color: var(--text-strong);
  font-size: 20px;
  margin: 10px 0 0;
}
.release-card p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 620px;
}
.release-card-actions {
  align-items: flex-end;
  display: grid;
  gap: 7px;
  justify-items: end;
}
.release-card-actions .button { white-space: nowrap; }
.release-facts {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 7px 12px;
  margin-top: 12px;
}
.release-facts span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
}

.checksum-wrap { color: var(--muted); font-size: 13px; margin-top: 8px; }
.checksum, .activation-code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  line-break: anywhere;
  margin-top: 3px;
  padding: 4px 6px;
}
.activation-code { display: block; padding: 10px; }

.release-links {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 14px;
}
.release-links a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.release-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 16px;
  overflow: hidden;
}
.release-details summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}
.release-details summary::-webkit-details-marker { display: none; }
.release-details summary span {
  color: var(--text-strong);
  font-weight: 750;
}
.release-details summary small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.release-details[open] summary {
  border-bottom: 1px solid var(--line);
}
.release-advanced {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}
.verification-panel,
.deployment-checklist {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.verification-panel h3,
.deployment-checklist h3 {
  font-size: 15px;
  margin: 0;
}
.verification-panel p,
.deployment-checklist p {
  color: var(--muted);
  margin: 8px 0 0;
}
.deployment-checklist .quiet-list { margin-top: 10px; }
.release-steps {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
}
.release-step {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
}
.release-step h3 { font-size: 15px; margin-top: 4px; }
.release-step p {
  color: var(--muted);
  margin: 8px 0 0;
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 9px 0 0;
  overflow-x: auto;
  padding: 11px;
}
code { font-family: "Space Mono", monospace; }

.download-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}
.download-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.download-note strong { color: var(--text-strong); display: block; font-size: 14px; }
.download-note p { color: var(--muted); margin: 8px 0 0; }

.download-access-panel,
.docs-access-panel {
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  margin-top: 26px;
  padding: 22px;
}
.download-access-panel h2,
.docs-access-panel h2 {
  color: var(--text-strong);
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 4px 0 0;
}
.download-access-panel p,
.docs-access-panel p {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 680px;
}
.download-access-panel .actions,
.docs-access-panel .actions {
  margin-top: 18px;
}
.download-access-summary,
.docs-access-list {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}
.download-access-summary div,
.docs-access-list li {
  border-bottom: 1px solid var(--line);
  display: grid;
  list-style: none;
  padding: 14px;
}
.download-access-summary div {
  align-items: start;
  gap: 11px;
  grid-template-columns: 28px minmax(0, 1fr);
}
.docs-access-list li {
  align-items: baseline;
  column-gap: 22px;
  grid-template-columns: 164px minmax(0, 1fr);
  row-gap: 6px;
}
.download-access-summary div:last-child,
.docs-access-list li:last-child {
  border-bottom: 0;
}
.download-access-summary strong {
  align-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  color: var(--primary-ink);
  display: inline-flex;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  height: 26px;
  justify-content: center;
  width: 26px;
}
.download-access-summary span,
.docs-access-list span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.65;
}
.docs-access-list strong {
  color: var(--text-strong);
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Pricing / split path ---------------------- */

.split-band {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.75fr);
}
.path-list {
  counter-reset: purchase-path;
  display: grid;
  gap: 10px;
}
.path-list div {
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 14px;
}
.path-list div::before {
  align-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  color: var(--primary-ink);
  content: counter(purchase-path, decimal-leading-zero);
  counter-increment: purchase-path;
  display: inline-flex;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  grid-row: 1 / span 2;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}
.path-list strong {
  color: var(--text-strong);
  display: block;
  font-size: 14px;
  grid-column: 2;
}
.path-list span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  grid-column: 2;
  margin-top: -6px;
}

/* ---------- Docs ------------------------------------- */

.docs-group {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 26px;
}
.docs-group:first-of-type { border-top: 0; padding-top: 12px; margin-top: 18px; }
.docs-group > header { margin-bottom: 16px; max-width: 760px; }
.docs-group > header h2 { font-size: clamp(22px, 2.6vw, 28px); }
.docs-group > header p { color: var(--muted); margin: 6px 0 0; }

.docs-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-card {
  align-content: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto 1fr;
  padding: 18px;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease, background-color 140ms ease;
}
.docs-card:hover {
  background: var(--panel-strong);
  border-color: var(--line-strong);
  text-decoration: none;
  transform: translateY(-1px);
}
.docs-card h3 { color: var(--text-strong); font-size: 16px; font-weight: 700; margin: 0; }
.docs-card p { color: var(--muted); font-size: 14px; margin: 0; }
.docs-card-cta {
  color: var(--primary-ink);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 4px;
  text-transform: uppercase;
}

.docs-breadcrumb {
  font-size: 13px;
  margin-bottom: 14px;
}
.docs-breadcrumb a {
  color: var(--muted);
  font-weight: 600;
}
.docs-breadcrumb a:hover { color: var(--text-strong); }

.docs-article {
  display: grid;
  gap: 8px;
}
.docs-article-head h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 6px;
}
.docs-article-head .meta {
  color: var(--dim);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-layout {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-top: 22px;
}

.docs-toc {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.docs-toc h2 {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.docs-toc ol {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-toc a {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  padding: 4px 0;
}
.docs-toc a:hover { color: var(--text-strong); }

/* Prose: rendered markdown body */
.prose {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  max-width: 78ch;
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child  { margin-bottom: 0; }

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prose h2 { font-size: 26px; font-weight: 700; margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 650; margin: 28px 0 10px; }
.prose h4 { font-size: 16px; font-weight: 650; margin: 22px 0 8px; }

.prose p { margin: 0 0 14px; }
.prose a { color: var(--primary-ink); text-decoration: underline; text-decoration-color: var(--primary-line); text-underline-offset: 3px; }
.prose a:hover { color: var(--primary); }

.prose strong { color: var(--text-strong); }

.prose ul, .prose ol { margin: 0 0 14px 0; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li > ul, .prose li > ol { margin: 4px 0 6px 0; }

.prose code {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-strong);
  font-family: "Space Mono", monospace;
  font-size: 0.9em;
  padding: 1px 5px;
}

.prose pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 16px;
  overflow-x: auto;
  padding: 14px 16px;
}
.prose pre code {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  padding: 0;
}

.prose blockquote {
  border-left: 3px solid var(--primary-line);
  color: var(--muted);
  margin: 0 0 16px;
  padding: 4px 0 4px 14px;
}

.prose hr {
  background: var(--line);
  border: 0;
  height: 1px;
  margin: 24px 0;
}

.prose .table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 16px;
  overflow-x: auto;
}
.prose table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
  min-width: 640px;
}
.prose thead th {
  background: var(--panel-strong);
  color: var(--text-strong);
  font-weight: 700;
  text-align: left;
}
.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}
.prose tr:last-child th,
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(2n) { background: var(--panel); }

@media (max-width: 980px) {
  .docs-card-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 22px; }
  .docs-toc { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; position: static; max-height: none; }
  .docs-toc ol { grid-template-columns: 1fr 1fr; display: grid; }
}

/* ---------- Hidden helper ----------------------------- */

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

/* ---------- Reveal-on-scroll motion ------------------- */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive -------------------------------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); }
  .pricing-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero,
  .checkout-layout,
  .split-band,
  .license-card,
  .pain-grid,
  .caps-grid,
  .how-grid,
  .audience-grid,
  .pricing-teaser,
  .account-entry,
  .account-grid,
  .account-start-steps,
  .billing-metrics,
  .waitlist-steps,
  .waitlist-access-card,
  .download-access-panel,
  .docs-access-panel,
  .form-grid.two,
  .totp-setup,
  .license-workflow,
  .activation-grid,
  .download-grid,
  .privacy-callout,
  .footer-cta,
  .purchase-shell .plan-grid {
    grid-template-columns: 1fr;
  }
  .billing-row {
    align-items: stretch;
    display: grid;
  }

  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .purchase-panel { position: static; }

  .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .caps-tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .degradation-carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .nav.open {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    display: grid;
    gap: 4px;
    inset: 60px 16px auto 16px;
    padding: 10px;
    position: fixed;
    z-index: 30;
    /* `.nav` sets justify-content: flex-end for the desktop bar. Switching
       display to grid keeps that value, which packs the single auto-sized
       column against the right edge and leaves the panel two-thirds empty.
       Stretch it so the links fill the sheet they are drawn in. */
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }
  .nav.open a { padding: 10px 12px; text-align: left; width: 100%; }
  .nav .platform-link { margin-left: 0; }
  .nav .platform-link::before { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .brand img { height: 24px; max-width: 150px; }
  .hero-screenshot picture + picture { display: none; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { justify-content: flex-start; }
  .connector-grid { grid-template-columns: 1fr; }
  .pricing-toolbar { align-items: flex-start; flex-direction: column; }
  .access-highlights {
    grid-template-columns: 1fr;
  }
  .access-highlights div {
    padding: 13px 0;
  }
  .access-highlights div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .docs-access-list li {
    align-items: start;
    grid-template-columns: 1fr;
  }
  .docs-access-list span { line-height: 1.55; }
  .waitlist-actions .button { width: 100%; }
  .compare-wrap {
    overflow-x: visible;
  }
  .compare-table {
    display: block !important;
    min-width: 0;
    width: 100%;
  }
  .compare-table thead {
    display: none !important;
  }
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block !important;
  }
  .compare-table tr {
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
  }
  .compare-table th,
  .compare-table td {
    border-bottom: 0;
    padding: 0;
  }
  .compare-table tbody th {
    font-size: 13px;
    margin-bottom: 9px;
    white-space: normal;
  }
  .compare-table td {
    align-items: baseline;
    display: grid !important;
    font-size: 12px;
    gap: 10px;
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 3px 0;
  }
  .compare-table td::before {
    color: var(--text);
    content: '';
    font-size: 11px;
    font-weight: 700;
  }
  .compare-table td:nth-child(2)::before { content: 'Essential'; }
  .compare-table td:nth-child(3)::before { content: 'Standard'; }
  .compare-table td:nth-child(4)::before { content: 'Pro'; }
  .compare-table td:nth-child(5)::before { content: 'Enterprise'; }
  .cycle-control { grid-template-columns: 1fr; }
  .section-head, .account-section-head, .account-toolbar { align-items: flex-start; flex-direction: column; }
  .download-row { grid-template-columns: 1fr; }
  .release-card { grid-template-columns: 1fr; }
  .release-card-actions { justify-items: stretch; }
  .release-card-actions .button { width: 100%; }
  .release-advanced { grid-template-columns: 1fr; }
  .release-details summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .release-details summary small { text-align: left; }
  .degradation-carousel { margin-top: 18px; }
  .degradation-carousel-head { padding: 16px 14px 12px; }
  .degradation-carousel h3 { font-size: 23px; }
  .degradation-carousel p {
    font-size: 14px;
    min-height: calc(1.52em * 3);
  }
  .degradation-carousel-stage { padding: 0 8px 12px; }
  .degradation-slide { gap: 5px; }
  .degradation-slide figure { border-radius: 6px; }
  .degradation-nav {
    height: 36px;
    opacity: 1;
    transform: translateY(-50%) scale(1);
    width: 36px;
  }
  .degradation-nav svg { height: 18px; width: 18px; }
  .degradation-nav--prev { left: 12px; }
  .degradation-nav--next { right: 12px; }
  .caps-tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps-tab {
    min-height: 62px;
    padding: 11px 12px;
  }
  .caps-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
