/*
 * atcapture.in — marketing design system.
 * Same foundation as the dashboard (atcap.in) and share pages (atcap.app): a neutral,
 * paper-like palette, ONE accent (brand blue), Geist type, crop-mark "viewfinder" motif.
 * The brand gradient lives only in the logo.
 */

/* ───────────── tokens ───────────── */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #f8f8f6;
  --surface-3: #efefec;
  --line: #e8e8e4;
  --line-strong: #d6d6d1;
  --fg: #161618;
  --fg-2: #5c5c63;
  --fg-3: #6c6c73;
  --accent: #2f62f2;
  --accent-ink: #2048c4;
  --accent-soft: rgb(47 98 242 / 0.09);
  --accent-fg: #ffffff;
  /* accent as a fill behind white text (≥ 4.5:1 in both themes) */
  --accent-fill: #2f62f2;
  /* the logo's blue → violet → magenta, for emphasis only */
  --grad-ink: linear-gradient(100deg, #2f62f2 0%, #7c3aed 55%, #c026d3 100%);
  --grad-glow: linear-gradient(100deg, #3b82f6, #8b5cf6, #d946ef);
  --positive: #1a7f4b;
  --positive-ink: #12603a;
  --negative: #d0342c;
  --rec: #e5484d;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;

  --shadow-1: 0 0 0 1px rgb(22 22 24 / 0.06), 0 1px 2px rgb(22 22 24 / 0.05);
  --shadow-2: 0 0 0 1px rgb(22 22 24 / 0.06), 0 18px 48px -18px rgb(22 22 24 / 0.22), 0 4px 10px -4px rgb(22 22 24 / 0.08);

  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b0d;
    --surface: #121215;
    --surface-2: #17171b;
    --surface-3: #1f1f24;
    --line: #24242a;
    --line-strong: #34343c;
    --fg: #ededf0;
    --fg-2: #a1a1aa;
    --fg-3: #8a8a94;
    --accent: #5b82f8;
    --accent-ink: #8caaff;
    --accent-soft: rgb(91 130 248 / 0.13);
    --accent-fill: #3a64e8;
    --grad-ink: linear-gradient(100deg, #7aa7ff 0%, #b49cff 55%, #f08ae8 100%);
    --positive: #4cc38a;
    --positive-ink: #4cc38a;
    --negative: #f16a5f;
    --shadow-1: 0 0 0 1px rgb(255 255 255 / 0.06);
    --shadow-2: 0 0 0 1px rgb(255 255 255 / 0.07), 0 24px 56px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b0b0d;
  --surface: #121215;
  --surface-2: #17171b;
  --surface-3: #1f1f24;
  --line: #24242a;
  --line-strong: #34343c;
  --fg: #ededf0;
  --fg-2: #a1a1aa;
  --fg-3: #8a8a94;
  --accent: #5b82f8;
  --accent-ink: #8caaff;
  --accent-soft: rgb(91 130 248 / 0.13);
  --accent-fill: #3a64e8;
  --grad-ink: linear-gradient(100deg, #7aa7ff 0%, #b49cff 55%, #f08ae8 100%);
  --positive: #4cc38a;
  --positive-ink: #4cc38a;
  --negative: #f16a5f;
  --shadow-1: 0 0 0 1px rgb(255 255 255 / 0.06);
  --shadow-2: 0 0 0 1px rgb(255 255 255 / 0.07), 0 24px 56px -16px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* ───────────── base ───────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p a,
li a,
.prose a,
.link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-2);
}
p a:hover,
li a:hover,
.prose a:hover,
.link:hover {
  text-decoration-color: currentColor;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
figure,
blockquote {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  transition: top var(--dur-2);
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: calc(760px + var(--gutter) * 2);
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'zero';
}
.muted {
  color: var(--fg-2);
}
.center {
  text-align: center;
}

/* ───────────── type ───────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 6px 1.5px,
    linear-gradient(currentColor, currentColor) 0 0 / 1.5px 6px,
    linear-gradient(currentColor, currentColor) 100% 100% / 6px 1.5px,
    linear-gradient(currentColor, currentColor) 100% 100% / 1.5px 6px;
  background-repeat: no-repeat;
}
.display {
  font-size: clamp(2.3rem, 1.3rem + 3.4vw, 3.9rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.display em,
.h2 em,
.grad {
  font-style: normal;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}
.h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 62ch;
}

/* ───────────── buttons ───────────── */
.btn {
  --_bg: var(--fg);
  --_fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--dur-1) var(--ease-out),
    background-color var(--dur-2),
    box-shadow var(--dur-2);
}
.btn:hover {
  background: color-mix(in srgb, var(--_bg) 86%, var(--accent));
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-accent {
  --_bg: var(--accent-fill);
  --_fg: var(--accent-fg);
}
.btn-accent:hover {
  background: color-mix(in srgb, var(--accent-fill) 88%, #000);
}
.btn-ghost {
  --_bg: transparent;
  --_fg: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--fg-3);
}
.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 14px;
}
.btn-lg {
  min-height: 50px;
  padding: 0 22px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.btn .spin {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 420px) {
  .btn-row > .btn {
    flex: 1 1 100%;
  }
}

/* ───────────── header ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg-2);
  font-size: 14.5px;
  font-weight: 450;
  cursor: pointer;
  transition:
    color var(--dur-2),
    background-color var(--dur-2);
}
.nav-link:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded='true'],
.nav-link[aria-current='page'] {
  color: var(--fg);
  background: var(--surface-3);
}
.nav-link,
.nav-trigger {
  white-space: nowrap;
}
@media (max-width: 1120px) {
  .nav .hide-md {
    display: none;
  }
}
.nav-trigger svg {
  width: 13px;
  height: 13px;
  transition: transform var(--dur-2);
}
.nav-trigger[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.nav-item {
  position: relative;
}
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  width: 520px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity var(--dur-2),
    transform var(--dur-2) var(--ease-out),
    visibility 0s linear var(--dur-2);
}
.nav-trigger[aria-expanded='true'] + .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-2),
    transform var(--dur-2) var(--ease-out);
}
.nav-panel.mega {
  width: min(820px, calc(100vw - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 6px;
  padding: 14px;
}
.nav-col {
  display: grid;
  align-content: start;
  gap: 2px;
}
.nav-col-h {
  padding: 4px 10px 8px;
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.nav-panel .nav-all {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 6px;
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-weight: 550;
  font-size: 14px;
  color: var(--accent-ink);
}
.nav-panel .nav-all svg {
  width: 16px;
  height: 16px;
}
.nav-panel a {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background-color var(--dur-1);
}
.nav-panel a:hover,
.nav-panel a:focus-visible {
  background: var(--surface-2);
}
.nav-panel .ic {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.nav-panel .ic svg {
  width: 18px;
  height: 18px;
}
.nav-panel strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.nav-panel small {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--fg-3);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg-2);
  cursor: pointer;
  transition:
    background-color var(--dur-2),
    color var(--dur-2);
}
.icon-btn:hover {
  background: var(--surface-3);
  color: var(--fg);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.theme-toggle .moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: block;
  }
}
.menu-btn {
  display: none;
}
.menu-btn .i-close,
.menu-btn[aria-expanded='true'] .i-open {
  display: none;
}
.menu-btn[aria-expanded='true'] .i-close {
  display: block;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  padding: 12px var(--gutter) 32px;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-2),
    transform var(--dur-2) var(--ease-out),
    visibility 0s linear var(--dur-2);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-2),
    transform var(--dur-2) var(--ease-out);
}
.mobile-menu h2 {
  margin: 18px 0 6px;
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-3);
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
}
.mobile-menu .btn-row {
  margin-top: 24px;
}
.mobile-menu .btn {
  flex: 1;
}
body.menu-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .nav,
  .header-actions .hide-sm {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
  }
}

/* ───────────── sections ───────────── */
.section {
  padding: clamp(64px, 6vw + 28px, 120px) 0;
}
.section-tight {
  padding: clamp(40px, 4vw + 16px, 72px) 0;
}
.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(36px, 3vw + 20px, 60px);
}
.section-head.center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}
.section-head .lead {
  margin-inline: inherit;
}

/* ───────────── hero ───────────── */
.hero {
  position: relative;
  padding: clamp(48px, 5vw + 24px, 96px) 0 clamp(56px, 6vw, 96px);
  overflow: hidden;
}
.hero::before {
  /* fine grid, fading out — the "canvas" the captures sit on */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13.5px;
  color: var(--fg-3);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--positive);
}
.hero-center {
  text-align: center;
}
.hero-center .hero-copy {
  justify-items: center;
  max-width: 840px;
  margin: 0 auto;
}
.hero-center .lead {
  margin: 0 auto;
}
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────── content blocks ───────────── */
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.card p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.6;
}
a.card {
  transition:
    box-shadow var(--dur-2),
    transform var(--dur-2) var(--ease-out);
}
a.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
a.card .more {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
}
a.card .more::after {
  content: ' →';
  display: inline-block;
  transition: transform var(--dur-2) var(--ease-out);
}
a.card:hover .more::after {
  transform: translateX(3px);
}
.card .ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 4px;
}
.card .ic svg {
  width: 21px;
  height: 21px;
}
.card .tagline {
  font: 500 11.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-3);
}

/* bento — the home page feature overview */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento > * {
  grid-column: span 2;
}
.bento > .wide {
  grid-column: span 3;
}
.bento > .full {
  grid-column: span 6;
}
.bento .card {
  overflow: hidden;
}
.bento .art {
  margin: 8px -24px -24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 960px) {
  .bento > *,
  .bento > .wide {
    grid-column: span 3;
  }
}
@media (max-width: 640px) {
  .bento > *,
  .bento > .wide,
  .bento > .full {
    grid-column: span 6;
  }
}

/* split rows: text on one side, a demo/image on the other */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split + .split {
  margin-top: clamp(72px, 8vw, 128px);
}
.split.flip > :first-child {
  order: 2;
}
.split-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}
@media (max-width: 920px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.flip > :first-child {
    order: 0;
  }
}

.checks {
  list-style: none;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--fg-2);
  font-size: 15.5px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--accent);
}
.checks.plain li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f62f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 13px no-repeat,
    var(--accent-soft);
}

/* numbered steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step {
  counter-increment: step;
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font: 500 13px/1 var(--font-mono);
  color: var(--accent-ink);
}
.step p {
  color: var(--fg-2);
  font-size: 15px;
}
.step .checks {
  margin-top: 6px;
}
.step .checks li {
  font-size: 14px;
}
.steps.steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .steps.steps-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .steps,
  .steps.steps-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* stats / facts row */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.fact {
  padding: 22px 24px;
  display: grid;
  gap: 4px;
}
.fact + .fact {
  border-left: 1px solid var(--line);
}
.fact strong {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.fact span {
  font-size: 14px;
  color: var(--fg-2);
}
@media (max-width: 760px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .fact:nth-child(3) {
    border-left: 0;
  }
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* call-to-action band */
.cta-band {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
:root[data-theme='dark'] .cta-band {
  background: var(--surface-3);
  color: var(--fg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .cta-band {
    background: var(--surface-3);
    color: var(--fg);
  }
}
.cta-band .lead {
  color: inherit;
  opacity: 0.72;
}
.cta-band .btn-ghost {
  --_fg: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent);
}
.cta-band .btn-ghost:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.cta-band .btn-light {
  --_bg: var(--bg);
  --_fg: var(--fg);
}
.cta-band small {
  font-size: 13px;
  opacity: 0.6;
}

/* FAQ */
.faq {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 550;
  font-size: 16.5px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat,
    var(--surface-3);
  color: var(--fg-2);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 40px 22px 0;
  color: var(--fg-2);
  display: grid;
  gap: 10px;
}

/* tables */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  contain: paint;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 550;
  color: var(--fg-2);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table td.c,
.table th.c {
  text-align: center;
}
.table .yes {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  vertical-align: middle;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 11px no-repeat,
    var(--accent);
}
.table .no {
  display: inline-block;
  width: 12px;
  height: 1.5px;
  vertical-align: middle;
  background: var(--line-strong);
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.plan.featured {
  box-shadow:
    0 0 0 2px var(--accent),
    var(--shadow-2);
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-name {
  font-size: 1.15rem;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 550;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-price strong {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price span {
  color: var(--fg-3);
  font-size: 14.5px;
}
.plan-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.plan-limits span {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  color: var(--fg-2);
}
.plan .checks li {
  font-size: 14.5px;
}
.plan .inherit {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--fg);
  margin-bottom: 2px;
}
/* line the parts up across the cards: name, price, limits, features, button */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 961px) {
    .plan {
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 18px;
    }
    .plan-limits {
      align-content: start;
    }
  }
}
@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* download card */
.dl {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.dl .os {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.dl .os svg {
  width: 26px;
  height: 26px;
}
.dl dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--fg-3);
}
.dl dt {
  display: inline;
}
.dl dd {
  display: inline;
  margin: 0 0 0 4px;
  color: var(--fg-2);
  font-family: var(--font-mono);
}
@media (max-width: 640px) {
  .dl {
    grid-template-columns: 1fr;
  }
}

/* testimonials / quotes */
.quote {
  display: grid;
  gap: 16px;
  align-content: space-between;
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.quote blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.quote .avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  font-weight: 600;
  color: var(--fg);
}

/* long-form documents (privacy, terms) */
.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.doc-toc strong {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.doc-toc a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--fg-2);
  text-decoration: none;
}
.doc-toc a:hover,
.doc-toc a.active {
  background: var(--surface-3);
  color: var(--fg);
}
.prose {
  max-width: 72ch;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.75;
}
.prose > * + * {
  margin-top: 14px;
}
.prose h2 {
  margin-top: 44px;
  color: var(--fg);
  font-size: 1.4rem;
}
.prose h3 {
  margin-top: 26px;
  color: var(--fg);
  font-size: 1.1rem;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.prose strong {
  color: var(--fg);
}
@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .doc-toc {
    position: static;
  }
}

/* forms */
.form-card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.form-card header {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .span-2 {
  grid-column: span 2;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
}
.field {
  display: grid;
  gap: 7px;
  align-content: start;
}
.field > label,
.field > .label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.field .req {
  color: var(--negative);
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 1px 2px rgb(0 0 0 / 0.04);
  font-size: 15px;
  color: var(--fg);
  transition:
    box-shadow var(--dur-2),
    background var(--dur-2);
  appearance: none;
}
select.input {
  padding-right: 36px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6c73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
      right 12px center / 16px no-repeat,
    var(--surface);
}
textarea.input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
.input::placeholder {
  color: var(--fg-3);
}
.input:hover {
  box-shadow: inset 0 0 0 1px var(--fg-3);
}
.input:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1.5px var(--accent),
    0 0 0 4px var(--accent-soft);
}
.field .hint {
  font-size: 13px;
  color: var(--fg-3);
}
.field .err {
  font-size: 13px;
  color: var(--negative);
  min-height: 0;
}
.field .err:empty {
  display: none;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stars {
  display: inline-flex;
  gap: 4px;
}
.stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.stars label {
  cursor: pointer;
  color: var(--line-strong);
  transition:
    color var(--dur-1),
    transform var(--dur-1);
}
.stars label svg {
  width: 36px;
  height: 36px;
}
.stars label.on {
  color: #f5a524;
}
.stars label:hover {
  transform: scale(1.08);
}
.stars input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* two-panel form pages (contact, review, feedback) */
.form-page {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 80px -30px rgb(20 20 40 / 0.35);
}
.form-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  color: #e9e9f2;
  background:
    radial-gradient(120% 70% at 0% 0%, rgb(76 110 245 / 0.45), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgb(190 75 219 / 0.4), transparent 60%),
    #0b0b14;
  isolation: isolate;
}
.form-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.form-aside .eyebrow {
  color: #9db4ff;
}
.form-aside-title {
  margin-top: 14px;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 2.9rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
}
.form-aside-title em {
  font-style: normal;
  background: linear-gradient(90deg, #7fa0ff, #c77dff 60%, #ff7ad9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.form-aside-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #b9b9c8;
}
.form-points {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.form-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #dcdce8;
}
.form-points .ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  color: #a9bdff;
}
.form-points .ic svg {
  width: 18px;
  height: 18px;
}
.form-aside-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 14px;
  color: #b9b9c8;
}
.form-aside-foot a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.4);
}
.form-main .form-card {
  max-width: none;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(24px, 4vw, 48px);
}
@media (max-width: 900px) {
  .form-shell {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }
  .form-points {
    display: none;
  }
  .form-aside {
    gap: 20px;
  }
}

/* status panels (verify, set password, errors) */
.status {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  padding: 56px 0;
}
.status-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}
.status-code {
  font: 500 clamp(4.5rem, 12vw, 8rem)/1 var(--font-serif);
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.status-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.status-icon.ok {
  background: color-mix(in srgb, var(--positive) 14%, transparent);
  color: var(--positive);
}
.status-icon.bad {
  background: color-mix(in srgb, var(--negative) 12%, transparent);
  color: var(--negative);
}
.status-icon svg {
  width: 28px;
  height: 28px;
}
.alert {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  text-align: left;
}
.alert-bad {
  background: color-mix(in srgb, var(--negative) 10%, transparent);
  color: var(--negative);
}

/* related links strip */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.related a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-weight: 500;
  font-size: 15px;
  transition: box-shadow var(--dur-2);
}
.related a:hover {
  box-shadow: var(--shadow-2);
}
.related a svg {
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
  flex: none;
}

/* video frame */
.media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: var(--shadow-2);
}
.media-frame video,
.media-frame img {
  width: 100%;
  height: auto;
}

/* ───────────── footer ───────────── */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(5, 1fr);
  gap: 32px 28px;
}
.footer-grid h2 {
  margin-bottom: 14px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.footer-grid ul a {
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-2);
}
.footer-grid ul a:hover {
  color: var(--fg);
}
.footer-brand p {
  margin-top: 14px;
  max-width: 30ch;
  color: var(--fg-2);
}
.social {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--fg-2);
  transition:
    color var(--dur-2),
    box-shadow var(--dur-2);
}
.social a:hover {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--fg-3);
}
.social svg {
  width: 17px;
  height: 17px;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 13.5px;
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* ───────────── toasts ───────────── */
.toasts {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--fg);
  color: var(--bg);
  font-size: 14.5px;
  box-shadow: var(--shadow-2);
  animation: toast-up var(--dur-3) var(--ease-out);
}
.toast::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--negative);
}
.toast.ok::before {
  background: var(--positive);
}
@keyframes toast-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ───────────── scroll reveal ───────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 80ms !important;
}
.reveal-d2 {
  transition-delay: 160ms !important;
}
.reveal-d3 {
  transition-delay: 240ms !important;
}

/* ═════════════ premium layer: stages, hero, story, live bento, playground ═════════════ */

/* A dark "stage" band (same in both themes): the product is shown on it like in a keynote. */
.stage {
  --bg: #06060a;
  --surface: #101016;
  --surface-2: #15151d;
  --surface-3: #1d1d27;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --fg: #f4f4f7;
  --fg-2: #a3a3b2;
  --fg-3: #8b8b9b;
  --accent: #6d8dff;
  --accent-ink: #9db4ff;
  --accent-soft: rgb(109 141 255 / 0.14);
  --accent-fill: #3a64e8;
  --grad-ink: linear-gradient(100deg, #7aa7ff 0%, #b49cff 50%, #f08ae8 100%);
  --shadow-1: 0 0 0 1px rgb(255 255 255 / 0.07);
  --shadow-2: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 80px -24px rgb(0 0 0 / 0.8);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}
.stage::before {
  /* slow-moving aurora in the brand colours */
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 22% 18%, rgb(59 130 246 / 0.32), transparent 70%),
    radial-gradient(34% 40% at 78% 12%, rgb(168 85 247 / 0.26), transparent 70%),
    radial-gradient(30% 36% at 55% 60%, rgb(217 70 239 / 0.14), transparent 70%);
  filter: blur(10px);
  animation: aurora 22s ease-in-out infinite alternate;
}
.stage::after {
  /* hairline grid fading out from the top */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 80%);
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, 4%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.02); }
}
.stage .lead,
.stage .muted {
  color: var(--fg-2);
}
.stage a.card:hover,
.stage .card:hover {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 24px 60px -24px rgb(0 0 0 / 0.8);
}

/* header over a stage: light text until it scrolls onto a light section */
.site-header.on-stage {
  --fg: #f4f4f7;
  --fg-2: #b4b4c2;
  --surface: #15151d;
  --surface-2: #1b1b24;
  --surface-3: rgb(255 255 255 / 0.08);
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.18);
  --fg-3: #8b8b9b;
  background: rgb(8 8 12 / 0.92);
  color: var(--fg);
  color-scheme: dark;
}
.site-header.on-stage .btn-ghost {
  --_fg: #f4f4f7;
}

/* ───────────── stage hero ───────────── */
.hero-stage {
  padding: clamp(56px, 7vw, 112px) 0 clamp(48px, 6vw, 96px);
  text-align: center;
}
.hero-stage .hero-copy {
  justify-items: center;
  max-width: 920px;
  margin: 0 auto;
  gap: 24px;
}
.hero-stage .display {
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-weight: 600;
}
.hero-stage .lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
}
.hero-stage .btn-row {
  justify-content: center;
}
.hero-stage .hero-meta {
  justify-content: center;
}
.hero-film {
  position: relative;
  max-width: 1120px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 0 4px;
}
.hero-film::before {
  /* the glow the screen sits in */
  content: '';
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  background: var(--grad-glow);
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 50%;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  font-size: 13.5px;
  color: var(--fg-2);
  transition: background-color var(--dur-2);
}
.announce:hover {
  background: rgb(255 255 255 / 0.1);
}
.announce b {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grad-glow);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.announce svg {
  width: 14px;
  height: 14px;
}

/* buttons with presence */
.btn-glow {
  --_bg: var(--accent-fill);
  --_fg: #fff;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.14) inset,
    0 10px 30px -8px rgb(58 100 232 / 0.65);
}
.btn-glow:hover {
  background: color-mix(in srgb, var(--accent-fill) 88%, #fff);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.2) inset,
    0 14px 38px -8px rgb(58 100 232 / 0.85);
}
.btn-glass {
  --_bg: rgb(255 255 255 / 0.06);
  --_fg: var(--fg);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgb(255 255 255 / 0.11);
}

/* ───────────── "paste it anywhere" marquee ───────────── */
.marquee {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.marquee p {
  font-size: 13.5px;
  color: var(--fg-3);
}
.marquee-track {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-row {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 38s linear infinite;
  animation-play-state: paused;
}
.marquee-row.is-playing {
  animation-play-state: running;
}
.marquee-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
}
.marquee-row span i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad-glow);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ───────────── sticky story (scroll-driven feature tour) ───────────── */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.story-steps {
  display: grid;
}
.story-step {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 32px 0 32px 28px;
}
.story-step::before {
  /* progress rail: the active step lights up */
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--line);
  transition: background var(--dur-3);
}
.story-step.is-active::before {
  background: var(--grad-glow);
}
.story-step .num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 var(--font-mono);
  color: var(--accent-ink);
}
.story-step .num::after {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.story-step .lead {
  font-size: 1.08rem;
}
.story-step .story-visual {
  display: none;
}
.story-sticky {
  position: sticky;
  top: calc(var(--header-h) + 6vh);
  height: min(76vh, 640px);
  display: grid;
  place-items: center;
}
.story-frame {
  position: relative;
  width: 100%;
}
.story-frame > .scene {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 500ms var(--ease-out),
    transform 600ms var(--ease-out);
  pointer-events: none;
}
.story-frame > .scene.is-active {
  position: relative;
  opacity: 1;
  transform: none;
}
@media (max-width: 920px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-sticky {
    display: none;
  }
  .story-step {
    min-height: 0;
    padding: 28px 0;
  }
  .story-step::before {
    display: none;
  }
  .story-step .story-visual {
    display: block;
    margin-top: 8px;
  }
}

/* ───────────── live bento (each tile animates its feature) ───────────── */
.bento-live {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  grid-column: span 2;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  overflow: hidden;
  transition: box-shadow var(--dur-3);
}
.tile.wide {
  grid-column: span 3;
}
.tile.full {
  grid-column: span 6;
}
.tile::before {
  /* spotlight that follows the pointer (site.js sets --mx/--my) */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -20%), rgb(124 140 255 / 0.12), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-3);
}
.tile:hover::before {
  opacity: 1;
}
.tile:hover {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}
.tile-copy {
  display: grid;
  gap: 8px;
  padding: 24px 24px 8px;
}
.tile-copy h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
}
.tile-copy p {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.55;
}
.tile-art {
  position: relative;
  margin: 4px 0 0;
  display: grid;
  align-items: end;
  padding: 0 14px 14px;
}
.tile-art > .scene {
  width: 100%;
}
@media (max-width: 960px) {
  .tile,
  .tile.wide {
    grid-column: span 3;
  }
}
@media (max-width: 640px) {
  .tile,
  .tile.wide,
  .tile.full {
    grid-column: span 6;
  }
}

/* ───────────── interactive playground: protect a link ───────────── */
.playground {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.pg-controls {
  display: grid;
  gap: 18px;
}
.pg-controls fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pg-controls legend {
  margin-bottom: 8px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pg-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition:
    box-shadow var(--dur-2),
    background-color var(--dur-2);
}
.pg-option:hover {
  background: var(--surface-2);
}
.pg-option input {
  position: absolute;
  opacity: 0;
}
.pg-option .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow var(--dur-2);
}
.pg-option input[type='checkbox'] + .dot {
  border-radius: 6px;
}
.pg-option input:checked + .dot {
  box-shadow: inset 0 0 0 6px var(--accent-fill);
}
.pg-option input[type='checkbox']:checked + .dot {
  box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 13px no-repeat,
    var(--accent-fill);
}
.pg-option:has(input:checked) {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  background: var(--accent-soft);
}
.pg-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pg-option strong {
  display: block;
  font-size: 15px;
  font-weight: 550;
}
.pg-option small {
  display: block;
  font-size: 13px;
  color: var(--fg-3);
}
@media (max-width: 900px) {
  .playground {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* glow cards (light sections): soft gradient border on hover */
.card.glow {
  transition:
    box-shadow var(--dur-3),
    transform var(--dur-3) var(--ease-out);
}
.card.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-glow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-3);
  pointer-events: none;
}
.card.glow:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.card.glow:hover::after {
  opacity: 1;
}

/* big CTA on a stage */
.cta-stage {
  padding: clamp(80px, 10vw, 150px) 0;
  text-align: center;
}
.cta-stage .hero-copy {
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-stage .mark {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  filter: drop-shadow(0 18px 40px rgb(139 92 246 / 0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .stage::before,
  .marquee-row,
  .cta-stage .mark {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═════════════ trust & brand blocks ═════════════ */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14.5px;
  color: var(--fg-2);
}
.stats-strip.center {
  justify-content: center;
}
.stats-strip strong {
  font-size: 1.15em;
  font-weight: 650;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store-badges.center {
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  transition: box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.store-badge:hover {
  box-shadow: inset 0 0 0 1px var(--fg-3);
  transform: translateY(-1px);
}
.store-badge svg {
  width: 22px;
  height: 22px;
  color: var(--accent-ink);
}
.store-badge small {
  display: block;
  font-size: 11.5px;
  font-weight: 450;
  color: var(--fg-3);
}

/* changelog timeline */
.timeline-list {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 28px;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line));
}
.tl-item {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent);
}
.tl-item.next::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 3px var(--accent);
}
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font: 500 13px/1 var(--font-mono);
  color: var(--fg-3);
}
.tl-item ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.tl-item li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--fg-2);
}
.tl-tag {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 6px;
  font: 600 11px/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tl-tag.new { background: rgb(26 127 75 / 0.12); color: var(--positive); }
.tl-tag.better { background: var(--accent-soft); color: var(--accent-ink); }
.tl-tag.security { background: rgb(139 92 246 / 0.13); color: #6d3fd6; }
:root[data-theme='dark'] .tl-tag.security { color: #c4b0ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .tl-tag.security { color: #c4b0ff; }
}
@media (max-width: 560px) {
  .tl-item li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* status page */
.status-board {
  display: grid;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.status-row:last-child {
  border-bottom: 0;
}
.status-row small {
  display: block;
  color: var(--fg-3);
  font-size: 13.5px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
}
.status-pill.up { color: var(--positive-ink, var(--positive)); background: color-mix(in srgb, var(--positive) 10%, transparent); }
.status-pill.down { color: var(--negative); background: color-mix(in srgb, var(--negative) 10%, transparent); }
.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 17px;
}
.status-banner.up { background: color-mix(in srgb, var(--positive) 12%, transparent); color: var(--positive-ink, var(--positive)); }
.status-banner.down { background: color-mix(in srgb, var(--negative) 12%, transparent); color: var(--negative); }
.status-banner svg { width: 24px; height: 24px; }

/* values / principles rows (about, trust) */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.principle {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}
.principle:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.principle .k {
  font: 500 12.5px/1 var(--font-mono);
  color: var(--accent-ink);
}
.principle p {
  color: var(--fg-2);
  font-size: 15px;
}
@media (max-width: 760px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle:nth-child(odd) { border-right: 0; }
}

/* ───────────── print ───────────── */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu,
  .cta-band,
  .toasts {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* code samples on feature pages (colour palette exports) */
.code-card pre {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2, #f6f6f4);
  box-shadow: inset 0 0 0 1px var(--line, #e4e4df);
  overflow-x: auto;
  font: 13px/1.6 var(--font-mono, ui-monospace, monospace);
  color: var(--fg, #17171a);
}
