/* draftlist.app — the full site. Direction A "Late desk" (site-design/directions/A-late-desk/site.css), with the
   3D files hero (site-design/3d/files, v2.4), the launch-news form from the coming-soon page, and the text pages.
   Every colour is a brand token from docs/brand/README.md and Nightdesk's system.css: no raw colour below :root.
   Inline style attributes are not allowed by the Content-Security-Policy (public/_headers): every style lives here. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Grey ladder (Nightdesk) */
  --shell: #121212;          /* page ground */
  --panel: #1b1b1b;          /* blocks, cards */
  --raised: #262626;         /* lifted block, secondary button */
  --raised-hover: #2f2f2f;
  --canvas: #303030;         /* the app's title band */
  --hairline: #2c2c2c;
  --hairline-strong: #3a3a3a;

  /* Words */
  --ink: #ededed;            /* 16:1 on Shell */
  --ink-muted: #8a8a8a;      /* 5.43:1 on Shell, 4.99:1 on Panel */
  --ink-faint: #5e5e5e;      /* decoration only, never words */

  /* The one accent: the launch-news button (the Buy buttons at launch). The nav pill takes it whenever no other
     indigo button is in view (W8 a). */
  --accent: #6e7bff;
  --accent-hover: color-mix(in oklab, #6e7bff 90%, #ffffff);
  --on-accent: #0f1117;      /* 5.34:1 on the accent */

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (desktop) */
  --t-display: 80px;   --lh-display: 1.02;  --tr-display: -0.032em;
  --t-h2: 48px;        --lh-h2: 1.08;       --tr-h2: -0.026em;
  --t-h3: 26px;        --lh-h3: 1.22;       --tr-h3: -0.016em;
  --t-lead: 20px;      --lh-lead: 1.5;
  --t-body: 16px;      --lh-body: 1.6;
  --t-small: 14px;     --lh-small: 1.5;
  --t-micro: 12px;     --lh-micro: 1.45;
  --t-price: 56px;

  /* Spacing (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --gutter: 48px;
  --container: 1200px;
  --nav-h: 64px;
  --measure: 40rem;

  /* Shape */
  --r-window: 16px;
  --r-card: 16px;
  --r-btn: 9px;        /* a fifth of the 44 px button, the app's ratio */
  --r-btn-sm: 7px;     /* the app's 7 px on a 32-34 px button */
  --r-tag: 4px;
  --shadow-tone: rgba(0, 0, 0, 0.6);
  --shadow-window: 0 30px 60px -20px var(--shadow-tone);   /* Nightdesk --nd-shadow-shell, minus the inset */

  /* Motion (the app's clock) */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-hover: 120ms;
  --dur-state: 150ms;
  --press: 0.97;

  /* The 3D hero's stage (site-design/3d/files v2.4, framing A). At most, the crate's height is a share of the viewport
     height (--crate-max, as in v2.4), with --air crate heights above it so a card can leave through the page top. The
     stage then shrinks to the room the hero's words leave on the first screen (.hero-stagebox, a size container: the
     crate is 1 / 2.16 of its height), so the whole hero fits one screen with the form on or off. /3d/files.js measures
     the crate box from the page, so the camera follows. */
  --crate-share: 0.28; --air: 1.1; --below: 0.06;
  --crate-max: clamp(220px, min(calc(var(--crate-share) * 100vh), 66vw), 720px);

  color-scheme: dark;
}

@media (max-width: 767px) {
  :root {
    --t-display: 40px;  --lh-display: 1.06; --tr-display: -0.026em;
    --t-h2: 32px;       --t-h3: 21px;
    --t-lead: 17px;     --t-body: 16px;     --t-price: 44px;
    --gutter: 20px;     --nav-h: 56px;
    /* framing P (phones): the stage is the full width */
    --crate-max: min(calc(var(--crate-share) * 100vh), 64vw);
  }
}
/* A short desktop window: the headline steps down so the hero (stage + words) still fits one screen. */
@media (min-width: 768px) and (max-height: 960px) { :root { --t-display: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--shell); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* One swipe, one section: the home page snaps to each main section, and that section's reveal then plays by itself.
   Mandatory at every width (2026-10-20, the maintainer: "firmer snap on phones"). Every snap point is a section's top
   edge, so a phone's address bar resizing the viewport moves none of them. Text pages (.is-doc) scroll freely. */
html:not(.is-doc) { scroll-snap-type: y mandatory; }
.snap { scroll-snap-align: start; scroll-margin-top: var(--nav-h); }
.snap--top { scroll-margin-top: 0; }
.snap--head { scroll-margin-top: calc(var(--nav-h) - 96px); }   /* the features head lands 64 px under the nav, not 160 */
.snap--end { scroll-snap-align: end; scroll-margin-top: 0; }
/* Phones and small windows: one swipe moves exactly one section; a fling cannot pass several. */
@media (max-width: 1023px), (max-height: 639px) { .snap { scroll-snap-stop: always; } }
body {
  margin: 0; background: var(--shell); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--t-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, picture, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
.mono, .fig { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--ink-muted); }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Text links: Ink with a hairline underline (the accent is kept for the one button) ---------- */
.link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur-hover) var(--ease);
}
.link:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--shell), 0 0 0 3px var(--accent); border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 0;
  font: 500 15px/1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease), transform var(--dur-state) var(--ease);
}
.btn:active { transform: scale(var(--press)); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .fig { font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: 0; }
.btn--buy { background: var(--accent); color: var(--on-accent); }
.btn--buy:hover { background: var(--accent-hover); }
.btn--quiet { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn--quiet:hover { background: var(--raised-hover); }
.btn--sm { height: 32px; padding: 0 14px; border-radius: var(--r-btn-sm); font-size: 13px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* When the launch-news form is on, its button takes the indigo and Instagram steps back to a plain link. */
.ig--quiet {
  background: transparent; color: var(--ink-muted); box-shadow: none;
  height: auto; padding: var(--s-1) var(--s-2); font-weight: 400; font-size: var(--t-small);
}
.ig--quiet:hover { background: transparent; color: var(--ink); }
.ig--quiet svg { width: 14px; height: 14px; }

.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-tag);
  font: 500 12px/1 var(--font-sans); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--hairline-strong);
  vertical-align: middle;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--shell) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: inset 0 -1px 0 transparent;
  transition: background-color var(--dur-state) var(--ease), box-shadow var(--dur-state) var(--ease),
    -webkit-backdrop-filter var(--dur-state) var(--ease), backdrop-filter var(--dur-state) var(--ease);
}
.nav.is-scrolled { box-shadow: inset 0 -1px 0 var(--hairline); }
/* The 3D hero (framing A): the nav is clear at scroll 0 so a card visibly leaves through the browser top; the frosted
   backing and hairline fade in after 8 px of scroll. /3d/files.js sets body[data-nav]. */
body[data-nav="clear"] .nav:not(.is-scrolled) {
  background: color-mix(in srgb, var(--shell) 0%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav__in { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.nav__brand { display: inline-flex; width: 140px; flex: none; }
.nav__brand img { width: 100%; height: auto; }
.nav__links { display: flex; gap: var(--s-6); margin-left: auto; }
.nav__links a {
  font-size: 14px; color: var(--ink-muted); text-decoration: none;
  transition: color var(--dur-hover) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: var(--s-5); margin-left: var(--s-7); }

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__brand { width: 124px; }
  .nav__right { margin-left: auto; gap: var(--s-3); }
}

/* ---------- The 3D hero: the crate and its .als cards (site-design/3d/files v2.4) ----------
   The stage is the canvas the crate and its cards are drawn in; its top is the page top. The spotlight is one opaque
   canvas behind it, painted once by /3d/spotlight.js; its unlit colour is the page's #121212. Without WebGL, without
   JavaScript and under reduced motion the poster (frame 0, with the cast shadow) stays. */
.hero-files { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: min-content;
  padding-bottom: var(--s-5); overflow: hidden; }
/* The stage's room: as tall as the v2.4 stage at most, less when the words need the space (never under 140 px). */
.hero-stagebox { position: relative; z-index: 0; flex: 1 1 0; max-height: calc(var(--crate-max) * (1 + var(--air) + var(--below)));
  min-height: 140px; container-type: size; }
.hero-stagebox > * {
  --crate-h: calc(100cqh / (1 + var(--air) + var(--below)));
  --crate-top: calc(var(--crate-h) * var(--air));
  --stage-h: calc(var(--crate-h) * (1 + var(--air) + var(--below)));
  --stage-w: calc(var(--crate-h) * 1.7);
}
@media (max-width: 767px) { .hero-stagebox > * { --stage-w: 100vw; } }   /* framing P: the stage is the full width */
/* Browsers without container queries (before Safari 16, Chrome 105, Firefox 110): v2.4's fixed stage. */
@supports not (container-type: size) {
  .hero-stagebox { flex: none; height: calc(var(--crate-max) * (1 + var(--air) + var(--below))); max-height: none; }
  .hero-stagebox > * { --crate-h: var(--crate-max); }
}
.stage { position: absolute; top: 0; left: 50%; width: var(--stage-w); height: var(--stage-h); transform: translateX(-50%);
  z-index: 1; pointer-events: none; }
.stage > picture, .stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage > picture img { width: 100%; height: 100%; object-fit: cover; }   /* cover: on a phone the stage is wider than the poster's frame; the heights match */
.stage__crate { position: absolute; left: 50%; top: var(--crate-top); width: calc(var(--crate-h) * 1.28); height: var(--crate-h);
  transform: translateX(-50%); visibility: hidden; }
.hero-spot { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--stage-h) * 1.15); z-index: 0; pointer-events: none; }
.hero-spot[hidden] { display: none; }
.stage__gl { opacity: 0; transition: opacity var(--dur-state) linear; }
.stage[data-mode="live"] .stage__gl { opacity: 1; }
.stage[data-mode="live"] .stage__poster { visibility: hidden; }

.hero { position: relative; z-index: 3; flex: none; text-align: center; padding: 0 var(--gutter); }
.display { font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--tr-display); font-weight: 500; max-width: 15.5em; margin: 0 auto; text-wrap: balance; }
.hero .lead { max-width: 30em; margin: 24px auto 0; text-wrap: balance; }
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); margin-top: 32px; }
.hero__meta { margin-top: 16px; font-size: 12px; color: var(--ink-muted); }

/* Short windows: the words tighten so the crate keeps more of the screen. */
@media (max-height: 860px) {
  .hero .lead { margin-top: 16px; }
  .hero__ctas { margin-top: 24px; gap: var(--s-2); }
  .hero__meta { margin-top: 12px; }
  .notify__note { margin-top: var(--s-2); }
  .notify__status { margin-top: var(--s-1); }
}
@media (max-width: 767px) {
  .stage { left: 0; transform: none; }
  .hero { text-align: left; }
  .display { margin: 0; max-width: none; }
  .hero .lead { margin: 16px 0 0; }
  .hero__ctas { align-items: stretch; margin-top: 24px; }
  .hero__ctas .btn { width: 100%; height: 48px; }
  .hero__ctas .ig--quiet { width: auto; height: auto; align-self: flex-start; }
  .hero__meta { margin-top: 12px; }
  .hero__meta span:not(.sep) { display: block; }
  .hero__meta .sep { display: none; }
  .hero-files { padding-bottom: var(--s-4); }
}

/* ---------- The launch-news form (Loops). Hidden until data-form-action holds a Loops form endpoint. ---------- */
.notify { width: 100%; max-width: 440px; }
.notify[hidden] { display: none; }
.notify__row { display: flex; gap: var(--s-2); }
.notify input[type="email"] {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--r-btn); background: var(--raised); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  font: 400 var(--t-body)/1 var(--font-sans);
}
.notify input[type="email"]::placeholder { color: var(--ink-muted); opacity: 1; }
.notify input[type="email"]:focus-visible { box-shadow: 0 0 0 1px var(--shell), 0 0 0 3px var(--accent); border-radius: var(--r-btn); }
.notify__note { margin-top: var(--s-3); font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-muted); }
.notify__note a { text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.notify__status { margin-top: var(--s-2); min-height: 1.45em; font-size: var(--t-small); color: var(--ink); }
.notify--center { text-align: center; }
@media (max-width: 479px) { .notify__row { flex-direction: column; } .notify input[type="email"] { flex: none; height: 48px; } }
@media (max-width: 767px) { .notify--center { text-align: left; } }

/* ---------- Cropped shots (features): a real screenshot of the demo library, cut to the part that matters ---------- */
.crop {
  position: relative; overflow: hidden; border-radius: var(--r-window); background: var(--panel);
  box-shadow: 0 0 0 1px var(--hairline-strong), var(--shadow-window);
}
.crop img { width: 100%; height: auto; }
.crop--narrow { max-width: 480px; }

/* ---------- Sections ---------- */
.section { padding: var(--s-11) 0; }
.section--tight { padding: var(--s-9) 0 var(--s-10); }
.h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); font-weight: 500; text-wrap: balance; }
.h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); font-weight: 500; }
.lead { font-size: var(--t-lead); line-height: var(--lh-lead); color: var(--ink-muted); }
.small { font-size: var(--t-small); line-height: var(--lh-small); }
.micro { font-size: var(--t-micro); line-height: var(--lh-micro); }
.center { text-align: center; }

/* Features: a set list */
.feats__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-9); }
.feat { display: grid; grid-template-columns: 4fr 7fr; gap: var(--s-8); align-items: start; padding: var(--s-9) 0; border-top: 1px solid var(--hairline); }
.feat__no { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); display: block; margin-bottom: var(--s-4); }
.feat__title { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.feat__lines { margin-top: var(--s-5); color: var(--ink-muted); font-size: 17px; line-height: 1.6; }
.feat__lines p + p { margin-top: var(--s-2); }
.feat__note { margin-top: var(--s-5); font-size: var(--t-small); color: var(--ink-muted); }
.feat__text { position: sticky; top: calc(var(--nav-h) + 48px); }

.also-wrap .h3 { margin-top: var(--s-9); }
.also { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); padding: 0; margin: var(--s-6) 0 0; }
.also li { list-style: none; padding: var(--s-5) var(--s-5) var(--s-5) 0; border-bottom: 1px solid var(--hairline); color: var(--ink); font-size: 16px; }

/* Pricing (used by launch/pricing.html and the launch/home-pricing-section.html block; not on the site before launch) */
.section--pricing { padding-top: var(--s-10); padding-bottom: var(--s-9); }
.was { text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 400; }
.btn .was { color: color-mix(in srgb, currentColor 72%, transparent); }
.card__price .was { font-size: 22px; letter-spacing: 0; color: var(--ink-muted); margin-right: 12px; vertical-align: 6px; }
.compare .was { color: var(--ink-muted); }
.price-head { text-align: center; max-width: 760px; margin: 0 auto var(--s-8); }
.price-head .small { margin-top: var(--s-4); color: var(--ink-muted); }
.owner { text-align: center; margin: 0 auto var(--s-6); font-size: var(--t-small); color: var(--ink-muted); }
.owner .mono { color: var(--ink); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); max-width: 960px; margin: 0 auto; }
.card { border-radius: var(--r-card); padding: var(--s-7); box-shadow: inset 0 0 0 1px var(--hairline); display: flex; flex-direction: column; }
.card--pro { background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.card__name { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.card__price { font-family: var(--font-mono); font-size: var(--t-price); line-height: 1; font-weight: 500; letter-spacing: -0.03em; margin-top: var(--s-5); }
.card__price small { font-family: var(--font-sans); font-size: 16px; letter-spacing: 0; font-weight: 400; color: var(--ink-muted); margin-left: 10px; }
.card .btn { margin-top: var(--s-6); }
.checks { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid var(--hairline); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 1.45; }
.checks li svg { margin-top: 3px; color: var(--ink-muted); }
.fine { max-width: 760px; margin: var(--s-7) auto 0; text-align: center; color: var(--ink-muted); font-size: var(--t-small); }
.fine p + p { margin-top: var(--s-3); }
.compare { width: 100%; max-width: 960px; margin: var(--s-9) auto 0; border-collapse: collapse; font-size: 15px; }
.compare caption { text-align: left; font-size: var(--t-h3); font-weight: 500; letter-spacing: var(--tr-h3); padding-bottom: var(--s-5); }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; line-height: 1.45; }
.compare tbody th { font-weight: 400; }
.compare thead th { font-weight: 500; color: var(--ink); border-bottom-color: var(--hairline-strong); }
.compare td.c, .compare th.c { text-align: center; width: 22%; color: var(--ink-muted); }
.compare td.t { color: var(--ink-muted); font-size: 14px; text-align: left; }
.compare .mono { color: var(--ink); }
.compare tfoot td { border: 0; color: var(--ink-muted); font-size: 13px; padding-top: var(--s-4); }

/* The pricing page (launch/pricing.html) */
.pricing-page { padding-top: calc(var(--nav-h) + 72px); }
.pricing-page .price-head { margin-bottom: 20px; }
.price-h1 { font-size: 56px; letter-spacing: -0.03em; }
.pricing-page .owner { margin-bottom: 36px; }
.pricing-page .card { padding: 40px; }
.pricing-page .card .btn { margin-top: 24px; }
.pricing-page .checks { margin-top: 24px; }
.pricing-page .checks li { padding: 10px 0; }
@media (max-width: 767px) { .price-h1 { font-size: 36px; } .pricing-page { padding-top: calc(var(--nav-h) + 40px); } .pricing-page .card { padding: 24px; } }
/* The hero at launch (launch/hero-buy-buttons.html): two Buy buttons side by side, the price line under them */
.hero__ctas--buy { flex-direction: row; justify-content: center; }
.hero__terms { margin-top: 22px; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 767px) { .hero__ctas--buy { flex-direction: column; } .hero__terms { margin-top: 16px; font-size: 13px; } }
/* A feature whose screenshot is still to take (launch/feature-06-collections.html) */
.crop--todo {
  display: grid; place-items: center; text-align: center; padding: var(--s-6); aspect-ratio: 804 / 420;
  background-color: var(--panel);
  background-image: repeating-linear-gradient(45deg, var(--hairline) 0 1px, transparent 1px 6px);
}
.crop--todo p { max-width: 30ch; color: var(--ink-muted); font-size: var(--t-small); background: var(--panel); padding: var(--s-3) var(--s-4); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hairline); }

/* FAQ */
.faq-h { text-align: center; margin-bottom: var(--s-8); }
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--ink-muted); transition: transform var(--dur-state) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); padding: 0 0 var(--s-5); max-width: 68ch; }
.faq details a { color: var(--ink); text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }

/* Requirements */
.reqs { display: grid; grid-template-columns: 4fr 7fr; gap: var(--s-8); }
.reqs ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.reqs li { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.reqs li .muted { display: block; font-size: 13px; }

/* Footer */
.foot { padding: var(--s-9) 0 var(--s-8); border-top: 1px solid var(--hairline); }
.foot__top { display: grid; grid-template-columns: 5fr 2fr 2fr 2fr; gap: var(--s-6); }
.foot__brand { display: block; width: 150px; }
.foot__brand img { width: 100%; height: auto; }
.foot__contact { margin-top: var(--s-4); }
.foot__contact a { color: var(--ink); text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.foot h2 { margin: 0 0 var(--s-4); font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--ink); letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot li a { color: var(--ink-muted); text-decoration: none; font-size: 14px; transition: color var(--dur-hover) var(--ease); }
.foot li a:hover { color: var(--ink); }
.foot__legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 12.5px; line-height: 1.6; }
.foot__legal p + p { margin-top: 4px; }

/* ---------- Text pages: privacy, licence agreement, refunds, 404 ---------- */
.doc { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--nav-h) + var(--s-9)) var(--gutter) var(--s-10); overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(32px, 3.33vw, 48px); line-height: 1.08; letter-spacing: -0.026em; font-weight: 500; }
.doc h2 { margin: var(--s-7) 0 var(--s-3); font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-muted); }
.doc p + p { margin-top: var(--s-3); }
.doc ul { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: var(--s-2); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { color: var(--ink); text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.doc .meta { margin-top: var(--s-3); font-size: var(--t-small); }
.doc .draft {
  margin-top: var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-btn);
  box-shadow: inset 0 0 0 1px var(--hairline-strong); font-size: var(--t-small); color: var(--ink);
}
.doc .draft[hidden] { display: none; }
.doc--center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.doc--center p { margin-top: var(--s-3); }
.doc--center .btn { margin-top: var(--s-6); }

/* ---------- Reveals: a section's graphics and text play in once, when a swipe brings it in ----------
   The resting CSS is the finished page. Only with the motion switch on (html[data-motion="on"], set by /js/head.js
   when reduced motion is off) are the items held back, and only until their group enters view. */
html[data-motion="on"] .rv-i { opacity: 0; transform: translateY(16px); }
html[data-motion="on"] .is-in .rv-i { opacity: 1; transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
html[data-motion="on"] .is-in.no-anim .rv-i { transition: none; }

@media (max-width: 767px) {
  .section { padding: var(--s-9) 0; }
  .feats__head { display: block; margin-bottom: var(--s-6); }
  .feats__head p { margin-top: var(--s-2); }
  .feat { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-7) 0; }
  .feat__text { position: static; }
  .also { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards .card--pro { order: -1; }
  .card { padding: var(--s-6); }
  .reqs { grid-template-columns: 1fr; gap: var(--s-5); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__top > :first-child { grid-column: 1 / -1; }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 640px; }
  .doc { padding-top: calc(var(--nav-h) + var(--s-7)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .btn:active { transform: none; }
  html, html:not(.is-doc) { scroll-snap-type: none; scroll-behavior: auto; }   /* plain scrolling; every section rests finished */
}
