/* Nearhand — marketing site.
   Tokens mirror the design system canvas: black ground, blue structure, one red. */

:root {
  --ink-950: #06080C;
  --ink-900: #0A0E15;
  --ink-850: #0F141D;
  --ink-800: #141B26;
  --ink-700: #1C2532;
  --ink-600: #293544;
  --ink-500: #3A4859;

  --blue-700: #0E3358;
  --blue-600: #154C85;
  --blue-500: #1D6AB8;
  --blue-400: #3B8DDD;
  --blue-300: #6FB0EF;
  --blue-200: #A9D0F7;

  --red-600: #B01F2F;
  --red-500: #D9273B;
  --red-400: #F2555F;
  --red-300: #FF8A92;

  --text-hi: #E8EEF6;
  --text-mid: #9FB2C6;
  --text-lo: #71849A;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-300); text-decoration: none; }
a:hover { color: var(--blue-200); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.03; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; }
h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-lo);
}
.eyebrow--accent { color: var(--red-400); }
.lede { font-size: clamp(16px, 1.9vw, 19px); line-height: 1.6; color: var(--text-mid); max-width: 52ch; }
.fine { font-size: 13px; color: var(--text-lo); }
.mono { font-family: var(--font-mono); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 9px;
  font-size: 15px; font-weight: 500; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
/* The one red thing on the page, repeated: the primary action. */
.btn--primary { background: var(--red-500); color: #fff; }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--ghost { border-color: var(--ink-600); color: var(--text-mid); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-500); color: var(--text-hi); }
.btn--sm { height: 34px; padding: 0 15px; font-size: 13.5px; border-radius: 8px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 8, 12, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-700);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--text-hi);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.brand:hover { color: var(--text-hi); }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav__links { display: flex; gap: 24px; margin-left: 8px; }
.nav__links a { color: var(--text-mid); font-size: 14px; }
.nav__links a:hover { color: var(--text-hi); }
.nav__spacer { flex: 1 1 auto; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 6vw, 76px);
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(29, 106, 184, .26) 0%, rgba(6, 8, 12, 0) 60%),
    radial-gradient(80% 70% at 8% 8%, rgba(217, 39, 59, .10) 0%, rgba(6, 8, 12, 0) 55%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 60px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__shot {
  border-radius: 16px; padding: 26px;
  background: linear-gradient(155deg, var(--blue-700) 0%, var(--ink-950) 68%);
  border: 1px solid var(--ink-700); display: flex; justify-content: center;
}
.hero__shot img { width: 244px; border-radius: 10px; box-shadow: 0 26px 60px rgba(0, 0, 0, .62); }

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--ink-700); }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 62ch; }

.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4.5vw, 56px); align-items: center;
}
.split + .split { margin-top: clamp(40px, 6vw, 72px); }
.split--flip .split__media { order: -1; }
.split__copy { display: flex; flex-direction: column; gap: 16px; }

.shot {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ink-700); background: var(--ink-900);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.shot img { width: 100%; }
.shot--pad { padding: 22px; background: linear-gradient(150deg, #10243B 0%, var(--ink-950) 70%); }
.shot--pad img { border-radius: 9px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.shot--center { display: flex; justify-content: center; }
.shot--center img { width: min(268px, 78%); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  padding: 22px; border-radius: 12px;
  background: var(--ink-850); border: 1px solid var(--ink-700);
  display: flex; flex-direction: column; gap: 11px;
}
.card__icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(29, 106, 184, .16);
  display: inline-flex; align-items: center; justify-content: center;
}
.card p { font-size: 14px; color: var(--text-mid); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 9px; padding-top: 18px; border-top: 2px solid var(--ink-600); }
.step:first-child { border-top-color: var(--red-500); }
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--text-lo); }
.step p { font-size: 14px; color: var(--text-mid); }

/* ── Lists ───────────────────────────────────────────────────────────────── */

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-mid); }
.ticks svg { flex: 0 0 auto; margin-top: 4px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 11px; border-radius: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; font-family: var(--font-mono);
  background: rgba(29, 106, 184, .18); color: var(--blue-200);
  border: 1px solid rgba(29, 106, 184, .35); text-transform: uppercase;
  align-self: flex-start;
}

/* ── Share-page mock (video + viewer comments) ───────────────────────────── */

.mock {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ink-700); background: var(--ink-900);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--ink-700); background: var(--ink-850);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-600); }
.mock__url {
  margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-lo);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock__stage {
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #13304C 0%, var(--ink-950) 72%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.mock__play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(232, 238, 246, .12); border: 1px solid rgba(232, 238, 246, .28);
  display: flex; align-items: center; justify-content: center;
}
.mock__cc {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 40px;
  background: rgba(6, 8, 12, .78); border-radius: 6px; padding: 5px 11px;
  font-size: 12.5px; color: var(--text-hi); white-space: nowrap; max-width: 92%;
  overflow: hidden; text-overflow: ellipsis;
}
.mock__scrub { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.mock__scrub { display: block; }
/* Inline spans have no width to position markers against — blockify the track. */
.mock__track { display: block; height: 4px; border-radius: 2px; background: rgba(232, 238, 246, .26); position: relative; }
.mock__fill { display: block; position: absolute; inset: 0 62% 0 0; border-radius: 2px; background: var(--red-500); }
.mock__marks { display: block; position: absolute; inset: 0; }
.mock__mark {
  display: block; position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-300); border: 2px solid var(--ink-950);
}
.thread { display: flex; flex-direction: column; gap: 0; }
.thread__item {
  display: flex; gap: 11px; padding: 14px; border-top: 1px solid var(--ink-700);
}
.thread__avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; font-family: var(--font-mono);
  background: rgba(29, 106, 184, .22); color: var(--blue-200);
}
.thread__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.thread__meta { display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; }
.thread__who { font-size: 13px; font-weight: 600; color: var(--text-hi); }
.thread__at { font-family: var(--font-mono); font-size: 11.5px; color: var(--blue-300); }
.thread__text { font-size: 13.5px; color: var(--text-mid); }

/* ── Security ────────────────────────────────────────────────────────────── */

.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sec {
  padding: 22px; border-radius: 12px;
  background: var(--ink-850); border: 1px solid var(--ink-700);
  display: flex; flex-direction: column; gap: 9px;
}
.sec p { font-size: 14px; color: var(--text-mid); }
.sec code { font-family: var(--font-mono); font-size: 13px; color: var(--blue-300); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tier {
  padding: 26px; border-radius: 14px;
  background: var(--ink-850); border: 1px solid var(--ink-700);
  display: flex; flex-direction: column; gap: 17px;
}
.tier--featured {
  background: linear-gradient(170deg, rgba(217, 39, 59, .10), var(--ink-850) 58%);
  border-color: rgba(217, 39, 59, .45);
}
.tier__head { display: flex; align-items: center; gap: 10px; }
.tier__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.tier__tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border-radius: 10px;
  background: rgba(217, 39, 59, .20); color: var(--red-300);
  font-size: 10px; font-weight: 700; letter-spacing: .05em; font-family: var(--font-mono);
}
.tier__price { display: flex; align-items: baseline; gap: 7px; }
.tier__price b { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.025em; }
.tier__price span { font-size: 13.5px; color: var(--text-lo); }
.tier p { font-size: 14px; color: var(--text-mid); }
.tier .btn { width: 100%; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--ink-700); padding: 18px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 16.5px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-lo); font-family: var(--font-mono); font-size: 19px; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 11px; font-size: 14.5px; color: var(--text-mid); max-width: 74ch; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--ink-700); padding: 40px 0 56px; }
.footer__inner { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: var(--text-mid); font-size: 13.5px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero__grid, .split, .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__media { order: 0; }
  .cards, .steps, .tiers { grid-template-columns: minmax(0, 1fr); }
  .nav__links { display: none; }
  .hero__shot img { width: min(244px, 70vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ── Hero demo ───────────────────────────────────────────────────────────────
   One real photo, one real problem, four scenes: pull it off a café's site as a
   WebP, watch an upload form refuse it, convert it on the shelf, drag the JPEG
   back in. Sizes are measured from the actual file. A single 18s timeline drives
   every element; each scene owns a quarter of it.                              */

.demo {
  position: relative;
  aspect-ratio: 13 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background:
    radial-gradient(90% 80% at 20% 10%, rgba(29, 106, 184, .20) 0%, rgba(6, 8, 12, 0) 62%),
    linear-gradient(155deg, #0B1B2C 0%, var(--ink-950) 72%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .62);
  /* A size container, so the drag chip and the cursor can travel the same
     distance in cqw/cqh regardless of how wide each of them happens to be. */
  container-type: size;
  --shelf-w: 34%;
}

/* Shelf strip, pinned to the right edge like the real thing. */
.demo__shelf {
  position: absolute; top: 8%; right: 3.2%; bottom: 8%; width: var(--shelf-w);
  border-radius: 9px; background: var(--ink-900);
  border: 1px solid var(--ink-700); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; overflow: hidden; z-index: 2;
}
.demo__shelf-head {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 9px 6px; font-size: 10.5px; font-weight: 600; color: var(--text-hi);
}
.demo__shelf-head span { color: var(--ink-500); font-weight: 400; }
.demo__rows { display: flex; flex-direction: column; gap: 4px; padding: 2px 7px; }

.demo__row {
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 5px; border-radius: 5px; background: var(--ink-800);
}
.demo__row i, .demo__row > img {
  width: 16px; height: 16px; border-radius: 3px; flex: 0 0 auto; display: block;
}
.demo__row > img { object-fit: cover; }
.demo__row b { font-size: 9px; font-weight: 500; color: var(--text-hi); white-space: nowrap;
               overflow: hidden; text-overflow: ellipsis; }
.demo__row s { font-size: 8px; color: var(--text-lo); text-decoration: none; margin-left: auto; flex: 0 0 auto; }

/* The photo's row is the one that changes; the others are just company. */
.demo__row--photo { opacity: 0; transform: translateX(14px); }
.demo__row--quiet { opacity: .45; }
.demo__swap { position: relative; flex: 1 1 auto; min-width: 0; align-self: stretch; }
.demo__meta {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; opacity: 0;
}

/* Source windows on the left. */
.demo__win {
  position: absolute; left: 4%; top: 13%; width: 52%;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--ink-700); background: var(--ink-850);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; z-index: 1;
}
.demo__win-bar {
  display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  background: var(--ink-800); border-bottom: 1px solid var(--ink-700);
}
.demo__win-bar u { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-600); display: block; }
.demo__win-bar em {
  font-family: var(--font-mono); font-size: 8.5px; font-style: normal;
  color: var(--text-lo); margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demo__win-body { padding: 9px; display: flex; flex-direction: column; gap: 7px; }

/* Scene 1 — the café page: real photo beside real-looking copy. */
.demo__win-body--site { flex-direction: row; align-items: flex-start; gap: 9px; }
.demo__col { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.demo__photo { display: block; object-fit: cover; border-radius: 6px; }
.demo__photo--page { width: 44%; aspect-ratio: 3 / 4; flex: 0 0 auto; }
.demo__line { height: 6px; border-radius: 3px; background: var(--ink-700); }
.demo__line--w90 { width: 90%; }
.demo__line--w70 { width: 70%; }
.demo__line--w50 { width: 50%; }

/* Scenes 2 and 4 — the upload form, before and after. */
.demo__drop {
  height: 40px; border-radius: 6px; border: 1px dashed var(--ink-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-lo);
}
.demo__drop--live { border-color: var(--blue-400); color: var(--blue-200); background: rgba(29, 106, 184, .12); }
.demo__file {
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 6px; border-radius: 5px; background: var(--ink-800);
}
.demo__file img { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; flex: 0 0 auto; display: block; }
.demo__file b { font-size: 9px; font-weight: 500; color: var(--text-hi); white-space: nowrap;
                overflow: hidden; text-overflow: ellipsis; }
.demo__file s { font-size: 8px; color: var(--text-lo); text-decoration: none; margin-left: auto; flex: 0 0 auto; }
/* Scene 4's chip belongs to the drop, so it can't be there before the drop. */
.demo__file--late { opacity: 0; }
.demo__err {
  font-size: 9px; line-height: 1.4; color: var(--red-300);
  padding: 5px 7px; border-radius: 5px;
  background: rgba(217, 39, 59, .14); border: 1px solid rgba(217, 39, 59, .3);
  opacity: 0;
}
.demo__ok {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: var(--blue-200);
  padding: 5px 7px; border-radius: 5px;
  background: rgba(29, 106, 184, .16); border: 1px solid rgba(59, 141, 221, .34);
  opacity: 0;
}
.demo__ok svg { width: 11px; height: 11px; flex: 0 0 auto; }

/* Scene 3 — convert. */
.demo__conv { display: flex; gap: 9px; padding: 9px; }
.demo__photo--conv { width: 40%; aspect-ratio: 3 / 4; flex: 0 0 auto; }
.demo__conv-side { display: flex; flex-direction: column; gap: 9px; justify-content: center; flex: 1 1 auto; min-width: 0; }
.demo__fmt {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em;
  opacity: 0;
}
.demo__fmt s { color: var(--text-lo); text-decoration: line-through; }
.demo__fmt i { color: var(--text-lo); font-style: normal; }
.demo__fmt b {
  color: var(--blue-200); font-weight: 500;
  padding: 1px 6px; border-radius: 7px; background: rgba(29, 106, 184, .22);
}
.demo__meter { height: 4px; border-radius: 2px; background: var(--ink-600); position: relative; overflow: hidden; }
.demo__meter b { position: absolute; inset: 0 100% 0 0; background: var(--blue-400); display: block; }
.demo__sizes { display: flex; align-items: baseline; gap: 6px; font-size: 10px; color: var(--text-mid); opacity: 0; }
.demo__sizes strong { color: var(--text-hi); font-size: 12px; font-family: var(--font-display); }

/* The photo in flight, plus the cursor. */
.demo__fly {
  position: absolute;
  display: flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px; border-radius: 6px;
  background: rgba(20, 27, 38, .96); border: 1px solid var(--ink-500);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
  font-size: 9px; color: var(--text-hi); white-space: nowrap;
  opacity: 0; z-index: 3;
}
.demo__fly img { width: 15px; height: 15px; border-radius: 3px; object-fit: cover; flex: 0 0 auto; display: block; }
.demo__fly--out { left: 11%; top: 40%; }
.demo__fly--in  { left: 72.2%; top: 19%; }
.demo__cursor { position: absolute; left: 16%; top: 46%; width: 15px; height: 15px; opacity: 0; z-index: 4; }

.demo__caption {
  position: absolute; left: 4%; bottom: 5%;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-lo); opacity: 0;
}

/* ── Timeline ────────────────────────────────────────────────────────────── */

@keyframes demoWin1 { 0%,1% {opacity:0} 3%,22% {opacity:1} 25%,100% {opacity:0} }
@keyframes demoWin2 { 0%,26% {opacity:0} 28%,47% {opacity:1} 50%,100% {opacity:0} }
@keyframes demoWin3 { 0%,51% {opacity:0} 53%,72% {opacity:1} 75%,100% {opacity:0} }
@keyframes demoWin4 { 0%,76% {opacity:0} 78%,97% {opacity:1} 99%,100% {opacity:0} }

/* Out to the shelf, and — in scene 4 — back off it into the form. */
@keyframes demoFlyOut {
  0%,6%    { opacity:0; transform: translate(0,0) scale(.9); }
  9%       { opacity:1; transform: translate(0,0) scale(1); }
  18%      { opacity:1; transform: translate(60cqw, -21cqh) scale(1); }
  20%,100% { opacity:0; transform: translate(62cqw, -22cqh) scale(.94); }
}
@keyframes demoFlyIn {
  0%,80%   { opacity:0; transform: translate(0,0) scale(.9); }
  83%      { opacity:1; transform: translate(0,0) scale(1); }
  91%      { opacity:1; transform: translate(-52.6cqw, 8cqh) scale(1); }
  93%,100% { opacity:0; transform: translate(-54.5cqw, 9cqh) scale(.94); }
}
@keyframes demoCursor {
  0%,6%    { opacity:0; transform: translate(0,0); }
  9%       { opacity:1; transform: translate(0,0); }
  18%      { opacity:1; transform: translate(60cqw, -21cqh); }
  22%      { opacity:0; transform: translate(60cqw, -21cqh); }
  79%      { opacity:0; transform: translate(57.3cqw, -25.1cqh); }
  83%      { opacity:1; transform: translate(57.3cqw, -25.1cqh); }
  91%      { opacity:1; transform: translate(4.7cqw, -17.2cqh); }
  94%,100% { opacity:0; transform: translate(4.7cqw, -17.2cqh); }
}

/* The row lands as the drag arrives, then its name flips mid-convert. */
@keyframes demoRowPhoto { 0%,18% {opacity:0; transform:translateX(14px)} 21%,97% {opacity:1; transform:none} 99%,100% {opacity:0} }
@keyframes demoMetaA    { 0%,18% {opacity:0} 21%,63% {opacity:1} 66%,100% {opacity:0} }
@keyframes demoMetaB    { 0%,63% {opacity:0} 66%,97% {opacity:1} 99%,100% {opacity:0} }

@keyframes demoErr   { 0%,33% {opacity:0; transform:translateY(3px)} 37%,47% {opacity:1; transform:none} 50%,100% {opacity:0} }
@keyframes demoFmt   { 0%,54% {opacity:0} 57%,72% {opacity:1} 75%,100% {opacity:0} }
@keyframes demoMeter { 0%,56% {inset:0 100% 0 0} 64%,72% {inset:0 12% 0 0} 75%,100% {inset:0 100% 0 0} }
@keyframes demoSizes { 0%,60% {opacity:0; transform:translateY(4px)} 65%,72% {opacity:1; transform:none} 75%,100% {opacity:0} }

/* Scene 4: the dropzone lights up under the incoming file, then accepts it. */
@keyframes demoDrop { 0%,84% {border-color:var(--ink-600); background:transparent} 88%,92% {border-color:var(--blue-400); background:rgba(29,106,184,.12)} 95%,100% {border-color:var(--ink-600); background:transparent} }
@keyframes demoLands { 0%,91% {opacity:0; transform:translateY(3px)} 93%,97% {opacity:1; transform:none} 99%,100% {opacity:0} }
@keyframes demoTook  { 0%,93% {opacity:0; transform:translateY(3px)} 95%,97% {opacity:1; transform:none} 99%,100% {opacity:0} }

@keyframes demoCap1 { 0%,2% {opacity:0} 5%,22% {opacity:1} 25%,100% {opacity:0} }
@keyframes demoCap2 { 0%,27% {opacity:0} 30%,47% {opacity:1} 50%,100% {opacity:0} }
@keyframes demoCap3 { 0%,52% {opacity:0} 55%,72% {opacity:1} 75%,100% {opacity:0} }
@keyframes demoCap4 { 0%,77% {opacity:0} 80%,97% {opacity:1} 99%,100% {opacity:0} }

.demo * { animation-duration: 18s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.demo__win--site    { animation-name: demoWin1; }
.demo__win--form    { animation-name: demoWin2; }
.demo__win--convert { animation-name: demoWin3; }
.demo__win--done    { animation-name: demoWin4; }
.demo__fly--out { animation-name: demoFlyOut; }
.demo__fly--in  { animation-name: demoFlyIn; }
.demo__cursor { animation-name: demoCursor; }
.demo__row--photo { animation-name: demoRowPhoto; }
.demo__meta--a { animation-name: demoMetaA; }
.demo__meta--b { animation-name: demoMetaB; }
.demo__err { animation-name: demoErr; }
.demo__fmt { animation-name: demoFmt; }
.demo__meter b { animation-name: demoMeter; }
.demo__sizes { animation-name: demoSizes; }
.demo__drop--live { animation-name: demoDrop; }
.demo__file--late { animation-name: demoLands; }
.demo__ok { animation-name: demoTook; }
.demo__caption--1 { animation-name: demoCap1; }
.demo__caption--2 { animation-name: demoCap2; }
.demo__caption--3 { animation-name: demoCap3; }
.demo__caption--4 { animation-name: demoCap4; }

/* Motion is the pitch, so the still frame has to land the same point: the form
   holding the converted JPEG, with the shelf row that produced it. */
@media (prefers-reduced-motion: reduce) {
  .demo * { animation: none !important; }
  .demo__win--site, .demo__win--form, .demo__win--convert,
  .demo__fly, .demo__cursor,
  .demo__caption--1, .demo__caption--2, .demo__caption--3 { opacity: 0; }
  .demo__win--done, .demo__caption--4, .demo__ok, .demo__file--late { opacity: 1; }
  /* Nothing is mid-drag in the still frame, so the dropzone shouldn't be lit. */
  .demo__drop--live { border-color: var(--ink-600); background: transparent; color: var(--text-lo); }
  .demo__row--photo { opacity: 1; transform: none; }
  .demo__meta--b { opacity: 1; }
  .demo__meter b { inset: 0 12% 0 0; }
}

/* ── Document pages ──────────────────────────────────────────────────────────
   Privacy, terms, support, 404. Narrow measure, generous leading — these are
   read, not scanned like the landing page.                                    */

.doc { max-width: 68ch; display: flex; flex-direction: column; gap: 30px; }
.doc__head { display: flex; flex-direction: column; gap: 12px; }
.doc__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-lo); }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc h2 { font-size: clamp(19px, 2.2vw, 24px); }
.doc h3 { font-size: 16px; font-weight: 600; color: var(--text-hi); }
.doc p, .doc li { color: var(--text-mid); line-height: 1.7; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.doc strong { color: var(--text-hi); font-weight: 600; }
.doc a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.doc code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: 4px; padding: 1px 5px; color: var(--text-hi);
  overflow-wrap: anywhere;
}

/* The one claim that matters most on the privacy page, given its own frame. */
.doc__callout {
  border-left: 2px solid var(--blue-500);
  padding: 4px 0 4px 18px;
}
.doc__callout p { color: var(--text-hi); font-size: clamp(16px, 1.9vw, 18px); }

.doc__note {
  border: 1px solid var(--ink-700); border-radius: 10px;
  background: var(--ink-900); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.doc__note p, .doc__note li { font-size: 15px; }

/* Centred single-message page (404). */
.doc--center { max-width: 52ch; margin: 0 auto; text-align: center; align-items: center; }
