/* Fern: sarniallc.com/fern */

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;

  --bg: #f7f9f7;
  --bg-2: #eef3ef;
  --bg-3: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --accent: #2d6a4f;
  --accent-fill: #2d6a4f;
  --accent-fill-hover: #245a42;
  --on-accent: #ffffff;
  --accent-tint: #e3efe7;
  --accent-ink: #1b4332;
  --nav-bg: rgba(247, 249, 247, 0.72);
  --select: rgba(45, 106, 79, 0.2);

  /* the capture panel, after the app */
  --glass: rgba(255, 255, 255, 0.74);
  --glass-line: rgba(255, 255, 255, 0.7);
  --glass-edge: rgba(16, 40, 28, 0.1);
  --hair: rgba(16, 40, 28, 0.08);
  --cap-ink: #16191d;
  --cap-2: #5c6570;
  --key-line: #d9dee5;
  --tick-line: #d9dee5;
  --due-bg: #fbefd5;
  --chip-bg: #e8ecf1;
  --chip-ink: #4f5864;
  --due-ink: #7a4b00;
  --b-blue: #dce6f0; --b-blue-ink: #163a5c;
  --b-teal: #ddede9; --b-teal-ink: #1f6157;
  --b-purple: #e8e2f2; --b-purple-ink: #5b4380;
  --b-neutral: #e4e9ef; --b-neutral-ink: #303840;
  --wall-1: #cfe4d6;
  --wall-2: #93c2a5;
  --wall-3: #ebf3ee;

  --shadow-window: 0 40px 80px -24px rgba(16, 40, 28, 0.3), 0 12px 28px -12px rgba(16, 40, 28, 0.16);
  --shadow-part: drop-shadow(0 18px 28px rgba(16, 40, 28, 0.12));
  --shadow-pop: drop-shadow(0 24px 36px rgba(16, 40, 28, 0.2));
  --shadow-panel: 0 24px 60px -12px rgba(16, 40, 28, 0.28), 0 6px 16px -6px rgba(16, 40, 28, 0.14);
  --shadow-card: 0 14px 32px -12px rgba(16, 40, 28, 0.26), 0 3px 8px -3px rgba(16, 40, 28, 0.1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 52px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f0c;
    --bg-2: #131b16;
    --bg-3: #18221c;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.18);
    --accent: #7cc79f;
    --accent-fill: #2f7a57;
    --accent-fill-hover: #296c4d;
    --on-accent: #ffffff;
    --accent-tint: #10241a;
    --accent-ink: #cdeadb;
    --nav-bg: rgba(10, 15, 12, 0.7);
    --select: rgba(124, 199, 159, 0.3);

    --glass: rgba(30, 33, 38, 0.72);
    --glass-line: rgba(255, 255, 255, 0.08);
    --glass-edge: rgba(0, 0, 0, 0.5);
    --hair: rgba(255, 255, 255, 0.08);
    --cap-ink: #eef1f4;
    --cap-2: #a3acb6;
    --key-line: #30363d;
    --tick-line: #5a636e;
    --due-bg: #3d2e12;
    --chip-bg: #2a3038;
    --chip-ink: #b4bcc6;
    --due-ink: #f5d59a;
    --b-blue: #1e3246; --b-blue-ink: #c9daeb;
    --b-teal: #1b3531; --b-teal-ink: #bfe0d8;
    --b-purple: #2e2640; --b-purple-ink: #d9ccee;
    --b-neutral: #2a2f36; --b-neutral-ink: #d5dbe2;
    --wall-1: #132a1e;
    --wall-2: #1f4d35;
    --wall-3: #0b1611;

    --shadow-window: 0 40px 80px -24px rgba(0, 0, 0, 0.75), 0 12px 28px -12px rgba(0, 0, 0, 0.5);
    --shadow-part: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
    --shadow-pop: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.6));
    --shadow-panel: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 6px 16px -6px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 14px 32px -12px rgba(0, 0, 0, 0.6), 0 3px 8px -3px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  accent-color: var(--accent);
  scrollbar-color: var(--line-2) var(--bg);
  overflow-x: clip;
}
::selection { background: var(--select); color: inherit; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 12px; border: 3px solid var(--bg); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent-fill); color: var(--on-accent); padding: 10px 16px; border-radius: 980px;
  font-size: 15px; transition: top 0.2s var(--ease-out);
}
.skip:focus-visible { top: 10px; }

.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }

.display { font-size: clamp(48px, 7.4vw, 96px); line-height: 1.04; letter-spacing: -0.03em; }
.headline { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -0.03em; }
.lede { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.012em; }
.lede strong { color: var(--ink); font-weight: 600; }

.section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { text-align: center; max-width: 880px; margin-inline: auto; }
.section-head .lede { max-width: 40ch; margin: 24px auto 0; }

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

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 980px;
  background: var(--accent-fill); color: var(--on-accent);
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}
.pill:hover { background: var(--accent-fill-hover); text-decoration: none; }
.pill:active { transform: scale(0.97); }
.pill:focus-visible { outline-offset: 4px; border-radius: 980px; }
.pill-sm { min-height: 28px; padding: 6px 13px; font-size: 13px; font-weight: 500; }

.arrow-link { display: inline-flex; align-items: center; gap: 4px; font-size: 19px; }
.arrow-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.pill) { color: var(--ink); opacity: 0.8; font-size: 13px; letter-spacing: -0.005em; transition: opacity 0.2s; }
.nav-links a:not(.pill):hover { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 640px) {
  .nav-links .nav-text { display: none; }
}

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

.hero-actions {
  margin-top: clamp(24px, 3.4vh, 32px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px;
}
.store-note { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 17px; }
.store-note svg { width: 15px; height: 18px; fill: currentColor; margin-top: -3px; }

/* The live demo: a capture panel over a desktop */
.demo { width: min(100%, 620px); margin-inline: auto; text-align: left; color: var(--cap-ink); }

.cap {
  border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px var(--glass-line);
  outline: 1px solid var(--glass-edge);
  outline-offset: -1px;
}
.cap-field { display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 60px; }
.cap-plus { width: 19px; height: 19px; flex: none; color: var(--cap-2); }
.cap-line { flex: 1; min-width: 0; font-size: 19px; line-height: 1.4; white-space: nowrap; overflow: hidden; position: relative; }
.cap-text { display: inline-block; vertical-align: top; }
.cap-text .mention { color: var(--accent); font-weight: 500; }
.caret { display: none; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.18em; background: var(--accent); border-radius: 1px; }
.key {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: 5px; border: 1px solid var(--key-line);
  font-size: 11px; line-height: 1.3; color: var(--cap-2); letter-spacing: 0;
  background: transparent;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.key svg { width: 11px; height: 11px; }
.cap-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; min-height: 50px;
  border-top: 1px solid var(--hair);
  font-size: 13px; color: var(--cap-2); white-space: nowrap;
}
.cap-route, .cap-due { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.dest { display: inline-flex; align-items: center; gap: 8px; color: var(--cap-ink); font-size: 14px; font-weight: 500; }
.badge {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--b-neutral); color: var(--b-neutral-ink);
}
.badge svg { width: 12px; height: 12px; }
.badge.blue { background: var(--b-blue); color: var(--b-blue-ink); }
.badge.teal { background: var(--b-teal); color: var(--b-teal-ink); }
.badge.purple { background: var(--b-purple); color: var(--b-purple-ink); }
.saved { overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 2px 8px; border-radius: 980px;
  background: var(--chip-bg); color: var(--chip-ink);
  font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0; white-space: nowrap;
}
.chip svg { width: 11px; height: 11px; flex: none; }
.cap-strip .key { margin-left: auto; }

.landing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); margin-top: clamp(14px, 3vw, 24px); }
.card {
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--glass-line);
  outline: 1px solid var(--glass-edge);
  outline-offset: -1px;
  padding: 14px 16px 16px;
}
.card-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.card-head span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; padding-top: 12px; font-size: 14px; line-height: 1.35; }
.tick { width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--tick-line); }
.card-item .chip { grid-column: 2; justify-self: start; }

@media (max-width: 600px) {
  .cap-field { padding: 14px 16px; gap: 12px; min-height: 54px; }
  .cap-line { font-size: 16px; }
  .cap-field .key { display: none; }
  .cap-strip { padding: 10px 16px; gap: 8px; min-height: 46px; }
  .saved, .key-word { display: none; }
  .card { padding: 11px 10px 12px; border-radius: 12px; }
  .card-head { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
  .card-item { grid-template-columns: 1fr; font-size: 13px; }
  .card-item .tick { display: none; }
  .card-item .chip { grid-column: 1; }
}

/* Demo states. The markup ships in its finished state; the script plays it. */
.demo.is-live .caret { display: inline-block; }
.demo.is-live .cap-route,
.demo.is-live .cap-due,
.demo.is-live .cap-strip .key { opacity: 0; transform: translateY(3px); transition: opacity 0.35s ease, transform 0.5s var(--ease-out); }
.demo.is-live.has-route .cap-route,
.demo.is-live.has-route .cap-strip .key { opacity: 1; transform: none; }
.demo.is-live.has-due .cap-due { opacity: 1; transform: none; }
.demo.is-live .cap-strip .key.is-down { transform: scale(0.9); background: var(--b-neutral); transition-duration: 0.08s; }
.demo.is-live .cap-text { transition: opacity 0.45s ease, filter 0.45s ease, transform 0.6s var(--ease-out); }
.demo.is-live.is-sent .cap-text { opacity: 0; filter: blur(6px); transform: translateY(8px) scale(0.98); }
.demo.is-live.is-sent .cap-route,
.demo.is-live.is-sent .cap-due,
.demo.is-live.is-sent .cap-strip .key { opacity: 0; transition-delay: 0.05s; }
.demo.is-live .card {
  opacity: 0; transform: translateY(-22px) scale(0.9); filter: blur(4px);
  transition: opacity 0.5s ease, transform 0.9s var(--ease-out), filter 0.6s ease;
}
.demo.is-live.is-landed .card { opacity: 1; transform: none; filter: none; }
.demo.is-live.is-landed .card:nth-child(2) { transition-delay: 0.09s; }
.demo.is-live.is-landed .card:nth-child(3) { transition-delay: 0.18s; }
.demo.is-live.is-clearing .card { opacity: 0; transform: scale(0.97); filter: none; transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: 0s; }
.demo.is-live.is-sent .caret { opacity: 0; }
.demo.is-live.is-reset * { transition: none !important; }
@keyframes blink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
.demo.is-live.is-idle .caret { animation: blink 1.05s steps(1) infinite; }

/* App screenshots are never scaled: each shows at the app's real size (srcset picks the 2x or
   3x file for the screen), and a box too small for one crops it instead of shrinking it. */
/* App renders show at their real point size, taken from the width and height attributes, so no browser scales them
   by the density of the file it picks. Phone crops swap in their own size below. */
img.app { display: block; flex: none; max-width: none; max-height: none; }
@media (max-width: 600px) {
  .fx-shot img.app { width: 424px; height: 510px; }
  .t-links img.app { width: 500px; height: 153px; }
}
@media (max-width: 860px) { .pages-frame img.app { width: 380px; height: 543px; } }

/* ---------- Hero band and pinned tour ---------- */

.eyebrow { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.eyebrow i { font-style: normal; color: var(--ink-2); }

/* Hero: a forest band with the real window tilted back and the capture panel floating over it */
.fx-band {
  position: relative; overflow: hidden; color: #f2f7f3; text-align: center;
  background: radial-gradient(90% 70% at 70% 110%, #4f9a73 0%, #2d6a4f 38%, #173b2b 75%, #0f2a1e 100%);
  padding-top: clamp(48px, 8vh, 88px);
}
.fx-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 30% at 20% 10%, rgba(255,255,255,.09), transparent 70%); }
.fx-hero { position: relative; }
.fx-hero .display { color: #f2f7f3; }
.fx-hero .lede { color: rgba(242,247,243,.74); max-width: 36ch; margin: 22px auto 0; }
.fx-hero .hero-actions { margin-top: 30px; }
.fx-hero .pill { background: #f2f7f3; color: #173b2b; }
.fx-hero .pill:hover { background: #fff; }
/* Watch the film: a quiet second action in the hero, and the dialog it opens */
.film-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px; border: 0; background: none; color: #e8f2ec; font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; }
.film-play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 247, 243, .14); box-shadow: inset 0 0 0 1px rgba(242, 247, 243, .3); transition: background .25s ease, transform .3s var(--ease-out); }
.film-play svg { width: 12px; height: 12px; margin-left: 2px; }
.film-btn:hover .film-play { background: rgba(242, 247, 243, .26); transform: scale(1.08); }
.film-len { color: rgba(232, 242, 236, .6); font-variant-numeric: tabular-nums; }
.film { width: min(1120px, 100vw - 32px); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.film::backdrop { background: rgba(6, 16, 11, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film video { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 18px; }
.film-close { position: absolute; top: -48px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.film-close svg { width: 14px; height: 14px; }
.film[open] { animation: film-in .45s var(--ease-out); }
@keyframes film-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.fx-hero .store-note { color: rgba(242,247,243,.74); }
.fx-hero .store-note svg { fill: currentColor; }
.fx-scene { position: relative; width: min(100% - 2 * var(--gutter), 1280px); margin: clamp(48px, 7vh, 72px) auto 0; }
/* The window is always shown at its real size; a narrower scene shows its middle */
.fx-win { border-radius: 14px 14px 0 0; overflow: hidden; max-height: 520px;
  box-shadow: 0 -2px 0 rgba(255,255,255,.18), 0 60px 120px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12);
  transform: translateY(var(--rise, 0px)); }
.fx-win img { margin-left: calc(50% - 640px); }
.fx-float { position: absolute; left: 50%; top: 9%; width: min(84%, 640px); transform: translate(-50%, var(--fy, 0px)); text-align: left; }
.fx-float .demo { width: 100%; }

/* Tour: the steps scroll by on the left while one stage stays pinned */
.fx-tour { position: relative; height: 460vh; }
.fx-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); width: min(100% - 2 * var(--gutter), 1240px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.fx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.fx-step { opacity: .3; transition: opacity .5s ease; }
.fx-step.on { opacity: 1; }
.fx-step h2 { margin-top: 10px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.fx-step p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.fx-step:not(.on) p { display: none; }
.fx-bar { display: block; margin-top: 14px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fx-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); }
.fx-stage { position: relative; aspect-ratio: 16 / 10.5; max-height: calc(100vh - var(--nav-h) - 48px); container-type: inline-size; }
/* A narrow stage can't fit the prompt beside the list: the prompt becomes a strip above it */
@container (max-width: 820px) {
  .fx-panel .look-stage { padding: 24px; }
  .fx-panel .look { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fx-panel .look-sheet { padding: 12px 16px; }
  .fx-panel .ls-text { margin-top: 6px; padding: 0; box-shadow: none; font-size: 15px; }
  .fx-panel .ll-card p { font-size: 14px; }
}
.fx-panel { position: absolute; inset: 0; display: grid; align-content: center; opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .6s ease, transform .8s var(--ease-out); }
.fx-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.fx-panel .any-stage, .fx-panel .look-stage, .fx-panel .dates-grid { margin: 0; }
.fx-shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-window), 0 0 0 1px var(--line); }
.fx-shot { max-width: 696px; }
.fx-panel.p4 .dates-grid { grid-template-columns: minmax(0, 1fr) auto; height: 100%; }
.fx-panel.p4 .cal-tile { place-items: start center; padding: 28px; }
.fx-engines { padding-top: clamp(32px, 4vw, 56px); }
.fx-engines .engines { margin-top: 0; }

@media (max-width: 1023px) {
  .fx-tour { height: auto; }
  .fx-pin { position: static; height: auto; grid-template-columns: 1fr; gap: 0; }
  .fx-steps { display: none; }
  .fx-stage { aspect-ratio: auto; max-height: none; display: grid; gap: 56px; padding-block: 56px; }
  .fx-panel { position: static; opacity: 1; transform: none; }
  .fx-panel::before { content: attr(data-title); }
  .fx-panel.p4 .dates-grid { grid-template-columns: 1fr; }
  .fx-win { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .fx-win { transform: none; } .fx-panel { transition: none; } }
.fx-hero .line { display: block; }
.fx-mcap { display: none; }
.fx-doc { display: block; padding: 6% 11% 0; text-align: left; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.fx-doc p + p { margin-top: 12px; }
.fx-doc .fx-doc-h { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.fx-doc .fx-doc-sub { margin-top: 20px; font-weight: 600; color: var(--ink); }
@media (max-width: 1023px) {
  .fx-mcap { display: block; margin-bottom: 20px; }
  .fx-mcap h2 { margin-top: 8px; font-size: 28px; line-height: 1.1; letter-spacing: -.025em; }
  .fx-mcap p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
  .fx-doc { font-size: 13px; }
}

/* ---------- Window frame ---------- */

.win { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-window), 0 0 0 1px var(--line); background: var(--bg-3); }
.win img { width: 100%; }

/* ---------- Pillar 1: from anywhere ---------- */

.any-stage {
  margin-top: clamp(48px, 6vw, 72px);
  border-radius: 28px; overflow: hidden; position: relative; isolation: isolate;
  background:
    linear-gradient(160deg, var(--wall-3) 0%, transparent 45%),
    linear-gradient(20deg, var(--wall-2) 0%, var(--wall-1) 55%, var(--wall-3) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.any { position: relative; aspect-ratio: 16 / 9; max-height: 640px; width: 100%; }
.doc-win {
  position: absolute; inset: 9% 14% -4% 14%;
  border-radius: 12px; background: var(--bg-3); overflow: hidden;
  box-shadow: var(--shadow-window), 0 0 0 1px var(--line);
  filter: blur(1.5px) saturate(0.8); opacity: 0.92;
}
.doc-bar { height: 34px; display: flex; gap: 8px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); }
.doc-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.doc-body { display: grid; gap: 14px; padding: 7% 12% 0; }
.doc-body span { display: block; height: 11px; border-radius: 6px; background: var(--line); }
.doc-body .doc-h { height: 22px; width: 46%; background: var(--line-2); margin-bottom: 8px; }
.doc-body .short { width: 62%; }
.doc-body .doc-img { height: 120px; border-radius: 10px; margin: 8px 0; background: var(--accent-tint); }
.keys { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 10px; opacity: 0; }
.kc {
  display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 14px;
  border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), inset 0 -3px 0 var(--line-2), inset 0 0 0 1px var(--glass-line);
  font-size: 19px; font-weight: 500; color: var(--cap-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.kc-wide { min-width: 150px; font-size: 17px; }
.any-cap { position: absolute; left: 50%; top: 50%; width: min(86%, 600px); transform: translate(-50%, -50%); }
.any-cap .cap-line { text-overflow: ellipsis; }
.added {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 980px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--glass-line);
  font-size: 15px; font-weight: 500; color: var(--cap-ink); white-space: nowrap; opacity: 0;
}
.added svg { width: 16px; height: 16px; color: var(--accent); }
.points { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.points li { padding-top: 16px; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); line-height: 1.45; }
.points b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .any { aspect-ratio: 4 / 5; }
  .doc-win { inset: 7% 6% -4% 6%; }
  .points { grid-template-columns: 1fr; }
  .kc { min-width: 52px; height: 52px; font-size: 17px; }
  .kc-wide { min-width: 110px; font-size: 15px; }
  .any-cap { width: 92%; }
}

/* scene states: the markup is the finished frame; the script plays it */
.any.is-live .any-cap { transition: opacity 0.4s ease, transform 0.6s var(--ease-out), filter 0.4s ease; }
.any.is-live:not(.open) .any-cap { opacity: 0; transform: translate(-50%, -46%) scale(0.96); filter: blur(4px); }
.any.is-live .keys { transition: opacity 0.35s ease, transform 0.5s var(--ease-out); }
.any.is-live.keys-on .keys { opacity: 1; }
.any.is-live .kc.down { transform: translateY(2px) scale(0.96); box-shadow: var(--shadow-card), inset 0 -1px 0 var(--line-2), inset 0 0 0 1px var(--glass-line); }
.any.is-live .added { transition: opacity 0.4s ease, transform 0.6s var(--ease-out); transform: translate(-50%, -30%); }
.any.is-live.done .added { opacity: 1; transform: translate(-50%, -50%); }
.any.is-live .caret { display: inline-block; }
.any.is-live .cap-route, .any.is-live .cap-due, .any.is-live .cap-strip .key { opacity: 0; transition: opacity 0.35s ease; }
.any.is-live.has-route .cap-route, .any.is-live.has-route .cap-strip .key { opacity: 1; }
.any.is-live.has-due .cap-due { opacity: 1; }
.any.is-live .cap-strip .key.is-down { transform: scale(0.9); background: var(--b-neutral); }
.any.is-live.reset * { transition: none !important; }

/* ---------- Pillar 2: lists that do the legwork ---------- */

.look-stage { margin-top: clamp(48px, 6vw, 72px); border-radius: 28px; background: var(--bg-2); padding: clamp(24px, 5vw, 64px); }
.look { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; color: var(--cap-ink); }
.look-sheet {
  border-radius: 14px; background: var(--bg-3); padding: 20px 22px 22px;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--line);
}
.ls-title { font-size: 15px; font-weight: 600; }
.ls-text { margin-top: 12px; padding: 12px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--key-line); font-size: 17px; line-height: 1.45; }
.look-list {
  border-radius: 14px; background: var(--bg-3); padding: 18px 20px 8px;
  box-shadow: var(--shadow-panel), 0 0 0 1px var(--line);
}
.ll-head { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ll-field {
  position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; min-height: 44px;
  border-radius: 10px; box-shadow: inset 0 0 0 1px var(--key-line); font-size: 16px; white-space: nowrap; overflow: hidden;
}
.ll-field .cap-plus { width: 16px; height: 16px; color: var(--cap-2); }
.ll-ph { color: var(--cap-2); }
.ll-typed:empty { display: none; }
.ll-typed:not(:empty) + .caret + .ll-ph { display: none; }
.ll-typed .mention { color: var(--accent); font-weight: 500; }
.ll-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; font-size: 16px; }
.ll-row .tick { margin: 0; flex: none; }
.ll-new { border-bottom: 1px solid var(--hair); }
.ll-new + .ll-row { padding-bottom: 12px; }
.ll-name { min-width: 0; }
.ll-state { display: inline-flex; align-items: center; gap: 6px; color: var(--cap-2); font-size: 13px; }
.ll-state .spark { width: 14px; height: 14px; color: var(--accent); }
.spin, .ll-working { display: none; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--key-line); border-top-color: var(--accent); }
.ll-card-wrap { display: grid; grid-template-rows: 1fr; }
.ll-card {
  overflow: hidden; min-height: 0; margin: 0 0 16px 28px; padding: 14px 16px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--key-line); font-size: 15px; line-height: 1.45;
}
.ll-card p + p { margin-top: 8px; }
.ll-card p:first-child { margin-bottom: 12px; }
.ls-src { margin-top: 10px; font-size: 13px; color: var(--cap-2); }
.ll-note { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ll-note u { color: var(--accent); text-decoration: none; font-weight: 500; }
.ll-due { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 12px; border-radius: 8px; background: var(--chip-bg); color: var(--chip-ink); font-size: 13px; font-weight: 500; }
.ll-due svg { width: 12px; height: 12px; }
.engines { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 860px; }
.engines-lede { text-align: center; font-size: 17px; color: var(--ink-2); max-width: 62ch; margin-inline: auto; }
.engines-cols { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.engines-cols div { padding-top: 14px; border-top: 1px solid var(--line); }
.engines-cols dt { font-size: 15px; font-weight: 600; color: var(--ink); }
.engines-cols dd { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 600px) { .engines-cols { grid-template-columns: 1fr; } }
.case-key { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.case-key svg { width: 13px; height: 13px; flex: none; color: var(--accent); }
@media (max-width: 900px) {
  .look { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ll-card { margin-left: 0; }
  .ll-row { font-size: 15px; }
}

.look.is-live .caret { display: inline-block; }
.look.is-live .ll-new { transition: opacity 0.45s ease, transform 0.6s var(--ease-out); }
.look.is-live:not(.added-item) .ll-new { opacity: 0; transform: translateY(-8px); }
.look.is-live:not(.added-item) .ll-new { display: none; }
.look.is-live.working .spin, .look.is-live.working .ll-working { display: inline-block; }
.look.is-live.working .spark { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.look.is-live .spin { animation: spin 0.9s linear infinite; }
.look.is-live .ll-card-wrap { transition: grid-template-rows 0.7s var(--ease-out), opacity 0.5s ease; }
.look.is-live:not(.filled) .ll-card-wrap { grid-template-rows: 0fr; opacity: 0; }
.look.is-live:not(.filled) .ll-card { margin-bottom: 0; padding-block: 0; box-shadow: none; }
.look.is-live .ll-card { transition: padding 0.7s var(--ease-out), margin 0.7s var(--ease-out); }
.look.is-live .spark { transition: transform 0.5s var(--ease-out); }
.look.is-live.reset * { transition: none !important; }
/* the page writes itself: each line lands a beat after the last */
.look.is-live .ll-note li, .look.is-live .ll-due { transition: opacity .45s ease, transform .6s var(--ease-out); }
.look.is-live.filled .ll-note li:nth-child(1) { transition-delay: .35s; }
.look.is-live.filled .ll-note li:nth-child(2) { transition-delay: .6s; }
.look.is-live.filled .ll-note li:nth-child(3) { transition-delay: .85s; }
.look.is-live.filled .ll-due { transition-delay: 1.2s; }
.look.is-live:not(.filled) :is(.ll-note li, .ll-due) { opacity: 0; transform: translateX(-6px); }

/* ---------- Use cases ---------- */

.cases-wrap { margin-top: clamp(40px, 5vw, 64px); }
.cases {
  list-style: none; margin: 0; display: flex; align-items: flex-start; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter), calc((100vw - 1120px) / 2)) 28px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2));
  scrollbar-width: none;
}
.cases::-webkit-scrollbar { display: none; }
.cases:focus-visible { outline-offset: -3px; border-radius: 28px; }
.case {
  flex: none; width: clamp(280px, 26vw, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 20px;
  border-radius: 28px; padding: 28px 26px 26px; background: var(--bg-2);
}
.case:nth-child(3n+1) { background: var(--accent-tint); }
.case:nth-child(3n+2) { background: var(--bg-2); }
.case:nth-child(3n) { background: var(--wall-3); }
.case-wide { width: clamp(300px, 36vw, 460px); }
.case-sub { font-size: 16px; color: var(--ink-2); line-height: 1.45; margin-top: -8px; }
.case h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.022em; }
.case-line {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-3); box-shadow: var(--shadow-card), 0 0 0 1px var(--line);
  font-size: 16px; line-height: 1.4; color: var(--cap-ink); overflow-wrap: anywhere;
}
.case-line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--cap-2); }
.case-line .mention { color: var(--accent); font-weight: 500; }
.case-out { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.case-item { display: flex; align-items: flex-start; gap: 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.case-item span:last-child { margin-left: 4px; }
.case-item .badge { width: 22px; height: 22px; font-size: 10px; margin-top: 1px; }
.case-note, .case-look { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.case-look { display: flex; gap: 8px; align-items: flex-start; }
.case-look .spark { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--accent); }
.case-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.case-chips .chip { font-size: 13px; padding: 3px 10px; gap: 5px; }
.chip.link { background: var(--accent-tint); color: var(--accent-ink); }
.cases-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.cases-nav .note { margin: 0; }
.cases-btns { display: flex; gap: 12px; }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.round-btn svg { width: 14px; height: 14px; }
.round-btn:hover { background: var(--accent-tint); }
.round-btn:active { transform: scale(0.94); }
.round-btn:focus-visible { border-radius: 50%; }
.round-btn:disabled { opacity: 0.35; cursor: default; }
/* Spotlight: one card centred and lit, the rest dimmed and set back */
.cases.spot { position: relative; align-items: center; padding-inline: calc(50% - min(18vw, 230px)); scroll-padding-inline: 0; }
.cases.spot .case { scroll-snap-align: center; cursor: pointer; opacity: 0.38; transform: scale(0.93); filter: saturate(0.6);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out), filter 0.6s ease, box-shadow 0.8s ease; }
.cases.spot .case.is-active { cursor: auto; opacity: 1; transform: none; filter: none; box-shadow: 0 40px 70px -40px rgba(16, 40, 28, 0.45); }
.cases-dots { display: flex; gap: 8px; align-items: center; }
.cases-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: width 0.4s var(--ease-out), background-color 0.3s; }
.cases-dots button[aria-current="true"] { width: 26px; background: var(--accent); }
.cases-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Use cases, played: each card types its line, then the results arrive one by one.
   The markup is the finished state; .is-live is only added when motion is allowed. */
.fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fan-p {
  display: grid; justify-items: start; gap: 6px; padding: 10px; border-radius: 12px;
  background: var(--bg-3); box-shadow: 0 0 0 1px var(--line);
}
.fan-p .badge { width: 26px; height: 26px; font-size: 11px; }
.fan-p b { font-size: 13px; letter-spacing: -0.01em; }
.fan-item { display: flex; gap: 6px; font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.fan-item .tick { width: 12px; height: 12px; flex: none; margin-top: 1px; border-width: 1.3px; }
.fan-item > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; overflow-wrap: anywhere; }
.fan-p, .fan-item { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .fan-item .tick { display: none; } .fan-p { padding: 8px; } }
.llm { display: none; }

.cases.is-live [data-s] { transition: opacity 0.45s ease, transform 0.6s var(--ease-out); }
.cases.is-live [data-s]:not(.on) { opacity: 0; transform: translateY(10px); }
.cases.is-live .badge[data-s]:not(.on) { transform: scale(0.2); }
.cases.is-live .chip[data-s]:not(.on) { transform: scale(0.6); }
.cases.is-live .case-line.typing > span::after {
  content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em;
  background: var(--accent); border-radius: 1px; animation: blink 1.05s steps(1) infinite;
}
.cases.is-live .case-line { transition: box-shadow 0.5s ease; }
.cases.is-live .case-line.sent { box-shadow: var(--shadow-card), 0 0 0 2px var(--accent); }

/* @team: each person's list gets its own copy, dropped in from above */
.cases.is-live .fan-p .fan-item { transition: opacity 0.4s 0.25s ease, transform 0.6s 0.25s var(--ease-out); }
.cases.is-live .fan-p:not(.on) .fan-item { opacity: 0; transform: translateY(-14px); }
.cases.is-live .fan-p.on .badge { animation: copied 0.9s 0.2s ease-out; }
@keyframes copied { 0% { box-shadow: 0 0 0 0 var(--accent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* Lookups: a small model at work, then the answer */
.cases.is-live .llm {
  position: relative; display: flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 10px 12px; border-radius: 12px; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line);
  font-size: 13px; line-height: 1.35; color: var(--ink-2);
  max-height: 80px; transition: opacity 0.4s ease, transform 0.6s var(--ease-out), max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
}
.llm-orb {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #8fd3b0, #b9a6f0, var(--accent));
  animation: orb 1.4s linear infinite; box-shadow: 0 0 12px -2px var(--accent);
}
@keyframes orb { to { transform: rotate(1turn); } }
.llm-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: sweep 1.2s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.cases.is-live .case.looked .llm { opacity: 0; max-height: 0; padding-block: 0; margin-top: -10px; }

/* ---------- Groups ---------- */

.note { margin-top: 20px; text-align: center; font-size: 13px; color: var(--ink-2); }

/* ---------- Dates ---------- */

.dates-grid {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
}
.tile { border-radius: 28px; background: var(--bg-2); overflow: hidden; position: relative; }
.parse-tile { display: grid; align-content: center; padding: clamp(28px, 4vw, 56px); }
.parse-demo { display: grid; gap: 20px; }
.parse-field {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px;
  border-radius: 14px; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  font-size: 19px; white-space: nowrap; overflow: hidden;
}
.parse-field .cap-plus { color: var(--ink-2); }
.parse-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 6px 4px 22px; border-bottom: 1px solid var(--line); }
.parse-item .tick { width: 20px; height: 20px; margin: 0; }
.parse-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.024em; line-height: 1.2; }
.parse-item .chip { font-size: 15px; padding: 4px 11px; gap: 6px; }
.parse-item .chip svg { width: 13px; height: 13px; }
.parse-list { display: grid; }
.parse-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.parse-row:last-child { border-bottom: 0; }
.parse-said { font-size: 17px; color: var(--ink-2); }
.parse-row .chip { font-size: 14px; padding: 3px 10px; gap: 6px; }
.parse-row .chip svg { width: 12px; height: 12px; }

/* played once as the tile comes into view; the markup is the finished state */
.parse-tile.is-live .caret { display: inline-block; }
.parse-tile.is-live .parse-item,
.parse-tile.is-live .parse-said,
.parse-tile.is-live .parse-row .chip { transition: opacity 0.5s ease, transform 0.7s var(--ease-out), filter 0.5s ease; }
.parse-tile.is-live:not(.is-resolved) .parse-item { opacity: 0; transform: translateY(-10px); }
.parse-tile.is-live .parse-row:not(.on) .parse-said { opacity: 0; transform: translateY(8px); }
.parse-tile.is-live .parse-row:not(.done) .chip { opacity: 0; transform: scale(0.7); filter: blur(4px); }
.parse-tile.is-live.is-resolved .parse-typed { opacity: 0.45; }
.parse-tile.is-live .parse-typed { transition: opacity 0.4s ease; }

.cal-tile { display: grid; place-items: center; padding: clamp(24px, 3vw, 40px); }
.cal-tile img { filter: var(--shadow-part); }
@media (max-width: 820px) {
  .dates-grid { grid-template-columns: 1fr; }
  .parse-tile { min-height: 0; }
}

/* ---------- Item pages ---------- */
.pages-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pages-copy .headline { margin-top: 14px; font-size: clamp(36px, 4.4vw, 60px); text-wrap: balance; }
.pages-copy .lede { margin-top: 20px; max-width: 34ch; }
.pages-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; max-width: 40ch; }
.pages-points li { position: relative; padding: 12px 0 12px 18px; font-size: 17px; line-height: 1.45; color: var(--ink-2); transition: color .4s ease; }
.pages-points li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--line); transition: background .4s ease; }
.pages-points li b { color: var(--ink); font-weight: 600; }
.pages-points li.on { color: var(--ink); }
.pages-points li.on::before { background: var(--accent); }
.pages-shot { min-width: 0; max-width: 100%; }
.pages-frame { position: relative; max-width: 100%; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-window), 0 0 0 1px var(--line); }
.pages-frame img.app { display: block; }
.pg-spot { position: absolute; border-radius: 10px; box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent); opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .6s var(--ease-out); pointer-events: none; }
.pg-spot.on { opacity: 1; transform: none; }
/* points on the 760×512pt render, which always shows at its real size, anchored top-left */
.pg-spot-fold { left: 42px; top: 135px; width: 166px; height: 28px; }
.pg-spot-tick { left: 56px; top: 166px; width: 146px; height: 26px; }
.pg-spot-date { left: 636px; top: 189px; width: 84px; height: 56px; }
@media (max-width: 1100px) {
  .pages-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pages-copy .lede, .pages-points { margin-inline: auto; }
  .pages-points { text-align: left; }
}
@media (max-width: 860px) { .pg-spot { display: none; } }

/* ---------- More (bento) ---------- */

.bento {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; gap: 20px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bento .tile { display: flex; flex-direction: column; }
.tile-copy { padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.2vw, 44px) 0; }
.tile h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.14; letter-spacing: -0.024em; }
.tile-copy p { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 44ch; }
.tile-media { margin-top: auto; padding: 36px clamp(20px, 3vw, 40px) clamp(32px, 3.6vw, 48px); display: flex; justify-content: center; align-items: center; }
.tile-media img { filter: var(--shadow-part); }
.t-links .tile-media { justify-content: flex-start; overflow: hidden; }
.t-links .tile-media img { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.t-history { grid-column: 1 / 5; }
.t-cloud { grid-column: 5 / 7; }
.t-repeat { grid-column: 1 / 3; }
.t-links { grid-column: 3 / 7; }
.t-cloud { background: var(--accent-tint); padding: clamp(28px, 3.2vw, 44px); gap: 28px; justify-content: space-between; }
.t-cloud h3 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.06; letter-spacing: -0.03em; color: var(--accent-ink); }
.t-cloud p { margin-top: 10px; font-size: 17px; color: var(--accent-ink); opacity: 0.86; max-width: 22ch; }
.sync-art { flex: 1; position: relative; min-height: 220px; }
.sync-art { display: grid; place-items: center; }
.sync-art svg { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.sa-screen { fill: var(--bg-3); stroke: var(--accent-ink); stroke-opacity: .25; stroke-width: 1.5; }
.sa-side { fill: var(--accent-tint); }
.sa-ink { fill: var(--accent-ink); opacity: .75; }
.sa-line { fill: var(--accent-ink); opacity: .22; }
.sa-base { fill: var(--accent-ink); opacity: .3; }
.sa-sync { stroke: var(--accent); }
.sa-cloud { fill: var(--bg-3); stroke: var(--accent); stroke-width: 1.5; opacity: .9; }
html.motion .sa-sync { transform-origin: 160px 80px; animation: sa-spin 3.2s var(--ease-out) infinite; }
html.motion .sa-new { animation: sa-new 3.2s ease infinite; }
@keyframes sa-spin { 0%, 30% { transform: rotate(0); } 70%, 100% { transform: rotate(1turn); } }
@keyframes sa-new { 0%, 45% { opacity: 0; } 65%, 100% { opacity: .5; fill: var(--accent); } }
.t-repeat { padding: clamp(28px, 3.2vw, 44px); gap: 24px; }
.t-repeat h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.028em; }
.repeat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.repeat-chips span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 980px; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 500;
}
.repeat-chips svg { width: 14px; height: 14px; color: var(--accent); }
.repeat-chips .due { background: var(--due-bg); color: var(--due-ink); box-shadow: none; }
.repeat-chips .due svg { color: currentColor; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-history, .t-links { grid-column: 1 / -1; }
  .t-cloud { grid-column: 1 / 2; }
  .t-repeat { grid-column: 2 / 3; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .t-cloud, .t-repeat { grid-column: 1 / -1; }
  .t-links .tile-media { padding: 28px 0 32px 20px; justify-content: flex-start; }
}

/* ---------- Privacy ---------- */

.privacy { text-align: center; }
.privacy .display { max-width: 12ch; margin-inline: auto; }
.privacy .lede { max-width: 38ch; margin: 28px auto 0; }
.privacy .arrow-link { margin-top: 28px; }
.lock { width: 56px; height: 56px; margin: 0 auto 32px; color: var(--accent); }

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

.faq-list { max-width: 820px; margin: clamp(48px, 6vw, 72px) auto 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.25;
  border-radius: 8px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary svg { flex: none; width: 18px; height: 18px; color: var(--ink-2); transition: transform 0.4s var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list .answer { padding: 0 4px 28px; max-width: 62ch; color: var(--ink-2); font-size: 19px; }
.faq-list .answer p + p { margin-top: 12px; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-list details::details-content {
      block-size: 0; overflow: clip; opacity: 0;
      transition: block-size 0.45s var(--ease-out), opacity 0.35s ease, content-visibility 0.45s allow-discrete;
    }
    .faq-list details[open]::details-content { block-size: auto; opacity: 1; }
  }
}

/* ---------- Closing ---------- */

.closing { text-align: center; padding-bottom: clamp(96px, 10vw, 140px); }
.closing img { width: 96px; height: 96px; margin: 0 auto 32px; border-radius: 22px; }
.closing .hero-actions { margin-top: 36px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* ---------- Plain pages (privacy, support, 404) ---------- */

.doc { padding-block: clamp(56px, 8vw, 104px) clamp(96px, 10vw, 140px); }
.doc-inner { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
.doc .updated { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.doc .intro { margin-top: 28px; font-size: 21px; line-height: 1.45; }
.doc h2 { margin-top: 56px; font-size: 28px; line-height: 1.15; letter-spacing: -0.022em; }
.doc h3 { margin-top: 28px; font-size: 19px; letter-spacing: -0.015em; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--ink); }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--ink-2); }
.doc a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.doc a:hover { text-decoration-color: currentColor; }
.doc .pill { text-decoration: none; margin-top: 32px; }
.kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 0.88em; line-height: 1.4; white-space: nowrap; }
.not-found { text-align: center; }
.not-found img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 28px; }
.not-found p { color: var(--ink-2); }

/* ---------- Motion ----------
   Everything above is the still page. The script adds .sda (scroll-driven
   animations supported) or .io (observer fallback) when motion is allowed. */

@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px); } }
html.motion .fx-hero h1 { animation: hero-in 1.1s var(--ease-out) both; }
html.motion .fx-hero .lede { animation: hero-in 1.1s 0.1s var(--ease-out) both; }
html.motion .fx-hero .hero-actions { animation: hero-in 1.1s 0.2s var(--ease-out) both; }
html.motion .fx-scene { animation: stage-in 1.4s 0.3s var(--ease-out) both; }

@supports (animation-timeline: view()) {
  @keyframes rise { from { opacity: 0.2; transform: translateY(48px); } }
  @keyframes lift { from { opacity: 0.3; transform: translateY(64px); } }

  html.sda .section-head,
  html.sda .privacy-inner,
  html.sda .closing-inner { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
  html.sda .bento .tile { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  html.sda .faq-list { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }

}

/* Observer fallback: the same moments, played once on entry */
html.io :is(.section-head, .privacy-inner, .closing-inner, .faq-list, .bento .tile) {
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
}
html.io :is(.section-head, .privacy-inner, .closing-inner, .faq-list):not(.in) { opacity: 0.2; transform: translateY(48px); }
html.io .bento .tile:not(.in) { opacity: 0.3; transform: translateY(64px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .cases { scroll-behavior: auto; }
}
