/* =============================================================================================
   Website stylesheet — dark, in the colours of Courant's icon: the night (indigo → near black), the paper
   of the boat (lavender white), the waves (periwinkle) and the two sparkles (gold).
   Components of the sales pages come from Folia Files' site (same markup, same script).
   Motion: transform/opacity only for anything that loops; prefers-reduced-motion switches it off.
   Sections: tokens · base · layout · type · controls · nav · pricing · editions · FAQ · footer · pages ·
   toast · reveal · keyframes · responsive · download · Courant (sky, waves, screenshots)
   ============================================================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* Titles: Apple's New York where the browser offers it (Safari), a classic serif elsewhere. */
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, "Times New Roman", "Hiragino Mincho ProN", "Songti SC", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #090a1c;
  --bg-2: #0d0f27;
  --text: #f4f4fb;
  --text-2: #b4b6cf;
  --text-3: #9093b0;
  --dim: #73769a;
  --line: rgba(196, 200, 255, .09);
  --line-2: rgba(196, 200, 255, .16);
  --surface: rgba(190, 196, 255, .045);
  --surface-2: rgba(190, 196, 255, .08);
  --surface-3: rgba(190, 196, 255, .13);
  --card: linear-gradient(180deg, #13153a 0%, #0e102c 100%);
  --card-solid: #111334;
  --glass: rgba(17, 19, 48, .62);
  --pop: rgba(20, 22, 54, .96);
  --input: rgba(190, 196, 255, .06);
  --kbd: rgba(190, 196, 255, .08);
  --btn-bg: #f4f2ff;
  --btn-text: #0b0c26;
  --accent: #8a93ff;
  --accent-text: #b9beff;
  --gold: #ffc94a;
  --gold-2: #fff4c7;
  --focus: #b9beff;
  --ok: #7ee2b8;
  --grad: linear-gradient(100deg, #d6d9ff 0%, #9aa2ff 48%, #ffd47e 100%);
  --grad-soft: linear-gradient(135deg, #4a4fb8, #8a93ff);
  --night: linear-gradient(180deg, #2b2f7a 0%, #141640 45%, #090a1c 100%);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -30px rgba(0, 0, 0, .85);
  --shadow-lg: 0 40px 120px -40px rgba(0, 0, 0, .9);
  --toast-bg: #f4f2ff;
  --toast-text: #0b0c26;
  --grain-opacity: .045;

  --ease: cubic-bezier(.33, 1, .68, 1);          /* ease-out cubic */
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* longer tail for reveals */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --nav-h: 60px;
  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1200px;
  --r: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain over the background (behind content). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; }
main { overflow-x: clip; }
main:focus { outline: none; }
::selection { background: rgba(138, 147, 255, .35); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .92em; padding: .1em .35em; border-radius: 6px; background: var(--surface-2); }
[hidden] { display: none !important; }
[data-price] { white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-text); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.center { text-align: center; }
.center .lead, .center .fine { margin-inline: auto; }
.sec { position: relative; padding-block: clamp(80px, 10.5vw, 150px); }
.sec-tight { padding-block: clamp(36px, 6vw, 72px); }
.sec-head {
  display: grid; justify-items: center; gap: 18px; text-align: center;
  max-width: 840px; margin: 0 auto clamp(40px, 6vw, 76px);
}
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-copy { display: grid; gap: 18px; align-content: start; }
.split-visual { min-width: 0; }

/* ---------- Type ---------- */
.display, .display-2, .title, .big-404, .h1, .h2 { font-family: var(--serif); font-weight: 600; text-wrap: balance; }
.display {
  font-size: clamp(2.7rem, 1.1rem + 6.4vw, 6.2rem);
  line-height: 1.0; letter-spacing: -.035em;
}
.display-2 {
  font-size: clamp(2.3rem, 1rem + 4.6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.03em;
}
.title {
  font-size: clamp(2.15rem, .95rem + 4.2vw, 4rem);
  line-height: 1.05; letter-spacing: -.03em;
}
/* The word that matters, in italic, in the gold of the sparkles. */
.display em, .display-2 em, .title em {
  font-style: italic; font-weight: 500; padding-right: .06em; margin-right: -.04em;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; margin-bottom: 24px; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.lead {
  font-size: clamp(1.07rem, .94rem + .6vw, 1.35rem);
  line-height: 1.5; color: var(--text-2); max-width: 40em; text-wrap: pretty;
}
.sub { font-size: clamp(1.04rem, .95rem + .4vw, 1.22rem); line-height: 1.55; color: var(--text-2); max-width: 38em; text-wrap: pretty; }
/* Japanese and Chinese: titles and leads break between phrases, never before a small kana or inside a word
   (every page; home.css does the same for the home page's own classes). */
:lang(ja) :is(.display, .display-2, .title, .h1, .h2), :lang(zh) :is(.display, .display-2, .title, .h1, .h2) {
  word-break: auto-phrase; letter-spacing: -.01em;
}
:lang(ja) :is(.lead, .sub, .pc-fine, .co-note), :lang(zh) :is(.lead, .sub, .pc-fine, .co-note) { word-break: auto-phrase; }
:lang(ja) :is(.display, .display-2, .title, .h1, .h2, .lead, .sub) { line-break: strict; }
/* auto-phrase only knows Japanese: Chinese titles break at punctuation (or, too long, anywhere). */
:lang(zh) :is(.display, .display-2, .title, .h1, .h2) { word-break: keep-all; overflow-wrap: break-word; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
}
.eyebrow .i { width: 18px; height: 18px; color: var(--gold); -webkit-text-fill-color: initial; }
.eyebrow, .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow .badge { -webkit-text-fill-color: currentColor; }
.dim { color: var(--dim); }
.fine { font-size: 14px; color: var(--text-3); }
.fine a, .note a, .lead a, .prose a, .qa-in a, .pc-store a, .pc-team a, .co-team a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Text that flows like a sentence, its links inline; an icon, if any, starts the first line. */
.note {
  margin-top: 28px; color: var(--text-2); font-size: 15px; text-wrap: pretty;
}
.note .i { display: inline-block; width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; color: var(--text-3); }

/* ---------- Controls ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 18px; height: 18px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 30px -12px rgba(138, 147, 255, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 16px 40px -12px rgba(138, 147, 255, .55); }
.btn-glass {
  background: var(--surface-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 500; }
.link-arrow .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.fine .link-arrow { text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--accent); opacity: .35; animation: ping 2.4s var(--ease) infinite;
}
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  color: var(--gold); background: rgba(255, 201, 74, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 74, .25);
}
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px;
  font: 600 12.5px/1 var(--font); color: var(--text-2); white-space: nowrap;
  background: var(--kbd); box-shadow: inset 0 0 0 1px var(--line), inset 0 -1.5px 0 var(--line-2);
}
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s;
}
.round-btn:hover { background: var(--surface-3); }
.round-btn .i { width: 20px; height: 20px; }

.card {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.card-bar {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2);
}
.card-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); min-width: 0; }
.card-title .i { width: 16px; height: 16px; color: var(--text-2); }
.card-keys { margin-left: auto; display: flex; gap: 4px; }
.card-keys kbd { min-width: 22px; height: 22px; font-size: 11.5px; }
.lights { display: flex; gap: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.lights.sm { gap: 7px; }
.lights.sm i { width: 11px; height: 11px; }
.mp-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent-text);
}
.mp-ic .i { width: 21px; height: 21px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav.is-scrolled::before, .nav.is-open::before { opacity: 1; }
.nav-in {
  display: flex; align-items: center; gap: 20px; height: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; flex: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: none; gap: 30px; margin: 0 auto; font-size: 14px; }
.nav-links a { color: var(--text-2); white-space: nowrap; transition: color .2s; }
/* Seven entries between the logo and the buttons: closer together, and the least needed ones go to the menu, before
   they could wrap (Japanese words broke in two at 1024 px). */
@media (max-width: 1239px) { .nav-links { gap: 20px; } }
@media (max-width: 1099px) { .nav-links .nav-opt { display: none; } }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-buy { display: none; }
.nav-burger { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.nav-burger .i { width: 22px; height: 22px; }
.nav-burger:hover { background: var(--surface-2); }
.mnav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; overflow-y: auto;
  padding: 16px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: sheet .4s var(--ease-out);
}
.mnav nav { display: grid; }
.mnav nav a { padding: 16px 4px; font-size: 24px; font-weight: 650; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.mnav-cta { display: grid; gap: 10px; margin-top: 28px; }
body.menu-open { overflow: hidden; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background-color .2s;
}
.lang-btn .i { width: 16px; height: 16px; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px;
  list-style: none; padding: 6px; border-radius: 16px;
  background: var(--pop); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transform-origin: top right; animation: pop .22s var(--ease);
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px; font-size: 14.5px; color: var(--text);
}
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface-2); outline: none; }
.lang-list a[aria-current] { font-weight: 650; }
.lang-list .i { width: 15px; height: 15px; color: var(--accent-text); }


/* ---------- 9 · Pricing ---------- */
#pricing { overflow: clip; isolation: isolate; }
.pricing-glow {
  position: absolute; left: 50%; top: 56%; z-index: -1; width: min(1000px, 140vw); height: 700px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(74, 79, 184, .35), rgba(138, 147, 255, .1) 55%, transparent);
}
.price-card {
  position: relative; max-width: 520px; margin: 0 auto; padding: clamp(26px, 5vw, 44px); border-radius: 30px;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: var(--shadow-lg);
}
.price-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 212, 126, .8), rgba(138, 147, 255, .25) 40%, rgba(138, 147, 255, .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-top img { width: 56px; height: 56px; }
.pc-name { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.pc-sub { font-size: 13.5px; color: var(--text-3); }
.pc-price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 4px; }
.amount { font-size: clamp(3.4rem, 2.2rem + 4.4vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.per { font-size: 17px; color: var(--text-2); }
.checks { list-style: none; display: grid; gap: 12px; margin: 26px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.checks .i { width: 20px; height: 20px; margin-top: 1px; color: var(--ok); }
.pc-cta { display: grid; gap: 10px; }
.pc-cta .btn { width: 100%; }
.pc-trial { margin-top: 18px; text-align: center; font-size: 15px; font-weight: 600; }
.pc-fine { margin-top: 6px; text-align: center; font-size: 13.5px; color: var(--text-3); text-wrap: pretty; }
.pc-paddle { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pc-paddle .i { width: 14px; height: 14px; }
.pc-store { max-width: 660px; margin: 34px auto 0; text-align: center; font-size: 15px; color: var(--text-2); text-wrap: pretty; }
.pc-store .link-arrow { text-decoration: none; }

/* ---------- 10 · Editions ---------- */
.table-wrap { border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: break-word; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { padding: 20px 18px 16px; font-size: 15px; font-weight: 650; text-align: center; vertical-align: bottom; -webkit-hyphens: auto; hyphens: auto; }
.cmp thead th:first-child { text-align: left; }
.cmp td { text-align: center; }
.cmp thead th:first-child { width: 52%; }
.cmp tbody th { font-weight: 500; }
.cmp thead th:nth-child(2), .cmp td:nth-child(2) { background: rgba(138, 147, 255, .07); }
.cmp-h { display: block; }
.cmp thead .badge { margin-top: 7px; }
.cmp .yes, .cmp .no { display: inline-grid; place-items: center; }
.cmp .yes { color: var(--ok); }
.cmp .no { color: var(--text-3); }
.cmp .i { width: 20px; height: 20px; }
.cmp tr.fact td { font-size: 14px; color: var(--text-2); }
.cmp tr.fact:first-of-type > * { border-top: 1px solid var(--line-2); }

/* ---------- 11 · FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 22px 4px; text-align: left;
  font-size: clamp(16.5px, 1rem + .3vw, 18.5px); font-weight: 600; letter-spacing: -.012em;
}
.qa-q:hover { color: var(--accent-text); }
.qa-ic { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-2); transition: background-color .25s; }
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: currentColor; transition: transform .4s var(--ease); }
.qa-ic::after { transform: rotate(90deg); }
.qa.open .qa-ic::after { transform: rotate(0deg); }
.qa.open .qa-ic { background: var(--surface-3); }
.qa-a { display: grid; grid-template-rows: 1fr; }
.js .qa-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease), visibility 0s .45s; }
.js .qa.open .qa-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease), visibility 0s; }
.qa-in { overflow: hidden; min-height: 0; }
.qa-in p { padding: 0 4px 24px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* ---------- 12 · Final call to action ---------- */
.final { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(96px, 14vw, 180px); text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 22px; }
.final-glow {
  position: absolute; left: 50%; top: 0; z-index: -1; width: min(1100px, 150vw); height: 100%; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(closest-side at 35% 50%, rgba(138, 147, 255, .2), transparent),
    radial-gradient(closest-side at 65% 50%, rgba(74, 79, 184, .3), transparent);
}
.final-icon { width: 148px; height: 148px; filter: drop-shadow(0 26px 44px rgba(255, 201, 74, .18)); }
.final .cta-row { margin-top: 10px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) 0 36px; font-size: 14px; color: var(--text-2); }
.foot-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
.foot-brand p { max-width: 26ch; color: var(--text-3); }
.foot-brand .foot-social { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.foot-social a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.foot-social a:hover { color: var(--text); }
.foot-social .i { width: 15px; height: 15px; }
.foot-col h2 { margin-bottom: 14px; font-size: 13px; font-weight: 650; color: var(--text); }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { transition: color .2s; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.foot-tm { max-width: 70ch; }

/* ---------- Secondary pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(52px, 9vw, 108px)) 0 clamp(36px, 6vw, 64px); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero .wrap.center { justify-items: center; }
.page-icon { width: 112px; height: 112px; filter: drop-shadow(0 20px 36px rgba(138, 147, 255, .3)); }
.page-glyph { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: #fff; background: var(--grad-soft); box-shadow: 0 18px 40px -16px rgba(74, 79, 184, .7); }
.page-glyph .i { width: 34px; height: 34px; }
.dl-progress { width: 240px; height: 4px; margin: 10px auto 0; border-radius: 2px; overflow: hidden; background: var(--surface-2); }
.dl-progress i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--grad-soft); animation: indet 1.5s var(--ease-io) infinite; }
.steps { list-style: none; display: grid; gap: 12px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff; background: var(--grad-soft); }
.step h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.step p { font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.step div > p:only-child { margin-top: 5px; color: var(--text); }
.step strong { color: var(--text); font-weight: 600; }
.callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 22px 24px; }
.callout h3 { margin-bottom: 4px; font-size: 16px; font-weight: 650; }
.callout p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.notes { margin-top: 32px; padding: 20px 24px; border-radius: 0 16px 16px 0; background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.notes p { margin-top: 6px; color: var(--text-2); }
.notes ul, .release-notes { display: grid; gap: 8px; margin-top: 10px; padding-left: 22px; }
.notes li, .release-notes li { line-height: 1.55; color: var(--text-2); }
.notes strong, .release-notes strong { color: var(--text); font-weight: 600; }
.notes p:has(.link-arrow) { margin-top: 14px; }
/* What's new (/<lang>/whats-new/): one card per version, newest first. */
.releases { display: grid; gap: 16px; }
.release { padding: 24px 26px; }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.release-head time { margin-left: auto; font-size: 14px; color: var(--text-3); }
@media (max-width: 560px) {
  .release { padding: 20px; }
  .release-head time { flex-basis: 100%; margin-left: 0; }
}
.release-foot { display: grid; justify-items: center; gap: 14px; margin-top: 36px; }
/* Buy (/<lang>/buy/): what is bought and its totals on the left, Paddle's inline checkout on the right
   (its look: Paddle › Checkout › Branded inline checkout). Paddle requires the totals and the whole frame,
   footer included, to stay visible. */
.page-checkout { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 56px)); }
.checkout { display: grid; gap: 22px; max-width: 1080px; }
.link-back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 14.5px; color: var(--text-2); }
.link-back:hover { color: var(--text); }
.link-back .i { width: 16px; height: 16px; }
.checkout-head { display: grid; gap: 8px; text-align: center; justify-items: center; }
.checkout-head .lead { max-width: 560px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; margin-top: 6px; }
.checkout-summary { max-width: none; margin: 0; padding: clamp(24px, 3.4vw, 34px); position: sticky; top: calc(var(--nav-h) + 20px); }
.checkout-summary .pc-price { margin-top: 22px; }
.checkout-summary .amount { font-size: clamp(2.6rem, 1.8rem + 2.6vw, 3.4rem); }
.checkout-summary .checks { gap: 10px; margin: 22px 0 24px; }
.checkout-summary .checks li { font-size: 14.5px; }
.checkout-summary .checks .i { width: 18px; height: 18px; }
.co-totals { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.co-totals > div { display: flex; justify-content: space-between; gap: 16px; }
.co-totals dt { color: var(--text-2); }
.co-totals dd { font-variant-numeric: tabular-nums; }
.co-totals .co-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 650; }
.co-totals .co-total dt { color: var(--text); }
.co-note { margin-top: 10px; font-size: 13px; color: var(--text-3); text-wrap: pretty; }
.co-fine { display: flex; gap: 8px; margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.co-fine .i { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.co-fine a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.checkout-pay { padding: clamp(22px, 3vw, 32px); min-height: 520px; }
.co-title { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.co-lead { margin-top: 4px; font-size: 14.5px; color: var(--text-2); text-wrap: pretty; }
.checkout-frame { position: relative; margin-top: 18px; }
.checkout-container { min-height: 450px; }
/* Same scheme as Paddle's frame (light, dark by styling only), or browsers paint a white backdrop behind it. */
.checkout-container iframe { color-scheme: light; background: transparent; }
.co-loading { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 200px; color: var(--text-2); }
.co-loading[hidden], .co-error[hidden] { display: none; }
.co-error { display: grid; justify-items: center; gap: 14px; padding: 40px 12px; text-align: center; color: var(--text-2); }
.co-trial { text-align: center; font-size: 15px; color: var(--text-2); }
.co-trial .link-arrow { margin-left: 4px; }
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; }
  .checkout-pay { min-height: 0; }
}
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.loader { display: flex; justify-content: center; gap: 8px; margin: 28px 0 8px; }
.loader i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce 1.1s var(--ease) infinite; }
.loader i:nth-child(2) { animation-delay: .15s; }
.loader i:nth-child(3) { animation-delay: .3s; }
.page-thanks [data-state] { display: grid; justify-items: center; gap: 16px; }
.page-thanks [data-state] .cta-row { margin-top: 8px; }
.page-thanks h1:focus { outline: none; }
.thanks-help { margin-top: 26px; }
.keys { display: grid; gap: 12px; width: 100%; max-width: 640px; margin: 12px 0; text-align: left; }
.key-block { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px 9px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); background: var(--surface-2); transition: background-color .2s, color .2s; }
.copy-btn:hover { background: var(--surface-3); }
.copy-btn .i { width: 14px; height: 14px; }
.copy-btn.is-done { color: var(--ok); }
.key-text { padding: 16px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; user-select: all; -webkit-user-select: all; }
.key-text code { padding: 0; background: none; font-size: inherit; }
.recover { width: 100%; max-width: 560px; margin-top: 14px; padding: 24px; text-align: left; }
.recover label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input {
  flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line-2);
  font: 16px var(--font); color: var(--text); background: var(--input); transition: border-color .2s, box-shadow .2s;
}
.field-row input::placeholder { color: var(--text-3); }
.field-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field-row .btn { --h: 50px; flex: 1 0 auto; }
.recover-done { display: grid; justify-items: center; gap: 10px; text-align: center; }
.recover-done h2:focus { outline: none; }
.recover-done p { color: var(--text-2); }
.done-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); animation: pop .5s var(--spring); }
.done-ic .i { width: 26px; height: 26px; }
.support-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-card, .link-card { display: grid; align-content: start; gap: 10px; padding: 26px; }
.contact-card p { color: var(--text-2); }
.contact-card .btn { margin-top: 6px; max-width: 100%; }
.contact-card .btn span { overflow: hidden; text-overflow: ellipsis; }
.link-card { transition: box-shadow .3s var(--ease); }
.link-card:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
.link-card p { color: var(--text-2); }
.link-card .link-arrow { margin-top: 6px; }
.link-card:hover .link-arrow .i { transform: translateX(3px); }
.legal .page-hero { padding-bottom: 20px; }
.legal .page-hero .wrap { gap: 14px; }
.prose { padding-bottom: clamp(64px, 10vw, 120px); }
.prose section { padding: 28px 0; border-top: 1px solid var(--line); }
.prose h2 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; }
.prose strong { color: var(--text); font-weight: 600; }
.big-404 {
  font-size: clamp(6rem, 22vw, 12rem); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-redirect { display: grid; place-items: center; min-height: 100vh; }
.redirect { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.redirect img { width: 96px; height: 96px; }
.redirect h1 { margin-top: 12px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.redirect p { color: var(--text-2); }
.redirect ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 540px; margin-top: 20px; }
.redirect a { display: block; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Macs of a license (/license/#manage) ---------- */
.lead-sm { margin: 8px 0 18px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.devices { padding: 24px; }
.devices label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.devices .field-row input { font-family: var(--mono); font-size: 13px; }
.devices-msg { margin-top: 14px; font-size: 14.5px; color: #fca5a5; }
.devices-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.devices-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.devices-list { list-style: none; display: grid; gap: 8px; margin: 0 0 12px; padding: 0; }
.device { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.device-ic .i { width: 22px; height: 22px; color: var(--text-2); }
.device-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.device-text strong { font-weight: 600; overflow-wrap: anywhere; }
.device-text .fine { font-size: 13px; }
.device .btn { flex: none; }
.device-none { padding: 6px 2px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 200; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  color: var(--toast-text); background: var(--toast-bg); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .55);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
/* Above the fold: shown by CSS as the page loads, without waiting for the script. */
.js .hero [data-reveal] {
  transition: none;
  animation: hero-in .8s var(--ease-out) both;
  animation-delay: calc(80ms + var(--d, 0) * 70ms);
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Keyframes ---------- */
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vw, 4vw, 0) scale(1.14); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 80%, 100% { transform: scale(2); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-8px); opacity: 1; } }

/* ---------- Download page: the two editions, then how to install ---------- */
.dl-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.dl-edition {
  position: relative; display: flex; flex-direction: column; padding: 30px 30px 28px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-card);
}
.dl-edition h2, .dl-edition h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.dl-edition.is-site {
  border-color: rgba(138, 147, 255, .4);
  background: radial-gradient(120% 90% at 0% 0%, rgba(74, 79, 184, .35), transparent 55%), var(--card);
  box-shadow: 0 30px 80px -40px rgba(74, 79, 184, .8), var(--shadow-card);
}
.dl-badge {
  align-self: flex-start; margin: 0 0 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--grad-soft); color: #fff; font-size: 12.5px; font-weight: 650;
}
.dl-badge.is-soon { background: rgba(255, 201, 74, .12); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 201, 74, .25); }
.dl-lead { margin: 10px 0 0; color: var(--text-2); line-height: 1.55; }
.dl-list { display: grid; gap: 10px; margin: 20px 0 22px; padding: 0; list-style: none; }
.dl-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: var(--text-2); }
.dl-list .i { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--accent-text); }
.dl-specs { margin: auto 0 16px; font-size: 14px; color: var(--text-3); }
.dl-cta { align-self: stretch; justify-content: center; margin-top: auto; }
.dl-specs + .dl-cta { margin-top: 0; }
.dl-note { margin: 10px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
.dl-started {
  display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--text); font-size: 14.5px; line-height: 1.5;
}
.dl-started[hidden] { display: none; }
.dl-started .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.dl-started a { color: var(--accent-text); text-decoration: underline; }
.dl-compare-title { margin: clamp(48px, 7vw, 80px) 0 20px; text-align: center; }
.table-wrap { max-width: 980px; margin-inline: auto; }
.cmp td.is-site, .cmp th.is-site { background: rgba(138, 147, 255, .07); }
.cmp td { font-size: 14.5px; color: var(--text-2); }
.cmp thead th:first-child { width: 34%; }
.btn.is-static { cursor: default; }
.btn.is-static:hover { transform: none; }
@media (max-width: 860px) {
  .dl-editions { grid-template-columns: minmax(0, 1fr); }
  .dl-edition { padding: 24px 22px 24px; }
}

/* ---------- Keyframes (more) ---------- */
@keyframes twinkle { 0%, 100% { opacity: .55; transform: scale(.92) rotate(0deg); } 50% { opacity: 1; transform: scale(1.06) rotate(8deg); } }
@keyframes swell { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }

/* ---------- The night sky (every page's header) ---------- */
.sky {
  position: absolute; inset: 0 0 auto; height: min(1100px, 150vh); z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(74, 79, 184, .55), transparent 70%),
    radial-gradient(40% 35% at 85% 10%, rgba(138, 147, 255, .18), transparent 70%),
    radial-gradient(45% 40% at 10% 25%, rgba(74, 79, 184, .25), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.sky.small { height: 100%; opacity: .85; }
/* Stars: two tiled layers of tiny dots, fixed (no animation, nothing to cost). */
.stars {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 60%), radial-gradient(1px 1px at 72% 12%, #fff, transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 42%, #e3e5ff, transparent 60%), radial-gradient(1px 1px at 86% 36%, #fff, transparent 60%),
    radial-gradient(1px 1px at 22% 66%, #c8ccf5, transparent 60%), radial-gradient(1.2px 1.2px at 58% 74%, #fff, transparent 60%),
    radial-gradient(1px 1px at 92% 82%, #e3e5ff, transparent 60%), radial-gradient(1px 1px at 6% 90%, #fff, transparent 60%);
  background-size: 520px 420px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%); mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
}
.spark { position: absolute; display: block; color: var(--gold); filter: drop-shadow(0 0 18px rgba(255, 201, 74, .45)); }
.spark .sparkle { width: 100%; height: 100%; }
.spark.big { width: clamp(46px, 5vw, 78px); height: clamp(46px, 5vw, 78px); right: max(6vw, calc(50% - 560px)); top: calc(var(--nav-h) + 9vh); animation: twinkle 5.5s ease-in-out infinite; }
.spark.small { width: clamp(20px, 2.2vw, 32px); height: clamp(20px, 2.2vw, 32px); right: max(3vw, calc(50% - 610px)); top: calc(var(--nav-h) + 4vh); animation: twinkle 4.2s ease-in-out -1.6s infinite; }
.sparkle path { fill: var(--gold); }
@media (max-width: 699px) {
  .spark.big { width: 26px; height: 26px; right: 22px; top: calc(var(--nav-h) + 4px); }
  .spark.small { width: 13px; height: 13px; right: 56px; top: calc(var(--nav-h) - 2px); }
}

/* ---------- The waves of the icon, drifting (section bottoms) ---------- */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 9vw, 130px); overflow: hidden; pointer-events: none; z-index: 0; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: swell linear infinite; will-change: transform; }
.wave path { fill: #8a93ff; }
.wave.w1 { opacity: .10; animation-duration: 38s; }
.wave.w2 { opacity: .16; animation-duration: 27s; animation-direction: reverse; }
.wave.w3 { opacity: .28; animation-duration: 21s; }
.wave.w3 path { fill: #2b2f7a; opacity: 1; }

/* ---------- Footer (Courant) ---------- */
.foot { position: relative; background: linear-gradient(180deg, transparent, rgba(43, 47, 122, .18)); }

/* ---------- Screenshots of the real app ---------- */
.shot { display: block; }
.shot img { display: block; width: 100%; height: auto; }
/* A Mac window keeps its round corners (transparent PNG → AVIF/WebP); its shadow is drawn here. */
.shot-mac img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)) drop-shadow(0 0 1px rgba(196, 200, 255, .35)); }
/* An iPhone screen in a drawn frame. */
.phone {
  position: relative; border-radius: clamp(26px, 3.6vw, 52px); padding: clamp(5px, .6vw, 9px);
  background: linear-gradient(145deg, #3a3d5c, #14152b 40%, #2a2c45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6);
}
.phone .shot img { border-radius: clamp(21px, 3.1vw, 44px); }

/* ---------- Responsive (mobile first) ---------- */
@media (max-width: 479px) {
  .hero .cta-row, .final .cta-row, .page-hero .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .nav-actions .btn-primary { display: none; }
  .cmp th, .cmp td { padding: 12px 8px; font-size: 13.5px; }
  .cmp tbody th { padding-left: 12px; }
  .cmp thead th { padding: 16px 8px 14px; font-size: 12.5px; }
}
@media (min-width: 640px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-buy { display: inline-flex; }
  .nav-burger { display: none; }
  .mnav { display: none !important; }
  .nav-actions { margin-left: 0; }
  .foot-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}
@media (max-width: 859px) {
  .cmp { table-layout: auto; }
  .cmp thead th:first-child { width: auto; }
  .cmp th, .cmp td { -webkit-hyphens: auto; hyphens: auto; }
}

/* ---------- Reduced motion: no looping or decorative movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wave { animation: none; }
}
