/* illgati.com. The layout system (glass over a drifting backdrop, Nunito
   display type, pill buttons, bento, reveals) is shared with utucat.com; the
   palette, mark, wordmark and cue cards are Illgati's own. Every colour is a
   token in the three blocks below: light, then dark for a system set to dark,
   then dark again for a chosen dark. The two dark blocks must stay identical
   (the same rule as the app; see CLAUDE.md). Token names match
   project-bookshelf/public/styles.css. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
/* The cue cards' handwriting face, and nothing else. */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/caveat-700.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --bg: #faf8f4;
  --bg-tint: #f2ece1;
  --surface: #ffffff;
  --surface-2: #f6f3ed;
  --border: #e8e3d9;
  --text: #232019;
  --text-2: #6d6659;
  --text-3: #9c9484;
  --accent: #3d7ea6;
  --accent-2: #2f6485;
  --accent-soft: rgba(61, 126, 166, 0.12);
  --on-accent: #ffffff;

  /* The eight task hues the app uses for cards. Every coloured thing on this
     page comes from these, not from a separate marketing palette. */
  --hue-0: #c05a63;
  --hue-1: #c1794a;
  --hue-2: #b08b36;
  --hue-3: #5f8f60;
  --hue-4: #3e8d88;
  --hue-5: #4c7ea6;
  --hue-6: #6f6ba6;
  --hue-7: #a05e92;

  /* Done / ready / blocked have their own inks in the app, deliberately apart
     from the task hues (a task's colour means nothing; these mean a state,
     and were checked with a colour-vision validator). Copied from
     project-bookshelf/public/styles.css. */
  --state-done: #008572;
  --state-ready: #7a64c4;
  --state-blocked: #c97a34;

  --glass: rgb(255 252 246 / 60%);
  --glass-strong: rgb(255 253 249 / 82%);
  --glass-edge: rgb(255 255 255 / 88%);
  --glass-line: rgb(35 32 25 / 8%);
  --glass-sheen: rgb(255 255 255 / 70%);
  --glass-shadow: 0 1px 2px rgb(35 32 25 / 5%), 0 12px 32px -8px rgb(90 64 30 / 14%),
    0 40px 80px -24px rgb(90 64 30 / 16%);
  --glass-shadow-lg: 0 2px 4px rgb(35 32 25 / 5%), 0 24px 60px -12px rgb(90 64 30 / 22%),
    0 80px 120px -40px rgb(90 64 30 / 24%);

  --blob-a: rgb(76 126 166 / 34%);
  --blob-b: rgb(193 121 74 / 28%);
  --blob-c: rgb(160 94 146 / 22%);
  --rule-line: rgb(35 32 25 / 6%);
  --grain: 0.3;

  --shadow-sm: 0 1px 3px rgba(35, 32, 25, 0.07), 0 1px 2px rgba(35, 32, 25, 0.04);

  --vcnet-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #17150f;
    --bg-tint: #221d14;
    --surface: #211e17;
    --surface-2: #2a261e;
    --border: #322d24;
    --text: #f0ebe1;
    --text-2: #a89f8e;
    --text-3: #766e5f;
    --accent: #6fa8cd;
    --accent-2: #8dbcdb;
    --accent-soft: rgba(111, 168, 205, 0.16);
    --on-accent: #0c1620;

    --hue-0: #e37a81;
    --hue-1: #c77f4f;
    --hue-2: #af8b35;
    --hue-3: #6b9c6c;
    --hue-4: #4f9e98;
    --hue-5: #6c9fc8;
    --hue-6: #a09cdb;
    --hue-7: #ce89bf;

  --state-done: #38a38f;
  --state-ready: #927ddf;
  --state-blocked: #c87933;

    --glass: rgb(40 35 27 / 55%);
    --glass-strong: rgb(44 39 30 / 80%);
    --glass-edge: rgb(255 255 255 / 9%);
    --glass-line: rgb(255 255 255 / 7%);
    --glass-sheen: rgb(255 255 255 / 6%);
    --glass-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -8px rgb(0 0 0 / 50%),
      0 40px 80px -24px rgb(0 0 0 / 55%);
    --glass-shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 24px 60px -12px rgb(0 0 0 / 60%),
      0 80px 120px -40px rgb(0 0 0 / 55%);

    --blob-a: rgb(76 126 166 / 34%);
    --blob-b: rgb(199 127 79 / 22%);
    --blob-c: rgb(160 94 146 / 26%);
    --rule-line: rgb(240 235 225 / 5%);
    --grain: 0.4;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);

  --vcnet-filter: invert(1) hue-rotate(180deg);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #17150f;
  --bg-tint: #221d14;
  --surface: #211e17;
  --surface-2: #2a261e;
  --border: #322d24;
  --text: #f0ebe1;
  --text-2: #a89f8e;
  --text-3: #766e5f;
  --accent: #6fa8cd;
  --accent-2: #8dbcdb;
  --accent-soft: rgba(111, 168, 205, 0.16);
  --on-accent: #0c1620;

  --hue-0: #e37a81;
  --hue-1: #c77f4f;
  --hue-2: #af8b35;
  --hue-3: #6b9c6c;
  --hue-4: #4f9e98;
  --hue-5: #6c9fc8;
  --hue-6: #a09cdb;
  --hue-7: #ce89bf;

  --state-done: #38a38f;
  --state-ready: #927ddf;
  --state-blocked: #c87933;

  --glass: rgb(40 35 27 / 55%);
  --glass-strong: rgb(44 39 30 / 80%);
  --glass-edge: rgb(255 255 255 / 9%);
  --glass-line: rgb(255 255 255 / 7%);
  --glass-sheen: rgb(255 255 255 / 6%);
  --glass-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -8px rgb(0 0 0 / 50%),
    0 40px 80px -24px rgb(0 0 0 / 55%);
  --glass-shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 24px 60px -12px rgb(0 0 0 / 60%),
    0 80px 120px -40px rgb(0 0 0 / 55%);

  --blob-a: rgb(76 126 166 / 34%);
  --blob-b: rgb(199 127 79 / 22%);
  --blob-c: rgb(160 94 146 / 26%);
  --rule-line: rgb(240 235 225 / 5%);
  --grain: 0.4;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);

  --vcnet-filter: invert(1) hue-rotate(180deg);
}

/* data-hue="n" anywhere hands its subtree one task hue as --hue, so every
   component below paints with var(--hue) and never needs a per-hue rule. */
[data-hue="0"] { --hue: var(--hue-0); }
[data-hue="1"] { --hue: var(--hue-1); }
[data-hue="2"] { --hue: var(--hue-2); }
[data-hue="3"] { --hue: var(--hue-3); }
[data-hue="4"] { --hue: var(--hue-4); }
[data-hue="5"] { --hue: var(--hue-5); }
[data-hue="6"] { --hue: var(--hue-6); }
[data-hue="7"] { --hue: var(--hue-7); }

/* ---------- Scale ---------- */

:root {
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --display: "Nunito", "Inter", system-ui, sans-serif;
  --hand: "Caveat", var(--sans);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 76rem;
  --gutter: clamp(16px, 4vw, 40px);
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

/* The hero halo is a rotating square, so mid-turn its box pokes past the
   viewport and a phone would zoom out to fit it. clip rather than hidden:
   it cuts the overflow without making main a scroll container. */
main {
  overflow-x: clip;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* The one gradient on the page: accent blue into the app's task green. */
.accent-text {
  background: linear-gradient(100deg, var(--accent), var(--hue-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* The descender of a y would be clipped by the line box otherwise. */
  padding-bottom: 0.08em;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/*
 * The mark, traced from illgati-logo.png: a bullet-list motif in white over a
 * four-corner gradient that turns behind it. See project-bookshelf's
 * .claude/brand.md -- this treatment must stay byte-for-byte the same as the
 * app's so the two sites read as one product. Size it with --mark-size from
 * outside (see .mark-lg), never by editing these rules.
 */
.mark {
  --mark-size: 28px;
  position: relative;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: none;
  overflow: hidden;
  border-radius: calc(var(--mark-size) * 0.25);
  box-shadow: var(--shadow-sm);
  background: #7969a2;
}
.mark::before {
  content: "";
  position: absolute;
  inset: -70%;
  background: conic-gradient(
    from 315deg,
    #a85d88 0deg,
    #bd7d46 90deg,
    #9d8c40 135deg,
    #578e69 180deg,
    #547aa6 270deg,
    #7969a2 315deg,
    #a85d88 360deg
  );
  animation: mark-turn 18s linear infinite;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 0;
  /*
   * A same-origin file, not an inline data: URI -- this page's CSP is
   * img-src 'self' with no data: allowance (see public/_headers), so a
   * data: background-image here would be silently dropped by the browser,
   * leaving the mark's animated gradient with nothing drawn over it.
   */
  background-image: url("/mark-motif.svg");
  background-size: 100% 100%;
}
@keyframes mark-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mark::before {
    animation: none;
  }
}

.mark-lg {
  --mark-size: 72px;
  box-shadow: 0 20px 40px -12px rgb(121 105 162 / 55%);
  animation: hover 6s ease-in-out infinite;
}

/*
 * The wordmark: a mask over a painted box, not an image, so it inks with
 * --text and survives the theme swap. 223 x 97 is the traced lettering's
 * fixed aspect ratio -- see brand.md.
 */
.wordmark {
  --wordmark-h: 22px;
  display: block;
  height: var(--wordmark-h);
  width: calc(var(--wordmark-h) * 2.299);
  overflow: hidden;
  text-indent: -200px;
  white-space: nowrap;
  background-color: var(--text);
  -webkit-mask-image: url("/illgati-wordmark.svg");
  mask-image: url("/illgati-wordmark.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ---------- Glass ---------- */

/* The backdrop behind every panel is already soft (gradients, no detail to
   blur), so most glass is a translucent fill and a sheen, which costs nothing
   to scroll. A live backdrop blur is re-sampled every frame something moves
   behind it, so it is kept to the few pieces that float over real content:
   the nav, pills and glass buttons. */
.glass {
  position: relative;
  background:
    linear-gradient(145deg, var(--glass-sheen), transparent 42%),
    var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-sheen),
    var(--glass-shadow);
}

/* ---------- Backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-tint), var(--bg) 70%);
}

.aurora {
  position: absolute;
  inset: -20%;
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-a {
  width: 64vw;
  height: 64vw;
  left: 0%;
  top: -6%;
  background: radial-gradient(closest-side, var(--blob-a), transparent);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.blob-b {
  width: 56vw;
  height: 56vw;
  right: -2%;
  top: 8%;
  background: radial-gradient(closest-side, var(--blob-b), transparent);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.blob-c {
  width: 60vw;
  height: 60vw;
  left: 26%;
  top: 38%;
  background: radial-gradient(closest-side, var(--blob-c), transparent);
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate(18vw, 12vh) scale(1.15);
  }
}
@keyframes drift-b {
  to {
    transform: translate(-22vw, 18vh) scale(0.9);
  }
}
@keyframes drift-c {
  to {
    transform: translate(-14vw, -20vh) scale(1.2);
  }
}

/* Ruled lines, faded out toward the edges: the notebook the mark's bullet list
   is written in. Where utucat draws its mark's grid, this draws its page. */
.rules {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule-line) 31px 32px);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
}

.grain {
  position: absolute;
  inset: 0;
  background: url("/noise.svg") 0 0 / 200px 200px repeat;
  opacity: calc(var(--grain) * 0.45);
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px var(--gutter) 0;
}

.nav-inner {
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.nav:not([data-scrolled]) .nav-inner {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--glass-line);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* A two-state override on top of the system default: one click flips what
   you see and pins it (script.js); there is no third "back to auto" state on
   purpose -- this is a marketing page, not the app's settings panel. */
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--glass-line);
}
.icon-btn .i {
  width: 20px;
  height: 20px;
}
.i-moon {
  display: none;
}
:root[data-theme="dark"] .i-sun {
  display: none;
}
:root[data-theme="dark"] .i-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .i-moon {
    display: block;
  }
}

@media (max-width: 52rem) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.88rem;
}
.btn-lg {
  min-height: 54px;
  padding: 0 1.6rem;
  font-size: 1.02rem;
}

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, rgb(255 255 255 / 16%), transparent 55%), var(--accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 26%),
    0 1px 2px rgb(0 0 0 / 12%),
    0 10px 28px -8px var(--accent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgb(255 255 255 / 16%), transparent 55%), var(--accent-2);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 26%),
    0 1px 2px rgb(0 0 0 / 12%),
    0 16px 36px -8px var(--accent);
}
.btn-primary .i {
  transition: transform 0.3s var(--spring);
}
.btn-primary:hover .i {
  transform: translateX(3px);
}

.btn-glass {
  color: var(--text);
  background: var(--glass);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 var(--glass-sheen), 0 6px 20px -8px rgb(90 64 30 / 22%);
}
.btn-glass:hover {
  background: var(--glass-strong);
  transform: translateY(-1px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
}
.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue-3);
}
.pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--hue-3);
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes hover {
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Reveal ---------- */

html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
html:not(.no-js) .reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) {
  --delay: 0.08s;
}
.reveal:nth-child(3) {
  --delay: 0.16s;
}
.reveal:nth-child(4) {
  --delay: 0.24s;
}
.reveal:nth-child(5) {
  --delay: 0.32s;
}
.reveal:nth-child(6) {
  --delay: 0.4s;
}

/* Loops only run while their section is on screen. */
.card-art *,
.local-stage *,
.hero-scene *,
.ticker-track,
.beta * {
  animation-play-state: paused;
}
.in-view .card-art *,
.in-view .local-stage *,
.hero-scene.in-view *,
.ticker.in-view .ticker-track,
.beta.in-view * {
  animation-play-state: running;
}

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

.hero {
  --mx: 0;
  --my: 0;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 10rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: min(100vh, 58rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-sub {
  max-width: 34rem;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9rem;
}
.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-proof .i {
  color: var(--hue-3);
  stroke-width: 2.4;
}

/* The scene. Each layer moves with the pointer by its own depth (--d, set
   from data-depth by script.js), which is what makes it read as layered. */

.hero-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(30rem, 58vh, 36rem);
}

[data-depth] {
  --d: 0;
  translate: calc(var(--mx) * var(--d) * 26px) calc(var(--my) * var(--d) * 22px);
  transition: translate 0.6s var(--ease);
}

.halo {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 40% 38%, color-mix(in srgb, var(--hue-1) 34%, transparent), transparent),
    radial-gradient(closest-side at 62% 66%, color-mix(in srgb, var(--hue-3) 30%, transparent), transparent),
    radial-gradient(closest-side at 64% 30%, color-mix(in srgb, var(--hue-0) 22%, transparent), transparent);
  animation: spin 22s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

/* ---------- The cue cards ----------
   Three oversized note cards telling the "you have a lot to do" story, joined
   by hand-drawn connectors. Each card's accent bar is a task hue from the app.
   The third (.cue-card-punch) is the payoff: tinted, bigger, and the most
   settled of the three. */

.cue-stack {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, 30rem);
  display: flex;
  flex-direction: column;
}

/*
 * Each card keeps a small resting tilt in --tilt. The hidden and revealed
 * states both read it, so the reveal only animates position and opacity --
 * animating rotate back to 0 would flatten every card as it arrived. The
 * pointer parallax uses the separate `translate` property, so the two never
 * fight over `transform`.
 */
.cue-card {
  --tilt: -2.2deg;
  position: relative;
  width: 84%;
  padding: 1.4rem 1.8rem 1.4rem 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--surface-2)));
  box-shadow: var(--glass-shadow-lg);
  font: 700 clamp(1.4rem, 2.4vw, 1.95rem) / 1.2 var(--hand);
  letter-spacing: 0.01em;
  transform: rotate(var(--tilt));
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s),
    opacity 0.6s ease-out var(--delay, 0s),
    translate 0.6s var(--ease);
}
.cue-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 6px;
  border-radius: 3px;
  background: var(--hue);
  box-shadow: 0 0 16px color-mix(in srgb, var(--hue) 60%, transparent);
}
/* Faint ruled lines plus a paper grain, both barely there: a cue card, not a
   lined notepad. A same-origin file, not a data: URI; see .mark::after. */
.cue-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0 26px,
      color-mix(in srgb, var(--text) 8%, transparent) 26px 27px,
      transparent 27px 28px
    ),
    url("/paper-texture.svg");
  background-size: auto, 160px 160px;
}
.cue-card p {
  position: relative;
  z-index: 1;
}

.cue-1 {
  align-self: flex-start;
}
.cue-2 {
  --tilt: 2.4deg;
  --delay: 0.45s;
  align-self: flex-end;
}
.cue-3 {
  --tilt: -0.6deg;
  --delay: 0.9s;
  align-self: center;
}
.cue-c1 {
  --delay: 0.2s;
}
.cue-c2 {
  --delay: 0.65s;
}

.cue-card-punch {
  width: 92%;
  padding: 1.7rem 2rem 1.7rem 2.2rem;
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  border-color: color-mix(in srgb, var(--hue) 40%, var(--border));
  background: linear-gradient(155deg, color-mix(in srgb, var(--hue) 16%, var(--surface)), var(--surface));
}

.cue-connector {
  display: block;
  width: 120px;
  height: 64px;
  margin: 4px auto;
}
.cue-connector svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* Each arrow takes the colour of the card it points into. */
.cue-connector-path,
.cue-connector-head {
  fill: none;
  stroke: var(--hue);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

/* Hidden until script.js reveals them. Without script (.no-js stays on) or
   with no IntersectionObserver, none of this applies and everything shows. */
html:not(.no-js) .cue-card {
  opacity: 0;
  transform: translateY(28px) rotate(var(--tilt));
}
html:not(.no-js) .cue-card.cue-reveal {
  opacity: 1;
  transform: rotate(var(--tilt));
}
/* The dash must stay longer than the path's rendered length, or the dash-gap
   pattern cuts the curve short and it draws as a stray tick. 600 is a safe
   margin at this scale; re-check by eye if the path geometry changes. */
html:not(.no-js) .cue-connector-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1s ease-out var(--delay, 0s);
}
html:not(.no-js) .cue-connector-head {
  opacity: 0;
  transition: opacity 0.2s ease-out calc(var(--delay, 0s) + 0.8s);
}
html:not(.no-js) .cue-connector.cue-reveal .cue-connector-path {
  stroke-dashoffset: 0;
}
html:not(.no-js) .cue-connector.cue-reveal .cue-connector-head {
  opacity: 0.85;
}

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
  }
  .hero-copy {
    align-items: center;
  }
  .hero-sub {
    margin: 0 auto;
  }
  .hero-ctas,
  .hero-proof {
    justify-content: center;
  }
  .hero-scene {
    min-height: 0;
    padding-block: 1rem;
  }
}
@media (max-width: 30rem) {
  .cue-card {
    width: 92%;
    padding: 1.1rem 1.3rem 1.1rem 1.6rem;
  }
  .cue-card-punch {
    width: 100%;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  padding: 1.4rem 0;
  border-block: 1px solid var(--glass-line);
  background: var(--glass);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.ticker span {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-2);
  opacity: 0.75;
  white-space: nowrap;
}
.ticker i {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 4px;
  background: var(--hue);
  opacity: 0.8;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 6vh, 4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  text-wrap: balance;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.lede {
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  max-width: 38rem;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 var(--glass-sheen),
    var(--glass-shadow-lg);
}

.card-nest {
  grid-column: span 3;
  grid-row: span 2;
}
.card-link,
.card-views {
  grid-column: span 3;
}
.card-status,
.card-colour,
.card-missing {
  grid-column: span 2;
}

.card-copy {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.card-copy h3 {
  font-size: 1.4rem;
  font-weight: 800;
}
.card-copy p {
  color: var(--text-2);
  font-size: 0.97rem;
}
.step {
  font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.card-art {
  position: relative;
  min-height: 190px;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(90% 90% at 50% 100%, var(--accent-soft), transparent 70%);
  border-bottom: 1px solid var(--glass-line);
  overflow: hidden;
}

@media (max-width: 64rem) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-nest {
    grid-column: span 2;
    grid-row: auto;
  }
  .card-link,
  .card-views,
  .card-status,
  .card-colour {
    grid-column: span 1;
  }
  .card-missing {
    grid-column: span 2;
  }
}
@media (max-width: 40rem) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento > .card {
    grid-column: auto;
  }
}

/* A task row the way the app draws one: a card with its hue on the left. */
.row,
.mini-card,
.seq-row,
.prow,
.next-up {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--glass-line);
  box-shadow: 0 6px 16px -10px rgb(60 40 10 / 35%);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.row::before,
.mini-card::before,
.seq-row::before,
.prow::before,
.next-up::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 2px;
  background: var(--hue);
}

/* Nest art: a new row types in, then Tab tucks it under the one above. */

.art-nest {
  min-height: 300px;
}
.outline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 300px);
}
.row {
  width: max-content;
  max-width: 100%;
}
.lvl-1 {
  margin-left: 26px;
}
.lvl-2 {
  margin-left: 52px;
}
.row-new {
  animation: tuck 6s var(--ease) infinite;
}
@keyframes tuck {
  0%,
  8% {
    opacity: 0;
    transform: translate(-26px, 6px);
  }
  18%,
  44% {
    opacity: 1;
    transform: translateX(-26px);
  }
  54%,
  88% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: none;
  }
}
.key {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  background: var(--surface-2);
  color: var(--text-2);
  font: 700 0.66rem/1.5 var(--sans);
  animation: keypress 6s var(--ease) infinite;
}
@keyframes keypress {
  0%,
  30% {
    opacity: 0;
    transform: scale(0.8);
  }
  36%,
  46% {
    opacity: 1;
    transform: none;
  }
  49% {
    transform: translateY(1px) scale(0.94);
  }
  54%,
  62% {
    opacity: 1;
    transform: none;
  }
  70%,
  100% {
    opacity: 0;
  }
}

/* Link art: a wire draws in, the second card is blocked, the first gets
   ticked off, and the second turns ready. */

.link-stage {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 2 / 1;
}
.link-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.link-wire path {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.75;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: wire 7s var(--ease) infinite;
}
@keyframes wire {
  0%,
  6% {
    stroke-dashoffset: 400;
    opacity: 1;
  }
  24%,
  90% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  98%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
.mini-card {
  position: absolute;
}
.mini-a {
  left: 0;
  top: calc(22.7% - 17px);
  width: 43%;
}
.mini-b {
  left: 50.6%;
  top: calc(77.3% - 17px);
}
.tick {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  background: url("/check-icon.svg") center / 9px 9px no-repeat, transparent;
  background-color: transparent;
  animation: tick 7s var(--ease) infinite;
}
@keyframes tick {
  0%,
  50% {
    background-color: transparent;
    border-color: var(--text-3);
  }
  54%,
  92% {
    background-color: var(--state-done);
    border-color: var(--state-done);
  }
  100% {
    background-color: transparent;
  }
}
.state {
  position: absolute;
  top: -11px;
  right: -8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
}
.state-blocked {
  background: var(--state-blocked);
  animation: state-blocked 7s var(--ease) infinite;
}
.state-ready {
  background: var(--state-ready);
  animation: state-ready 7s var(--ease) infinite;
}
@keyframes state-blocked {
  0%,
  22% {
    opacity: 0;
    transform: scale(0.8);
  }
  28%,
  52% {
    opacity: 1;
    transform: none;
  }
  56%,
  100% {
    opacity: 0;
  }
}
@keyframes state-ready {
  0%,
  54% {
    opacity: 0;
    transform: scale(0.8);
  }
  60%,
  90% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
  }
}

/* Views art: the same three tasks, re-ordered when the toggle flips. */

.art-views {
  align-content: center;
  gap: 16px;
}
.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 220px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}
.seg span:not(.seg-thumb) {
  position: relative;
  padding: 5px 0;
}
.seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 8px -2px rgb(60 40 10 / 25%);
  animation: seg 8s var(--ease) infinite;
}
@keyframes seg {
  0%,
  40% {
    transform: none;
  }
  50%,
  90% {
    transform: translateX(100%);
  }
  100% {
    transform: none;
  }
}
.seq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 220px;
}
.seq-row {
  height: 34px;
  width: max-content;
}
.seq-1 {
  animation: seq-down 8s var(--ease) infinite;
}
.seq-2 {
  animation: seq-up 8s var(--ease) infinite;
}
@keyframes seq-down {
  0%,
  40%,
  100% {
    transform: none;
  }
  50%,
  90% {
    transform: translateY(42px);
  }
}
@keyframes seq-up {
  0%,
  40%,
  100% {
    transform: translateX(22px);
  }
  50%,
  90% {
    transform: translateY(-42px);
  }
}

/* Status art */

.art-status {
  align-content: center;
  gap: 14px;
}
.status-bar {
  display: flex;
  gap: 3px;
  width: min(100%, 240px);
  height: 10px;
}
.status-bar span {
  border-radius: 5px;
  transform-origin: left;
  animation: grow 7s var(--ease) infinite;
}
.sb-done {
  flex: 12;
  background: var(--state-done);
}
.sb-ready {
  flex: 4;
  background: var(--state-ready);
  animation-delay: 0.15s;
}
.sb-blocked {
  flex: 2;
  background: var(--state-blocked);
  animation-delay: 0.3s;
}
@keyframes grow {
  0%,
  5% {
    transform: scaleX(0);
  }
  25%,
  90% {
    transform: none;
  }
  100% {
    transform: scaleX(0);
  }
}
.status-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: color-mix(in srgb, var(--c) 70%, var(--text));
}
.chip b {
  margin-left: 2px;
}
.next-up {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 16px;
}
.next-up small {
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip-done {
  --c: var(--state-done);
}
.chip-ready {
  --c: var(--state-ready);
}
.chip-blocked {
  --c: var(--state-blocked);
}

/* Colour art: a selection ring walks the eight hues. */

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 12px;
}
.swatches span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%);
  animation: pick 8s var(--ease) infinite;
}
.swatches span:nth-child(2) { animation-delay: 1s; }
.swatches span:nth-child(3) { animation-delay: 2s; }
.swatches span:nth-child(4) { animation-delay: 3s; }
.swatches span:nth-child(5) { animation-delay: 4s; }
.swatches span:nth-child(6) { animation-delay: 5s; }
.swatches span:nth-child(7) { animation-delay: 6s; }
.swatches span:nth-child(8) { animation-delay: 7s; }
@keyframes pick {
  0%,
  14%,
  100% {
    transform: none;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%);
  }
  3%,
  11% {
    transform: scale(1.12);
    box-shadow:
      0 0 0 3px var(--surface),
      0 0 0 5px var(--hue);
  }
}

/* What's-missing art: the things other planners make you learn, struck out. */

.struck {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
}
.struck li {
  position: relative;
  width: max-content;
}
.struck li::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 2px;
  border-radius: 1px;
  background: var(--hue-0);
  transform-origin: left;
  animation: strike 7s var(--ease) infinite;
}
.struck li:nth-child(2)::after { animation-delay: 0.35s; }
.struck li:nth-child(3)::after { animation-delay: 0.7s; }
.struck li:nth-child(4)::after { animation-delay: 1.05s; }
@keyframes strike {
  0%,
  8% {
    transform: scaleX(0);
  }
  18%,
  88% {
    transform: none;
  }
  96%,
  100% {
    transform: scaleX(0);
  }
}

/* ---------- Demo ---------- */

.demo-section > .cue-connector {
  margin-bottom: 1.5rem;
}

.demo-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 var(--glass-sheen),
    var(--glass-shadow-lg);
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--glass-line);
}
.demo-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--hue-0);
  opacity: 0.6;
}
.demo-chrome span:nth-child(2) {
  background: var(--hue-2);
}
.demo-chrome span:nth-child(3) {
  background: var(--hue-3);
}
.demo-chrome b {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--glass-line);
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  /* Optically centred against the three dots on the left. */
  translate: -20px 0;
}
.demo-iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: var(--surface);
}
@media (max-width: 40rem) {
  .demo-iframe {
    height: 480px;
  }
  .demo-chrome b {
    display: none;
  }
}

.demo-fallback {
  margin-top: 14px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
}
.demo-fallback a {
  color: var(--accent-2);
}

/* ---------- Local-first ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ticks {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}
.ticks .i {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue-3) 16%, transparent);
  color: var(--hue-3);
  stroke-width: 2.6;
}

.local-stage {
  display: grid;
  grid-template-columns: 1fr auto 0.9fr;
  align-items: center;
  gap: 0.5rem;
}
.panel {
  padding: 1.1rem;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-here {
  transform: rotate(-2deg);
}
.panel-cloud {
  transform: rotate(2deg) translateY(20px);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prow b {
  margin-left: auto;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--glass-line);
  color: var(--text-2);
  font-size: 0.7rem;
}
.panel-note {
  margin-top: 2px;
  color: var(--text-3);
  font: 700 1.1rem/1.2 var(--hand);
}
.sync-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--glass-line);
  font-size: 0.82rem;
  font-weight: 600;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue-3) 22%, transparent);
}
.lapse {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--text-3);
  color: var(--text-2);
  font-size: 0.76rem;
  line-height: 1.4;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.flow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: flow 2.4s var(--ease) infinite;
}
.flow span:nth-child(2) {
  animation-delay: 0.3s;
}
.flow span:nth-child(3) {
  animation-delay: 0.6s;
}
@keyframes flow {
  0% {
    transform: translateX(-14px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(14px);
    opacity: 0;
  }
}

@media (max-width: 56rem) {
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 34rem) {
  .local-stage {
    grid-template-columns: 1fr;
  }
  .flow {
    flex-direction: row;
    justify-content: center;
    rotate: 90deg;
    height: 20px;
  }
  .panel-here,
  .panel-cloud {
    transform: none;
  }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 56rem) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin: 0 auto;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--r-lg);
  transition: transform 0.5s var(--ease);
}
.price-card:hover {
  transform: translateY(-3px);
}
.price-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
}
.price-tag {
  margin: 0.25rem 0 0.75rem;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
}
.price-desc {
  margin-bottom: 1.25rem;
  color: var(--text-2);
  font-size: 0.93rem;
}
.feature-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 11px;
  flex: 1;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
}
/* The check is literally white on purpose: it sits on a solid accent disc,
   not on the page, so the disc is what follows the theme. Same-origin file
   rather than a data: URI; see .mark::after. */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent) url("/check-icon.svg") center / 10px 10px no-repeat;
}
.price-card .btn {
  width: 100%;
}

.price-card-featured {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-edge));
  background:
    radial-gradient(80% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(145deg, var(--glass-sheen), transparent 42%),
    var(--glass-strong);
  box-shadow:
    inset 0 1px 0 var(--glass-sheen),
    var(--glass-shadow-lg);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  translate: -50% 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -6px var(--accent);
}

/* ---------- Beta ---------- */

.beta {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: clamp(28px, 4vw, 40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 var(--glass-sheen),
    var(--glass-shadow-lg);
}
.beta-glow {
  position: absolute;
  z-index: -1;
  inset: -50%;
  background:
    radial-gradient(closest-side at 30% 35%, var(--blob-a), transparent),
    radial-gradient(closest-side at 70% 40%, var(--blob-c), transparent),
    radial-gradient(closest-side at 50% 70%, var(--blob-b), transparent);
  animation: spin 18s linear infinite;
  opacity: 0.8;
}
.beta h2 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
}
.beta .btn {
  margin-top: 0.5rem;
}
.beta-foot {
  color: var(--text-2);
  font-size: 0.9rem;
}
.beta-foot a {
  color: var(--accent-2);
  font-weight: 600;
}

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

.footer {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--glass-line);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
/* "I'll Get Around To It": the joke, used once per page. */
.subline {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}
.footer-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}
.vcnet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.8rem;
  text-decoration: none;
}
.vcnet img {
  width: auto;
  height: 20px;
  filter: var(--vcnet-filter);
}
@media (max-width: 44rem) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    margin: 0;
  }
}

/* ---------- Motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html:not(.no-js) .reveal {
    opacity: 1;
    transform: none;
  }
  html:not(.no-js) .cue-card {
    opacity: 1;
    transform: rotate(var(--tilt));
  }
  html:not(.no-js) .cue-connector-path {
    stroke-dashoffset: 0;
  }
  html:not(.no-js) .cue-connector-head {
    opacity: 0.85;
  }
  .row-new {
    transform: none;
  }
  .key {
    display: none;
  }
  .link-wire path {
    stroke-dashoffset: 0;
  }
  .state-ready {
    opacity: 1;
  }
  .tick {
    background-color: var(--state-done);
    border-color: var(--state-done);
  }
  [data-depth] {
    translate: none;
  }
}
