/* SoundFigure, soundfigure.com: one stylesheet for every page.
   Layout: left-aligned copy in a 1180px column; the playable stages (the home page's flip,
   Nightfall's playground, KeyLens's key finder) are the one bold element on each page.
   One look on purpose: the night sky of the plugins themselves, so there is no light theme. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/UnboundedBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGroteskMedium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGroteskBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* colour: the plugins' own night palette */
  --night: #0f1124;          /* page */
  --night-0: #0b0d1d;        /* wells: the lanes, the keyboard tray */
  --night-2: #151935;        /* raised surfaces: stages, cards */
  --night-3: #1d2247;        /* controls on a surface */
  --line: #2b3062;           /* hairlines */
  --ink: #ece9ff;            /* text */
  --mist: #a9a7c9;           /* secondary text */
  --faint: #757499;          /* tertiary text */
  --violet: #8f7ff7;         /* Nightfall */
  --violet-2: #b9aeff;       /* violet for text and fills on night */
  --gold: #ebbc70;           /* actions, the playhead */
  --gold-2: #f3d39c;
  --teal: #59cfc3;           /* KeyLens */
  --teal-2: #9be6dd;
  --good: #5ccf8e;           /* KeyLens's "very likely" */
  --bad: #ec7a8c;
  --on-gold: #1a1530;        /* text on gold */
  --accent: var(--violet);
  --accent-2: var(--violet-2);
  --accent-rgb: 143, 127, 247;
  /* type */
  --display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --text: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  --step-4: clamp(2.3rem, 0.9rem + 5.6vw, 5.2rem);
  /* layout */
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

.page-keylens { --accent: var(--teal); --accent-2: var(--teal-2); --accent-rgb: 89, 207, 195; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; background: var(--night); }

/* ---- motion: what changes, changes smoothly -------------------------------------------------- */

:root { --ease: cubic-bezier(.2, .7, .2, 1); --quick: .22s; }
/* going from page to page, the page fades through and the header stays put (where browsers can) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: .16s ease-in both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { from { opacity: .3; transform: scale(.6); } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent-2); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); line-height: 1.08; }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }

.muted { color: var(--mist); }
.small { font-size: var(--step--1); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--mist); max-width: 38rem; }
.lead strong { color: var(--ink); font-weight: 500; }

/* a value still to fill in before launch (draft builds only) */
.todo { outline: 1.5px dashed var(--gold); outline-offset: 2px; border-radius: 4px; }
.btn.todo { outline-offset: 3px; border-radius: 999px; }

/* ---- header --------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(15, 17, 36, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(43, 48, 98, 0.7);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
/* the logo: the mark (img/soundfigure-mark.svg), then the title (img/soundfigure-wordmark.svg, the
   artwork's Unbounded lettering with the gold dot) at the size the title has always had */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; border-radius: 8px; }
.brand img { display: block; width: auto; }
.brand-mark { height: 26px; }
.brand-name { height: 1.04rem; }
.nav { display: flex; align-items: center; gap: clamp(2px, 1.2vw, 14px); }
.nav a { color: var(--mist); text-decoration: none; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 0.97rem; transition: color var(--quick) ease, background-color var(--quick) ease; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--night-3); }
/* All Access stands out: a pill in both plugins' colours */
.nav a.nav-aa {
  color: var(--ink); border: 1px solid transparent; padding-inline: 14px;
  background:
    linear-gradient(100deg, rgba(143, 127, 247, 0.26), rgba(89, 207, 195, 0.2)) padding-box,
    linear-gradient(var(--night), var(--night)) padding-box,
    linear-gradient(100deg, rgba(143, 127, 247, 0.95), rgba(89, 207, 195, 0.9)) border-box;
  transition: color var(--quick) ease, box-shadow var(--quick) ease;
}
.nav a.nav-aa:hover { box-shadow: 0 0 0 3px rgba(116, 167, 221, 0.18), 0 6px 18px -8px rgba(116, 167, 221, 0.8); }
.nav a.nav-aa[aria-current="page"] {
  background:
    linear-gradient(100deg, rgba(143, 127, 247, 0.5), rgba(89, 207, 195, 0.42)) padding-box,
    linear-gradient(var(--night), var(--night)) padding-box,
    linear-gradient(100deg, rgba(143, 127, 247, 0.95), rgba(89, 207, 195, 0.9)) border-box;
}
/* Account, at the end (from launch): a person with the word beside it. Five links don't fit a
   phone, so there Support and Account are icons alone, a question mark and a person. */
.nav a.nav-acct, .nav a.nav-help { display: inline-flex; align-items: center; gap: 7px; }
.nav-acct .i, .nav-help .i { width: 18px; height: 18px; flex: none; }
.nav-help .i { display: none; }
@media (max-width: 480px) {
  .brand .brand-name { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 6px; font-size: 0.9rem; }
  .nav a.nav-aa { padding-inline: 10px; margin-inline: 2px; }
  .site-header.with-acct .wrap { gap: 8px; }
  .with-acct .nav a { padding: 8px 5px; font-size: 0.86rem; }
  .with-acct .nav a.nav-aa { padding-inline: 9px; margin-inline: 1px; }
  .with-acct .nav a.nav-acct, .with-acct .nav a.nav-help { padding: 8px 6px; }
  .with-acct .nav-acct span, .with-acct .nav-help span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .with-acct .nav-acct .i, .with-acct .nav-help .i { display: block; width: 20px; height: 20px; }
}
@media (max-width: 370px) {
  .nav a { padding: 8px 4px; font-size: 0.84rem; } .nav a.nav-aa { padding-inline: 8px; }
  .with-acct .nav a { padding: 8px 4px; font-size: 0.82rem; } .with-acct .nav a.nav-aa { padding-inline: 8px; }
  .with-acct .nav a.nav-acct, .with-acct .nav a.nav-help { padding: 8px 5px; }
}

/* ---- buttons -------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); color: var(--on-gold); }
.btn-line { border-color: rgba(var(--accent-rgb), 0.5); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--accent-2); color: var(--ink); background: rgba(var(--accent-rgb), 0.08); }
.btn .sep { opacity: 0.45; font-weight: 500; }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: 0.93rem; gap: 8px; }
.btn-bad { background: rgba(236, 122, 140, 0.14); border-color: rgba(236, 122, 140, 0.65); color: #ffd3da; }
.btn-bad:hover { background: rgba(236, 122, 140, 0.26); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { opacity: 0.85; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 420px) { .actions .btn { flex: 1 1 100%; } }
.text-link { color: var(--accent-2); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.text-link:hover { color: var(--ink); }

/* before launch (build.py --soon): where the buy and trial buttons go, a status rather than a button */
.soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; cursor: default;
  border: 1.5px solid rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.1);
  color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.2;
}
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(235, 188, 112, 0.18); }
.notify a { color: var(--accent-2); font-weight: 700; }
.notify a:hover { color: var(--ink); }

/* ---- price ---------------------------------------------------------------------------------- */

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.price .now { font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.1rem); line-height: 1; letter-spacing: -0.02em; }
.price .then { color: var(--ink); font-size: 1rem; }
.price .note { flex-basis: 100%; color: var(--mist); font-size: var(--step--1); }

/* ---- sections ------------------------------------------------------------------------------- */

.section { padding-block: var(--section) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 46rem; }
.section-head p { color: var(--mist); font-size: var(--step-1); line-height: 1.5; }
.page-end { padding-bottom: var(--section); }

/* the night sky behind heroes: a few star layers and the haze of each product's colour, fading
   into the page at the bottom */
.sky {
  isolation: isolate;
  position: relative;
  background:
    radial-gradient(60% 70% at 12% 100%, rgba(143, 127, 247, 0.22), transparent 70%),
    radial-gradient(45% 55% at 92% 20%, rgba(89, 207, 195, 0.08), transparent 70%),
    var(--night);
}
.page-keylens .sky {
  background:
    radial-gradient(60% 70% at 88% 100%, rgba(89, 207, 195, 0.16), transparent 70%),
    radial-gradient(45% 55% at 8% 10%, rgba(143, 127, 247, 0.1), transparent 70%),
    var(--night);
}
.sky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 24px 38px, rgba(236, 233, 255, 0.55), transparent 60%) 0 0 / 230px 190px,
    radial-gradient(1px 1px at 140px 92px, rgba(236, 233, 255, 0.35), transparent 60%) 0 0 / 230px 190px,
    radial-gradient(1px 1px at 70px 150px, rgba(236, 233, 255, 0.28), transparent 60%) 0 0 / 230px 190px,
    radial-gradient(1.4px 1.4px at 300px 60px, rgba(243, 211, 156, 0.4), transparent 60%) 0 0 / 410px 330px,
    radial-gradient(1px 1px at 210px 260px, rgba(236, 233, 255, 0.3), transparent 60%) 0 0 / 410px 330px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 14vw, 180px); z-index: -1;
  background: linear-gradient(to bottom, rgba(15, 17, 36, 0), var(--night)); pointer-events: none;
}

/* behind every page, a low glow on the horizon that sinks and fades as you scroll down: night falls */
.page { position: relative; isolation: isolate; overflow-x: clip; }   /* (things sliding in from the side never widen the page) */
.page::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(110% 50% at 50% 112%, rgba(var(--accent-rgb), 0.17), transparent 70%),
    radial-gradient(60% 34% at 18% 108%, rgba(235, 188, 112, 0.09), transparent 70%);
}

/* ---- home hero ------------------------------------------------------------------------------ */

.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.3rem, 0.9rem + 5.4vw, 4.5rem); line-height: 1.03; letter-spacing: -0.03em; }
.hero h1 span { display: block; color: var(--violet-2); }
.hero .lead { margin-top: 22px; }
.hero .stage { margin-top: clamp(30px, 5vw, 52px); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; margin-top: 18px; }
.hero-foot p { color: var(--mist); font-size: var(--step--1); }
.hero-foot .actions { gap: 8px 22px; }

/* ---- the stage: a playable loop (hero flip, use cases, playground) -------------------------- */

.stage {
  position: relative;
  background: linear-gradient(180deg, rgba(29, 34, 71, 0.78), rgba(21, 25, 53, 0.94));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(14px, 2.4vw, 24px);
  box-shadow: 0 30px 80px -40px rgba(var(--accent-rgb), 0.45);
}
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.stage-bar .grow { flex: 1 1 auto; }
.stage-note { margin-top: 12px; color: var(--mist); font-size: var(--step--1); }
.stage-error { margin-top: 10px; color: var(--gold-2); font-size: var(--step--1); animation: rise .3s var(--ease); }
.stage.mini { padding: 14px; border-radius: 20px; box-shadow: 0 24px 60px -36px rgba(var(--accent-rgb), 0.5); }
.stage.mini .label { color: var(--mist); font-size: 0.9rem; }
.stage.mini .label b { color: var(--ink); }

.play {
  width: 58px; height: 58px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--gold); color: var(--on-gold);
  box-shadow: 0 0 0 6px rgba(235, 188, 112, 0.12);
  transition: box-shadow .2s ease, background-color .15s ease;
}
.play:hover { background: var(--gold-2); box-shadow: 0 0 0 9px rgba(235, 188, 112, 0.16); }
.play svg { width: 24px; height: 24px; animation: pop .24s var(--ease); }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.play[aria-busy="true"] { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(235, 188, 112, 0.05); } }
/* until a stage has been heard, its play button breathes a gold ring, so it's clear where sound starts */
.stage:not(.heard):not(.mini) .play { animation: invite 2.4s ease-in-out infinite; }
@keyframes invite {
  0%, 100% { box-shadow: 0 0 0 6px rgba(235, 188, 112, 0.12); }
  50% { box-shadow: 0 0 0 14px rgba(235, 188, 112, 0.04), 0 0 0 6px rgba(235, 188, 112, 0.2); }
}
.play.small { width: 46px; height: 46px; box-shadow: 0 0 0 4px rgba(235, 188, 112, 0.12); }
.play.small svg { width: 19px; height: 19px; }

/* segmented switch: Dry | Nightfall, Keys | Bells */
.seg { position: relative; display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--night-0); border: 1px solid var(--line); }
.seg button {
  position: relative; z-index: 1;
  border: 0; background: transparent; color: var(--mist); cursor: pointer;
  min-height: 42px; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.97rem;
  transition: color .28s ease, background-color .28s ease;
}
.seg .thumb, .tabs .thumb {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; pointer-events: none;
  transition: transform .36s var(--ease), width .36s var(--ease), background-color .3s ease, opacity .2s ease;
}
.seg .thumb { background: var(--violet); box-shadow: 0 6px 18px -8px rgba(143, 127, 247, 0.8); }
.seg .thumb[data-tone="grey"] { background: #464a78; box-shadow: none; }
.seg.has-thumb button[aria-pressed="true"] { background: transparent !important; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.seg button[data-mode="dry"][aria-pressed="true"], .seg.plain button[aria-pressed="true"] { background: #464a78; color: #fff; }
.seg.small button { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }

/* preset chips (hero) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--mist); cursor: pointer;
  min-height: 40px; padding: 7px 15px; border-radius: 999px; font-weight: 500; font-size: 0.93rem;
  transition: color var(--quick) ease, border-color var(--quick) ease, background-color var(--quick) ease, transform .15s ease;
}
.chip:active, .tile:active, .chords button:active { transform: scale(.97); }
.chip:hover { color: var(--ink); border-color: rgba(var(--accent-rgb), 0.55); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: rgba(var(--accent-rgb), 0.16); }

/* the two lanes, In above Out, like Nightfall's slice view */
.lanes { display: block; width: 100%; height: 190px; margin-top: 16px; border-radius: 14px; background: var(--night-0); }
.lanes.short { height: 110px; margin-top: 12px; }
@media (max-width: 600px) { .lanes { height: 150px; } .lanes.short { height: 96px; } }

/* what's playing */
.now-playing { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-height: 2.2em; }
.now-playing .name { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.now-playing .what { color: var(--mist); max-width: 46rem; }

/* mix slider */
.mix { display: inline-flex; align-items: center; gap: 10px; color: var(--mist); font-size: 0.93rem; }
.mix input { width: clamp(110px, 16vw, 170px); accent-color: var(--gold); }
.mix output { min-width: 3.4ch; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---- product pair (home) -------------------------------------------------------------------- */

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.product {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(20px, 3vw, 32px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 0% 0%, rgba(143, 127, 247, 0.16), transparent 60%), var(--night-2);
  overflow: hidden;
}
.product.kl { background: radial-gradient(120% 80% at 100% 0%, rgba(89, 207, 195, 0.14), transparent 60%), var(--night-2); --accent-rgb: 89, 207, 195; --accent-2: var(--teal-2); }
.product .shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8); }
.product .shot img { width: 100%; aspect-ratio: 1600 / 1127; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }   /* both plugins' shots the same size */
.product .shot:hover img { transform: scale(1.025); }
.product .wordmark { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.product .tag { color: var(--mist); margin-top: -8px; }
.product .what { max-width: 32rem; }
.product .buyrow { margin-top: auto; display: grid; gap: 16px; padding-top: 6px; }
.product .price .now { font-size: 1.9rem; }

.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.wordmark.nf { color: var(--violet-2); text-shadow: 0 0 28px rgba(143, 127, 247, 0.45); }
.wordmark.kl { color: var(--teal-2); letter-spacing: -0.01em; text-shadow: 0 0 28px rgba(89, 207, 195, 0.35); }

/* ---- steps (a real sequence) ---------------------------------------------------------------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 22px 22px 6px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 22px; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); color: var(--gold); font-size: 1.4rem; margin-bottom: 12px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { color: var(--mist); font-size: 0.97rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .steps li:nth-child(odd) { padding-right: 18px; }
}
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.after-steps { margin-top: 22px; color: var(--mist); font-size: var(--step--1); max-width: 46rem; }

/* ---- product page hero ---------------------------------------------------------------------- */

.p-hero { padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 52px); }
.p-hero .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .p-hero .grid { grid-template-columns: minmax(0, 1fr); } }
.p-hero h1.wordmark { font-size: min(3.7rem, 10vw); }
.p-hero .tag { margin-top: 14px; font-size: var(--step-1); color: var(--ink); }
.p-hero .lead { margin-top: 12px; }
.p-hero .price { margin-top: 26px; }
.p-hero .actions { margin-top: 18px; }
.p-hero .fine { margin-top: 14px; color: var(--mist); font-size: var(--step--1); max-width: 34rem; }
.hero-shot img { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(var(--accent-rgb), 0.6), 0 20px 40px -20px rgba(0, 0, 0, 0.7); }

/* ---- playground ----------------------------------------------------------------------------- */

.deck-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.deck-top .grow { flex: 1 1 auto; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  width: 100%; height: 100%; text-align: left; cursor: pointer;
  display: grid; gap: 2px; align-content: start;
  padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--night-0);
  color: var(--ink);
  transition: border-color var(--quick) ease, background-color .3s ease, box-shadow .3s ease, transform .2s var(--ease);
}
.tile span { transition: color var(--quick) ease; }
.tile:hover { border-color: rgba(185, 174, 255, 0.55); transform: translateY(-2px); }
.tile[aria-pressed="true"] { border-color: var(--violet); background: rgba(143, 127, 247, 0.14); box-shadow: inset 0 0 0 1px var(--violet); }
.tile b { font-weight: 700; font-size: 0.98rem; }
.tile span { color: var(--mist); font-size: 0.85rem; line-height: 1.35; }
.tile[aria-pressed="true"] span { color: var(--ink); }

/* ---- use cases: alternating rows ------------------------------------------------------------ */

.cases { display: grid; gap: clamp(44px, 7vw, 88px); }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.case:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case:nth-child(even) .case-text { order: 2; }
@media (max-width: 860px) { .case, .case:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .case:nth-child(even) .case-text { order: 0; } }
.case h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; }
.case p { margin-top: 10px; color: var(--mist); max-width: 31rem; }
.case .uses { margin-top: 14px; font-size: var(--step--1); color: var(--faint); }
.case .uses b { color: var(--accent-2); font-weight: 700; }
.case-shot { justify-self: center; }
.case-shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(var(--accent-rgb), 0.55); }

/* ---- screenshots in tabs -------------------------------------------------------------------- */

.tabs { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.tabs button {
  position: relative; z-index: 1;
  flex: none; border: 1px solid var(--line); background: transparent; color: var(--mist); cursor: pointer;
  min-height: 42px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.93rem;
  transition: color .28s ease, border-color .28s ease, background-color .28s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--night); border-color: var(--ink); }
.tabs .thumb { background: var(--ink); }
.tabs.has-thumb button[aria-selected="true"] { background: transparent; border-color: transparent; }
.js-tabs .tabpanels { display: grid; }
.js-tabs .tabpanel {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s ease, transform .5s var(--ease), visibility 0s linear .4s;
}
.js-tabs .tabpanel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* the words don't overlap: the old ones go quickly, the new ones rise in once they've gone */
.js-tabs .tabpanel > div { transition: opacity .14s ease; }
.js-tabs .tabpanel:not(.is-active) > div { opacity: 0; }
.js-tabs .tabpanel.is-active h3, .js-tabs .tabpanel.is-active p { animation: rise .45s var(--ease) .14s backwards; }
.js-tabs .tabpanel.is-active p { animation-delay: .2s; }
.tabpanels { margin-top: 18px; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
@media (max-width: 900px) { .tabpanel { grid-template-columns: minmax(0, 1fr); } }
.tabpanel img { border-radius: 14px; border: 1px solid var(--line); }
.tabpanel h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.tabpanel p { margin-top: 10px; color: var(--mist); }

/* ---- facts ---------------------------------------------------------------------------------- */

.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 36px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts li { padding-left: 18px; border-left: 2px solid var(--accent); }
.facts b { display: block; font-size: 1.06rem; margin-bottom: 4px; }
.facts span { color: var(--mist); font-size: 0.97rem; }

/* ---- buy ------------------------------------------------------------------------------------ */

.buy {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 4vw, 48px); border-radius: 28px; border: 1px solid transparent;
  background:
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.85), rgba(235, 188, 112, 0.7)) border-box;
}
@media (max-width: 860px) { .buy { grid-template-columns: minmax(0, 1fr); } }
.buy h2 { font-size: var(--step-3); }
.buy .price { margin-top: 18px; }
.buy .actions { margin-top: 22px; }
.buy .fine { margin-top: 14px; color: var(--mist); font-size: var(--step--1); }
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--mist); }
.ticks li b { color: var(--ink); font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 3.5px, transparent 4px), rgba(235, 188, 112, 0.16);
}

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

.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--accent-2); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.faq summary { transition: color var(--quick) ease; }
.faq summary:hover { color: var(--accent-2); }
.faq details[open]:not(.closing) summary::after { transform: rotate(45deg); }
.faq-a { overflow: hidden; }
.faq details p { color: var(--mist); padding: 0 0 20px; max-width: 44rem; }
.req { margin-top: 26px; color: var(--mist); font-size: var(--step--1); max-width: 52rem; }
.req b { color: var(--ink); }

/* ---- All Access: every plugin, one subscription ----------------------------------------------
   Its colour is where Nightfall's violet and KeyLens's teal meet, used for the name, the borders
   of the All Access offers and this page's accent; gold stays for actions. */

.page-all { --accent: #74a7dd; --accent-2: #b4cef0; --accent-rgb: 116, 167, 221; }
.page-all .sky {
  background:
    radial-gradient(55% 70% at 6% 100%, rgba(143, 127, 247, 0.2), transparent 70%),
    radial-gradient(50% 65% at 96% 88%, rgba(89, 207, 195, 0.14), transparent 70%),
    var(--night);
}
.wordmark.aa {
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--violet-2) 8%, #b4cef0 50%, var(--teal-2) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(116, 167, 221, 0.35));
  width: fit-content;
}

/* the hero: price, the billing switch, and the two windows with room for the next plugin */
.aa-from { margin-top: 26px; color: var(--mist); font-size: var(--step-1); }
.aa-from b { font-family: var(--display); color: var(--ink); font-size: 1.45em; letter-spacing: -0.02em; }
.aa-stack { position: relative; width: 100%; max-width: 660px; justify-self: center; aspect-ratio: 16 / 12.6; }
.aa-win {
  position: absolute; width: 76%; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--night-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.aa-win img { width: 100%; aspect-ratio: 1600 / 1127; object-fit: cover; object-position: top; }
.aa-win.nf { left: 0; top: 0; z-index: 1; transform: rotate(-4deg); box-shadow: 0 34px 80px -38px rgba(143, 127, 247, 0.75), 0 18px 40px -22px rgba(0, 0, 0, 0.8); }
.aa-win.kl { right: 0; top: 23%; z-index: 2; transform: rotate(3deg); box-shadow: 0 34px 80px -38px rgba(89, 207, 195, 0.6), 0 18px 40px -22px rgba(0, 0, 0, 0.8); }
.aa-win:hover { transform: rotate(0deg) translateY(-6px); z-index: 4; }
.aa-next {
  position: absolute; left: 6%; bottom: 0; z-index: 3; transform: rotate(-2deg);
  display: grid; justify-items: center; gap: 1px; padding: 12px 20px 14px; text-align: center;
  border-radius: 16px; border: 1.5px dashed rgba(235, 188, 112, 0.65); background: rgba(11, 13, 29, 0.88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.aa-next .plus { font-family: var(--display); color: var(--gold); font-size: 1.5rem; line-height: 1; }
.aa-next b { font-size: 0.98rem; }
.aa-next span:last-child { color: var(--mist); font-size: 0.82rem; }
@media (max-width: 520px) { .aa-next { padding: 9px 14px 10px; } .aa-next b { font-size: 0.9rem; } }

/* the plans: Monthly and Yearly side by side, each with what's in it */
#plans { padding-top: clamp(40px, 6vw, 84px); }
.plans-head { display: grid; justify-items: center; gap: 18px; text-align: center; margin-bottom: clamp(26px, 4vw, 40px); }
.plan-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.plan-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 8px; border-radius: 999px;
  background: var(--night-2); border: 1px solid var(--line); font-size: 0.93rem;
}
.plan-chips .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--gold); color: var(--on-gold); stroke-width: 3; flex: none; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: clamp(16px, 2.6vw, 28px); }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 440px); } }
.plan {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 22px clamp(18px, 2.6vw, 28px) 24px; border-radius: 26px; border: 1px solid var(--line); background: var(--night-2);
}
.plan.best {
  border-color: transparent; box-shadow: 0 40px 90px -50px rgba(116, 167, 221, 0.75);
  background:
    radial-gradient(100% 50% at 50% 0%, rgba(116, 167, 221, 0.14), transparent 70%) padding-box,
    linear-gradient(var(--night-0), var(--night-0)) padding-box,
    linear-gradient(140deg, rgba(143, 127, 247, 0.95), rgba(89, 207, 195, 0.9)) border-box;
}
.plan-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 999px; background: var(--ink); color: var(--night); font-size: 0.8rem; font-weight: 700; line-height: 1.4;
}
.plan-badge.gold { background: var(--gold); color: var(--on-gold); padding-left: 8px; }
.plan-badge .i { width: 14px; height: 14px; fill: currentColor; stroke-width: 1.5; }
.plan h3 { margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); text-align: center; font-family: var(--display); font-size: var(--step-2); }
.plan-price { margin-top: 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan-price .amount { font-family: var(--display); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.plan-price .per { font-size: 1.05rem; }
.plan-billed { margin-top: 10px; min-height: 1.8em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--mist); font-size: var(--step--1); }
.plan-billed .save { padding: 2px 9px; border-radius: 6px; background: var(--violet); color: #fff; font-weight: 700; font-size: 0.78rem; }
.plan-go { margin-top: 20px; }
.plan-go .btn, .plan-go .soon { width: 100%; }
.plan-what { margin-top: 18px; color: var(--mist); font-size: var(--step--1); }
.plan-list { list-style: none; margin-top: 12px; display: grid; gap: 2px; }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.plan-list .pn { flex: 1 1 auto; min-width: 0; }
.plan-list .pi { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.plan-list .pi .i { width: 18px; height: 18px; }
.pi.nf { background: linear-gradient(145deg, #a597ff, #5a47d4); }
.pi.kl { background: linear-gradient(145deg, #86e2d9, #1d8279); }
.pi.new { background: rgba(235, 188, 112, 0.1); color: var(--gold); border: 1.5px dashed rgba(235, 188, 112, 0.65); }
.pi.up, .pi.pc { background: var(--night-3); color: var(--ink); }
.plan-list .tick { flex: none; width: 18px; height: 18px; color: var(--mist); }
#plans .notify, .plans-fine { margin-top: 18px; text-align: center; color: var(--mist); font-size: var(--step--1); }
#plans .notify + .plans-fine { margin-top: 6px; }

/* what's in it */
.aa-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .aa-in { grid-template-columns: minmax(0, 1fr); } }
.aa-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(20px, 3vw, 32px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 0% 0%, rgba(143, 127, 247, 0.16), transparent 60%), var(--night-2);
  --accent-rgb: 143, 127, 247; --accent-2: var(--violet-2);
}
.aa-card.kl { background: radial-gradient(120% 80% at 100% 0%, rgba(89, 207, 195, 0.14), transparent 60%), var(--night-2); --accent-rgb: 89, 207, 195; --accent-2: var(--teal-2); }
.aa-card .wordmark { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); }
.aa-card .tag { color: var(--mist); margin-top: -6px; }
.aa-card .what { max-width: 34rem; }
.aa-card .stage.mini .lanes.short { height: 168px; }
@media (max-width: 600px) { .aa-card .stage.mini .lanes.short { height: 120px; } }
.aa-card .alone { margin-top: auto; padding-top: 4px; color: var(--mist); font-size: var(--step--1); }
.aa-shot img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px -34px rgba(89, 207, 195, 0.5); }
.aa-card.next {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(16px, 3vw, 28px);
  background: rgba(11, 13, 29, 0.4); border: 1.5px dashed rgba(235, 188, 112, 0.5);
}
.aa-card.next .plus {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 2rem; color: var(--gold); background: rgba(235, 188, 112, 0.1);
}
.aa-card.next h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.aa-card.next p { color: var(--mist); margin-top: 6px; max-width: 44rem; }
@media (max-width: 520px) { .aa-card.next { flex-direction: column; align-items: flex-start; } }

/* buy outright, or All Access */
.compare-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--night-2); }
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.98rem; }
.compare th, .compare td { padding: 16px clamp(12px, 2.4vw, 24px); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--display); font-size: 1.02rem; padding-top: 20px; }
.compare thead td, .compare tbody th { width: 26%; }
.compare tbody th { color: var(--mist); font-weight: 500; }
.compare .aa { background: rgba(116, 167, 221, 0.08); }
.compare td small { display: block; margin-top: 4px; color: var(--mist); font-size: 0.84rem; }
.compare thead th.aa { color: #b4cef0; }
@media (max-width: 520px) { .compare { font-size: 0.88rem; } .compare thead td, .compare tbody th { width: 30%; } }

.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps.three { grid-template-columns: minmax(0, 1fr); } .steps.three li { padding-right: 0; } }

/* the last word */
.aa-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: clamp(26px, 4vw, 52px); border-radius: 28px; border: 1px solid transparent;
  background:
    radial-gradient(80% 140% at 0% 100%, rgba(143, 127, 247, 0.2), transparent 60%) padding-box,
    radial-gradient(70% 140% at 100% 0%, rgba(89, 207, 195, 0.14), transparent 60%) padding-box,
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(120deg, rgba(143, 127, 247, 0.9), rgba(89, 207, 195, 0.85)) border-box;
}
.aa-cta h2 { font-size: var(--step-3); }
.aa-cta p { margin-top: 8px; color: var(--mist); font-size: var(--step-1); }
.aa-go { display: grid; justify-items: start; gap: 10px; }
.aa-go .notify { color: var(--mist); font-size: var(--step--1); }

/* the two ways in, on each product page */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .offers { grid-template-columns: minmax(0, 1fr); } }
.offer { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: var(--night-2); }
.offer h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.offer h3.wordmark { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.offer .aa-what { margin-top: 10px; color: var(--mist); max-width: 30rem; }
.offer .price { margin-top: 18px; }
.offer .actions { margin-top: 22px; }
.offer .fine { margin-top: 14px; color: var(--mist); font-size: var(--step--1); }
.offer .ticks { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.offer.aa {
  border: 1px solid transparent; box-shadow: 0 36px 90px -50px rgba(116, 167, 221, 0.7);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(89, 207, 195, 0.1), transparent 60%) padding-box,
    radial-gradient(90% 70% at 0% 100%, rgba(143, 127, 247, 0.12), transparent 60%) padding-box,
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(130deg, rgba(143, 127, 247, 0.95), rgba(89, 207, 195, 0.9)) border-box;
}

/* the home page's pointer to it */
.aa-band {
  margin-top: clamp(16px, 2.4vw, 28px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px); border-radius: 28px; border: 1px solid transparent;
  background:
    radial-gradient(60% 160% at 0% 50%, rgba(143, 127, 247, 0.14), transparent 70%) padding-box,
    radial-gradient(60% 160% at 100% 50%, rgba(89, 207, 195, 0.1), transparent 70%) padding-box,
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(100deg, rgba(143, 127, 247, 0.85), rgba(89, 207, 195, 0.8)) border-box;
}
.aa-band .wordmark { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); }
.aa-band p { margin-top: 6px; color: var(--mist); }

/* ---- KeyLens: the key finder ---------------------------------------------------------------- */

.finder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); } }
.drop {
  position: relative; display: grid; align-content: center; justify-items: start; gap: 12px;
  padding: clamp(20px, 3vw, 30px); border-radius: 20px; border: 1.5px dashed rgba(89, 207, 195, 0.45);
  background: rgba(11, 13, 29, 0.6); min-height: 300px; transition: border-color .15s ease, background-color .15s ease;
}
.drop.over { border-color: var(--teal); border-style: solid; background: rgba(89, 207, 195, 0.08); }
.drop-icon { width: 46px; height: 46px; color: var(--teal); }
.drop h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; }
.drop .touch { display: none; }
@media (hover: none) and (pointer: coarse) { .drop .touch { display: inline; } .drop .mouse { display: none; } }
.drop p { color: var(--mist); font-size: 0.95rem; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.drop input[type="file"]:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }
.drop .demo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--mist); font-size: 0.93rem; }
.drop .progress { width: 100%; height: 6px; border-radius: 999px; background: var(--night-3); overflow: hidden; }
.drop .progress i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .25s var(--ease); }
.drop .progress:not([hidden]) { animation: rise .3s var(--ease); }
.drop .status { min-height: 1.4em; font-size: 0.9rem; color: var(--mist); transition: color var(--quick) ease; }
.drop .status.error { color: var(--gold-2); }
.drop .private { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 0.85rem; }
.drop .private svg { width: 15px; height: 15px; flex: none; }

.reading { padding: clamp(20px, 3vw, 30px); border-radius: 20px; background: var(--night-2); border: 1px solid var(--line); min-width: 0; }
.reading .file { color: var(--mist); font-size: var(--step--1); overflow-wrap: anywhere; }
.reading .file b { color: var(--ink); font-weight: 700; }
.reading .key { font-family: var(--display); font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); line-height: 1.05; margin-top: 8px; color: var(--teal-2); letter-spacing: -0.02em; }
.reading .key.quiet { color: var(--mist); }
.reading .key .enh { font-family: var(--text); font-size: 0.95rem; color: var(--mist); letter-spacing: 0; font-weight: 500; white-space: nowrap; }
.reading.listening .key { animation: breathe 1.1s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }
.reading .alt { color: var(--mist); margin-top: 8px; font-size: 0.95rem; }
.reading .tuned { color: var(--gold-2); }
.sure { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; font-size: 0.93rem; color: var(--mist); }
.sure span + span { color: var(--ink); font-variant-numeric: tabular-nums; }
.sure i { grid-column: 1 / -1; display: block; height: 5px; border-radius: 999px; background: var(--night-3); overflow: hidden; }
.sure i b { display: block; height: 100%; border-radius: inherit; background: var(--meter); transform-origin: left center; }
.sure.good { --meter: var(--good); } .sure.warn { --meter: var(--gold); } .sure.bad { --meter: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.stats div { padding: 10px 12px; border-radius: 12px; background: var(--night-0); border: 1px solid var(--line); min-width: 0; }
.stats dt { color: var(--mist); font-size: 0.8rem; }
.stats dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:last-child:nth-child(3) { grid-column: 1 / -1; } }
.reading h4 { margin: 22px 0 10px; font-size: 0.93rem; color: var(--mist); font-weight: 500; }
.keys { --n: 14; position: relative; height: 112px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
@media (max-width: 520px) { .keys { --n: 7; } .keys .o1 { display: none; } }
.keys button { position: absolute; top: 0; border: 0; padding: 0; cursor: pointer; border-radius: 0 0 6px 6px; transition: filter .25s ease, background-color .25s ease; }
.keys .w { left: calc(var(--x) * 100% / var(--n)); width: calc(100% / var(--n) - 2px); height: 100%; background: #e7e5f6; box-shadow: inset 0 -4px 0 rgba(15, 17, 36, 0.18); z-index: 1; }
.keys .b { left: calc((var(--x) - 0.3) * 100% / var(--n)); width: calc(60% / var(--n)); height: 62%; background: #232847; z-index: 2; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.4); }
.keys .in.w { background: #a6ebe3; }
.keys .in.b { background: #2c8b81; }
.keys .root.w { background: var(--teal); }
.keys .root.b { background: #47b8ad; }
.keys .lit { filter: brightness(1.25) saturate(1.3); }
.keys .w.lit { background: var(--gold-2); }
.keys button span { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 0.66rem; font-weight: 700; color: rgba(15, 17, 36, 0.72); pointer-events: none; }
.keys .b span { color: rgba(236, 233, 255, 0.85); }
.chords { display: flex; flex-wrap: wrap; gap: 8px; }
.chords button {
  display: grid; gap: 0; min-width: 62px; padding: 7px 12px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--night-0); color: var(--ink);
  transition: border-color var(--quick) ease, background-color .3s ease, transform .15s ease;
}
.chords button:hover, .chords button.lit { border-color: var(--teal); }
.chords button.lit { background: rgba(89, 207, 195, 0.14); }
.chords b { font-size: 1rem; }
.chords small { color: var(--mist); font-size: 0.75rem; }
.reading .loopnote { margin-top: 14px; color: var(--faint); font-size: 0.85rem; }
.finder-more { margin-top: 16px; color: var(--mist); font-size: var(--step--1); max-width: 46rem; }

/* ---- documents: support and legal ----------------------------------------------------------- */

.doc { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.doc .wrap > * { max-width: 46rem; }
.doc h1 { font-family: var(--display); font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.015em; }
.doc .updated { margin-top: 10px; color: var(--mist); font-size: var(--step--1); }
.doc h2 { font-family: var(--text); font-weight: 700; font-size: var(--step-1); letter-spacing: 0; margin-top: 40px; line-height: 1.3; }
.doc h3 { font-size: 1.05rem; margin-top: 24px; }
.doc p, .doc ul { margin-top: 12px; color: #d6d3f0; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .lead { color: var(--mist); margin-top: 16px; }
.draft-note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--gold); color: var(--gold-2) !important; font-size: var(--step--1); }
.doc .soon-note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--line); color: var(--mist); font-size: var(--step--1); }
.qa { margin-top: 36px; }
.qa h2 { margin-top: 0; }
.contact-box { margin-top: 44px; padding: 20px 22px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); }
.contact-box p:first-child { margin-top: 0; }

/* ---- your account (/account/) ----------------------------------------------------------------
   Sign in with an emailed code, then your keys and the computers they're on, your orders and All
   Access. js/account.js fills it from the licence server. Its colour is All Access's, where both
   plugins meet, since an account covers them all; gold stays for actions. */

.page-account { --accent: #74a7dd; --accent-2: #b4cef0; --accent-rgb: 116, 167, 221; }
.acct { padding-block: clamp(36px, 6vw, 76px) var(--section); }
.acct-app [data-view]:not([hidden]), .acct-app [data-step]:not([hidden]) { animation: rise .35s var(--ease); }
.acct-loading { display: flex; align-items: center; gap: 14px; min-height: 40vh; color: var(--mist); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dot .9s ease-in-out infinite alternate; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { from { opacity: 0.2; transform: translateY(3px); } }

/* signing in: the form, with what an account holds beside it */
.acct-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .acct-in { grid-template-columns: minmax(0, 1fr); } }
.acct-card { min-width: 0; padding: clamp(22px, 3.6vw, 44px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(90% 60% at 0% 0%, rgba(116, 167, 221, 0.1), transparent 70%), var(--night-2); }
.acct-card h1, .acct-top h1 { font-size: var(--step-3); line-height: 1.08; }
.acct-card h1:focus, .acct-top h1:focus { outline: none; }
.acct-sub { margin-top: 12px; color: var(--mist); font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.acct-sub b { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.acct-card .actions { margin-top: 24px; }
.acct-form { display: grid; gap: 10px; margin-top: 28px; max-width: 30rem; }
.acct-form label { font-weight: 700; font-size: 0.97rem; }
.acct-form input {
  width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--night-0); color: var(--ink);
  font: inherit; font-size: 1.06rem; transition: border-color var(--quick) ease, box-shadow var(--quick) ease;
}
.acct-form input::placeholder { color: var(--faint); }
.acct-form input:hover { border-color: #3a4180; }
.acct-form input:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.95); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2); }
.acct-form input[aria-invalid="true"] { border-color: rgba(235, 188, 112, 0.85); }
.acct-form input.code { max-width: 15rem; font-size: 1.55rem; font-weight: 700; letter-spacing: 0.32em; font-variant-numeric: tabular-nums; }
.acct-form .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 520px) { .acct-form .btn { justify-self: stretch; } }
.acct-msg { color: var(--gold-2); font-size: 0.95rem; }
.acct-ok { color: #8fe3b0; font-size: 0.95rem; }
.acct-fine { margin-top: 14px; color: var(--mist); font-size: var(--step--1); max-width: 30rem; }
.acct-nosignup { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mist); font-size: 0.97rem; max-width: 34rem; }
.acct-nosignup b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.acct-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 10px; }
.linkish {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px;
}
.linkish:hover { color: var(--ink); }
.linkish:disabled { opacity: 0.5; cursor: progress; }
.acct-hint { margin-top: 8px; color: var(--mist); font-size: var(--step--1); max-width: 32rem; }
/* before launch: Coming soon where the form goes */
.acct-soon { display: grid; justify-items: start; gap: 12px; margin-top: 28px; max-width: 32rem; }
.acct-soon p { color: var(--mist); }
.acct-soon .notify { font-size: var(--step--1); }
.acct .pi { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.acct .pi .i { width: 19px; height: 19px; }
.pi.aa { background: linear-gradient(145deg, #a597ff, #3fa79c); }
.acct-what { padding-top: clamp(0px, 2vw, 26px); min-width: 0; }
.acct-what h2 { font-family: var(--text); font-size: var(--step-1); letter-spacing: 0; line-height: 1.3; }
.acct-what ul { list-style: none; display: grid; gap: 20px; margin-top: 20px; }
.acct-what li { display: flex; align-items: flex-start; gap: 14px; }
.acct-what li > span:last-child { color: var(--mist); font-size: 0.97rem; line-height: 1.5; }
.acct-what b { display: block; color: var(--ink); font-weight: 700; }

/* signed in: your keys, with your orders and help beside them */
.acct-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.acct-who { margin-top: 10px; color: var(--mist); overflow-wrap: anywhere; }
.acct-who b { color: var(--ink); font-weight: 700; }
.acct-note { margin-top: 22px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(92, 207, 142, 0.45); background: rgba(92, 207, 142, 0.09); color: #c3f0d4; animation: rise .3s var(--ease); }
.acct-note.bad { border-color: rgba(235, 188, 112, 0.55); background: rgba(235, 188, 112, 0.09); color: var(--gold-2); }
.acct-note.info { border-color: var(--line); background: var(--night-2); color: var(--ink); }
.acct-note:empty { margin: 0; padding: 0; border: 0; }
/* two columns whose boxes start on the same line: the headings share the first row */
.acct-grid {
  margin-top: clamp(26px, 4vw, 40px); display: grid; align-items: start;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "keys-h orders-h" "keys side";
  gap: 14px clamp(20px, 3vw, 36px);
}
.acct-keys-h { grid-area: keys-h; }
.acct-orders-h { grid-area: orders-h; }
.acct-licences { grid-area: keys; }
.acct-side { grid-area: side; }
@media (max-width: 960px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "keys-h" "keys" "orders-h" "side"; }
  .acct-orders-h { margin-top: 26px; }
}
.acct-h2 { font-family: var(--text); font-size: var(--step-1); letter-spacing: 0; line-height: 1.3; }
.acct-licences { display: grid; gap: 18px; }
.acct-empty { padding: 20px 22px; border-radius: 20px; border: 1px dashed var(--line); color: var(--mist); }

/* one key: the plugin it's for, its subscription, the key itself and its computers */
.lic {
  display: grid; gap: 20px; min-width: 0; padding: clamp(18px, 2.8vw, 28px); border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(110% 60% at 0% 0%, rgba(143, 127, 247, 0.13), transparent 60%), var(--night-2);
}
.lic.kl { background: radial-gradient(110% 60% at 0% 0%, rgba(89, 207, 195, 0.11), transparent 60%), var(--night-2); }
.lic.aa {
  border-color: transparent; box-shadow: 0 34px 80px -54px rgba(116, 167, 221, 0.8);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(89, 207, 195, 0.09), transparent 60%) padding-box,
    radial-gradient(90% 60% at 0% 0%, rgba(143, 127, 247, 0.12), transparent 60%) padding-box,
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(130deg, rgba(143, 127, 247, 0.95), rgba(89, 207, 195, 0.9)) border-box;
}
.lic.off { background: var(--night-2); border: 1px dashed var(--line); box-shadow: none; }
.lic.off .pi { filter: grayscale(0.8); opacity: 0.55; }
.lic.off .wordmark { opacity: 0.6; }
.lic-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lic-head .pi { width: 44px; height: 44px; border-radius: 12px; }
.lic-head .pi .i { width: 22px; height: 22px; }
.lic-title { flex: 1 1 auto; min-width: 0; }
.lic-title .wordmark { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }
.lic.nf .wordmark { text-transform: uppercase; }
.lic-kind { margin-top: 6px; color: var(--mist); font-size: 0.93rem; }
.pill { flex: none; display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; line-height: 1.5; background: var(--night-3); color: var(--mist); white-space: nowrap; }
.pill.ok { background: rgba(92, 207, 142, 0.15); color: #8fe3b0; }
.pill.warn { background: rgba(235, 188, 112, 0.17); color: var(--gold-2); }
.lic-sub { display: grid; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(11, 13, 29, 0.5); }
.lic-sub.warn { border-color: rgba(235, 188, 112, 0.6); background: rgba(235, 188, 112, 0.07); }
.lic-state b { font-weight: 700; }
.lic-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.lic-label { color: var(--mist); font-size: 0.86rem; font-weight: 700; }
.key-row { margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--night-0); }
.key-row code {
  flex: 1 1 auto; min-width: 0; font-family: var(--text); font-weight: 700; font-size: clamp(0.96rem, 0.86rem + 0.5vw, 1.16rem);
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
.key-row .btn { flex: none; min-width: 5.6em; }
/* on a phone the key keeps to one line, with Copy under it */
@media (max-width: 480px) {
  .key-row { flex-wrap: wrap; gap: 8px; padding: 12px 10px 10px 14px; }
  .key-row code { flex-basis: 100%; letter-spacing: 0.04em; }
}
.lic-off { color: var(--mist); }
.pcs-group + .pcs-group { margin-top: 16px; }
.pcs-head { margin-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pcs-head h4 { font-size: 0.97rem; }
.pcs-count { color: var(--mist); font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcs { list-style: none; margin-top: 8px; border-top: 1px solid var(--line); }
.pc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pc-i { width: 20px; height: 20px; flex: none; color: var(--mist); }
.pc-txt { flex: 1 1 auto; min-width: 0; display: grid; }
.pc-txt b { font-weight: 700; overflow-wrap: anywhere; }
.pc-txt span { color: var(--mist); font-size: 0.88rem; }
.pc-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pc-q { font-size: 0.93rem; }
.pc.asking { background: linear-gradient(90deg, rgba(236, 122, 140, 0.07), transparent); }
@media (max-width: 560px) { .pc { flex-wrap: wrap; } .pc-acts { flex-basis: 100%; justify-content: flex-start; padding-left: 32px; } }
.pcs-none { margin-top: 8px; color: var(--mist); font-size: 0.93rem; }
.lic-fine { color: var(--mist); font-size: var(--step--1); }

/* beside the keys: orders, All Access, help */
.acct-side { display: grid; gap: 18px; min-width: 0; }
.acct-box { min-width: 0; padding: clamp(18px, 2.4vw, 24px); border-radius: 22px; border: 1px solid var(--line); background: var(--night-2); }
.acct-box h2 { font-family: var(--text); font-size: 1.1rem; letter-spacing: 0; line-height: 1.3; }
.acct-box p { margin-top: 10px; color: var(--mist); font-size: 0.95rem; }
.acct-box .btn { margin-top: 16px; }
.acct-box.acct-aa {
  border-color: transparent;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(143, 127, 247, 0.16), transparent 70%) padding-box,
    radial-gradient(70% 90% at 100% 100%, rgba(89, 207, 195, 0.12), transparent 70%) padding-box,
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(120deg, rgba(143, 127, 247, 0.9), rgba(89, 207, 195, 0.85)) border-box;
}
.acct-box h2.wordmark { font-family: var(--display); font-size: 1.4rem; }
.acct-orders { list-style: none; }
.order { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.order:first-child { padding-top: 0; }
.order > div { display: grid; min-width: 0; }
.order b { font-weight: 700; overflow-wrap: anywhere; }
.order span { color: var(--mist); font-size: 0.88rem; }
.order .amt { justify-items: end; text-align: right; font-variant-numeric: tabular-nums; }
.order .pill { margin-top: 4px; }
.acct-orders .none { padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--mist); font-size: 0.95rem; }

/* ---- footer --------------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--mist); font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer p + p { margin-top: 8px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--ink); }

/* ---- scrolling: things arrive as you reach them ---------------------------------------------------
   Driven by the scroll itself (CSS scroll timelines), so scrolling back plays them backwards. In a
   browser without them the page simply shows everything as it is. */

@supports (animation-timeline: view()) {
  /* night falls: the horizon glow sinks and fades over the whole page */
  .page::before { animation: dusk linear both; animation-timeline: scroll(root); }
  /* the stars drift behind the hero, slower than the page */
  .sky::before { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  /* the header firms up once the page is moving */
  .site-header { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 160px; }

  /* headings come into focus */
  .section-head h2, .buy h2 { animation: focus-in linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  .section-head p { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 4% cover 30%; }
  /* screenshots tilt up and land, like a window set down on the desk */
  .hero-shot, .aa-stack, .product .shot, .case-shot, .tabpanels { animation: land linear both; animation-timeline: view(); animation-range: entry 0% cover 36%; transform-origin: 50% 100%; }
  /* the use cases come in from their own side; their players lift into place */
  .case .case-text { animation: from-left linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
  .case:nth-child(even) .case-text { animation-name: from-right; }
  .case .stage.mini, .deck, .finder, .aa-card { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  /* lists step in, one after another */
  .steps li, .facts li, .ticks li, .faq details, .compare-wrap { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  .steps li:nth-child(2), .facts li:nth-child(3n + 2), .ticks li:nth-child(2) { animation-range: entry 5% cover 27%; }
  .steps li:nth-child(3), .facts li:nth-child(3n + 3), .ticks li:nth-child(3) { animation-range: entry 10% cover 32%; }
  .steps li:nth-child(4), .ticks li:nth-child(4) { animation-range: entry 15% cover 37%; }
  /* the buy cards glow up */
  .buy, .offer, .plan, .aa-band, .aa-cta { animation: glow-in linear both; animation-timeline: view(); animation-range: entry 0% cover 34%; }
  /* the key finder's keyboard lights up, note by note, as it comes into view */
  .reading .keys .in { animation: key-light linear both; animation-timeline: view(); animation-range: entry calc(25% + var(--x) * 1.6%) cover calc(42% + var(--x) * 1.6%); }
}
@keyframes dusk { to { opacity: 0.2; transform: translateY(16%); } }
@keyframes drift { to { transform: translateY(26%); opacity: 0.35; } }
@keyframes header-solid {
  from { background-color: rgba(15, 17, 36, 0.3); border-bottom-color: rgba(43, 48, 98, 0); }
  to { background-color: rgba(15, 17, 36, 0.88); border-bottom-color: rgba(43, 48, 98, 0.7); }
}
@keyframes focus-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(10px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(32px); } }
@keyframes land { from { opacity: 0.1; transform: perspective(1400px) rotateX(18deg) translateY(80px) scale(0.92); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-56px); } }
@keyframes from-right { from { opacity: 0; transform: translateX(56px); } }
@keyframes lift { from { opacity: 0.2; transform: translateY(56px) scale(0.96); } }
@keyframes glow-in { from { opacity: 0.25; transform: scale(0.94); filter: saturate(0.3); } }
@keyframes key-light { from { filter: brightness(0.45) saturate(0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
