/* Khunt's Lab: one stylesheet. The phone's own font, never heavier than Medium, light and dark, nothing loaded from
   elsewhere. Radii, spacing and motion come from shared/design/tokens.json through tokens.css (written by build.py);
   colours are the brand palette (shared/brand/palette.md). Pink is for shapes only, never text.
   Surfaces are frosted glass, like the apps' (android/shared/uikit Glass.kt): they show the backdrop's light and
   bubbles through them, blurred, and turn solid for visitors who ask for less transparency or more contrast. */

:root {
  --cream: #F4ECE6; --cream-2: #EDE3DB; --cream-3: #E2D3C8; --pink: #C09BAC; --pink-soft: #EBD3DE;
  --forest: #314021; --olive: #617246; --olive-light: #8FA06A; --ink: #0C0D07;

  --bg: var(--cream); --bg-2: #FBF7F4; --card: #FFFDFB; --fg: var(--ink); --muted: #4E5344; --line: #E2D3C8;
  --accent: var(--forest); --accent-fg: var(--cream); --link: #3C5427; --chip: var(--cream-2); --eyebrow: var(--olive);
  --mark-k: var(--forest); --mark-olive: var(--olive); --mark-bubble: var(--pink);
  --shadow: 0 1px 2px rgba(49, 64, 33, .06), 0 12px 32px -12px rgba(49, 64, 33, .18);
  --glow: rgba(192, 155, 172, .22); --sun: 0;
  --only-light: block; --only-dark: none;
  /* glass: the edge, its shine, the rim that catches the pointer, and the backdrop's lights and bubbles */
  --glass-line: rgba(255, 255, 255, .7); --sheen: rgba(255, 255, 255, .55); --rim: rgba(97, 114, 70, .55);
  --glass-shadow: 0 0 0 1px rgba(49, 64, 33, .07), inset 0 1px 0 rgba(255, 255, 255, .85), 0 12px 32px -14px rgba(49, 64, 33, .28);
  --blob-1: rgba(192, 155, 172, .45); --blob-2: rgba(143, 160, 106, .34); --blob-3: rgba(235, 211, 222, .8);
  --orb-pink: rgba(192, 155, 172, .58); --orb-olive: rgba(143, 160, 106, .5); --shine: rgba(255, 255, 255, .9);
  color-scheme: light;

  /* How much of each surface is its own colour; the rest is the page showing through. Theme-free: the mixes pick up
     the theme's --card, --bg and --bg-2. */
  --glass-fill: 56%; --glass-fill-strong: 74%; --band-fill: 50%; --glass-blur: 18px;
  --glass: color-mix(in srgb, var(--card) var(--glass-fill), transparent);
  --glass-bar: color-mix(in srgb, var(--bg) var(--glass-fill-strong), transparent);
  --glass-strong: color-mix(in srgb, var(--card) var(--glass-fill-strong), transparent);
  --band: color-mix(in srgb, var(--bg-2) var(--band-fill), transparent);
  --frost: blur(var(--glass-blur)) saturate(1.6);
}
/* Dark, twice with the same values (a test keeps them equal): from the system unless light was picked with the
   ☀︎/☾ toggle, and from the toggle. theme.js sets data-theme on <html>. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0F110B; --bg-2: #151810; --card: #1A1E14; --fg: #EDE3DB; --muted: #B7AEA5; --line: #2C3222;
  --accent: var(--olive-light); --accent-fg: #0F110B; --link: #B9C893; --chip: #232919; --eyebrow: var(--olive-light);
  --mark-k: #D8C6BA; --mark-olive: var(--olive-light); --mark-bubble: #D3B3C2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .6);
  --glow: rgba(143, 160, 106, .16); --sun: 1;
  --only-light: none; --only-dark: block;
  --glass-line: rgba(237, 227, 219, .1); --sheen: rgba(237, 227, 219, .05); --rim: rgba(237, 227, 219, .5);
  --glass-shadow: inset 0 1px 0 rgba(237, 227, 219, .08), 0 16px 36px -16px rgba(0, 0, 0, .75);
  --blob-1: rgba(192, 155, 172, .2); --blob-2: rgba(97, 114, 70, .3); --blob-3: rgba(143, 160, 106, .12);
  --orb-pink: rgba(211, 179, 194, .3); --orb-olive: rgba(143, 160, 106, .3); --shine: rgba(237, 227, 219, .5);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F110B; --bg-2: #151810; --card: #1A1E14; --fg: #EDE3DB; --muted: #B7AEA5; --line: #2C3222;
  --accent: var(--olive-light); --accent-fg: #0F110B; --link: #B9C893; --chip: #232919; --eyebrow: var(--olive-light);
  --mark-k: #D8C6BA; --mark-olive: var(--olive-light); --mark-bubble: #D3B3C2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .6);
  --glow: rgba(143, 160, 106, .16); --sun: 1;
  --only-light: none; --only-dark: block;
  --glass-line: rgba(237, 227, 219, .1); --sheen: rgba(237, 227, 219, .05); --rim: rgba(237, 227, 219, .5);
  --glass-shadow: inset 0 1px 0 rgba(237, 227, 219, .08), 0 16px 36px -16px rgba(0, 0, 0, .75);
  --blob-1: rgba(192, 155, 172, .2); --blob-2: rgba(97, 114, 70, .3); --blob-3: rgba(143, 160, 106, .12);
  --orb-pink: rgba(211, 179, 194, .3); --orb-olive: rgba(143, 160, 106, .3); --shine: rgba(237, 227, 219, .5);
  color-scheme: dark;
}
/* Solid instead of glass: for visitors who ask for less transparency or more contrast, and in browsers without blur
   (there, see-through without blur would only make text harder to read). */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --glass-fill: 100%; --glass-fill-strong: 100%; --band-fill: 100%; --glass-blur: 0px; }
  .backdrop .orb { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-fill: 94%; --glass-fill-strong: 96%; --band-fill: 90%; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
img, svg, video { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 10px; }
h3 { font-size: 1.12rem; margin: 0 0 6px; letter-spacing: 0; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 44em; }
.small { font-size: .9rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--eyebrow); font-weight: 500; margin-bottom: 10px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
section { padding: clamp(48px, 8vw, 96px) 0; }
section.tight { padding-top: 0; }
.band { background: var(--band); border-block: 1px solid var(--glass-line); }

/* ---------- glass ---------- */
/* Every card-like surface: tinted glass with a soft shine from the top left, a light edge and a shadow. */
.card, .steps li, .table-wrap, .boiler, .swatch, .stat, .chip, .btn.ghost, .theme-toggle, .to-top {
  background: linear-gradient(135deg, var(--sheen), transparent 42%), var(--glass);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.chip, .btn.ghost, .theme-toggle { box-shadow: inset 0 1px 0 var(--sheen); }

/* The backdrop (parts.backdrop): fixed behind the page, three soft lights and the lab's bubbles. Still on its own;
   site.js moves them as the page scrolls. Each bubble: where it sits (--x, --y), its size (--s), how fast it rises
   with the scroll (--v) and its colour. */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop i { position: absolute; border-radius: 50%; will-change: transform; }
.blob { width: 72vmax; height: 72vmax; background: radial-gradient(closest-side, var(--c), transparent); }
.blob:nth-child(1) { --c: var(--blob-1); top: -34vmax; right: -26vmax; }
.blob:nth-child(2) { --c: var(--blob-2); bottom: -40vmax; left: -32vmax; }
.blob:nth-child(3) { --c: var(--blob-3); top: 28vh; left: 30vw; width: 52vmax; height: 52vmax; }
.orb { --c: var(--orb-pink); left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: radial-gradient(circle at 33% 30%, var(--shine) 0 11%, transparent 13%),
              radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent) 50%, var(--c));
  box-shadow: inset 0 0 0 1px var(--c); }
.orb:nth-child(4)  { --x: 5%;  --y: 74%; --s: 40px; --v: .55; }
.orb:nth-child(5)  { --x: 11%; --y: 28%; --s: 18px; --v: .9;  --c: var(--orb-olive); }
.orb:nth-child(6)  { --x: 91%; --y: 58%; --s: 56px; --v: .4;  --c: var(--orb-olive); }
.orb:nth-child(7)  { --x: 85%; --y: 16%; --s: 22px; --v: .75; }
.orb:nth-child(8)  { --x: 95%; --y: 90%; --s: 14px; --v: 1.1; }
.orb:nth-child(9)  { --x: 2%;  --y: 48%; --s: 12px; --v: 1.25; }
.orb:nth-child(10) { --x: 47%; --y: 94%; --s: 72px; --v: .3; }
.orb:nth-child(11) { --x: 70%; --y: 40%; --s: 16px; --v: .95; --c: var(--orb-olive); }
.orb:nth-child(12) { --x: 25%; --y: 62%; --s: 28px; --v: .6; }
.orb:nth-child(13) { --x: 60%; --y: 6%;  --s: 34px; --v: .5;  --c: var(--orb-olive); }
@media (max-width: 720px) { .orb:nth-child(n+10) { display: none; } }
/* Long reading pages: the bubbles stay fainter, so they never compete with the words. */
body:has(.prose) .orb { opacity: .45; }

/* ---------- header ---------- */
/* A frosted bar at the top; once the page scrolls it lifts off into a floating glass island (same height, so nothing
   below it moves). */
.site-header { position: sticky; top: 0; z-index: 10; display: flow-root; background: var(--glass-bar); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
  transition: background-color var(--d-in-place) var(--ease-standard), border-color var(--d-in-place) var(--ease-standard),
              -webkit-backdrop-filter var(--d-in-place) var(--ease-standard), backdrop-filter var(--d-in-place) var(--ease-standard); }
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav toggle";
  align-items: center; gap: 12px; min-height: 64px; border: 1px solid transparent; border-radius: 0;
  transition: max-width .5s var(--ease-decel), margin .5s var(--ease-decel), min-height .5s var(--ease-decel),
              padding .5s var(--ease-decel), border-radius .5s var(--ease-decel), background-color var(--d-in-place) var(--ease-standard),
              border-color var(--d-in-place) var(--ease-standard), box-shadow .5s var(--ease-decel); }
.site-header.scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.scrolled .wrap { max-width: min(1060px, calc(100% - 16px)); margin: 6px auto; min-height: 52px; padding: 0 6px 0 18px;
  border-radius: var(--r-pill); background: var(--glass-strong); border-color: var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
.brand { grid-area: brand; }
.site-header nav { grid-area: nav; justify-self: end; }
.theme-toggle { grid-area: toggle; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand svg { width: 34px; height: 30px; }
.wordmark { text-transform: uppercase; letter-spacing: .22em; font-weight: 400; font-size: .95rem; white-space: nowrap; }
.site-header nav { position: relative; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a { position: relative; z-index: 1; color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill);
  font-size: .95rem; white-space: nowrap; transition: background var(--d-in-place) var(--ease-standard); }
.site-header nav a:hover { background: var(--chip); }
.site-header nav a[aria-current] { background: var(--chip); font-weight: 500; }
.site-header nav a.lang { color: var(--muted); border: 1px solid var(--line); margin-left: 6px; }
/* With a mouse, site.js adds a pill that glides to the link under the pointer and back to the current page. */
.nav-pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: var(--r-pill); background: var(--chip); pointer-events: none;
  opacity: 0; transition: transform .45s var(--ease-decel), width .45s var(--ease-decel), height .45s var(--ease-decel), opacity var(--d-exit) var(--ease-standard); }
.site-header nav.pilled a:hover, .site-header nav.pilled a[aria-current] { background: transparent; }
/* Company opens a small menu (About us, Press kit, each with a line under it) on hover or keyboard focus. Without a mouse, or on a
   narrow screen, the wrapper disappears and Press kit is an ordinary link in the row; the menu hangs below the row, so the row
   must not clip it. */
.has-sub { position: relative; display: flex; }
.sub a b { font-weight: 500; }
.sub a small { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); white-space: normal; }
@media (hover: hover) and (min-width: 721px) {
  .site-header nav { overflow: visible; }
  .sub { position: absolute; top: calc(100% + 2px); left: 50%; z-index: 3; display: flex; flex-direction: column; gap: 2px; width: 280px;
    padding: 8px; border: 1px solid var(--line); border-radius: var(--r-large); background: var(--card); box-shadow: var(--glass-shadow);
    visibility: hidden; opacity: 0; transform: translate(-50%, -6px);
    transition: opacity var(--d-in-place) var(--ease-standard), transform var(--d-in-place) var(--ease-standard), visibility 0s linear var(--d-in-place); }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* keeps the menu open on the way down */
  .sub::after { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; background: var(--card);
    border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }
  .site-header nav .sub a { padding: 10px 14px; border-radius: var(--r-medium); line-height: 1.25; }
  .site-header nav.pilled .sub a:hover, .site-header nav.pilled .sub a[aria-current] { background: var(--chip); }
}
@media not all and (hover: hover) and (min-width: 721px) {
  .has-sub, .sub { display: contents; }
  .sub a:first-child { display: none; }
  .sub a small { display: none; }
}
@media (max-width: 720px) {
  .site-header .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand toggle" "nav nav"; gap: 0 8px; padding-top: 10px; }
  .site-header nav { justify-self: stretch; margin: 0 -16px; padding: 6px 12px 10px; }
  .site-header.scrolled .wrap { border-radius: var(--r-large); padding: 4px 6px 0 14px; }
  .site-header.scrolled nav { margin: 0 -6px 0 -14px; padding: 4px 8px 6px; }
}

/* ☀︎ / ☾: monochrome text glyphs (U+FE0E), the one you'd switch to is shown. Hidden until theme.js is there to run it. */
.theme-toggle { position: relative; display: none; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--fg); cursor: pointer; padding: 0; font: 1.15rem/1 system-ui, sans-serif;
  font-variant-emoji: text; -webkit-tap-highlight-color: transparent;
  transition: background var(--d-in-place) var(--ease-standard), transform var(--d-exit) var(--ease-standard); }
.has-theme-toggle .theme-toggle { display: grid; }
.theme-toggle:hover { background-color: var(--chip); }
.theme-toggle:active { transform: scale(var(--press-button)); }
.theme-toggle span { grid-area: 1 / 1; transition: transform var(--d-enter) var(--ease-decel), opacity var(--d-exit) var(--ease-standard); }
.theme-toggle .sun { opacity: var(--sun); transform: rotate(calc((1 - var(--sun)) * -90deg)) scale(calc(.4 + .6 * var(--sun))); }
.theme-toggle .moon { opacity: calc(1 - var(--sun)); transform: rotate(calc(var(--sun) * 90deg)) scale(calc(1 - .6 * var(--sun))); }
.theme-swap, .theme-swap *, .theme-swap *::before { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease !important; }

.draft-banner { background: var(--pink-soft); color: var(--ink); text-align: center; font-size: .88rem; padding: 6px 16px; }

/* ---------- buttons, chips ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-pill); text-decoration: none;
  font-weight: 500; background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 55%), var(--accent); color: var(--accent-fg);
  border: 1px solid var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform var(--d-exit) var(--ease-standard), box-shadow var(--d-in-place) var(--ease-standard); }
.btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--shadow); }
.btn:active { transform: scale(var(--press-button)); }
.btn.ghost { color: var(--fg); }
.btn.ghost:hover { box-shadow: inset 0 1px 0 var(--sheen), var(--shadow); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chip { position: relative; border-radius: var(--r-pill); padding: 5px 12px; font-size: .85rem; color: var(--fg); }
.chip.soon { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 1px dashed var(--line); color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 78% 30%, color-mix(in srgb, var(--pink) 38%, transparent), transparent 70%),
              radial-gradient(35% 45% at 12% 70%, color-mix(in srgb, var(--olive-light) 26%, transparent), transparent 70%);
  transform: translate3d(calc(var(--px, 0) * 28px), calc(var(--py, 0) * 20px), 0); transition: transform .9s var(--ease-decel); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .motto { font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: .02em; color: var(--muted); margin-bottom: 20px; }
.hero .motto .w { display: inline-block; }
.stage { position: relative; aspect-ratio: 1416 / 1216; width: 100%; max-width: 440px; justify-self: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.stage .mark { width: 100%; height: 100%; display: block; overflow: visible; }
.stage .fx { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; border-radius: 50%; background: var(--mark-bubble); opacity: 0; will-change: transform, opacity; }
.bubble::after { content: ""; position: absolute; left: 19%; top: 19%; width: 22%; height: 22%; border-radius: 50%; background: var(--cream); }
.bubble.plain::after { content: none; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .stage { order: -1; max-width: 220px; justify-self: start; }
}

.app-hero .icon { width: 96px; height: 96px; border-radius: 26%; box-shadow: var(--shadow); margin-bottom: 18px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: var(--s-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; border-radius: var(--r-large); padding: 22px;
  transition: transform var(--d-in-place) var(--ease-decel), box-shadow var(--d-in-place) var(--ease-standard); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow), var(--shadow); }
a.card:active { transform: scale(var(--press-card)); }
.card .emoji { font-size: 1.6rem; line-height: 1; display: inline-block; margin-bottom: 12px; }
.card .more { color: var(--link); font-weight: 500; margin-top: 12px; display: inline-block; }
.card .more::after { content: " →"; display: inline-block; transition: transform var(--d-in-place) var(--ease-decel); }
a.card:hover .more::after { transform: translateX(4px); }

/* Features by name only (an app page, the guide's "more to find"): small tiles, the emoji beside the name. */
.feature-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 20px 0 16px; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 500; }
.feature-list .emoji { margin: 0; font-size: 1.4rem; }

.app-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding: 26px; }
.app-card img { width: 72px; height: 72px; border-radius: 26%; box-shadow: var(--shadow); }
.app-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }

.promise { display: grid; gap: var(--s-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* The numbers sit in glass bubbles; tap one and it wobbles, lets out bubbles and counts again (site.js). */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-gap); text-align: center; justify-items: center; }
.stat { position: relative; display: grid; place-content: center; width: min(100%, 176px); aspect-ratio: 1; border-radius: 50%;
  padding: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: scale var(--d-in-place) var(--ease-decel); }
.stat::before { content: ""; position: absolute; left: 21%; top: 13%; width: 20%; height: 11%; border-radius: 50%;
  background: var(--shine); opacity: .7; rotate: -32deg; pointer-events: none; }
.stat:hover { scale: 1.04; }
.stat.wobble { animation: wobble .7s var(--ease-decel); }
.stat b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@keyframes wobble { 0%, 100% { scale: 1; } 25% { scale: 1.1 .92; } 50% { scale: .95 1.06; } 75% { scale: 1.03 .98; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; border-radius: var(--r-large); padding: 20px 20px 18px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 55%), var(--accent); color: var(--accent-fg); font-weight: 500; margin-bottom: 12px; }
.steps li p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 20px; } }

.quote { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.quote .w { display: inline-block; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-medium); margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 500; background: var(--band); }
.platforms td:not(:first-child), .platforms th:not(:first-child) { width: 28%; }
.yes::before { content: "✓ "; color: var(--eyebrow); font-weight: 500; }
.no { color: var(--muted); }

/* ---------- press kit ---------- */
.center { text-align: center; } .actions.center { justify-content: center; }
.sw-forest { background: #314021; } .sw-olive { background: #617246; } .sw-pink { background: #C09BAC; }
.sw-cream { background: #D8C6BA; } .sw-ink { background: #0C0D07; } .sw-olive-light { background: #8FA06A; }
.swatches { display: grid; gap: var(--s-gap); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.swatch { border-radius: var(--r-medium); overflow: hidden; cursor: pointer;
  text-align: left; font: inherit; color: inherit; padding: 0; transition: transform var(--d-exit) var(--ease-standard); }
.swatch:active { transform: scale(var(--press-card)); }
.swatch i { display: block; height: 84px; }
.swatch span { display: block; padding: 10px 12px; font-size: .9rem; }
.swatch code { color: var(--muted); }
.swatch.popped { animation: pop var(--d-popfade) var(--ease-decel); }
.downloads { display: grid; gap: var(--s-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.download img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--cream-2);
  border-radius: var(--r-small); margin-bottom: 12px; padding: 14px; }
.download.dark img { background: #0F110B; }
.download a { margin-right: 12px; font-size: .92rem; }
.boiler { border-radius: var(--r-medium); padding: 18px 20px; }
video.brand-film { width: 100%; border-radius: var(--r-large); border: 1px solid var(--glass-line); background: var(--cream); box-shadow: var(--glass-shadow); }

/* ---------- long reading pages (legal) ---------- */
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.prose h3 { margin-top: 22px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .table-wrap table { font-size: .93rem; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { text-decoration: none; }
.placeholder { background: #FFF3B0; color: #3A2E00; padding: 0 4px; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--glass-line); background: var(--band); padding: 56px 0 36px; margin-top: 40px; font-size: .94rem;
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; color: var(--muted); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--fg); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-brand svg { width: 44px; height: 38px; margin-bottom: 10px; }
.foot-brand .motto { font-style: italic; color: var(--muted); margin: 8px 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line);
  margin-top: 36px; padding-top: 18px; color: var(--muted); font-size: .86rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Back to top: a glass bubble that floats up once the page has scrolled a while (site.js); a plain link underneath. */
.to-top { position: fixed; z-index: 15; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--fg);
  -webkit-tap-highlight-color: transparent; }
.has-to-top .to-top { display: grid; visibility: hidden; opacity: 0; translate: 0 28px; scale: .6;
  transition: opacity var(--d-exit) var(--ease-standard), translate .5s var(--ease-decel), scale .5s var(--ease-decel), visibility 0s linear .5s; }
.has-to-top .to-top.show { visibility: visible; opacity: 1; translate: none; scale: 1; transition-delay: 0s; }
.has-to-top .to-top.show:hover { scale: 1.08; }
.has-to-top .to-top.show:active { scale: var(--press-button); }

/* ---------- where to get it (parts.stores) ---------- */
.store-note { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 18px; color: var(--muted); font-weight: 500; }
.store-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olive-light); box-shadow: 0 0 0 4px var(--glow); }

/* ---------- try it (parts.demo): radio buttons pick the card that shows; no script ---------- */
.demo { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.demo-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.chip.pick { cursor: pointer; padding: 10px 16px; font-size: .95rem; font-weight: 500; transition: transform var(--d-in-place) var(--ease-decel), box-shadow var(--d-in-place) var(--ease-standard); }
.chip.pick:active { transform: scale(var(--press-button)); }
.demo-results > .demo-card { display: none; }
.demo > input:nth-of-type(1):checked ~ .demo-picks > .pick:nth-child(1),
.demo > input:nth-of-type(2):checked ~ .demo-picks > .pick:nth-child(2),
.demo > input:nth-of-type(3):checked ~ .demo-picks > .pick:nth-child(3),
.demo > input:nth-of-type(4):checked ~ .demo-picks > .pick:nth-child(4) { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow); }
.demo > input:nth-of-type(1):focus-visible ~ .demo-picks > .pick:nth-child(1),
.demo > input:nth-of-type(2):focus-visible ~ .demo-picks > .pick:nth-child(2),
.demo > input:nth-of-type(3):focus-visible ~ .demo-picks > .pick:nth-child(3),
.demo > input:nth-of-type(4):focus-visible ~ .demo-picks > .pick:nth-child(4) { outline: 2px solid var(--accent); outline-offset: 3px; }
.demo > input:nth-of-type(1):checked ~ .demo-results > .demo-card:nth-child(1),
.demo > input:nth-of-type(2):checked ~ .demo-results > .demo-card:nth-child(2),
.demo > input:nth-of-type(3):checked ~ .demo-results > .demo-card:nth-child(3),
.demo > input:nth-of-type(4):checked ~ .demo-results > .demo-card:nth-child(4) { display: block; animation: fadeup var(--d-enter) var(--ease-decel) both; }
.demo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-head .emoji { margin: 0; font-size: 2rem; }
.demo-head h3 { margin: 0; flex: 1 1 auto; }
.demo-score { display: grid; justify-items: end; gap: 4px; }
.demo-score b { font-size: 1.6rem; font-weight: 500; line-height: 1; }
.demo-score small { color: var(--muted); }
.demo-score meter { width: 120px; height: 8px; }
.verdict { margin: 14px 0 10px; font-weight: 500; font-size: 1.1rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.people li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 14px; padding: 10px 12px 10px 16px; border-radius: var(--r-medium);
  background: var(--chip); position: relative; }
.people li::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--olive-light); }
.people li.no::before { background: var(--pink); }
.people li.limit::before, .people li.maybe::before { background: var(--cream-3); box-shadow: 0 0 0 1px var(--olive-light); }
.people .who { font-weight: 500; }
.people li span:last-child { color: var(--muted); }
.why { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) { .people li { grid-template-columns: minmax(0, 1fr); } .demo-score { justify-items: start; } }

/* ---------- questions (parts.faq) ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 1.4rem; line-height: 1; color: var(--muted);
  transition: rotate var(--d-in-place) var(--ease-decel); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 22px 20px; }
.faq details[open] p { animation: fadeup var(--d-enter) var(--ease-decel) both; }

/* ---------- home: the app in the spotlight, and what is still to come ---------- */
.spotlight { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; padding: clamp(22px, 4vw, 40px); }
.spotlight > img { width: 120px; height: 120px; border-radius: 26%; box-shadow: var(--shadow); }
.spotlight h2 { margin-top: 0; }
.spotlight ul { margin: 12px 0 18px; padding-left: 18px; color: var(--muted); }
.spotlight + .grid { margin-top: var(--s-gap); }
.soon-card { border: 1px dashed var(--line); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.category { margin-top: 28px; }
.category:first-child { margin-top: 0; }
@media (max-width: 620px) { .spotlight { grid-template-columns: minmax(0, 1fr); } .spotlight > img { width: 88px; height: 88px; } }

/* ---------- play (site.js) ---------- */
.card, .steps li, .swatch { isolation: isolate; }
.card::after, .swatch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  opacity: 0; transition: opacity var(--d-in-place) var(--ease-standard);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%); }
/* The glass edge catches the light where the pointer is. */
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  opacity: 0; transition: opacity var(--d-in-place) var(--ease-standard);
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), var(--rim), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card:hover::after, .swatch:hover::after, .card:hover::before { opacity: 1; }
.swatch { position: relative; }
.card:hover .emoji { animation: wiggle .6s var(--ease-decel); }
@keyframes wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-12deg) scale(1.15); } 60% { transform: rotate(8deg) scale(1.1); } }
.card.tilting { will-change: transform; transition: transform .35s var(--ease-decel), box-shadow var(--d-in-place) var(--ease-standard); }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.fx-layer .bubble { opacity: 1; }
.confetti { position: absolute; border-radius: 2px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--olive), var(--pink)); }
/* A touch ripples out from where it landed, in the surface's own text colour. */
.ripples { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ripples i { position: absolute; border-radius: 50%; background: currentColor; opacity: 0; }

/* ---------- motion (site.js adds .js; nothing is hidden without it) ---------- */
/* Reveals move with `translate`, not `transform`: a reveal holds its last frame, and holding `transform` would pin
   the cards so their hover lift and tilt never showed. */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.92); } to { transform: scale(1); } }
@keyframes fadeup { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
.js [data-reveal] > *, .js .reveal { opacity: 0; }
.js [data-reveal].in > *, .js .reveal.in {
  animation: fadeup var(--d-reveal-enter) var(--ease-decel) both;
  animation-delay: min(calc(var(--i, 0) * var(--d-reveal-step)), var(--d-reveal-max)); }
.js .motto .w, .js .quote .w { opacity: 0; }
.js .in .w, .js .motto.in .w { animation: fadeup var(--d-enter) var(--ease-decel) both; animation-delay: calc(var(--i) * 90ms + 200ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] > *, .js .reveal, .js .w { opacity: 1 !important; }
}

/* Guide pages (guide.py): every point with its animation, drawn from the apps' own clips (shared/animations). Each clip
   comes light and dark; the one for the page's theme shows, whether it follows the system or the toggle. */
.guide-grid { display: grid; gap: var(--s-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.guide-item h3 { margin-top: 4px; }
.guide-item ul { color: var(--muted); padding-left: 1.2em; }
.clip { margin: -6px -6px 14px; cursor: pointer; }
.clip img { display: block; width: 100%; height: auto; border-radius: var(--r-medium); }
.only-light { display: var(--only-light); }
.only-dark { display: var(--only-dark); }
