/* SPDX-FileCopyrightText: 2026 Wonmor and Vutric contributors */
/* SPDX-License-Identifier: Apache-2.0 */
/* Vutric design system page. One system: the tokens below drive every rule. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --cobalt-900: #062b8a;
  --cobalt-700: #1a45b8;
  --signal-500: #2f6bff;
  --glow-200: #f4d9a6;
  --sand-200: #e6dbc7;
  --sand-300: #ddd0b9;
  --sand-50: #f7f2e9;
  --night-950: #040c29;
  --night-900: #0a1847;
  --night-800: #12245e;
  --ok: #1d7a4e;
  --err: #a8321f;

  /* light theme (default) */
  --bg: var(--sand-200);
  --bg-alt: var(--sand-300);
  --raised: var(--sand-50);
  --ink: var(--cobalt-900);
  --muted: #3253a4;
  --line: rgb(6 43 138 / 0.14);
  --line-strong: rgb(6 43 138 / 0.28);
  --action: var(--cobalt-900);
  --action-ink: var(--sand-50);
  --focus: var(--signal-500);
  --shadow: 0 1px 2px rgb(6 43 138 / 0.08), 0 8px 24px rgb(6 43 138 / 0.08);

  /* type */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-h1: clamp(40px, 3.6vw + 12px, 76px);
  --t-h2: clamp(28px, 1.6vw + 16px, 44px);
  --t-h3: 20px;
  --t-lead: clamp(18px, 0.4vw + 15px, 21px);
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 13px;

  /* rhythm */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --nav: 72px;
  --padt: 120px;
  --padb: 72px;
  --gut: 80px;

  /* shape and motion */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;
  --btn-h: 44px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.6, 0.64, 1);
  --t-fast: 180ms;

  color-scheme: light;
}

/* dark theme: the system's choice unless the visitor picked light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night-950);
    --bg-alt: #071339;
    --raised: var(--night-900);
    --ink: #ede5d6;
    --muted: #aab6dc;
    --line: rgb(237 229 214 / 0.13);
    --line-strong: rgb(237 229 214 / 0.26);
    --action: var(--glow-200);
    --action-ink: var(--cobalt-900);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"],
[data-grade="night"] {
  --bg: var(--night-950);
  --bg-alt: #071339;
  --raised: var(--night-900);
  --ink: #ede5d6;
  --muted: #aab6dc;
  --line: rgb(237 229 214 / 0.13);
  --line-strong: rgb(237 229 214 / 0.26);
  --action: var(--glow-200);
  --action-ink: var(--cobalt-900);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

@media (max-width: 639px) {
  :root { --nav: 56px; --padt: 96px; --padb: 48px; --gut: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b { font-weight: 500; }
.mono { font-family: var(--mono); font-size: 0.875em; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

h1 {
  font-size: var(--t-h1);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 26ch;
  text-wrap: balance;
}
h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--btn-h);
  padding: 0 var(--s-5);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn:hover { transform: translateY(-1px); }
.btn--primary:hover { box-shadow: 0 6px 18px -6px var(--action); }
.btn--secondary:hover { border-color: var(--ink); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }
.btn--sm { height: 36px; padding: 0 var(--s-4); font-size: var(--t-small); }
.btn--block { width: 100%; height: 48px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: background-size var(--t-fast) var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link--inv { color: var(--glow-200); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__row { height: 100%; display: flex; align-items: center; gap: var(--s-6); position: relative; }
.skip {
  position: absolute; left: var(--gut); top: 8px;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  background: var(--action); color: var(--action-ink); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
}
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.brand__mark { width: 28px; height: 28px; color: var(--ink); }
.nav__links { display: flex; gap: var(--s-5); margin-left: var(--s-5); }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color var(--t-fast) var(--ease-out); }
.nav__links a:hover { color: var(--ink); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }
.theme { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-full); }
.theme button {
  border: 0; background: none; height: 30px; padding: 0 var(--s-3); border-radius: var(--r-full);
  font-size: var(--t-label); font-weight: 500; color: var(--muted); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.theme button:hover { color: var(--ink); }
.theme button[aria-checked="true"] { background: var(--ink); color: var(--bg); }

@media (max-width: 1023px) {
  .nav__links { display: none; }
}
@media (max-width: 639px) {
  .btn--nav { display: none; }
  .brand { font-size: 18px; }
}

/* ---------- Sections ---------- */
.sec {
  min-height: 100svh;
  padding: var(--padt) 0 var(--padb);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}
.sec--alt { background: var(--bg-alt); }
.sec > .wrap > h2 { margin-bottom: var(--s-7); }
@media (max-width: 639px) { .sec > .wrap > h2 { margin-bottom: var(--s-6); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav) + var(--s-7)) 0 var(--s-8);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 82% 45%, rgb(47 107 255 / 0.22), transparent 70%),
    linear-gradient(180deg, #040c29 0%, #061238 100%);
  color: var(--ink);
}
.hero__canvas, .hero__still { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still {
  display: none;
  background:
    radial-gradient(closest-side, transparent 78%, rgb(244 217 166 / 0.85) 84%, rgb(47 107 255 / 0.65) 90%, transparent 100%)
      calc(100% + 6vw) 46% / 22vw 64vh no-repeat;
}
.no-canvas .hero__still { display: block; }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 19ch; margin-top: var(--s-5); hyphens: manual; }
.hero .lead { max-width: 56ch; margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.5; color: var(--muted); }
.hero .btn-row { margin-top: var(--s-6); }
.pill {
  display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  font-size: var(--t-label); font-weight: 500; color: var(--muted);
  background: rgb(4 12 41 / 0.5);
}
.hero__pause {
  position: absolute; right: var(--gut); bottom: var(--s-6); z-index: 1;
  height: 36px; padding: 0 var(--s-4); border-radius: var(--r-full);
  border: 1px solid var(--line-strong); background: rgb(4 12 41 / 0.55); color: var(--ink);
  font-size: var(--t-label); font-weight: 500; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out);
}
.hero__pause:hover { border-color: var(--ink); }
@media (max-width: 767px) {
  .hero { padding-bottom: calc(var(--s-8) + 40px); }
  .hero__pause { left: var(--gut); right: auto; bottom: var(--s-5); }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Colour ---------- */
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-5); }
.swatch { display: flex; flex-direction: column; gap: var(--s-2); }
.swatch h3 { font-size: 17px; margin-top: var(--s-3); }
.swatch p { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.swatch p.mono { color: var(--ink); font-size: var(--t-label); }
.swatch__chip {
  aspect-ratio: 4 / 5; border-radius: var(--r-md); border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: var(--s-4);
  font-size: 32px; font-weight: 500; letter-spacing: -0.03em;
  transition: transform var(--t-fast) var(--ease-out);
}
.swatch:hover .swatch__chip { transform: translateY(-2px); }
.chip--cobalt { background: var(--cobalt-900); color: var(--sand-200); }
.chip--signal { background: var(--signal-500); color: #fff; }
.chip--glow { background: var(--glow-200); color: var(--cobalt-900); }
.chip--sand { background: var(--sand-200); color: var(--cobalt-900); }
.chip--paper { background: var(--sand-50); color: var(--cobalt-900); }
.chip--night { background: var(--night-950); color: var(--glow-200); }
.ramp { margin-top: var(--s-7); height: 56px; border-radius: var(--r-md); background: var(--night-950); padding: 18px 24px; border: 1px solid var(--line); }
.ramp__bar { display: block; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--signal-500), var(--glow-200)); box-shadow: 0 0 24px rgb(47 107 255 / 0.55); }
.ramp__note { margin-top: var(--s-4); color: var(--muted); max-width: 70ch; }
@media (max-width: 1023px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .swatches { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }

/* ---------- Type ---------- */
.type { border-top: 1px solid var(--line); }
.type__row {
  display: grid; grid-template-columns: 280px 1fr; gap: var(--s-5); align-items: baseline;
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
}
.type__meta { color: var(--muted); font-size: var(--t-label); }
.t-display { font-size: clamp(40px, 3vw + 18px, 64px); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; }
.t-title { font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; }
.t-head { font-size: 20px; line-height: 1.3; font-weight: 500; }
.t-body { font-size: 16px; line-height: 1.6; max-width: 62ch; }
.t-label { font-size: var(--t-label); line-height: 1.4; font-weight: 500; }
.t-mono { font-family: var(--mono); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.type__note { margin-top: var(--s-5); color: var(--muted); max-width: 72ch; }
@media (max-width: 767px) { .type__row { grid-template-columns: 1fr; gap: var(--s-2); } }

/* ---------- Foundations ---------- */
.found { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.found__col { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); }
.found__col > p { color: var(--muted); font-size: 15px; margin-top: auto; }
.space { display: grid; gap: var(--s-2); }
.space li { display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: var(--s-3); }
.space__bar { height: 12px; border-radius: 3px; background: var(--ink); opacity: 0.85; }
.s-1 { width: 4px; } .s-2 { width: 8px; } .s-3 { width: 12px; } .s-4 { width: 16px; }
.s-5 { width: 24px; } .s-6 { width: 32px; } .s-7 { width: 48px; } .s-8 { width: 64px; }
.space .mono { text-align: right; color: var(--muted); }
.radii { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.radius {
  aspect-ratio: 1.3; border: 1.5px solid var(--ink); display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-3); font-size: var(--t-label); gap: 2px;
}
.radius span:last-child { color: var(--muted); }
.r-sm { border-radius: 8px; }
.r-md { border-radius: 14px; }
.r-lg { border-radius: 22px; }
.r-full { border-radius: 999px; padding-inline: var(--s-5); }
.ease { display: grid; gap: var(--s-5); }
.ease__row { display: grid; gap: var(--s-2); font-size: 15px; }
.ease__row .mono { color: var(--muted); }
.ease__track { position: relative; height: 24px; border-radius: var(--r-full); background: var(--bg-alt); border: 1px solid var(--line); }
.ease__dot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ease--out { animation: ease-move 3s var(--ease-out) infinite; }
  .ease--back { animation: ease-move 3s var(--ease-back) infinite; }
  .ease--spring { animation: ease-spring 3s linear infinite; }
}
@keyframes ease-move {
  0%, 10% { left: 3px; }
  45%, 60% { left: calc(100% - 19px); }
  95%, 100% { left: 3px; }
}
@keyframes ease-spring {
  0%, 10% { left: 3px; }
  22% { left: calc(100% - 4px); }
  28% { left: calc(100% - 30px); }
  34% { left: calc(100% - 12px); }
  40% { left: calc(100% - 22px); }
  46%, 60% { left: calc(100% - 19px); }
  95%, 100% { left: 3px; }
}
@media (max-width: 1023px) { .found { grid-template-columns: 1fr 1fr; } .found__col:last-child { grid-column: 1 / -1; } }
@media (max-width: 639px) { .found { grid-template-columns: 1fr; } }

/* ---------- Components ---------- */
.comp { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.comp__card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); }
.comp__card--wide { grid-column: span 2; }
.demo { display: flex; flex-direction: column; gap: var(--s-5); }
.demo--stack { align-items: flex-start; gap: var(--s-4); }
@media (max-width: 1023px) { .comp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .comp { grid-template-columns: 1fr; } .comp__card--wide { grid-column: auto; } }

.seg { display: inline-flex; padding: 3px; border-radius: var(--r-full); background: var(--bg-alt); border: 1px solid var(--line); align-self: flex-start; }
.seg > * {
  border: 0; background: none; height: 38px; padding: 0 var(--s-4); border-radius: var(--r-full);
  font-size: var(--t-small); font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.seg > *:hover { color: var(--ink); }
.seg > [aria-checked="true"], .seg > .is-on { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.seg--sm > * { height: 28px; padding: 0 var(--s-3); font-size: 12.5px; }

.slider { display: grid; gap: var(--s-2); }
.slider__head { display: flex; justify-content: space-between; align-items: baseline; }
.slider input { width: 100%; accent-color: var(--action); height: 24px; cursor: pointer; }

.toggle { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; font-size: 15px; min-height: 44px; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui {
  flex: none; position: relative; width: 44px; height: 26px; border-radius: var(--r-full);
  background: var(--line-strong); transition: background-color var(--t-fast) var(--ease-out);
}
.toggle__ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--raised); box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 220ms var(--ease-back);
}
.toggle input:checked + .toggle__ui, .toggle__ui.is-on { background: var(--action); }
.toggle input:checked + .toggle__ui::after, .toggle__ui.is-on::after { transform: translateX(18px); background: var(--action-ink); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--focus); outline-offset: 3px; }

.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 32px; padding: 0 var(--s-3);
  border-radius: var(--r-full); background: var(--bg-alt); border: 1px solid var(--line); font-size: var(--t-label); font-weight: 500;
}
.chip--sm { height: 28px; font-size: 12px; align-self: flex-start; }
.chip--inv { background: rgb(237 229 214 / 0.08); align-self: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--live { background: #2fbf71; box-shadow: 0 0 0 3px rgb(47 191 113 / 0.2); }
.tag { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-full); padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }

/* effect picker cards, with 3-second loops */
.fx { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.fx__card {
  display: flex; flex-direction: column; gap: var(--s-2); text-align: left; padding: var(--s-2);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.fx__card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.fx__card[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fx__name { font-size: var(--t-small); font-weight: 500; padding: 0 var(--s-1) var(--s-1); }
.fx__view { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: radial-gradient(80% 90% at 85% 50%, #0c1d55, var(--night-950)); }
.fx__view i, .fx__view b { position: absolute; display: block; }
.fx__view b { width: 30%; height: 26%; top: 37%; left: 30%; border-radius: 4px; background: linear-gradient(160deg, #f4c48a, #c06a4a 55%, #2b2f5a); box-shadow: 0 4px 10px rgb(0 0 0 / 0.4); }
.fx--halqa i { right: -8%; top: 14%; width: 26%; height: 72%; border-radius: 50%; border: 2px solid var(--glow-200); box-shadow: 0 0 12px var(--signal-500), inset 0 0 10px rgb(47 107 255 / 0.7); }
.fx--kometa i { top: 48%; left: 40%; width: 60%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--signal-500), var(--glow-200)); }
.fx--pufak i { top: 22%; left: 22%; width: 46%; height: 58%; border-radius: 50%; border: 1px solid rgb(244 217 166 / 0.7); background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.35), transparent 40%); }
.fx--oddiy i { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fx--halqa b { animation: fx-halqa 3s var(--ease-out) infinite; }
  .fx--halqa i { animation: fx-ring 3s var(--ease-out) infinite; }
  .fx--kometa b { animation: fx-kometa 3s var(--ease-out) infinite; }
  .fx--kometa i { animation: fx-tail 3s var(--ease-out) infinite; }
  .fx--pufak b, .fx--pufak i { animation: fx-pufak 3s var(--ease-out) infinite; }
  .fx--oddiy b { animation: fx-oddiy 3s var(--ease-out) infinite; }
  .fx__card:hover .fx__view * { animation-duration: 2.5s; }
}
@keyframes fx-ring { 0% { transform: scale(0.2); opacity: 0; } 12% { transform: scale(1.08); opacity: 1; } 18%, 40% { transform: scale(1); opacity: 1; } 55%, 100% { transform: scale(0.65); opacity: 0; } }
@keyframes fx-halqa { 0%, 10% { transform: translateX(170%) scale(0.2) rotate(-25deg); opacity: 0; } 14% { opacity: 1; } 40% { transform: translateX(0) scale(1.06) rotate(3deg); } 50%, 80% { transform: translateX(0) scale(1) rotate(0); opacity: 1; } 95%, 100% { transform: translate(120%, 120%) scale(0.2); opacity: 0; } }
@keyframes fx-kometa { 0%, 8% { transform: translateX(200%) scale(0.5); opacity: 0; } 12% { opacity: 1; } 40%, 80% { transform: none; opacity: 1; } 95%, 100% { transform: translate(120%, 120%) scale(0.2); opacity: 0; } }
@keyframes fx-tail { 0%, 8% { opacity: 0; transform: translateX(40%); } 20% { opacity: 1; } 40% { opacity: 0.8; transform: none; } 55%, 100% { opacity: 0; } }
@keyframes fx-pufak { 0%, 8% { transform: translateY(80%) scale(0.4); opacity: 0; } 30% { transform: translateY(0) scale(1.05); opacity: 1; } 40%, 80% { transform: none; opacity: 1; } 95%, 100% { transform: scale(0.3); opacity: 0; } }
@keyframes fx-oddiy { 0%, 8% { transform: translateX(80%); opacity: 0; } 30%, 80% { transform: none; opacity: 1; } 95%, 100% { transform: translateX(-30%); opacity: 0; } }
@media (max-width: 639px) { .fx { grid-template-columns: 1fr 1fr; } }

/* transfer rows */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.thumb { width: 44px; height: 44px; border-radius: 10px; }
.row__text { display: grid; gap: 2px; min-width: 0; font-size: 15px; }
.row__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__text > span { font-size: var(--t-label); color: var(--muted); }
.row__pct { font-size: var(--t-label); color: var(--muted); }
.row__text > .row__err { color: var(--err); }
.row__act { font-size: var(--t-label); font-weight: 500; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); }
.bar { display: block; height: 5px; border-radius: var(--r-full); background: var(--line); margin-top: 6px; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--action); }
.w-64 { width: 64%; }
.state { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.state--ok { background: var(--ok); }
.state--ok::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.state--todo { border: 2px solid var(--line-strong); }

/* stand-in photographs in the UI mocks: flat colour fields, not pictures */
.ph--dusk { background: radial-gradient(40% 30% at 68% 58%, #ffe2a8, transparent 70%), linear-gradient(180deg, #2b3a78 0%, #c46d5a 58%, #23284f 59%, #121838 100%); }
.ph--dusk2 { background: radial-gradient(30% 24% at 30% 40%, #fff1c9, transparent 70%), linear-gradient(180deg, #f2a66b 0%, #c9566a 50%, #3c2a55 51%, #1b1736 100%); }
.ph--sea { background: linear-gradient(180deg, #9fd0ec 0%, #d9eef7 45%, #2a7aa8 46%, #134e78 100%); }
.ph--sea2 { background: linear-gradient(180deg, #e9d7bd 0%, #9ec7d6 40%, #3c8fb3 41%, #1e5e86 100%); }
.ph--leaf { background: radial-gradient(60% 50% at 30% 30%, #9fc77a, transparent 70%), linear-gradient(160deg, #4f7a3e, #1e3d2a); }
.ph--leaf2 { background: radial-gradient(50% 50% at 70% 60%, #d6e3a1, transparent 70%), linear-gradient(200deg, #5e8d4b, #24452e); }
.ph--city { background: repeating-linear-gradient(90deg, transparent 0 9px, rgb(255 214 140 / 0.35) 9px 11px) 0 55% / 100% 45% no-repeat, linear-gradient(180deg, #11183a 0%, #253a7a 55%, #0b1026 56%); }
.ph--city2 { background: linear-gradient(180deg, #f0b77d 0%, #d58d6d 50%, #2a2f4f 51%, #161a30 100%); }
.ph--sand { background: linear-gradient(180deg, #f6e4c2 0%, #e9c99a 50%, #c99b6a 51%, #a8784d 100%); }
.ph--sand2 { background: radial-gradient(45% 45% at 50% 45%, #fff, #f3d9b0 60%, #d7a978); }

/* ---------- Effect ---------- */
.effect { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-7); align-items: stretch; }
.effect__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #030a24; min-height: 480px; }
.effect__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.effect__side { display: flex; flex-direction: column; gap: var(--s-5); }
.phases { display: grid; border-top: 1px solid var(--line); }
.phases li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 2px var(--s-3); padding: var(--s-3) 0 var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line); position: relative; transition: color var(--t-fast) var(--ease-out);
}
.phases li > span:last-child { grid-column: 2 / -1; color: var(--muted); font-size: 15px; }
.phases li .mono { color: var(--muted); font-size: var(--t-label); text-align: right; }
.phases li b { grid-row: 1 / 3; }
.phases li::before { content: ""; position: absolute; left: 0; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background-color var(--t-fast); }
.phases li.is-now::before { background: var(--glow-200); box-shadow: 0 0 10px var(--signal-500); }
.phases li.is-now b { color: var(--glow-200); }
.scrub { display: flex; gap: var(--s-4); align-items: center; }
.scrub input { flex: 1; accent-color: var(--glow-200); height: 24px; cursor: pointer; }
.measure-note { color: var(--muted); font-size: 15px; margin-top: auto; }
@media (max-width: 1023px) { .effect { grid-template-columns: 1fr; } .effect__stage { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- Screens ---------- */
.screen { display: flex; flex-direction: column; gap: var(--s-3); }
.screen__id { font-size: 15px; display: flex; gap: var(--s-2); align-items: baseline; }
.screen__id .mono { color: var(--muted); font-size: var(--t-label); }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--s-5); justify-items: center; }
.phones .screen { width: 100%; max-width: 300px; }
@media (max-width: 1023px) { .phones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .phones { grid-template-columns: 1fr; } }

/* phone UI uses the light app theme unless marked night, so the screens read as the product */
.phone {
  --bg: var(--sand-200); --bg-alt: var(--sand-300); --raised: var(--sand-50); --ink: var(--cobalt-900); --muted: #3253a4;
  --line: rgb(6 43 138 / 0.14); --line-strong: rgb(6 43 138 / 0.28); --action: var(--cobalt-900); --action-ink: var(--sand-50);
  position: relative; aspect-ratio: 9 / 19.5; width: 100%; border-radius: 40px; padding: 9px;
  background: #0b0f1f; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 30px 60px -30px rgb(4 12 41 / 0.6), var(--shadow);
  transition: transform 240ms var(--ease-out);
  color: var(--ink);
}
.screen:hover .phone, .screen:hover .win, .screen:hover .toast { transform: translateY(-2px); }
.phone--night {
  --bg: var(--night-950); --bg-alt: #071339; --raised: var(--night-900); --ink: #ede5d6; --muted: #aab6dc;
  --line: rgb(237 229 214 / 0.13); --line-strong: rgb(237 229 214 / 0.26); --action: var(--glow-200); --action-ink: var(--cobalt-900);
}
.phone > * { background: var(--bg); }
.phone__bar { height: 34px; border-radius: 31px 31px 0 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 0; font-size: 12px; font-weight: 500; }
.phone__sys { width: 40px; height: 9px; border-radius: 3px; background: currentColor; opacity: 0.55; }
.phone__body { height: calc(100% - 34px); border-radius: 0 0 31px 31px; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; position: relative; }
.p-title { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; text-align: center; }
.p-title--left { text-align: left; }
.p-sub { font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }

.p-onboard { padding-top: 30px; }
.p-onboard__mark { width: 56px; height: 56px; margin: 0 auto 4px; color: var(--ink); }
.perm { display: grid; gap: 8px; margin: 6px 0 auto; }
.perm li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px; border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--line); }
.perm li span:last-child { display: grid; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.perm li b { color: var(--ink); font-size: 13.5px; }
.perm__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-alt); position: relative; }
.perm__icon::after { content: ""; position: absolute; inset: 10px; border: 2px solid var(--ink); }
.pi-photo::after { border-radius: 3px; background: linear-gradient(135deg, transparent 55%, var(--ink) 55%); }
.pi-wifi::after { border-radius: 50% 50% 0 0; border-bottom: 0; inset: 11px 8px 13px; }
.pi-bell::after { border-radius: 8px 8px 2px 2px; inset: 9px 11px 12px; }

.p-scan { align-items: center; padding-top: 28px; gap: 18px; }
.scan { position: relative; width: 84%; aspect-ratio: 1; border-radius: 18px; background: radial-gradient(circle at 50% 50%, #1a2a5e, #050a1c); display: grid; place-items: center; }
.scan::before { content: ""; position: absolute; inset: 10px; border-radius: 12px;
  background:
    linear-gradient(var(--glow-200), var(--glow-200)) 0 0 / 26px 3px, linear-gradient(var(--glow-200), var(--glow-200)) 0 0 / 3px 26px,
    linear-gradient(var(--glow-200), var(--glow-200)) 100% 0 / 26px 3px, linear-gradient(var(--glow-200), var(--glow-200)) 100% 0 / 3px 26px,
    linear-gradient(var(--glow-200), var(--glow-200)) 0 100% / 26px 3px, linear-gradient(var(--glow-200), var(--glow-200)) 0 100% / 3px 26px,
    linear-gradient(var(--glow-200), var(--glow-200)) 100% 100% / 26px 3px, linear-gradient(var(--glow-200), var(--glow-200)) 100% 100% / 3px 26px;
  background-repeat: no-repeat; }
.scan__qr { width: 62%; aspect-ratio: 1; border-radius: 6px; }
.scan__line { position: absolute; left: 14%; right: 14%; height: 2px; top: 50%; background: var(--signal-500); box-shadow: 0 0 12px var(--signal-500); }
@media (prefers-reduced-motion: no-preference) { .scan__line { animation: scan 2.8s ease-in-out infinite; } }
@keyframes scan { 0%, 100% { top: 22%; } 50% { top: 78%; } }

/* a QR-like pattern filled in by vutric.js: decorative, it decodes to nothing */
.qr { background: #f7f2e9; position: relative; display: block; }
.qr svg { width: 100%; height: 100%; }

.p-home { gap: 10px; }
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-full); background: var(--bg-alt); font-size: 11px; font-weight: 500; color: var(--muted); }
.tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: var(--r-full); }
.tabs .is-on { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }
.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.grid9 span { aspect-ratio: 1; position: relative; }
.grid9 .is-sel { box-shadow: inset 0 0 0 3px var(--signal-500); }
.grid9 .is-sel::after { content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--signal-500); box-shadow: 0 0 0 2px #fff; }
.bnav { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 8px; font-size: 11px; font-weight: 500; color: var(--muted); }
.bnav span { display: grid; justify-items: center; gap: 4px; }
.bnav .is-on { color: var(--ink); }
.bi { width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 5px; display: block; }
.bi-clock { border-radius: 50%; }
.bi-device { border-radius: 3px; width: 14px; }
.bnav .is-on .bi { background: currentColor; }

.p-share { padding: 0; gap: 0; }
.p-share__photo { flex: 1; }
.sheet { position: relative; margin-top: -24px; background: var(--raised); border-radius: 22px 22px 31px 31px; padding: 10px 16px 22px; display: grid; gap: 12px; box-shadow: 0 -8px 24px rgb(0 0 0 / 0.15); }
.sheet__grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); justify-self: center; }
.sheet__title { font-size: 15px; font-weight: 500; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.app { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.app i { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; }
.app--vutric { color: var(--ink); font-weight: 500; }
.app--vutric i { background: var(--night-950); color: var(--sand-50); box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--signal-500); }
.app--vutric svg { width: 28px; height: 28px; }
.a1 { background: linear-gradient(135deg, #cfe0f5, #9db8e0); }
.a2 { background: linear-gradient(135deg, #f1d3b5, #dca877); }
.a3 { background: linear-gradient(135deg, #cde3c9, #94bf8c); }
.sheet__hint { font-size: 12px; color: var(--muted); }

.p-fling { align-items: center; padding-top: 16px; }
.fling { position: relative; flex: 1; width: 100%; }
.fling__card, .fling__echo { position: absolute; left: 50%; width: 62%; aspect-ratio: 3 / 4; border-radius: 16px; translate: -50% 0; }
.fling__card { top: 26%; box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(244 217 166 / 0.4); rotate: -4deg; }
.fling__echo { border: 1.5px solid var(--signal-500); }
.e1 { top: 18%; opacity: 0.55; scale: 0.94; rotate: -6deg; }
.e2 { top: 10%; opacity: 0.32; scale: 0.88; rotate: -8deg; border-color: #6f8ff0; }
.e3 { top: 3%; opacity: 0.16; scale: 0.82; rotate: -10deg; border-color: var(--glow-200); }
@media (prefers-reduced-motion: no-preference) {
  .fling__card { animation: fling-hint 3s var(--ease-out) infinite; }
  .fling__echo { animation: echo-hint 3s var(--ease-out) infinite; }
}
/* the card nudges upward to teach the gesture; it never leaves the screen in the mock */
@keyframes fling-hint { 0%, 30%, 100% { translate: -50% 0; } 45% { translate: -50% -9%; } 60% { translate: -50% 0; } }
@keyframes echo-hint { 0%, 30%, 100% { opacity: var(--o); } 45% { opacity: calc(var(--o) * 1.8); } }
.e1 { --o: 0.55; } .e2 { --o: 0.32; } .e3 { --o: 0.16; }
.p-hint { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.up { width: 9px; height: 9px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; rotate: 45deg; translate: 0 3px; }
.status { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 500; height: 32px; padding: 0 12px 0 6px; border-radius: var(--r-full); background: rgb(29 122 78 / 0.28); }
.status .state { width: 20px; height: 20px; }

.p-hist { padding-top: 18px; }
.rows--phone .row { grid-template-columns: 40px 1fr auto; padding: 10px 0; }
.rows--phone .thumb { width: 40px; height: 40px; }
.rows--phone .row__text { font-size: 13.5px; }
.rows--phone .row__text > span { font-size: 12px; }

/* desktop windows */
.desk { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-7) var(--s-5); align-items: start; }
.screen--w1 { grid-column: span 7; }
.screen--w3 { grid-column: span 5; }
.screen--w4 { grid-column: span 7; }
.screen--u1 { grid-column: span 5; }
@media (max-width: 1023px) { .desk > .screen { grid-column: 1 / -1; } }

.win {
  --bg: var(--sand-50); --bg-alt: var(--sand-200); --raised: #fffdf8; --ink: var(--cobalt-900); --muted: #3253a4;
  --line: rgb(6 43 138 / 0.14); --line-strong: rgb(6 43 138 / 0.28); --action: var(--cobalt-900); --action-ink: var(--sand-50);
  border-radius: 12px; overflow: hidden; background: var(--bg); color: var(--ink);
  border: 1px solid rgb(6 43 138 / 0.18); box-shadow: 0 24px 60px -24px rgb(4 12 41 / 0.45), 0 8px 24px rgb(6 43 138 / 0.08);
  transition: transform 240ms var(--ease-out);
}
.win__bar { height: 40px; display: flex; justify-content: space-between; align-items: center; padding-left: 14px; background: var(--bg-alt); font-size: 12.5px; font-weight: 500; }
.win__title { display: inline-flex; gap: 8px; align-items: center; }
.win__title svg { width: 18px; height: 18px; color: var(--ink); }
.win__ctl { display: flex; height: 100%; }
.win__ctl i { width: 46px; position: relative; }
.win__ctl i::after, .win__ctl i::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; height: 1px; background: currentColor; }
.win__ctl i::before { display: none; }
.win__ctl i:nth-child(2)::after { top: 15px; bottom: 15px; height: auto; border: 1px solid currentColor; background: none; }
.win__ctl i:nth-child(3)::after { rotate: 45deg; }
.win__ctl i:nth-child(3)::before { display: block; rotate: -45deg; }
.win--gnome .win__bar { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 10px; height: 46px; }
.win__ctl--gnome { justify-content: flex-end; align-items: center; }
.win__ctl--gnome i { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.win__ctl--gnome i::after, .win__ctl--gnome i::before { display: block; left: 7px; right: 7px; }
.win__ctl--gnome i::after { rotate: 45deg; }
.win__ctl--gnome i::before { rotate: -45deg; }
.win__body { padding: var(--s-6); }

.w-pair { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); align-items: center; }
.w-pair__qr { width: 200px; aspect-ratio: 1; border-radius: 12px; padding: 12px; border: 1px solid var(--line); }
.w-title { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: var(--s-4); }
.steps { counter-reset: st; display: grid; gap: var(--s-3); font-size: 15px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; gap: var(--s-2); }
.steps li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; background: var(--bg-alt); font-size: 12px; font-weight: 500; display: grid; place-items: center; }
.w-meta { margin-top: var(--s-5); font-size: var(--t-label); color: var(--muted); }
@media (max-width: 639px) { .w-pair { grid-template-columns: 1fr; } .w-pair__qr { width: 160px; } .win__body { padding: var(--s-5); } }

.toast {
  --raised: #fffdf8; --ink: var(--cobalt-900); --muted: #3253a4; --line: rgb(6 43 138 / 0.14); --line-strong: rgb(6 43 138 / 0.28);
  --action: var(--cobalt-900); --action-ink: var(--sand-50);
  display: grid; grid-template-columns: 72px 1fr; gap: var(--s-3) var(--s-4); padding: var(--s-4);
  background: var(--raised); color: var(--ink); border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgb(4 12 41 / 0.5), 0 8px 24px rgb(6 43 138 / 0.08); margin-bottom: var(--s-6);
  transition: transform 240ms var(--ease-out);
}
.toast__thumb { width: 72px; height: 72px; border-radius: 8px; }
.toast__text { display: grid; gap: 2px; align-content: center; font-size: var(--t-label); color: var(--muted); }
.toast__text b { color: var(--ink); font-size: 15px; }
.toast__app { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; }
.toast__app svg { width: 14px; height: 14px; color: var(--ink); }
.toast__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.toast__actions .btn { padding: 0 var(--s-2); }

.gnote {
  display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s-3); align-items: center; padding: 14px 16px;
  background: #2d2d32; color: #f1efe9; border-radius: 16px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6);
}
.gnote__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--night-950); display: grid; place-items: center; color: var(--sand-50); }
.gnote__icon svg { width: 24px; height: 24px; }
.gnote__text { display: grid; font-size: var(--t-label); color: #c8c6c0; min-width: 0; }
.gnote__text b { color: #fff; font-size: 14.5px; }
.gnote__time { font-size: 12px; color: #a9a7a1; align-self: start; }

.w-set { display: grid; gap: var(--s-4); }
.fx--mini { grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.fx--mini .fx__card { cursor: default; }
.fx--mini .fx__card[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.set { display: grid; border-top: 1px solid var(--line); }
.set__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 52px; border-bottom: 1px solid var(--line); font-size: 15px; }
.set__row:last-child { border-bottom: 0; }
.fakeslide { position: relative; width: 180px; display: flex; align-items: center; gap: var(--s-3); }
.fakeslide i { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--action) 0 30%, var(--line-strong) 30%); position: relative; }
.fakeslide i::after { content: ""; position: absolute; left: 30%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--action); translate: -50% -50%; }
.fakeslide b { font-weight: 400; font-size: var(--t-label); }
.path { font-size: var(--t-label); padding: 6px 10px; border-radius: var(--r-sm); background: var(--bg-alt); }
@media (max-width: 639px) { .fx--mini { grid-template-columns: 1fr 1fr; } .set__row { flex-wrap: wrap; padding: var(--s-2) 0; } }

.u-first { display: grid; gap: var(--s-2); }
.check { display: grid; }
.check li { display: grid; grid-template-columns: 22px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.check li:last-child { border-bottom: 0; }
.check li.is-done { color: var(--muted); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: var(--s-7) 0 calc(var(--s-7) + env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); }
.foot p { font-size: var(--t-small); color: var(--muted); }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--gut); gap: var(--s-5); }
.lost h1 { max-width: 18ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
