/* Layout: a centered hero over the live demo, then one section per feature. Each feature
   pairs a short text block with its own animated stage, alternating sides on wide screens and
   stacking on phones. Page tokens first, then the macOS tokens the recreated Upright interface
   uses. System fonts only (SF Pro on a Mac), one accent color, light and dark from the OS. */
:root {
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --nav-bg: rgba(251, 251, 253, 0.74);
  --glow-2: rgba(0, 113, 227, 0.1);
  --accent-ring: rgba(0, 102, 204, 0.35);
  --accent-shadow: rgba(0, 113, 227, 0.5);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-2: rgba(0, 0, 0, 0.14);
  --accent: #0066cc;
  --accent-fill: #0071e3;
  --accent-fill-hover: #0077ed;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --glow: rgba(0, 113, 227, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05), 0 30px 80px -20px rgba(0, 0, 0, 0.22);

  /* Names the stage styles below still use. */
  --paper: var(--bg);
  --paper-2: var(--bg-2);
  --blue: var(--accent-fill);
  --blue-ink: var(--accent-ink);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Inter Display", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: var(--sans);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(96px, 12vw, 168px);

  /* macOS interface (light) */
  --m-window: #ffffff;
  --m-sidebar: #f0f0f2;
  --m-group: #f5f5f6;
  --m-panel: #fbfbfc;
  --m-text: #1d1d1f;
  --m-text-2: #85858b;
  --m-sep: #e3e3e6;
  --m-control: #e6e6e9;
  --m-sel: #cbdcf6;
  --m-blue: #0a7aff;
  --m-menu: rgba(244, 244, 246, 0.97);
  --m-bar: rgba(255, 255, 255, 0.42);
  --m-bar-ink: #15171a;
  --m-dock: rgba(255, 255, 255, 0.38);
  --m-note: rgba(250, 250, 252, 0.96);
  --m-line: rgba(0, 0, 0, 0.16);
  --m-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 14px 40px rgba(20, 30, 50, 0.22), 0 2px 6px rgba(20, 30, 50, 0.08);
  --m-faint: #e4e6ea;
  --m-faint-2: #eef0f3;
  --wall-a: #9cc6d9;
  --wall-b: #d9cbb4;
  --wall-c: #6d9fbc;
  --wall-d: #efd9b7;
  --mouse-body: #ffffff;
  --mouse-body-2: #e9edf3;
  --mouse-edge: #c6ceda;
  --mouse-part: #dde3eb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-2: #0d0d0f;
    --card: #161618;
    --glass: rgba(22, 22, 24, 0.7);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --glow-2: rgba(41, 151, 255, 0.12);
  --accent-ring: rgba(41, 151, 255, 0.35);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --glow-2: rgba(41, 151, 255, 0.12);
    --accent-ring: rgba(41, 151, 255, 0.35);
    --ink: #f5f5f7;
    --ink-2: #c7c7cc;
    --ink-3: #98989d;
    --rule: rgba(255, 255, 255, 0.09);
    --rule-2: rgba(255, 255, 255, 0.16);
    --accent: #2997ff;
    --accent-soft: rgba(41, 151, 255, 0.12);
    --glow: rgba(41, 151, 255, 0.2);
    --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.02);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    --m-window: #1f1f21;
    --m-sidebar: #28282b;
    --m-group: #2a2a2d;
    --m-panel: #232325;
    --m-text: #f2f2f4;
    --m-text-2: #98989e;
    --m-sep: #39393d;
    --m-control: #3a3a3e;
    --m-sel: #2c4466;
    --m-blue: #0a84ff;
    --m-menu: rgba(44, 44, 47, 0.97);
    --m-bar: rgba(20, 22, 28, 0.38);
    --m-bar-ink: #f2f3f5;
    --m-dock: rgba(40, 42, 48, 0.5);
    --m-note: rgba(44, 44, 47, 0.96);
    --m-line: rgba(255, 255, 255, 0.12);
    --m-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 16px 44px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
    --m-faint: #333336;
    --m-faint-2: #2b2b2e;
    --wall-a: #23445a;
    --wall-b: #3b3346;
    --wall-c: #152a3a;
    --wall-d: #4a3a3a;
    --mouse-body: #f4f6f9;
    --mouse-body-2: #d8dee7;
    --mouse-edge: #9aa5b5;
    --mouse-part: #cfd6e0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0d0d0f;
  --card: #161618;
  --glass: rgba(22, 22, 24, 0.7);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --glow-2: rgba(41, 151, 255, 0.12);
  --accent-ring: rgba(41, 151, 255, 0.35);
  --ink: #f5f5f7;
  --ink-2: #c7c7cc;
  --ink-3: #98989d;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-2: rgba(255, 255, 255, 0.16);
  --accent: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.12);
  --glow: rgba(41, 151, 255, 0.2);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.02);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --m-window: #1f1f21;
  --m-sidebar: #28282b;
  --m-group: #2a2a2d;
  --m-panel: #232325;
  --m-text: #f2f2f4;
  --m-text-2: #98989e;
  --m-sep: #39393d;
  --m-control: #3a3a3e;
  --m-sel: #2c4466;
  --m-blue: #0a84ff;
  --m-menu: rgba(44, 44, 47, 0.97);
  --m-bar: rgba(20, 22, 28, 0.38);
  --m-bar-ink: #f2f3f5;
  --m-dock: rgba(40, 42, 48, 0.5);
  --m-note: rgba(44, 44, 47, 0.96);
  --m-line: rgba(255, 255, 255, 0.12);
  --m-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 16px 44px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  --m-faint: #333336;
  --m-faint-2: #2b2b2e;
  --wall-a: #23445a;
  --wall-b: #3b3346;
  --wall-c: #152a3a;
  --wall-d: #4a3a3a;
  --mouse-body: #f4f6f9;
  --mouse-body-2: #d8dee7;
  --mouse-edge: #9aa5b5;
  --mouse-part: #cfd6e0;
  color-scheme: dark;
}

/* ---------- Page ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

a { color: inherit; }
img { max-width: 100%; }
svg { flex: none; }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.br-wide { display: none; }
@media (min-width: 700px) { .br-wide { display: inline; } }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

code {
  font: 400 0.86em/1 var(--mono);
  letter-spacing: 0;
  padding: 0.18em 0.42em;
  border-radius: 6px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
}

/* Nav: slim, frosted, gains a hairline once the page scrolls */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 52px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 600 17px/1 var(--display);
  letter-spacing: -0.02em;
}
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: -0.006em;
  color: var(--ink-2);
}
.nav-links a,
.nav-gh { text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover,
.nav-gh:hover { color: var(--ink); }
.nav-end {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-gh svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 980px;
  font: 500 16px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 24px -8px var(--accent-shadow);
}
.btn-primary:hover { background: var(--accent-fill-hover); }
.btn-secondary {
  background: var(--glass);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule-2) inset, var(--shadow-sm);
}
.btn-secondary:hover { box-shadow: 0 0 0 1px var(--ink-3) inset, var(--shadow-sm); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; font-weight: 500; }

/* Shared text */
.eyebrow {
  margin: 0 0 14px;
  font: 600 14px/1.2 var(--sans);
  letter-spacing: -0.005em;
  color: var(--accent);
}
.section { padding-block: var(--section) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2,
.faq-head h2,
.final h2 {
  margin: 0;
  font: 700 clamp(34px, 5vw, 60px)/1.05 var(--display);
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.section-head > p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink-3);
  text-wrap: pretty;
}
.fineprint {
  margin: 18px 0 0;
  font: 400 13px/1.5 var(--mono);
  letter-spacing: 0;
  color: var(--ink-3);
}
.fineprint code { font-size: 1em; padding: 0.1em 0.35em; }

.card {
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--rule) inset, var(--shadow-sm);
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) 0;
  isolation: isolate;
}
.hero::before {
  /* soft accent glow behind the headline and the demo */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -52px 0 auto;
  height: min(1100px, 130vw);
  background:
    radial-gradient(42% 34% at 50% 18%, var(--glow), transparent 70%),
    radial-gradient(60% 40% at 50% 62%, var(--glow-2), transparent 72%);
  pointer-events: none;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 5px 12px 5px 5px;
  border-radius: 980px;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--rule) inset, var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
.pill:hover { box-shadow: 0 0 0 1px var(--rule-2) inset, var(--shadow-sm); }
.pill-tag {
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 12.5px;
}
.pill svg { width: 14px; height: 14px; color: var(--ink-3); transition: transform 0.2s var(--ease-out); }
.pill:hover svg { transform: translateX(2px); }
.hero h1 {
  margin: 0;
  font: 700 clamp(42px, 7.4vw, 92px)/1.04 var(--display);
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lede {
  margin: 22px 0 0;
  max-width: 60ch;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  text-wrap: balance;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.trust-line {
  margin: 20px 0 0;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink-3);
}
.hero-demo {
  position: relative;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: clamp(22px, 2.4vw, 32px);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--rule) inset, var(--shadow-lg);
}
.hero-demo .demo-bar { padding: 4px 6px 2px; }
.hero-note {
  margin: 28px auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 15px;
  color: var(--ink-3);
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.feature + .feature { margin-top: clamp(96px, 11vw, 152px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { min-width: 0; max-width: 460px; }
.feature h3 {
  margin: 0;
  font: 700 clamp(30px, 3.6vw, 44px)/1.08 var(--display);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.feature-copy > p:not(.eyebrow):not(.fineprint) {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.014em;
  color: var(--ink-3);
  text-wrap: pretty;
}
.frame {
  position: relative;
  min-width: 0;
  padding: clamp(14px, 2.6vw, 36px);
  border-radius: clamp(22px, 2.4vw, 32px);
  background:
    radial-gradient(80% 70% at 70% 0%, var(--accent-soft), transparent 70%),
    var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
  font-size: 14px;
  color: var(--ink-2);
}

/* Gesture pad: the five gestures, with a dot that acts each one out */
.gpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    ". up ."
    "left pad right"
    ". down ."
    "click click click";
  gap: 6px;
  max-width: 360px;
  margin: 30px 0 0;
  padding: 14px;
  list-style: none;
  border-radius: 22px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
}
.gpad li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 8px 4px;
  border-radius: 14px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--ink-3);
}
.gpad li b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.gpad .gp-click { flex-direction: row; gap: 8px; min-height: 40px; margin-top: 4px; }
.gp-up { grid-area: up; }
.gp-down { grid-area: down; }
.gp-left { grid-area: left; }
.gp-right { grid-area: right; }
.gp-click { grid-area: click; }
.gpad .gp-pad { grid-area: pad; }
.gp-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--rule-2) inset, var(--shadow-sm);
}
.gp-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent-fill);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.privacy-card { padding: 30px 28px 32px; }
.privacy-card h3 {
  margin: 22px 0 8px;
  font: 600 21px/1.2 var(--display);
  letter-spacing: -0.022em;
}
.privacy-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.icon-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-tile svg { width: 24px; height: 24px; }
.ledger { margin-top: 16px; padding: 26px 28px; }
.ledger-title {
  margin: 0 0 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ledger dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.ledger dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.ledger dt { font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.ledger dd { margin: 0; font-size: 14.5px; color: var(--ink-3); text-align: right; }
.protocol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
  font: 400 13px/1.5 var(--mono);
  letter-spacing: 0;
  color: var(--ink-3);
}
.protocol b { color: var(--ink-2); font-weight: 500; }

/* Mice */
.mice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mice-grid li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--rule) inset;
  transition: box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}
.mice-grid li:hover { box-shadow: 0 0 0 1px var(--rule-2) inset, var(--shadow-md); transform: translateY(-1px); }
.m-name { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; }
.m-note { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.badge {
  flex: none;
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
.mice-grid li.verified {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "seal name badge" "seal note note";
  gap: 2px 16px;
  padding: 20px 22px;
  background:
    radial-gradient(100% 140% at 0% 0%, var(--accent-soft), transparent 70%),
    var(--card);
  box-shadow: 0 0 0 1px var(--accent-ring) inset, var(--shadow-sm);
}
.verified .seal {
  grid-area: seal;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px var(--accent-fill);
}
.verified .seal svg { width: 22px; height: 22px; }
.verified .m-name { grid-area: name; font-size: 19px; }
.verified .m-note { grid-area: note; font-size: 14px; }
.badge-verified {
  grid-area: badge;
  align-self: center;
  background: var(--accent-fill);
  box-shadow: none;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 12px;
}
.mice-foot { margin-top: 28px; }
.mice-foot .fineprint { margin: 0; max-width: 90ch; }
.links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-3);
}
.links-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.links-row a svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.links-row a:hover svg { transform: translateX(2px); }
.links-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.install-card { padding: clamp(24px, 3vw, 36px); }
.install-side { display: grid; gap: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.install-card h3,
.note-card h3 {
  margin: 0;
  font: 600 21px/1.25 var(--display);
  letter-spacing: -0.022em;
}
.steps {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: -1px;
}
.steps b { color: var(--ink); font-weight: 600; }
.steps a { color: var(--accent); text-underline-offset: 3px; }
.note-card { padding: 26px 28px; min-width: 0; }
.note-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.note-card p b { color: var(--ink-2); font-weight: 600; }
.code {
  position: relative;
  margin-top: 16px;
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
}
.code pre {
  margin: 0;
  padding: 14px 56px 14px 16px;
  overflow-x: auto;
  font: 400 13px/1.7 var(--mono);
  letter-spacing: 0;
  color: var(--ink);
}
.code code { padding: 0; background: none; box-shadow: none; font-size: 1em; line-height: inherit; }
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 980px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
  color: var(--ink-2);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.copy:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--rule-2) inset; }
.copy svg { width: 15px; height: 15px; }
.copy .ic-done { display: none; }
.copy.done { color: var(--accent); }
.copy.done .ic-copy { display: none; }
.copy.done .ic-done { display: block; }
.copy-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  padding: 0;
  justify-content: center;
  background: var(--card);
}
.callout {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 15px;
  color: var(--ink-2);
}

/* FAQ: heading on the left, accordions on the right */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}
.faq-head { position: sticky; top: 100px; }
.faq-head p:not(.eyebrow) { margin: 16px 0 0; color: var(--ink-3); }
.faq-head a { color: var(--accent); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font: 600 18px/1.35 var(--sans);
  letter-spacing: -0.018em;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary svg { transform: rotate(180deg); }
.faq-a p { margin: -8px 0 24px; max-width: 64ch; font-size: 16.5px; color: var(--ink-3); }
.faq-a a { color: var(--accent); text-underline-offset: 3px; }

/* Final */
.final { padding-block: var(--section); }
.final-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 24px;
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--glow), transparent 70%),
    var(--bg-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
}
.final-card img {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}
.final-card p { margin: 16px 0 0; max-width: 46ch; font-size: 19px; color: var(--ink-3); }
.final-card .actions { margin-top: 32px; }

/* Footer */
.footer {
  padding-block: 56px 48px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--ink-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand .brand { color: var(--ink); font-size: 17px; }
.footer-brand .brand img { width: 24px; height: 24px; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.f-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer nav a { text-decoration: none; color: var(--ink-3); transition: color 0.2s ease; }
.footer nav a:hover { color: var(--ink); }
.footer-base {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
}
.footer-base p { margin: 0; max-width: 100ch; }

/* MX Vertical page */
.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-3);
}
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mxv-table { margin: 0 0 clamp(72px, 9vw, 120px); }
.privacy-card > .badge { display: inline-block; }
.privacy-card > .badge + h3 { margin-top: 18px; }
.hero-note a,
.m-note a { color: var(--accent); text-underline-offset: 3px; }

/* Privacy and terms pages */
.doc { padding-block: clamp(56px, 8vw, 104px) var(--section); }
.doc-wrap { max-width: 760px; }
.doc-head { padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.doc-head h1 {
  margin: 0;
  font: 700 clamp(40px, 6vw, 64px)/1.04 var(--display);
  letter-spacing: -0.026em;
}
.doc-meta { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.doc-body { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.doc-lede { margin: 32px 0 0; font-size: 21px; line-height: 1.5; letter-spacing: -0.016em; color: var(--ink); }
.doc-body h2 {
  margin: 48px 0 0;
  font: 600 24px/1.25 var(--display);
  letter-spacing: -0.022em;
  color: var(--ink);
}
.doc-body p { margin: 14px 0 0; }
.doc-body ul { margin: 14px 0 0; padding-left: 1.2em; }
.doc-body li { margin-top: 10px; }
.doc-body li::marker { color: var(--ink-3); }
.doc-body b { color: var(--ink); font-weight: 600; }
.doc-body a { color: var(--accent); text-underline-offset: 3px; }
.footer nav a[aria-current="page"] { color: var(--ink); }

/* Motion: fade and slide in on scroll (only with JS, and never with reduced motion) */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { transform: translateY(14px); }
  to { transform: none; }
}
.hero-copy > * { animation: fade-up 0.9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.05s; }
.hero-copy > :nth-child(3) { animation-delay: 0.1s; }
.hero-copy > :nth-child(4) { animation-delay: 0.15s; }
.hero-copy > :nth-child(5) { animation-delay: 0.2s; }
.hero-demo { animation: rise 1.1s 0.2s var(--ease-out) both; }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .privacy-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .privacy-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

@keyframes gp-dot {
  0%, 20%, 40%, 60%, 80%, 100% { transform: none; }
  4% { transform: scale(0.6); }
  8% { transform: scale(1.25); }
  12% { transform: none; }
  26%, 34% { transform: translateY(-15px); }
  46%, 54% { transform: translateX(15px); }
  66%, 74% { transform: translateY(15px); }
  86%, 94% { transform: translateX(-15px); }
}
@keyframes gp-on {
  0%, 2%, 19%, 100% { background: transparent; color: var(--ink-3); }
  5%, 16% { background: var(--card); color: var(--accent); box-shadow: 0 0 0 1px var(--rule) inset, var(--shadow-sm); }
}
.gp-dot { animation: gp-dot 10s ease-in-out infinite; }
.gpad li:not(.gp-pad) { animation: gp-on 10s linear infinite; }
.gpad li.gp-up { animation-delay: 2s; }
.gpad li.gp-right { animation-delay: 4s; }
.gpad li.gp-down { animation-delay: 6s; }
.gpad li.gp-left { animation-delay: 8s; }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.faq details[open] .faq-a { animation: faq-in 0.35s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .hero-demo,
  .faq details[open] .faq-a,
  .gp-dot,
  .gpad li { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn,
  .mice-grid li { transition: none; }
  .btn:active,
  .mice-grid li:hover { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .feature,
  .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: 620px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .ledger dl { grid-template-columns: 1fr; }
  .mice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-gh span { display: none; }
  .nav-end { gap: 16px; }
  .hero-demo { margin-inline: -8px; padding: 8px; border-radius: 22px; }
  .hero-demo .demo-bar { padding: 6px 4px 4px; }
  .frame { margin-inline: -4px; padding: 12px; border-radius: 22px; }
  .ledger dl > div { flex-direction: column; gap: 2px; }
  .ledger dd { text-align: left; }
  .faq summary { font-size: 17px; padding-block: 20px; }
}
@media (max-width: 520px) {
  .pill { font-size: 12.5px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .mice-grid { grid-template-columns: minmax(0, 1fr); }
  .mice-grid li.verified { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-card .btn { width: 100%; }
}

/* ---------- Stages ---------- */

.stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  contain: layout;
}
.stage.crop {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--m-line), 0 20px 40px -18px rgba(20, 30, 50, 0.35);
}
.stage.crop .screen { border-radius: 0; box-shadow: none; }
.canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform: scale(var(--s, 1)) translate(var(--vx, 0px), var(--vy, 0px));
  transform-origin: 0 0;
  font-family: var(--mac);
  color: var(--m-text);
  font-size: 13px;
  line-height: 1.3;
  -webkit-user-select: none;
  user-select: none;
}
.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(70% 60% at 12% 8%, var(--wall-a) 0%, transparent 70%),
    radial-gradient(60% 70% at 92% 100%, var(--wall-d) 0%, transparent 72%),
    radial-gradient(80% 90% at 70% 20%, var(--wall-c) 0%, transparent 75%),
    linear-gradient(165deg, var(--wall-a), var(--wall-b));
  box-shadow: 0 0 0 1px var(--m-line) inset;
  isolation: isolate;
}
.screen::after {
  /* faint hills on the wallpaper */
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 70%;
  background:
    radial-gradient(60% 50% at 30% 100%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(50% 45% at 80% 100%, rgba(0, 0, 0, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.layer {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease, filter 0.4s ease;
}
.dim {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.42);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.dim.on { opacity: 1; }

/* Icons inside the mock interface */
.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

/* macOS menu bar */
.mbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  background: var(--m-bar);
  color: var(--m-bar-ink);
  font-size: 13px;
  z-index: 30;
  transition: opacity 0.3s ease;
}
.mbar .mi,
.mbar .app { padding: 0 8px; }
.mbar .app { font-weight: 700; transition: opacity 0.2s; }
.mbar .menus { transition: opacity 0.2s; }
.mbar .right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mbar .mbi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.mbar .mbi .i { font-size: 16px; }
.mbar .mbi.up .i { stroke-width: 0; }
.mbar .mbi.on { background: rgba(127, 127, 127, 0.28); }
.mbar .clock { padding: 0 6px 0 8px; font-variant-numeric: tabular-nums; }

/* Upright menu-bar panel */
.mp {
  position: absolute;
  width: 340px;
  padding: 12px 10px 8px;
  border-radius: 12px;
  background: var(--m-panel);
  box-shadow: var(--m-shadow);
  transform-origin: 85% 0;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  z-index: 25;
}
.mp.closed { opacity: 0; transform: scale(0.97) translateY(-6px); pointer-events: none; }
.mp-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; }
.mp-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--m-control);
  color: var(--m-blue);
  font-size: 26px;
}
.mp-logo .i { stroke-width: 0; }
.mp-title { font-size: 15.5px; font-weight: 700; }
.mp-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--m-text-2); margin-top: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex: none; transition: background 0.2s; }
.dot.wait { background: #ff9f0a; }
.dot.off { background: var(--m-text-2); }
.mp-head .mtog { margin-left: auto; }
.mp-sep { height: 1px; background: var(--m-sep); margin: 0 -2px; }
.mp-list { padding: 4px 0; }
.mp-mouse {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  height: 41px;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.3s ease;
}
.mp-mouse.gone { height: 0; opacity: 0; }
.mp-mouse > .i { font-size: 19px; color: var(--m-blue); }
.mp-mouse .nm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-mouse.active .nm { font-weight: 650; }
.mp-mouse .st { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--m-text-2); margin-top: 1px; white-space: nowrap; }
.mp-mouse .st .dot { width: 7px; height: 7px; }
.batt { display: inline-flex; align-items: center; gap: 8px; color: var(--m-text-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.batt .i { font-size: 18px; }
.batt.low { color: #ff453a; }
.mp-label { font-size: 11px; font-weight: 500; color: var(--m-text-2); padding: 10px 4px 5px; transition: opacity 0.2s; }
.mp-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 27px;
  padding: 0 4px;
  font-size: 14px;
}
.mp-row::before {
  content: "";
  position: absolute;
  inset: 0 -2px;
  border-radius: 6px;
  background: var(--m-blue);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mp-row.flash::before { opacity: 0.18; transition-duration: 0.12s; }
.mp-row > * { position: relative; }
.mp-row > .i { font-size: 17px; color: var(--m-text-2); transition: color 0.2s; }
.mp-row.flash > .i { color: var(--m-blue); }
.mp-row .val { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--m-text-2); white-space: nowrap; transition: opacity 0.18s ease; }
.mp-row .key { margin-left: auto; color: var(--m-text-2); opacity: 0.7; font-size: 12.5px; }
.mp-chips { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 3px 4px 9px; }
.mp-chip {
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--m-control);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s;
}
.mp-chip.press { background: color-mix(in srgb, var(--m-control) 60%, var(--m-text-2)); }
.mp-ind {
  position: absolute;
  bottom: 2px;
  left: 4px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--m-blue);
  transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1.1);
}
.mp-section { overflow: hidden; }

/* Toggle */
.mtog {
  position: relative;
  width: 40px;
  height: 23px;
  flex: none;
  border-radius: 12px;
  background: var(--m-control);
  transition: background 0.2s ease;
}
.mtog::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s cubic-bezier(0.3, 0.9, 0.3, 1.1);
}
.mtog.on { background: var(--m-blue); }
.mtog.on::after { transform: translateX(17px); }

/* Settings window */
.mwin {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  background: var(--m-window);
  box-shadow: var(--m-shadow);
  transform-origin: 50% 50%;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
}
.mwin-side {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 138px;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--m-sidebar);
  box-shadow: 0 0 0 0.5px var(--m-line);
}
.lights { display: flex; gap: 8px; padding: 2px 6px 0; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.side-items { display: grid; gap: 2px; margin-top: 30px; }
.side-item { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px; border-radius: 7px; font-size: 13px; }
.side-item.on { background: var(--m-sel); font-weight: 600; }
.sq {
  width: 21px;
  height: 21px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(#3a9bff, #0a6cf0);
}
.sq .i { stroke-width: 2; }
.sq.fill .i { stroke-width: 0; fill: currentColor; }
.sq.teal { background: linear-gradient(#3bd1d6, #11a5b3); }
.sq.green { background: linear-gradient(#5ad66f, #27a845); }
.sq.gray { background: linear-gradient(#a3a7ae, #7c8088); }
.sq.orange { background: linear-gradient(#ffad4d, #f57d1f); }
.sq.indigo { background: linear-gradient(#8c86ff, #5e57e6); }
.mwin-main { position: absolute; left: 158px; right: 0; top: 0; bottom: 0; padding: 18px 22px 18px 20px; overflow: hidden; }
.mwin-title { font-size: 15px; font-weight: 700; margin: 0 0 20px; }
.mg-label { font-size: 13px; font-weight: 700; margin: 18px 0 8px 10px; }
.mg-note { font-size: 12px; color: var(--m-text-2); margin: 8px 10px 0; line-height: 1.4; transition: opacity 0.2s; }
.mg { border-radius: 10px; background: var(--m-group); padding: 0 12px; }
.mg-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 6px 0;
  overflow: hidden;
  transition: min-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
}
.mg-row + .mg-row { border-top: 1px solid var(--m-sep); }
.mg-row.gone { min-height: 0; height: 0; padding: 0; opacity: 0; border-top-color: transparent; }
.mg-row::before {
  content: "";
  position: absolute;
  inset: 3px -6px;
  border-radius: 7px;
  background: var(--m-blue);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mg-row.flash::before { opacity: 0.14; transition-duration: 0.12s; }
.mg-row > * { position: relative; }
.mg-row .tt { min-width: 0; }
.mg-row .t1 { font-size: 13.5px; }
.mg-row .t2 { font-size: 11.5px; color: var(--m-text-2); margin-top: 2px; white-space: nowrap; }
.mg-row .t2.wrap { white-space: normal; line-height: 1.35; }
.mg-row .sq { width: 30px; height: 30px; border-radius: 8px; font-size: 18px; }
.mg-row .grow { margin-left: auto; }
.mg-row > .gi { font-size: 16px; color: var(--m-text-2); width: 20px; }
.pop {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13.5px;
}
.pop .lbl { display: inline-flex; align-items: center; gap: 5px; transition: opacity 0.18s ease; }
.pop .lbl .i { font-size: 15px; }
.pop .cv {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--m-control);
  font-size: 13px;
  margin-left: 4px;
}
.pop .cv .i { stroke-width: 2.2; }
.mbtn {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 6px;
  background: var(--m-control);
  font-size: 12.5px;
  white-space: nowrap;
  transition: filter 0.12s;
}
.mbtn.press { filter: brightness(0.86); }
.mfield {
  width: 120px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--m-window);
  box-shadow: 0 0 0 1px var(--m-sep) inset;
  font-size: 12.5px;
  color: var(--m-text-2);
  font-variant-numeric: tabular-nums;
}
.mfield.focus { box-shadow: 0 0 0 1px var(--m-blue) inset, 0 0 0 3px color-mix(in srgb, var(--m-blue) 30%, transparent); color: var(--m-text); }
.mfield.typed { color: var(--m-text); }
.minus {
  width: 16px;
  height: 16px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--m-text-2);
  opacity: 0.45;
}
.minus::after { content: ""; width: 8px; height: 1.6px; border-radius: 1px; background: var(--m-window); }
.badge-exp {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f08a00;
  box-shadow: 0 0 0 1px #f5a540 inset;
  vertical-align: 1px;
}

/* Slider */
.msl { position: relative; width: 190px; height: 22px; }
.msl .track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--m-control); }
.msl .fill { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--m-blue); width: calc(var(--v) * 100%); }
.msl .knob {
  position: absolute;
  top: 1px;
  left: calc(var(--v) * (100% - 20px));
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}
.msl.anim .fill { transition: width 0.45s cubic-bezier(0.3, 0.8, 0.3, 1); }
.msl.anim .knob { transition: left 0.45s cubic-bezier(0.3, 0.8, 0.3, 1); }
.msl .ticks { position: absolute; left: 10px; right: 10px; top: 18px; height: 4px; background: radial-gradient(circle, var(--m-text-2) 0.8px, transparent 1.2px) 0 0 / 10% 4px repeat-x; opacity: 0.6; }
.dpi { font-variant-numeric: tabular-nums; min-width: 76px; text-align: right; font-size: 13.5px; }

/* Menus */
.mmenu {
  position: absolute;
  min-width: 206px;
  padding: 5px;
  border-radius: 9px;
  background: var(--m-menu);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 12px 32px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  opacity: 0;
  transform: scale(0.98);
  transform-origin: 100% 100%;
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
  z-index: 40;
}
.mmenu.open { opacity: 1; transform: none; }
.mmenu.fade { transition-duration: 0.22s; }
.mmi {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 22px;
  padding: 0 10px 0 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.mmi .ck { width: 13px; font-size: 12px; opacity: 0; }
.mmi .ck .i { stroke-width: 2.4; }
.mmi.sel .ck { opacity: 1; }
.mmi .ic { font-size: 14px; opacity: 0.85; }
.mmi .sub { margin-left: auto; padding-left: 18px; font-size: 11px; opacity: 0.6; }
.mmi .sub .i { stroke-width: 2.4; }
.mmi.hl { background: var(--m-blue); color: #fff; }
.mmi.hl .ic,
.mmi.hl .sub { opacity: 1; }
.mms { height: 1px; margin: 5px 8px; background: var(--m-sep); }

/* Notification banner */
.mnote {
  position: absolute;
  top: 36px;
  right: 12px;
  width: 330px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--m-note);
  box-shadow: var(--m-shadow);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1);
  z-index: 35;
}
.mnote.in { transform: none; }
.mnote img { width: 38px; height: 38px; }
.mnote b { display: block; font-size: 13px; }
.mnote .t { font-size: 13px; font-weight: 600; margin-top: 1px; }
.mnote .b { font-size: 12.5px; color: var(--m-text); opacity: 0.85; }
.mnote .ago { font-size: 11px; color: var(--m-text-2); }

/* Generic app windows on the desktop */
.fw {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
  background: var(--m-window);
  box-shadow: var(--m-shadow);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease, box-shadow 0.3s ease;
  transform-origin: 50% 50%;
}
.fw-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: var(--m-faint-2); border-bottom: 1px solid var(--m-sep); }
.fw-bar .lights { padding: 0; gap: 6px; }
.fw-bar .lights i { width: 10px; height: 10px; }
.fw-title { font-size: 12px; font-weight: 600; color: var(--m-text-2); margin: 0 auto; transform: translateX(-24px); }
.tabs { display: flex; gap: 4px; flex: 1; min-width: 0; }
.tab {
  flex: 1;
  min-width: 0;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--m-text-2);
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.2s, color 0.2s;
}
.tab i { width: 8px; height: 8px; border-radius: 2px; flex: none; background: currentColor; opacity: 0.5; }
.tab.on { background: var(--m-window); color: var(--m-text); box-shadow: 0 0 0 0.5px var(--m-sep); }
.fw-body { position: relative; padding: 14px; }
.ln { height: 8px; border-radius: 4px; background: var(--m-faint); margin: 0 0 9px; }
.ln.s { width: 55%; }
.ln.m { width: 78%; }
.ln.h { height: 14px; width: 62%; background: color-mix(in srgb, var(--m-text) 22%, transparent); margin-bottom: 12px; }
.blk { height: 70px; border-radius: 8px; margin-bottom: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--m-blue) 30%, var(--m-faint)), var(--m-faint)); }
.blk.warm { background: linear-gradient(120deg, color-mix(in srgb, #f5a540 45%, var(--m-faint)), var(--m-faint)); }
.blk.green { background: linear-gradient(120deg, color-mix(in srgb, #34c759 40%, var(--m-faint)), var(--m-faint)); }
.page { position: absolute; inset: 0; padding: 14px; transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s; }
.fw.front { z-index: 3; }

/* Dock */
.mdock {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 20px;
  background: var(--m-dock);
  box-shadow: 0 0 0 0.5px var(--m-line);
  transform: translateX(-50%);
  z-index: 20;
}
.dk {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}
.dk .i { stroke-width: 1.6; }
.dk::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--m-bar-ink);
  opacity: 0;
}
.dk.run::after { opacity: 0.7; }
.dk.bounce { animation: dock-bounce 0.55s cubic-bezier(0.3, 0.6, 0.4, 1) 1; }
@keyframes dock-bounce {
  0%, 100% { transform: none; }
  40% { transform: translateY(-16px); }
  70% { transform: translateY(0); }
  85% { transform: translateY(-5px); }
}
.dk.finder { background: linear-gradient(#5ab3ff, #1d7cf0); }
.dk.web { background: linear-gradient(#ffffff, #dfe7f2); color: #1e80f0; }
.dk.mail { background: linear-gradient(#63c6ff, #2289f5); }
.dk.notes { background: linear-gradient(#ffe27a, #f7c52f); color: #6b5310; }

/* Desktop icons */
.dicon {
  position: absolute;
  width: 76px;
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.dicon .i {
  font-size: 48px;
  stroke: #4f9be8;
  stroke-width: 1.2;
  fill: #8cc8ff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* A mouse that is about to connect */
.devcard {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: var(--m-note);
  box-shadow: var(--m-shadow);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.7s cubic-bezier(0.55, 0, 0.25, 1), opacity 0.45s ease;
  z-index: 36;
}
.devcard .glyph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--m-control);
  color: var(--m-blue);
  font-size: 24px;
}
.devcard .glyph .i { stroke-width: 0; }
.devcard small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--m-text-2);
}
.devcard small .i { color: var(--m-blue); font-size: 15px; }

/* Gesture legend card */
.gcard { padding: 12px 10px 12px; z-index: 24; }
.gtitle { font-size: 13px; font-weight: 700; margin: 0 4px 10px; }
.gcard .mg-row { gap: 9px; }
.gcard .t1 { white-space: nowrap; }

/* The mouse illustration (top view, in the app icon's style) */
#mouse-grad .g0 { stop-color: var(--mouse-body); }
#mouse-grad .g1 { stop-color: var(--mouse-body-2); }
.mouse {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(0 18px 24px rgba(15, 25, 45, 0.28));
}
.mouse .body { fill: url(#mouse-grad); stroke: var(--mouse-edge); stroke-width: 1.5; }
.mouse .seam { fill: none; stroke: var(--mouse-edge); stroke-width: 2; stroke-linecap: round; }
.mouse .part { fill: var(--mouse-part); stroke: var(--mouse-edge); stroke-width: 1.5; transition: fill 0.15s ease; }
.mouse .ring { fill: none; stroke: var(--m-blue); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mouse .part.hot { fill: var(--m-blue); stroke: var(--m-blue); }
.mouse .ring.go { animation: ring 0.7s ease-out 1; }
.mouse .ring.hold { animation: ring-hold 1.1s ease-in-out infinite; }
@keyframes ring {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.1); }
}
@keyframes ring-hold {
  0%, 100% { opacity: 0.25; transform: scale(1.15); }
  50% { opacity: 0.8; transform: scale(1.5); }
}
.mouse .arrow { fill: none; stroke: var(--m-blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.2s; }
.mouse .arrow.on { opacity: 1; }
.mouse .arrow .shaft { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 0.45s ease-out; }
.mouse .arrow.on .shaft { stroke-dashoffset: 0; }

/* Press tag that floats near the mouse */
.ptag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: var(--m-note);
  box-shadow: var(--m-shadow);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  z-index: 36;
}
.ptag.on { opacity: 1; transform: none; }
.ptag .i { color: var(--m-blue); font-size: 16px; }
.ptag .mm { display: grid; place-items: center; }
.ptag .mm .mouse { position: static; width: 15px; height: 28px; filter: none; }
.ptag .mm .mouse .body { stroke-width: 6; }
.ptag .mm .mouse .part { stroke-width: 4; }
.ptag .mm .mouse .seam { stroke-width: 6; }
.ptag small { font-weight: 500; color: var(--m-text-2); font-size: 12px; }

/* Mission Control strip */
.spaces {
  position: absolute;
  left: 50%;
  top: 38px;
  display: flex;
  gap: 14px;
  transform: translate(-50%, -150px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
  z-index: 22;
}
.spaces.on { transform: translate(-50%, 0); opacity: 1; }
.spaces div {
  width: 104px;
  height: 58px;
  border-radius: 7px;
  background: linear-gradient(165deg, var(--wall-a), var(--wall-b));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 6px 14px rgba(0, 0, 0, 0.25);
  position: relative;
}
.spaces div:first-child { box-shadow: 0 0 0 2.5px #fff, 0 6px 14px rgba(0, 0, 0, 0.25); }
.spaces div::after {
  content: attr(data-n);
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Scroll preview */
.sprev {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  background: var(--m-window);
  box-shadow: var(--m-shadow);
}
.sprev .vp { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; overflow: hidden; }
.sprev .doc { position: absolute; left: 16px; right: 16px; top: 16px; will-change: transform; }
.sprev .doc.glide { transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1); }
.sprev .wheel {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--m-group);
  box-shadow: 0 0 0 1px var(--m-sep);
  color: var(--m-blue);
  font-size: 22px;
  z-index: 2;
}
.sprev .wheel .i { stroke-width: 2.2; transition: transform 0.25s ease; }
.sprev .wheel.flip .i { transform: rotate(180deg); }
.sprev .wheel.tick { animation: wheel-tick 0.18s ease 1; }
@keyframes wheel-tick {
  50% { transform: scale(0.9); }
}

/* Interactive hero */
.canvas .tap { cursor: pointer; }
.canvas .fw.tap { cursor: default; }
.mp-row.tap:hover::before { opacity: 0.08; }
.mp-row.tap.flash::before { opacity: 0.18; }
.mp-chip.tap:hover { background: color-mix(in srgb, var(--m-control) 82%, var(--m-text-2)); }
.mbar .mbi.tap:hover { background: rgba(127, 127, 127, 0.2); }
.mp-label.blab { display: flex; align-items: center; gap: 8px; }
.mp-pause { display: none; align-items: center; gap: 4px; margin-left: auto; }
.mp-pause .i { font-size: 12px; }
.mp.paused .mp-pause { display: inline-flex; }
.mp.paused .mp-row[data-c] .val:not(.def) { text-decoration: line-through; opacity: 0.7; }
.mp.paused .mp-sub .dot { background: var(--m-text-2); }
.mmenu.pick.open { pointer-events: auto; }
.mmenu.pick .mmi:hover { background: var(--m-blue); color: #fff; }
.mmenu.pick .mmi:hover .ic { opacity: 1; }
.mouse.live .hit { fill: transparent; stroke: none; cursor: pointer; pointer-events: all; }
.mouse .part.hover { fill: color-mix(in srgb, var(--m-blue) 30%, var(--mouse-part)); }
.mouse .part.hot { fill: var(--m-blue); }
.ptag { pointer-events: none; }

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 18px;
}
.demo-hint { margin: 0; max-width: 50ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.demo-hint b { font-weight: 650; color: var(--ink); }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.seg-wrap { display: flex; align-items: center; gap: 9px; }
.seg-label {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--rule) inset;
}
.seg button {
  appearance: none;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font: 500 14px/1 var(--body);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--rule);
}
.seg button.pressed { background: var(--blue); color: var(--blue-ink); }

/* Cursor */
.cur {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  z-index: 60;
  pointer-events: none;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
  will-change: transform;
}
.cur svg { width: 24px; height: 24px; display: block; transform-origin: 3px 2px; transition: transform 0.09s ease; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); }
.cur.down svg { transform: scale(0.84); }
.cur .hand { display: none; }
.cur.pointer .arrow { display: none; }
.cur.pointer .hand { display: block; }
.ripple {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--m-blue) 35%, transparent);
  pointer-events: none;
  animation: ripple 0.45s ease-out forwards;
  z-index: 59;
}
@keyframes ripple {
  from { transform: scale(0.3); opacity: 1; }
  to { transform: scale(1.4); opacity: 0; }
}

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