/* =================================================================
   Nora Tech Systems · OpsHub
   Look: the OpsHub app's own design tokens (IBM Plex Sans / Plex Mono,
   violet accent at OKLCH hue 288, cool slate neutrals) on a Keka-style
   page structure: mega-menu nav, centred hero over a product shot, tabbed
   module showcase, closing band on the app's night-blue sidebar colour.

   Rules carried over from the app's design guidelines:
   - flat surfaces, no decorative gradients
   - one accent colour, used for actions and focus
   - depth from a 1px line or a soft shadow, never both on the same card
   Fonts load via <link> in each page head.
   ================================================================= */

:root {
  /* Surfaces (app light theme) */
  --page: oklch(0.968 0.007 247.9);
  --surface: #ffffff;
  --raised: oklch(0.988 0.003 264.5);
  --inset: oklch(0.984 0.003 247.9);

  /* Text */
  --ink: oklch(0.208 0.040 265.8);
  --ink-2: oklch(0.446 0.037 257.3);
  --ink-3: oklch(0.711 0.035 256.8);

  /* Accent (app: --accent-oklch 0.48 0.17 288) */
  --accent: oklch(0.480 0.170 288);
  --accent-dark: oklch(0.414 0.148 288);
  --accent-muted: oklch(0.652 0.186 288);
  --accent-soft: oklch(0.949 0.023 288);
  --accent-line: oklch(0.880 0.050 288);
  /* The logo violet. Used only for the mark. */
  --brand: #41307a;

  /* Lines */
  --line: oklch(0.929 0.013 255.5);
  --line-strong: oklch(0.869 0.020 252.9);

  /* Night surface: the app sidebar colour */
  --night: #0f172a;
  --night-2: #1b2438;
  --night-deep: #0a101f;
  --on-night: oklch(0.968 0.007 247.9);
  --on-night-dim: oklch(0.760 0.030 257);
  --night-line: oklch(0.320 0.035 262);
  --accent-on-night: oklch(0.791 0.105 288);

  /* Status */
  --success: oklch(0.448 0.108 151.3);
  --warning: oklch(0.473 0.125 46.2);
  --muted: oklch(0.62 0.03 257);

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.875rem, 1.35rem + 2vw, 2.875rem);
  --fs-h1: clamp(2.5rem, 1.55rem + 3.8vw, 4.25rem);

  --space-section: clamp(4rem, 2.9rem + 5vw, 7rem);
  --gutter: clamp(1.25rem, 0.7rem + 2.2vw, 2.5rem);
  --max: 1200px;
  --measure: 68ch;

  /* Radii from the app scale */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;
  --shadow-xs: 0 1px 2px oklch(0.208 0.040 265.8 / 0.06);
  --shadow: 0 1px 2px oklch(0.208 0.040 265.8 / 0.05), 0 16px 40px -16px oklch(0.208 0.040 265.8 / 0.18);
  --shadow-lg: 0 2px 4px oklch(0.208 0.040 265.8 / 0.05), 0 28px 64px -24px oklch(0.208 0.040 265.8 / 0.28);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  overflow-x: clip;
  scrollbar-color: var(--line-strong) transparent;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--accent);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

time, .tnum, .price-card__amount, .compare-table td, .compare-table th { font-variant-numeric: tabular-nums; }

::selection { background: var(--accent-soft); color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--page); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 2000;
  background: var(--accent); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Icons come from icons.svg (Phosphor). Size with the font by default. */
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Section heads (centred, like the reference layout) ---------- */

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.25rem, 4vw, 3.5rem);
  text-align: center;
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead, .section-head > p {
  margin-top: 1rem; color: var(--ink-2);
  font-size: var(--fs-lead); line-height: 1.55;
}
.section-head--left { margin-inline: 0; text-align: left; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: scale(0.98); }
.btn svg, .btn .ic { width: 1.1em; height: 1.1em; }

.btn--ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--inset); border-color: var(--ink-3); color: var(--ink); }

.btn--lg { min-height: 50px; padding: 0.75rem 1.6rem; font-size: 1rem; }

.link-plain {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--accent); font-size: 0.9375rem;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-plain:hover { color: var(--accent-dark); gap: 0.6rem; }
.link-plain svg, .link-plain .ic { width: 1em; height: 1em; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck,
.site-header.mega-open { border-bottom-color: var(--line); }

.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.25rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.nav__mark { width: 34px; height: 34px; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.nav__wordmark strong { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--ink); }
.nav__wordmark span { font-size: 0.6875rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0.01em; }

.nav__menu { display: none; flex: 1; justify-content: center; gap: 0.15rem; }
.nav__menu > li > a,
.nav__menu > li > button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 40px; padding: 0 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav__menu > li > a:hover,
.nav__menu > li > button:hover { background: var(--inset); color: var(--ink); }
.nav__menu a[aria-current="page"],
.nav__menu button[data-current="true"] { color: var(--accent-dark); }
.nav__menu button[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.nav__menu .ic { width: 0.8em; height: 0.8em; transition: transform 0.2s var(--ease); }
.nav__menu button[aria-expanded="true"] .ic { transform: rotate(180deg); }

.nav__actions { display: none; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav__actions .btn { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.875rem; }

.nav__toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--surface);
}
.nav__toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mega menu: a full-width white band under the header */
.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px oklch(0.208 0.040 265.8 / 0.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.mega.is-open {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0s;
}
.mega__grid {
  display: grid; gap: 2rem 2.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 1.75rem 1.5rem;
}
.mega__head {
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-2);
  padding: 0 0.6rem 0.5rem;
}
.mega__link {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.55rem 0.6rem; border-radius: var(--r-md);
  transition: background 0.15s var(--ease);
}
.mega__link:hover { background: var(--accent-soft); }
.mega__ic {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.mega__ic .ic { width: 20px; height: 20px; }
.mega__link:hover .mega__ic { background: var(--accent); color: #fff; }
.mega__link strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mega__link small { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); margin-top: 1px; }
.mega__foot {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center;
  padding-block: 1rem 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--ink-2);
}

/* Mobile menu */
.nav__overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--surface);
  padding: calc(var(--header-h) + 0.75rem) var(--gutter) 2rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
body.menu-open .nav__overlay {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}
body.menu-open { overflow: hidden; }

.nav__overlay > ul > li { border-bottom: 1px solid var(--line); }
.nav__overlay summary,
.nav__overlay > ul > li > a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none;
}
.nav__overlay summary::-webkit-details-marker { display: none; }
.nav__overlay summary .ic { transition: transform 0.2s var(--ease); width: 1em; height: 1em; }
.nav__overlay details[open] summary .ic { transform: rotate(180deg); }
.m-group { padding: 0 0 1rem; display: grid; gap: 1rem; }
.m-group h4 { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.25rem; }
.m-group a {
  display: flex; align-items: center; gap: 0.7rem; min-height: 44px;
  font-size: 1rem; color: var(--ink);
}
.m-group a .ic { color: var(--accent); width: 1.25rem; height: 1.25rem; }
.nav__overlay-cta { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.nav__overlay-cta .btn { width: 100%; min-height: 48px; }

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__actions { display: flex; }
  .nav__toggle { display: none; }
  .nav__overlay { display: none; }
}
@media (max-width: 1023.98px) { .mega { display: none; } }

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

.hero {
  background: var(--page);
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
  overflow: clip;
}
.hero__intro { text-align: center; max-width: 52rem; margin-inline: auto; }
.hero__title { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
.hero__lead {
  margin: 1.4rem auto 0; max-width: 40rem;
  font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* The product shot straddles the hero and the white section below it. */
.hero__stage { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero__stage::before {
  content: ""; position: absolute; left: calc(50% - 50vw); width: 100vw; bottom: 0; height: 50%;
  background: var(--surface);
}
.hero__stage .shot { position: relative; max-width: 1080px; margin-inline: auto; box-shadow: var(--shadow-lg); border: 0; }

/* ---------- Product shots ---------- */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot__chrome {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--inset);
}
.shot__chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.shot__chrome code {
  margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; }

/* ---------- Proof strip ---------- */

.proof { background: var(--surface); padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(2.5rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.proof__list {
  display: grid; gap: 1.1rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.proof__item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); line-height: 1.35; }
.proof__item .ic { width: 22px; height: 22px; color: var(--accent); }
@media (min-width: 900px) { .proof__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Value props ---------- */

.values { display: grid; gap: 2.25rem 2rem; }
.values--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .values.values--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.value__ic {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent);
}
.value__ic .ic { width: 24px; height: 24px; }
.value h3 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.value h3 .ic { width: 1.35em; height: 1.35em; color: var(--accent); }
.value p { color: var(--ink-2); font-size: 0.9688rem; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Tabbed module showcase ---------- */

.tabs { display: grid; gap: 1.5rem; }
.tabs__list {
  display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 48px; padding: 0.5rem 1rem; text-align: left;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-weight: 500; font-size: 0.9688rem; color: var(--ink-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tab .ic { width: 22px; height: 22px; color: var(--ink-3); transition: color 0.15s var(--ease); }
.tab:hover { background: var(--surface); color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--surface); border-color: var(--line); color: var(--accent-dark);
  box-shadow: var(--shadow-xs); font-weight: 600;
}
.tab[aria-selected="true"] .ic { color: var(--accent); }

.tabs__panels { min-width: 0; }
.tabpanel { display: grid; gap: 1.75rem; align-content: start; }
.tabpanel[hidden] { display: none; }
.tabpanel__text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 0.7rem; letter-spacing: -0.025em; }
.tabpanel__text > p { color: var(--ink-2); max-width: 56ch; }
.tabpanel__list { display: grid; gap: 0.55rem; margin: 1.25rem 0 1.4rem; }
.tabpanel__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9688rem; color: var(--ink); }
.tabpanel__list .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.tabpanel__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.tabpanel .shot { box-shadow: var(--shadow-lg); border: 0; }
.tabs__note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--ink-2); max-width: 62ch; }

@media (min-width: 1000px) {
  .tabs { grid-template-columns: 17.5rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .tabs__list { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .tab { width: 100%; }
  .tabpanel { gap: 2rem; }
}

/* ---------- Feature columns with images ---------- */

.feat-cols { display: grid; gap: 2.5rem 2rem; }
.feat-col .shot { margin-bottom: 1.4rem; box-shadow: var(--shadow-xs); }
.feat-col .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.feat-col h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.feat-col p { color: var(--ink-2); font-size: 0.9688rem; }
@media (min-width: 900px) { .feat-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Trust ---------- */

.trust { display: grid; gap: 2.5rem; align-items: start; }
.trust__lead h2 { font-size: var(--fs-h2); }
.trust__lead p { margin-top: 1rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; max-width: 34rem; }
.trust__lead .link-plain { margin-top: 1.4rem; }
.trust__grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust__item { display: flex; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.trust__item .value__ic { flex: none; }
.trust__item h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.trust__item p { color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 960px) { .trust { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; } }

/* ---------- Modules (kept for the module pages) ---------- */

.module-rail { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.module-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.9rem; min-height: 40px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.module-chip:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.module-chip--opt { border-style: dashed; color: var(--ink-2); background: transparent; }

.feat-list { margin-top: 1.35rem; display: grid; gap: 0.55rem; }
.feat-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9688rem; }
.feat-list svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 4px; }

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

.price-toggle {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 0.45rem 0.7rem 0.45rem 1rem;
  margin-bottom: 1.9rem; font-size: 0.9375rem;
}
.price-toggle__switch {
  position: relative; width: 44px; height: 26px; flex: none;
  border-radius: 999px; background: var(--line-strong);
  transition: background 0.2s var(--ease);
}
.price-toggle__switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px oklch(0.208 0.040 265.8 / 0.25);
  transition: transform 0.2s var(--ease);
}
.price-toggle__switch[aria-checked="true"] { background: var(--accent); }
.price-toggle__switch[aria-checked="true"]::after { transform: translateX(18px); }
.price-toggle .save {
  font-size: 0.75rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.price-toggle__opt { color: var(--ink-2); transition: color 0.2s var(--ease); }
.price-toggle__opt--month { font-weight: 600; color: var(--ink); }
body.is-annual .price-toggle__opt--month { font-weight: 400; color: var(--ink-2); }
body.is-annual .price-toggle__opt--year { font-weight: 600; color: var(--ink); }

.price-grid { display: grid; gap: 1rem; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.6vw, 1.85rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.price-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.section--alt .price-card { background: var(--surface); }

/* The featured plan is a solid accent fill. */
.price-card--featured { background: var(--accent); color: #fff; border-color: var(--accent); }
.section--alt .price-card--featured { background: var(--accent); }
.price-card--featured:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.price-card--featured :focus-visible { outline-color: #fff; }

.price-card__badge {
  position: absolute; top: -0.7rem; left: 1.25rem;
  font-size: 0.75rem; font-weight: 600;
  background: var(--night); color: #fff;
  padding: 0.25rem 0.65rem; border-radius: 999px;
}
.price-card__name { font-size: 1.25rem; }
.price-card__seats { font-size: 0.875rem; color: var(--ink-2); }
.price-card__amount {
  font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em; line-height: 1.05;
}
.price-card__amount small { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.price-card__unit { font-size: 0.9rem; color: var(--ink-2); }
.price-card__billed { display: block; margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2); }
.price-card ul {
  flex: 1; display: grid; gap: 0.5rem;
  margin-top: 0.35rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.price-card li { display: flex; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-2); }
.price-card li svg, .price-card li .ic { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 4px; }
.price-card .btn { width: 100%; margin-top: 0.5rem; }

.price-card--featured .price-card__seats,
.price-card--featured .price-card__unit,
.price-card--featured .price-card__amount small,
.price-card--featured .price-card__billed,
.price-card--featured li { color: oklch(0.93 0.03 288); }
.price-card--featured ul { border-top-color: oklch(1 0 0 / 0.25); }
.price-card--featured li svg, .price-card--featured li .ic { color: #fff; }
.price-card--featured .btn { background: #fff; border-color: #fff; color: var(--accent-dark); }
.price-card--featured .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.price-card--muted { border-style: dashed; background: transparent; }
.section--alt .price-card--muted { background: transparent; }
.price-card--muted:hover { box-shadow: none; }

@media (min-width: 700px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Compare ---------- */

.compare-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 940px; font-size: 0.875rem; }
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem; text-align: left;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.compare-table thead th {
  font-size: 0.8125rem; font-weight: 600;
  background: var(--inset); color: var(--ink-2);
}
.compare-table tbody th,
.compare-table thead th:first-child { position: sticky; left: 0; z-index: 2; border-right: 1px solid var(--line); }
.compare-table tbody th { font-weight: 600; color: var(--ink); background: var(--surface); }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: var(--inset); }

.compare-table .col-opshub { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.compare-table thead .col-opshub { background: var(--accent); color: #fff; }
.compare-table tbody tr:hover td.col-opshub { background: var(--accent-line); }

.compare-table .yes { color: var(--success); font-weight: 600; }
.compare-table .partial { color: var(--warning); }
.compare-table .no { color: var(--muted); }
.compare-note { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-2); max-width: 72ch; }

.stack-vs { display: grid; gap: 1rem; margin-top: 2rem; }
.stack-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem;
}
.section--alt .stack-card { background: var(--surface); }
.stack-card--win { border-color: var(--accent-line); background: var(--accent-soft); }
.section--alt .stack-card--win { background: var(--accent-soft); }
.stack-card h3 { margin-bottom: 0.6rem; font-size: var(--fs-h3); }
.stack-card p { color: var(--ink-2); }
.stack-card ul { margin-top: 0.9rem; display: grid; gap: 0.5rem; color: var(--ink-2); font-size: 0.9688rem; }
.stack-card li { padding-left: 1.1rem; position: relative; }
.stack-card li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 6px; height: 2px; border-radius: 1px; background: var(--ink-3);
}
.stack-card--win li::before { background: var(--accent); }
@media (min-width: 700px) { .stack-vs { grid-template-columns: 1fr 1fr; } }

/* ---------- Compare teaser band ---------- */

.band {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--accent-soft); border-radius: var(--r-xl);
}
.band h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); max-width: 30ch; }
.band p { margin-top: 0.4rem; color: var(--ink-2); max-width: 52ch; }

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

.faq-list { display: grid; max-width: 48rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.2rem 0.25rem;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  transition: color 0.15s var(--ease);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-item .faq-body,
.faq-item .faq-item__body { padding: 0 0.25rem 1.4rem; color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.faq-item .faq-body a, .faq-item .faq-item__body a {
  color: var(--accent); font-weight: 500;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}

/* ---------- CTA band (night) ---------- */

.cta-band {
  background: var(--night); color: var(--on-night);
  padding-block: clamp(3.75rem, 7vw, 6rem);
  text-align: center;
}
.cta-band__inner > * { max-width: 40rem; margin-inline: auto; }
.cta-band h2 { font-size: var(--fs-h2); color: var(--on-night); }
.cta-band p { margin-top: 1.1rem; color: var(--on-night-dim); font-size: var(--fs-lead); line-height: 1.55; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; max-width: none; }
.cta-band :focus-visible { outline-color: var(--accent-on-night); }
.cta-band .btn { background: #fff; color: var(--night); border-color: #fff; }
.cta-band .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.cta-band .btn--onink { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.cta-band .btn--onink:hover { background: var(--night-2); border-color: var(--on-night-dim); color: #fff; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--page);
  padding-block: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem)) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.page-hero h1 { margin-top: 0.5rem; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); max-width: 24ch; margin-inline: auto; letter-spacing: -0.028em; }
.page-hero .lead, .page-hero__lead {
  margin: 1.2rem auto 0; color: var(--ink-2);
  font-size: var(--fs-lead); line-height: 1.55; max-width: 44rem;
}
.page-hero .hero__actions { margin-top: 1.75rem; }

.breadcrumb, .crumb {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; justify-content: center;
  font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 1.25rem;
}
.breadcrumb a:hover, .crumb a:hover { color: var(--accent); }
.breadcrumb [aria-current], .crumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- Prose ---------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-h3); margin: 2.25rem 0 0.75rem; }
.prose p, .prose li { color: var(--ink-2); margin-top: 0.75rem; }
.prose ul { padding-left: 1.15rem; list-style: disc; }
.prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--accent-dark); }

/* ---------- Footer (night) ---------- */

.site-footer {
  background: var(--night-deep); color: var(--on-night-dim);
  padding-block: clamp(3rem, 5.5vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
}
.footer__top {
  display: grid; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--night-line);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__brand img { width: 40px; height: 40px; margin-bottom: 1rem; }
.footer__brand strong { color: var(--on-night); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.footer__brand p { margin-top: 0.6rem; max-width: 32ch; line-height: 1.55; }
.footer__brand .btn { margin-top: 1.25rem; min-height: 40px; background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }
.footer__brand .btn:hover { background: var(--night-line); border-color: var(--night-line); }

.footer__cols { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__col h4 { margin-bottom: 0.9rem; font-size: 0.875rem; font-weight: 600; color: var(--on-night); letter-spacing: 0; }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { color: var(--on-night-dim); transition: color 0.15s var(--ease); }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between;
  padding-top: 1.5rem; font-size: 0.8125rem;
}
.site-footer :focus-visible { outline-color: var(--accent-on-night); }

@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .footer__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 4rem; }
  .footer__cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Motion: one entrance, then still ---------- */

.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }

.hero__title, .hero__lead, .hero__actions, .hero__stage { opacity: 0; transform: translateY(10px); }
body.hero-ready .hero__title,
body.hero-ready .hero__lead,
body.hero-ready .hero__actions,
body.hero-ready .hero__stage {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
body.hero-ready .hero__lead { transition-delay: 0.07s; }
body.hero-ready .hero__actions { transition-delay: 0.14s; }
body.hero-ready .hero__stage { transition-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal, .hero__title, .hero__lead, .hero__actions, .hero__stage { opacity: 1; transform: none; }
}
.no-js .reveal, .no-js .hero__title, .no-js .hero__lead, .no-js .hero__actions, .no-js .hero__stage { opacity: 1; transform: none; }

/* Mobile fallback for transparency preference */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Blog ---------- */

.blog-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blog-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.blog-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.blog-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card__body { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: 0.65rem; }
.blog-card__body h2 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem); margin: 0; }
.blog-card__body h2 a { color: inherit; }
.blog-card__body h2 a:hover { color: var(--accent); }
.blog-card__meta { font-size: 0.8125rem; color: var(--ink-2); margin: 0; }
.blog-card__body p { margin: 0; color: var(--ink-2); font-size: 0.9688rem; }
.blog-card__body .link-plain { justify-self: start; }
.blog-loading, .blog-empty { color: var(--ink-2); }
.blog-geo-note { margin-top: 2.5rem; font-size: 0.9rem; color: var(--ink-2); }

.article { max-width: 760px; }
.article-header { margin-top: 1rem; }
.article-header h1 { margin-top: 0.75rem; font-size: clamp(2rem, 1.2rem + 2.5vw, 3.2rem); }
.article-meta { margin-top: 0.85rem; color: var(--ink-2); font-size: 0.875rem; }
.article-cover { margin: 1.75rem 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-takeaways, .article-faq, .article-cite {
  margin-top: 2rem; padding: 1.25rem 1.35rem;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.article-takeaways h2, .article-faq h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.article-takeaways { background: var(--accent-soft); border-color: var(--accent-line); }
.article-takeaways ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); list-style: disc; }
.article-takeaways li { margin-top: 0.35rem; }
.article-takeaways li::marker { color: var(--accent); }
.article-angle { margin-top: 1.5rem; color: var(--ink-2); }
.article-body { margin-top: 1.75rem; }
.article-body h2, .article-body h3 { margin-top: 1.75rem; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body a, .article-related a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
.article-cite p { margin: 0 0 0.75rem; color: var(--ink-2); }
.article-cite p:last-child { margin-bottom: 0; }
.article-related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-related h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.article-related ul { display: grid; gap: 0.5rem; list-style: disc; padding-left: 1.1rem; }
.article-prevnext {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem;
}
.article-prevnext a { color: var(--ink-2); }
.article-prevnext a:hover { color: var(--accent); }

/* ---------- Module hub and module pages ---------- */

.showcase { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .showcase--flip .showcase__text { order: 2; }
  .showcase--flip .showcase__media { order: 1; }
}
.showcase + .showcase { margin-top: var(--space-section); }

.module-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.module-nav__inner { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.6rem; justify-content: center; }
.module-nav__inner::-webkit-scrollbar { display: none; }
.module-nav a {
  flex: none; padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.module-nav a:hover { background: var(--inset); color: var(--ink); }
.module-nav a.is-current { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

.mod-grid-cards {
  display: grid; gap: clamp(1rem, 0.7rem + 1.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.mod-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden; color: inherit;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.mod-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.mod-card__media { display: block; aspect-ratio: 16 / 9; background: var(--inset); border-bottom: 1px solid var(--line); overflow: hidden; }
.mod-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mod-card__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.15rem 1.25rem; flex: 1; }
.mod-card__name { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.mod-card__desc { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; flex: 1; }
.mod-card__go { font-size: var(--fs-small); font-weight: 600; color: var(--accent); margin-top: 0.35rem; }

.soon-grid { display: grid; gap: clamp(0.9rem, 0.7rem + 1vw, 1.4rem); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.soon-card { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 1.25rem; background: transparent; }
.soon-card__tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; margin-bottom: 0.7rem;
}
.soon-card h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.soon-card p { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }

.mod-hero .hero__actions { margin-top: 1.75rem; }
.mod-actions { opacity: 1; transform: none; }
.mod-shot { padding-top: 0; margin-top: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)); }
.mod-shot .shot { max-width: 1080px; margin-inline: auto; box-shadow: var(--shadow-lg); border: 0; }
.mod-shot .container { position: relative; }

.mod-grid { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
@media (min-width: 900px) { .mod-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; } }
.mod-grid__head h2 { font-size: var(--fs-h2); line-height: 1.1; margin-bottom: 0.75rem; }
.mod-grid__head p { color: var(--ink-2); }

.mod-shots { display: grid; gap: clamp(1.25rem, 0.9rem + 1.6vw, 2rem); }
@media (min-width: 900px) {
  .mod-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-shots .shot:only-child { grid-column: 1 / -1; }
}

.rel-grid { display: grid; gap: clamp(0.9rem, 0.7rem + 1vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rel-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.15rem; color: inherit; background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rel-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.rel-card__name { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.rel-card__desc { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }
.mod-back { margin-top: 1.75rem; text-align: center; }

.mod-list { display: grid; gap: 0.8rem; }
.mod-list li { position: relative; padding-left: 1.75rem; font-size: var(--fs-body); }
.mod-list li::before {
  content: ""; position: absolute; left: 0; top: 0.4em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
}
.mod-list li::after {
  content: ""; position: absolute; left: 5px; top: calc(0.4em + 5px);
  width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.showcase__text h3 { font-size: var(--fs-h2); line-height: 1.1; margin-bottom: 0.85rem; }
.showcase__text > p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 46ch; }
.showcase__list { margin: 1.5rem 0 1.75rem; display: grid; gap: 0.7rem; }
.showcase__list li { position: relative; padding-left: 1.5rem; }
.showcase__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* =================================================================
   Scroll motion
   smooth.js (Lenis, every page) and home.js (GSAP, homepage only).
   Everything here is progressive: the page reads correctly without it,
   and html.gsap-on is only added once GSAP has taken over.
   ================================================================= */

/* Lenis moves the real scroll position, so native smooth scrolling must stand down. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* Word masks for headline reveals. The negative margin keeps descenders from being clipped. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wi { display: inline-block; will-change: transform; }

/* GSAP owns the entrances, so the CSS fallbacks step aside. */
html.gsap-on .reveal { opacity: 1; transform: none; transition: none; }
html.gsap-on body .hero__title,
html.gsap-on body .hero__lead,
html.gsap-on body .hero__actions,
html.gsap-on body .hero__stage { opacity: 1; transform: none; transition: none; }

/* Value props: the top rule draws in, then the content follows. */
html.gsap-on .value { border-top-color: transparent; position: relative; --lx: 0; }
html.gsap-on .value::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--line-strong);
  transform: scaleX(var(--lx)); transform-origin: left center;
}

/* Hero buttons lean toward the pointer. `translate` composes with the press scale. */
.btn.is-magnetic {
  translate: var(--mx, 0px) var(--my, 0px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

/* Hero screenshot tilts back in 3D, then flattens as you scroll. */
.hero__stage { perspective: 1400px; }
.hero__stage .shot { transform-origin: 50% 0%; will-change: transform; }

/* ---------- Pinned module showcase (desktop, set by home.js) ---------- */

.tab { position: relative; }
.tab::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 5px; height: 2px;
  border-radius: 1px; background: var(--accent);
  transform: scaleX(var(--p, 0)); transform-origin: left center; opacity: 0;
}

#modules.is-scrolly .tabs {
  height: calc(100svh - 7rem);
  min-height: 27rem;
  align-items: stretch;
}
#modules.is-scrolly .tabs__list { position: relative; top: auto; align-self: center; }
#modules.is-scrolly .tab[aria-selected="true"]::after { opacity: 1; }
#modules.is-scrolly .tab[aria-selected="false"] { color: var(--ink-2); }
#modules.is-scrolly .tabs__panels { position: relative; height: 100%; min-height: 0; }
#modules.is-scrolly .tabpanel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 1.5rem;
  visibility: hidden; will-change: opacity;
}
#modules.is-scrolly .tabpanel.is-active { visibility: visible; }
#modules.is-scrolly .tabpanel__text h3 { margin-bottom: 0.5rem; }
#modules.is-scrolly .tabpanel__list { margin: 1rem 0 1.1rem; gap: 0.4rem; }
#modules.is-scrolly .tabpanel .shot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#modules.is-scrolly .tabpanel .shot img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- Small interactions (CSS only) ---------- */

@keyframes megaIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.mega.is-open .mega__grid > div { animation: megaIn 0.28s var(--ease) both; }
.mega.is-open .mega__grid > div:nth-child(2) { animation-delay: 40ms; }
.mega.is-open .mega__grid > div:nth-child(3) { animation-delay: 80ms; }
.mega.is-open .mega__grid > div:nth-child(4) { animation-delay: 120ms; }

.btn .ic, .link-plain .ic { transition: transform 0.2s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .ic { transform: translateX(3px); }
  .price-card, .mod-card, .rel-card, .blog-card { transition-property: border-color, box-shadow, transform; }
  .price-card:hover, a.mod-card:hover, .rel-card:hover, .blog-card:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .mega.is-open .mega__grid > div { animation: none; }
  .btn:hover .ic { transform: none; }
  .price-card:hover, a.mod-card:hover, .rel-card:hover, .blog-card:hover { transform: none; }
}
