/*
 * 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;
  --positive: #1a7f4b;
  --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;
    --positive: #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;
  --positive: #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 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.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-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 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);
  }
}

/* ───────────── product window (the frame every demo sits in) ───────────── */
.window {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--fg-3);
}
.window-bar .dots {
  display: flex;
  gap: 6px;
}
.window-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.window-bar .title {
  flex: 1;
  text-align: center;
  margin-right: 46px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-body {
  position: relative;
}
.window img,
.window video {
  width: 100%;
  height: auto;
}

/* ───────────── viewfinder (crop marks) ───────────── */
.vf {
  position: relative;
}
.vf::before,
.vf::after,
.vf > .vf-b::before,
.vf > .vf-b::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--accent);
  pointer-events: none;
}
.vf::before {
  top: -6px;
  left: -6px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.vf::after {
  top: -6px;
  right: -6px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.vf > .vf-b::before {
  bottom: -6px;
  left: -6px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}
.vf > .vf-b::after {
  bottom: -6px;
  right: -6px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* ───────────── demos (animated product stories) ─────────────
 * Every demo runs only while on screen (.is-playing from site.js) and shows its
 * final frame, still, when the visitor prefers reduced motion. */
.demo {
  --t: 9s;
  position: relative;
  aspect-ratio: 16 / 10.5;
  background: var(--surface-2);
  overflow: hidden;
  font-size: 13px;
}
.demo * {
  animation-play-state: paused;
}
.demo.is-playing * {
  animation-play-state: running;
}

/* a fake desktop inside the window */
.desk {
  position: absolute;
  inset: 0;
  padding: 6% 6%;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4%;
}
.desk .pane {
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 8%;
  display: grid;
  align-content: start;
  gap: 9px;
}
.desk .bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
}
.desk .bar.w60 {
  width: 60%;
}
.desk .bar.w80 {
  width: 80%;
}
.desk .bar.w40 {
  width: 40%;
}
.desk .bar.accent {
  background: color-mix(in srgb, var(--accent) 30%, var(--surface-3));
}
.desk .chart {
  display: flex;
  align-items: flex-end;
  gap: 6%;
  height: 90px;
  margin-top: 6px;
}
.desk .chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--surface-3);
}
.desk .chart i:nth-child(4) {
  background: var(--accent);
}

/* 1 · capture: dim, drag a selection, annotate, copy link */
.cap-dim {
  position: absolute;
  inset: 0;
  background: rgb(10 10 14 / 0.42);
  opacity: 0;
  animation: cap-dim var(--t) var(--ease-out) infinite;
}
.cap-sel {
  position: absolute;
  left: 43%;
  top: 22%;
  width: 0;
  height: 0;
  outline: 1.5px solid var(--accent);
  box-shadow: 0 0 0 9999px rgb(10 10 14 / 0.42);
  background: transparent;
  opacity: 0;
  animation: cap-sel var(--t) var(--ease-out) infinite;
}
.cap-sel::before,
.cap-sel::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid #fff;
}
.cap-sel::before {
  top: -4px;
  left: -4px;
  border-top-width: 3px;
  border-left-width: 3px;
}
.cap-sel::after {
  bottom: -4px;
  right: -4px;
  border-bottom-width: 3px;
  border-right-width: 3px;
}
.cap-size {
  position: absolute;
  left: 43%;
  top: calc(22% - 26px);
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--fg);
  color: var(--bg);
  font: 500 11px/1.2 var(--font-mono);
  opacity: 0;
  animation: cap-size var(--t) infinite;
}
.cap-cursor {
  position: absolute;
  left: 43%;
  top: 22%;
  width: 18px;
  height: 18px;
  margin: -2px 0 0 -2px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5));
  animation: cap-cursor var(--t) var(--ease-out) infinite;
}
.cap-arrow {
  position: absolute;
  left: 58%;
  top: 46%;
  width: 22%;
  height: 22%;
  color: var(--rec);
  opacity: 0;
  animation: cap-arrow var(--t) infinite;
}
.cap-arrow path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: cap-draw var(--t) infinite;
}
.cap-tools {
  position: absolute;
  left: 43%;
  top: calc(22% + 62% + 10px);
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(-4px);
  animation: cap-tools var(--t) var(--ease-out) infinite;
}
.cap-tools i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--surface-3);
}
.cap-tools i.on {
  background: var(--accent);
}
.toast-demo {
  position: absolute;
  right: 5%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12.5px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(10px);
  animation: toast-in var(--t) var(--ease-out) infinite;
}
.toast-demo .tick {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--positive);
  color: #fff;
}
.toast-demo .tick svg {
  width: 14px;
  height: 14px;
}
.toast-demo b {
  font-family: var(--font-mono);
  font-weight: 500;
}
@keyframes cap-dim {
  0%, 8% { opacity: 0; }
  12%, 88% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes cap-sel {
  0%, 12% { width: 0; height: 0; opacity: 0; box-shadow: 0 0 0 9999px rgb(10 10 14 / 0); }
  13% { opacity: 1; }
  34%, 88% { width: 50%; height: 62%; opacity: 1; box-shadow: 0 0 0 9999px rgb(10 10 14 / 0.42); }
  94%, 100% { width: 50%; height: 62%; opacity: 0; box-shadow: 0 0 0 9999px rgb(10 10 14 / 0); }
}
@keyframes cap-size {
  0%, 14% { opacity: 0; }
  18%, 36% { opacity: 1; }
  40%, 100% { opacity: 0; }
}
@keyframes cap-cursor {
  0% { left: 30%; top: 70%; opacity: 0; }
  6% { opacity: 1; }
  12% { left: 43%; top: 22%; }
  34% { left: 93%; top: 84%; }
  44% { left: 70%; top: 52%; }
  56% { left: 61%; top: 49%; }
  66% { left: 76%; top: 64%; opacity: 1; }
  74%, 100% { left: 76%; top: 64%; opacity: 0; }
}
@keyframes cap-arrow {
  0%, 52% { opacity: 0; }
  54%, 88% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes cap-draw {
  0%, 54% { stroke-dashoffset: 120; }
  66%, 100% { stroke-dashoffset: 0; }
}
@keyframes cap-tools {
  0%, 36% { opacity: 0; transform: translateY(-4px); }
  40%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; }
}
@keyframes toast-in {
  0%, 70% { opacity: 0; transform: translateY(10px); }
  74%, 92% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(6px); }
}

/* 2 · record: REC pill, timer, cursor path, mic levels */
.rec-frame {
  position: absolute;
  inset: 4%;
  border: 2px dashed color-mix(in srgb, var(--rec) 70%, transparent);
  border-radius: var(--r-sm);
  opacity: 0;
  animation: rec-frame var(--t) infinite;
}
.rec-pill {
  position: absolute;
  top: 7%;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 500 12px/1 var(--font-mono);
  box-shadow: var(--shadow-2);
}
.rec-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec);
  animation: rec-blink 1.2s steps(2, jump-none) infinite;
}
.rec-pill .levels {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.rec-pill .levels i {
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: var(--positive);
  transform-origin: center;
  animation: level 0.9s ease-in-out infinite alternate;
}
.rec-pill .levels i:nth-child(2) { animation-delay: -0.3s; }
.rec-pill .levels i:nth-child(3) { animation-delay: -0.6s; }
.rec-pill .levels i:nth-child(4) { animation-delay: -0.15s; }
.rec-pill .levels i:nth-child(5) { animation-delay: -0.45s; }
.rec-timer::after {
  content: '00:00';
  animation: rec-timer var(--t) steps(1) infinite;
}
.rec-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  color: var(--fg);
  animation: rec-cursor var(--t) var(--ease-out) infinite;
}
.rec-click {
  position: absolute;
  left: 71%;
  top: 60%;
  width: 34px;
  height: 34px;
  margin: -17px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: rec-click var(--t) infinite;
}
@keyframes rec-blink {
  50% { opacity: 0.25; }
}
@keyframes level {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}
@keyframes rec-frame {
  0%, 4% { opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes rec-timer {
  0% { content: '00:00'; }
  11% { content: '00:01'; }
  22% { content: '00:02'; }
  33% { content: '00:03'; }
  44% { content: '00:04'; }
  55% { content: '00:05'; }
  66% { content: '00:06'; }
  77% { content: '00:07'; }
  88% { content: '00:08'; }
}
@keyframes rec-cursor {
  0% { left: 20%; top: 75%; }
  25% { left: 28%; top: 30%; }
  45% { left: 71%; top: 60%; }
  50% { left: 71%; top: 60%; transform: scale(0.85); }
  54% { transform: none; }
  80% { left: 62%; top: 32%; }
  100% { left: 20%; top: 75%; }
}
@keyframes rec-click {
  0%, 46% { opacity: 0; transform: scale(0.4); }
  48% { opacity: 1; }
  58%, 100% { opacity: 0; transform: scale(1.6); }
}

/* 3 · short link: long URL collapses into a short one, then lands in chat */
.flow {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 6%;
}
.url-long,
.url-short {
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.url-long {
  width: min(460px, 82vw);
  color: var(--fg-3);
  animation: url-long var(--t) var(--ease-out) infinite;
}
.url-short {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 14px;
  box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-2);
  opacity: 0;
  transform: scale(0.92);
  animation: url-short var(--t) var(--ease-out) infinite;
}
.url-short .copy {
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--accent-fill);
  color: #fff;
  font: 500 11px/1 var(--font-sans);
}
.chat {
  justify-self: center;
  width: min(360px, 76vw);
  display: grid;
  gap: 8px;
  opacity: 0;
  animation: chat-in var(--t) var(--ease-out) infinite;
}
.chat .msg {
  justify-self: end;
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 12px 12px 4px 12px;
  background: var(--accent-fill);
  color: #fff;
  font-size: 12.5px;
}
.chat .msg u {
  text-decoration-color: rgb(255 255 255 / 0.6);
}
.chat .card {
  justify-self: end;
  width: 78%;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 12px;
}
.chat .card .thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) 20% 70% / 18% 40% no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 50% 70% / 18% 60% no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 80% 70% / 18% 30% no-repeat,
    var(--surface-2);
}
.chat .card small {
  display: block;
  color: var(--fg-3);
}
@keyframes url-long {
  0%, 10% { opacity: 0; transform: translateY(6px); }
  16%, 30% { opacity: 1; transform: none; width: min(460px, 82vw); }
  40% { width: 150px; opacity: 0.2; }
  44%, 100% { width: 150px; opacity: 0; }
}
@keyframes url-short {
  0%, 38% { opacity: 0; transform: scale(0.92); }
  44%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}
@keyframes chat-in {
  0%, 58% { opacity: 0; transform: translateY(10px); }
  64%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}

/* 4 · QR: modules pop in, a phone's scan line passes, the destination opens */
.qr-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4%;
  padding: 6% 7%;
}
.qr-code {
  justify-self: center;
  width: min(160px, 32vw);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 1.5px;
}
.qr-code i {
  border-radius: 1.5px;
  background: #161618;
  opacity: 0;
  transform: scale(0.3);
  animation: qr-pop var(--t) var(--ease-out) infinite;
}
.qr-code i.o {
  background: transparent;
}
@keyframes qr-pop {
  0%, 4% { opacity: 0; transform: scale(0.3); }
  20%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; }
}
.qr-arrow {
  color: var(--fg-3);
  width: 28px;
}
.phone {
  justify-self: center;
  position: relative;
  width: min(130px, 26vw);
  aspect-ratio: 9 / 18;
  border-radius: 20px;
  padding: 7px;
  background: var(--fg);
  box-shadow: var(--shadow-2);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}
.phone-scan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #1c1c22;
  animation: phone-scan var(--t) infinite;
}
.phone-scan .reticle {
  width: 62%;
  aspect-ratio: 1;
  position: relative;
}
.phone-scan .reticle::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff, #fff) 0 0 / 14px 2px,
    linear-gradient(#fff, #fff) 0 0 / 2px 14px,
    linear-gradient(#fff, #fff) 100% 0 / 14px 2px,
    linear-gradient(#fff, #fff) 100% 0 / 2px 14px,
    linear-gradient(#fff, #fff) 0 100% / 14px 2px,
    linear-gradient(#fff, #fff) 0 100% / 2px 14px,
    linear-gradient(#fff, #fff) 100% 100% / 14px 2px,
    linear-gradient(#fff, #fff) 100% 100% / 2px 14px;
  background-repeat: no-repeat;
}
.phone-scan .line {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 2px;
  background: var(--positive);
  box-shadow: 0 0 10px var(--positive);
  animation: scan-line var(--t) ease-in-out infinite;
}
.phone-open {
  position: absolute;
  inset: 0;
  padding: 14% 10%;
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--surface);
  opacity: 0;
  animation: phone-open var(--t) var(--ease-out) infinite;
}
.phone-open .media {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) 25% 75% / 16% 45% no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 50% 75% / 16% 65% no-repeat,
    linear-gradient(var(--surface-3), var(--surface-3)) 75% 75% / 16% 30% no-repeat,
    var(--surface-2);
}
.phone-open .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
}
.phone-open .bar.w60 {
  width: 60%;
}
@keyframes scan-line {
  0%, 28% { top: 22%; opacity: 0; }
  30% { opacity: 1; }
  40% { top: 76%; }
  50% { top: 22%; }
  58% { top: 76%; opacity: 1; }
  60%, 100% { opacity: 0; }
}
@keyframes phone-scan {
  0%, 60% { opacity: 1; }
  64%, 100% { opacity: 0; }
}
@keyframes phone-open {
  0%, 60% { opacity: 0; transform: translateY(8px); }
  66%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; }
}

/* 5 · pipeline: capture → upload → organise → share → analyse */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 27px;
  height: 2px;
  background: var(--line-strong);
}
.pipeline::after {
  content: '';
  position: absolute;
  left: 10%;
  top: 27px;
  height: 2px;
  width: 0;
  background: var(--accent);
  animation: pipe-fill 7s var(--ease-out) infinite paused;
}
.pipeline.is-playing::after {
  animation-play-state: running;
}
.pipe-step {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.pipe-step .node {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--fg-2);
  transition: all var(--dur-3);
  animation: pipe-node 7s infinite paused;
}
.pipeline.is-playing .pipe-step .node {
  animation-play-state: running;
}
.pipe-step:nth-child(2) .node { animation-delay: 1.1s; }
.pipe-step:nth-child(3) .node { animation-delay: 2.2s; }
.pipe-step:nth-child(4) .node { animation-delay: 3.3s; }
.pipe-step:nth-child(5) .node { animation-delay: 4.4s; }
.pipe-step .node svg {
  width: 24px;
  height: 24px;
}
.pipe-step strong {
  font-size: 15px;
  font-weight: 550;
}
.pipe-step p {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 22ch;
}
@keyframes pipe-fill {
  0% { width: 0; }
  75%, 100% { width: 80%; }
}
@keyframes pipe-node {
  0% { color: var(--fg-2); box-shadow: var(--shadow-1); background: var(--surface); }
  6%, 100% { color: #fff; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
}
@media (max-width: 760px) {
  .pipeline {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pipeline::before,
  .pipeline::after {
    left: 27px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
  }
  .pipeline::after {
    animation-name: pipe-fill-v;
  }
  .pipe-step {
    grid-template-columns: 56px 1fr;
    justify-items: start;
    text-align: left;
    column-gap: 16px;
    row-gap: 2px;
  }
  .pipe-step .node {
    grid-row: span 2;
  }
  .pipe-step p {
    max-width: none;
  }
}
@keyframes pipe-fill-v {
  0% { height: 0; bottom: auto; }
  75%, 100% { height: calc(100% - 56px); bottom: auto; }
}

/* 6 · library grid */
.lib {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 22% 1fr;
}
.lib-side {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: var(--surface);
}
.lib-side span {
  display: block;
  height: 22px;
  border-radius: 6px;
  background: var(--surface-2);
}
.lib-side span.on {
  background: var(--accent-soft);
}
.lib-main {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 10px;
}
.lib-card {
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: lib-in var(--t) var(--ease-out) infinite;
}
.lib-card .th {
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
  position: relative;
}
.lib-card .th.v::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.4));
}
.lib-card .meta {
  padding: 7px 8px;
  display: grid;
  gap: 5px;
}
.lib-card .meta i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
}
.lib-card .meta i + i {
  width: 55%;
}
.lib-card .tag {
  display: inline-block;
  width: max-content;
  padding: 2px 6px;
  border-radius: 4px;
  font: 500 9px/1.2 var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.lib-card:nth-child(2) { animation-delay: 0.15s; }
.lib-card:nth-child(3) { animation-delay: 0.3s; }
.lib-card:nth-child(4) { animation-delay: 0.45s; }
.lib-card:nth-child(5) { animation-delay: 0.6s; }
.lib-card:nth-child(6) { animation-delay: 0.75s; }
@keyframes lib-in {
  0% { opacity: 0; transform: translateY(8px); }
  8%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

/* reduced motion: every demo shows its finished state, still */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .demo *,
  .pipeline,
  .pipeline * {
    animation-play-state: running !important;
  }
  .cap-dim,
  .cap-size,
  .cap-cursor,
  .url-long,
  .phone-scan,
  .rec-click,
  .toast-demo {
    animation: none !important;
    opacity: 0 !important;
  }
  .cap-sel {
    animation: none !important;
    opacity: 1;
    width: 50%;
    height: 62%;
  }
  .cap-arrow,
  .cap-tools,
  .url-short,
  .chat,
  .phone-open,
  .qr-code i,
  .lib-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cap-arrow path {
    animation: none !important;
    stroke-dashoffset: 0;
  }
  .rec-cursor {
    animation: none !important;
    left: 62%;
    top: 42%;
  }
  .pipeline::after {
    animation: none !important;
    width: 80%;
  }
  .pipe-step .node {
    animation: none !important;
    color: #fff;
    background: var(--accent);
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ───────────── 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;
}
@media (max-width: 860px) {
  .steps {
    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 {
  overflow-x: auto;
  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;
  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;
}
@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: 14px;
  font-weight: 500;
}
.field .req {
  color: var(--negative);
}
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 15px;
  transition: box-shadow 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-2);
}
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: 30px;
  height: 30px;
}
.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;
}

/* 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.4fr repeat(4, 1fr);
  gap: 32px;
}
.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: 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;
}

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