/* Layout: one long page; a hero where holding a key on the keyboard dictates into
   the app on a Mac screen, then plain sections on the same dark ground as
   Glidemote's site. Dark first, with a light palette for people whose system is
   set to light, or who pick it with the button in the header (data-theme, set by
   the script in index.html's head). Sections are set like a manual: hairlines and
   run-in heads rather than cards. */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-raised: #0f1114;
  --surface: #131518;
  --surface-2: #1b1e23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --fg: #eef0f3;
  --muted: #8f96a0;

  /* Each AI mode has a colour, which the overlay shows while it works: blue
     cleans up, purple writes email, teal writes messages, orange takes notes. */
  --cleanup: #5b8cff;
  --email: #a78bfa;
  --message: #2dd4bf;
  --notes: #f5a524;
  --cleanup-text: #86a8ff;
  --email-text: #c4b1ff;
  --message-text: #5eead4;
  --notes-text: #f8bd55;
  --cta: #3366f0;
  --cta-hover: #4675f5;
  --cta-ink: #ffffff;
  --error-text: #ff8a80;
  --heart: #f2626b;

  /* Device mock-ups look the same in both themes. */
  --dev-bg: #0a0b0d;
  --dev-surface: #131518;
  --dev-line: rgba(255, 255, 255, 0.08);
  --dev-fg: #eef0f3;
  --dev-muted: #8a9099;
  --dev-rec: #ff5a4f;

  --font-display: "Young Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-device: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  --radius: 10px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f5f8;
    --bg-raised: #ebeef3;
    --surface: #ffffff;
    --surface-2: #f2f4f8;
    --line: rgba(14, 20, 32, 0.09);
    --line-strong: rgba(14, 20, 32, 0.17);
    --fg: #0e1218;
    --muted: #59606d;
    --cleanup: #3366f0;
    --email: #7d5cf2;
    --message: #0d9488;
    --notes: #e08f0b;
    --cleanup-text: #2556d8;
    --email-text: #6440de;
    --message-text: #0f766e;
    --notes-text: #a35f00;
    --cta: #2556d8;
    --cta-hover: #1f4bc2;
    --error-text: #c62828;
    --heart: #d42a3a;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f8;
  --bg-raised: #ebeef3;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --line: rgba(14, 20, 32, 0.09);
  --line-strong: rgba(14, 20, 32, 0.17);
  --fg: #0e1218;
  --muted: #59606d;
  --cleanup: #3366f0;
  --email: #7d5cf2;
  --message: #0d9488;
  --notes: #e08f0b;
  --cleanup-text: #2556d8;
  --email-text: #6440de;
  --message-text: #0f766e;
  --notes-text: #a35f00;
  --cta: #2556d8;
  --cta-hover: #1f4bc2;
  --error-text: #c62828;
  --heart: #d42a3a;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Paints the band behind a phone's status bar above the sticky nav. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}

h1, h2, h3 { margin: 0; text-wrap: balance; font-synthesis: none; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--cta);
  color: var(--cta-ink);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-small { height: 38px; padding: 0 16px; border-radius: 8px; font-size: 0.9375rem; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: currentColor; }
.btn-block { width: 100%; }

/* -- nav ------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 1.25rem/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .mark { width: 28px; height: 28px; flex: none; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--fg); }

/* Light or dark. It shows the one in use, and hides without scripts, since then it
   can't do anything. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--fg); background: var(--surface-2); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .sun, :root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root:not([data-theme]) .theme-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  padding-block: 72px 88px;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 48px 64px; }
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.8rem + 3.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lede { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }

.aside { max-width: 30em; margin-top: 28px; color: var(--muted); font-size: 0.9375rem; }

/* -- demo: the Mac display ------------------------------------------------- */

.demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
}
.display, .kb { grid-area: 1 / 1; }

.display { width: 88%; padding-bottom: 7%; }

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 10px;
  border: 7px solid #0c0d10;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(80% 90% at 8% 100%, #2a8f9f 0%, transparent 60%),
    radial-gradient(90% 80% at 100% 0%, #6a4fd8 0%, transparent 60%),
    radial-gradient(70% 70% at 60% 60%, #2b4fc4 0%, transparent 70%),
    #141a36;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.stand {
  width: 22%;
  height: 0;
  padding-bottom: 7%;
  margin: 0 auto;
  background: linear-gradient(180deg, #7d838c, #b9bec5 40%, #868c95);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

.menubar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 3.6cqw;
  padding: 0 1.8cqw;
  background: rgba(14, 16, 26, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.mb-dot { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.8); }
.mb-item { height: 0.9cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.45); }
.mb-item.w1 { width: 4.6cqw; background: rgba(255, 255, 255, 0.7); }
.mb-item.w2 { width: 3cqw; }
.mb-item.w3 { width: 3.6cqw; }
/* Babblekey's menu bar icon: a key with a waveform, red while it listens. */
.mb-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25cqw;
  width: 2.8cqw;
  height: 2cqw;
  margin-left: auto;
  border: 0.18cqw solid rgba(255, 255, 255, 0.8);
  border-radius: 0.5cqw;
  transition: border-color 0.2s, background 0.2s;
}
.mb-app i { width: 0.25cqw; height: 0.6cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.85); }
.mb-app i:nth-child(2) { height: 1cqw; }
.listening .mb-app { border-color: var(--dev-rec); background: var(--dev-rec); }
.listening .mb-app i { background: #fff; }
.mb-clock { color: rgba(255, 255, 255, 0.85); font: 600 1.5cqw/1 var(--font-device); }

.window {
  position: absolute;
  left: 4%;
  top: 7.5%;
  width: 68%;
  height: 80%;
  display: flex;
  flex-direction: column;
  border-radius: 1.4cqw;
  overflow: hidden;
  background: #1c1f26;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font: 400 2.7cqw/1.38 var(--font-device);
}
.titlebar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.8cqw;
  height: 4.4cqw;
  padding: 0 1.6cqw;
  background: #25282f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.titlebar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { margin-left: 1.4cqw; color: rgba(255, 255, 255, 0.7); font: 600 1.6cqw/1 var(--font-device); }

/* The four apps the demo dictates into. Each has one spot (.ins) where the
   text lands, after a blinking caret until it does. */
.app { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 2cqw 2.8cqw; gap: 1.3cqw; }
.ins { white-space: pre-wrap; border-radius: 0.6cqw; transition: background-color 1.2s; }
.ins.pasted { transition: none; background-color: rgba(var(--tone), 0.32); }
.caret {
  display: inline-block;
  width: 0.22cqw;
  height: 3.2cqw;
  margin-left: 0.1cqw;
  vertical-align: -0.6cqw;
  background: #8fb0ff;
  animation: blink 1.1s steps(1) infinite;
}

.app-mail .field { display: flex; gap: 1.2cqw; padding-bottom: 1cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.app-mail .field b { color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.app-mail .body { padding-top: 0.3cqw; }

.app-chat { justify-content: flex-end; }
.bubble {
  max-width: 72%;
  padding: 1.2cqw 2.2cqw;
  border-radius: 2.4cqw;
  background: #33373f;
}
.bubble + .bubble { margin-top: -0.8cqw; }
.app-chat .who { color: rgba(255, 255, 255, 0.45); font-size: 2.2cqw; }
.compose {
  min-height: 6cqw;
  margin-top: 1cqw;
  padding: 1.2cqw 2.2cqw;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3cqw;
}

.app-notes .title { font-weight: 700; font-size: 3.4cqw; }
.app-notes .date { margin-top: -1.4cqw; color: rgba(255, 255, 255, 0.45); font-size: 2.2cqw; }
.app-notes { background: #1f1e1c; }

.app-issue .label { color: rgba(255, 255, 255, 0.5); font-size: 2.2cqw; font-weight: 600; }
.app-issue .input {
  margin-top: -1cqw;
  padding: 1cqw 1.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1cqw;
  background: #15171c;
}
.app-issue .input.tall { flex: 1; }

/* The overlay Babblekey shows while you hold the key: a light for listening, your
   voice level, and what it's doing, named in the mode's colour like the app. It
   floats over the Dock, clear of the window being typed into. */
.overlay {
  --tone: 255, 255, 255;
  position: absolute;
  left: 38%;
  bottom: 3.2%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  height: 5.4cqw;
  padding: 0 2.4cqw 0 1.8cqw;
  translate: -50% 1.5cqw;
  border-radius: 99px;
  background: rgba(16, 17, 21, 0.94);
  border: 1px solid rgba(var(--tone), 0.22);
  box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, 0.45);
  color: #fff;
  font: 600 1.7cqw/1 var(--font-device);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.2s, border-color 0.25s, box-shadow 0.25s;
}
.overlay.show { opacity: 1; translate: -50% 0; }
.overlay[data-tone] { border-color: rgba(var(--tone), 0.7); box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, 0.45), 0 0 3cqw rgba(var(--tone), 0.28); }
.ov-dot { flex: none; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--dev-rec); box-shadow: 0 0 1.4cqw var(--dev-rec); }
.overlay.busy .ov-dot, .overlay[data-tone] .ov-dot { background: rgb(var(--tone)); box-shadow: 0 0 1.4cqw rgb(var(--tone)); }
.overlay.busy .ov-dot { animation: blink 0.7s steps(1) infinite; }
.ov-bars { display: flex; align-items: center; gap: 0.45cqw; height: 3cqw; }
.ov-bars i {
  width: 0.5cqw;
  height: 100%;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.9);
  scale: 1 var(--l, 0.15);
  transition: scale 0.09s linear;
}
.overlay[data-tone] .ov-bars i { background: rgb(var(--tone)); }
.ov-text { min-width: 9cqw; letter-spacing: 0.02em; }
.overlay[data-tone="cleanup"], .ins[data-tone="cleanup"] { --tone: 91, 140, 255; }
.overlay[data-tone="email"], .ins[data-tone="email"] { --tone: 167, 139, 250; }
.overlay[data-tone="message"], .ins[data-tone="message"] { --tone: 45, 212, 191; }
.overlay[data-tone="notes"], .ins[data-tone="notes"] { --tone: 245, 165, 36; }

.dock {
  position: absolute;
  left: 38%;
  bottom: 2.2%;
  display: flex;
  gap: 1cqw;
  padding: 0.9cqw;
  translate: -50% 0;
  border-radius: 1.8cqw;
  background: rgba(255, 255, 255, 0.16);
  outline: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dock i { width: 4.2cqw; height: 4.2cqw; border-radius: 1.1cqw; background: linear-gradient(160deg, #6aa0ff, #3a5fe0); }
.dock i:nth-child(2) { background: linear-gradient(160deg, #c4a6ff, #7b4fd6); }
.dock i:nth-child(3) { background: linear-gradient(160deg, #7ee2d0, #12a08c); }
.dock i:nth-child(4) { background: linear-gradient(160deg, #ffd27a, #f08a24); }
.dock i:nth-child(5) { background: linear-gradient(160deg, #e6e9ef, #9aa2ae); }

/* -- demo: the keyboard ---------------------------------------------------- */

/* A close-up of the bottom right of a Mac keyboard, centred on the right Option
   key, which you hold to talk. Keys are placed in container units of the slab. */
.kb {
  justify-self: end;
  align-self: end;
  position: relative;
  z-index: 1;
  width: 46%;
  aspect-ratio: 100 / 65;
  max-width: 100%;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 4.5cqw;
  background: linear-gradient(170deg, #3a3e46, #202227 45%, #2b2e34);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 70px -20px rgba(0, 0, 0, 0.6);
  touch-action: none;
  -webkit-touch-callout: none;
}
.k {
  position: absolute;
  left: var(--x);
  top: var(--y, 5cqw);
  width: var(--w, 20cqw);
  height: var(--h, 17cqw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2cqw 2.6cqw;
  border-radius: 2.8cqw;
  background: #0f1012;
  box-shadow: inset 0 0.3cqw 0 rgba(255, 255, 255, 0.07), 0 0.5cqw 0 rgba(0, 0, 0, 0.5);
  color: #d9dce1;
  font: 400 3.6cqw/1 var(--font-device);
}
.k.c { align-items: center; justify-content: center; gap: 1.4cqw; font-size: 5cqw; }
.k.c small { font-size: 4.6cqw; }
.k.r2 { --y: 24cqw; }
.k.r3 { --y: 43cqw; }
.k.half { --h: 7.5cqw; padding: 0; align-items: center; justify-content: center; font-size: 3cqw; }
.k.r3.half { --y: 43cqw; }
.k.r3.half.lo { --y: 52.5cqw; }
.k .sym { font-size: 6.4cqw; }
.k small { font-size: 3.5cqw; }

.hotkey {
  --x: 40cqw;
  --y: 43cqw;
  appearance: none;
  border: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  outline: 0.35cqw solid rgba(91, 140, 255, 0.55);
  outline-offset: 0.5cqw;
  transition: background 0.1s, translate 0.1s, box-shadow 0.1s, outline-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hotkey:hover { outline-color: rgba(91, 140, 255, 0.9); }
.hotkey:focus-visible { outline: 0.5cqw solid #86a8ff; outline-offset: 0.5cqw; border-radius: 2.4cqw; }
.hotkey.down {
  translate: 0 0.5cqw;
  background: #1a2240;
  color: #fff;
  outline-color: #5b8cff;
  box-shadow: inset 0 0.3cqw 0 rgba(255, 255, 255, 0.07), 0 0 0 rgba(0, 0, 0, 0.5), 0 0 6cqw rgba(91, 140, 255, 0.55);
}
.hotkey.hint { animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { outline-color: rgba(91, 140, 255, 0.95); } }

/* What you say, word by word as the demo hears it. The words are all there from the
   start, hidden, so the line never changes height. */
.said {
  grid-area: 2 / 1;
  display: flex;
  gap: 10px;
  max-width: 34rem;
  min-height: 3.2em;
  margin-top: 22px;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.said svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--muted); transition: color 0.2s; }
.said.on svg { color: var(--dev-rec); }
.said-words { min-width: 0; }
.said-words span { opacity: 0; transition: opacity 0.12s; }
.said-words span.on { opacity: 1; }
.said-words .q { opacity: 1; color: var(--muted); }

.demo-caption {
  grid-area: 3 / 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.demo-caption svg { width: 20px; height: 20px; flex: none; color: var(--cleanup-text); }

@media (max-width: 980px) {
  .demo { max-width: 680px; }
}
@media (max-width: 560px) {
  .display { width: 100%; padding-bottom: 34%; }
  .kb { width: 58%; }
  .screen { border-width: 4px; border-radius: 7px; }
}

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

.band { padding-block: clamp(64px, 8vw, 104px); }
.band + .band { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: clamp(32px, 4vw, 48px); }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.section-head p { color: var(--muted); font-size: 1.125rem; }

h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }

/* modes */

/* A reference list: picture, name and what it does, two columns wide. */
.ref-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .ref-list { grid-template-columns: minmax(0, 1fr); } }

.ref {
  --mc: var(--muted);
  --mt: var(--fg);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-content: center;
  column-gap: 24px;
  row-gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ref.cleanup { --mc: var(--cleanup); --mt: var(--cleanup-text); }
.ref.email { --mc: var(--email); --mt: var(--email-text); }
.ref.message { --mc: var(--message); --mt: var(--message-text); }
.ref.notes { --mc: var(--notes); --mt: var(--notes-text); }
.ref h3 { align-self: end; }
.ref p { align-self: start; color: var(--muted); font-size: 1rem; }
@media (max-width: 560px) {
  .ref { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; padding: 14px 0; }
}

/* The modes' pictures: a few words on the same pad Glidemote draws its gestures on.
   The .pic inside is sized in container units of the pad, so it shrinks with it. */
.ref-pic {
  grid-row: span 2;
  container-type: inline-size;
  display: grid;
  align-items: center;
  width: 100%;
  aspect-ratio: 120 / 76;
  overflow: hidden;
  border-radius: 10% / 15.8%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}
.pic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4cqw;
  padding: 0 11cqw;
  color: var(--fg);
  font-size: 9.5cqw;
  line-height: 1.1;
  white-space: nowrap;
}
.ref-pic .ln { display: block; height: 3.4cqw; border-radius: 2cqw; background: var(--line-strong); }
.ref-pic .hi { color: var(--mt); }

.pic-dictate { flex-direction: row; align-items: center; justify-content: center; gap: 3.2cqw; }
.pic-dictate i { width: 3.4cqw; height: calc(var(--h) * 1cqw); border-radius: 3cqw; background: var(--fg); opacity: 0.75; }

.pic-cleanup { font-size: 11cqw; }
.pic-cleanup s { position: relative; color: var(--muted); text-decoration: none; }
.pic-cleanup s::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 1.6cqw;
  border-radius: 1cqw;
  background: var(--mc);
  transform-origin: left;
}

.pic-email { gap: 3.6cqw; font-size: 8.5cqw; }

.pic-message { align-items: flex-end; gap: 3cqw; }
.pic-message .in { align-self: flex-start; width: 46cqw; height: 13cqw; border-radius: 6.5cqw; background: var(--line-strong); }
.pic-message .out {
  padding: 3cqw 6cqw;
  border-radius: 7cqw;
  background: var(--mc);
  color: #fff;
  font-size: 8.5cqw;
}

.pic-notes { gap: 5cqw; }
.pic-notes span { display: flex; align-items: center; gap: 5cqw; }
.pic-notes span::before { content: ""; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: var(--mc); }

.pic-custom .field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 24cqw;
  padding: 0 6cqw;
  border-radius: 6cqw;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 8.5cqw;
}
.pic-custom .field i {
  width: 1px;
  height: 11cqw;
  margin-left: 1cqw;
  background: var(--fg);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* The pictures take turns acting out their mode: demo.js gives one at a time the
   "playing" class for a single run, and the rest stay still. */
.playing.dictate .pic-dictate i { animation: m-level 0.5s ease-in-out 4 alternate; animation-delay: calc(var(--d) * 0.08s); }
.playing.cleanup .pic-cleanup s::after { animation: m-strike 2.4s ease-out; }
.playing.cleanup .pic-cleanup s:nth-of-type(2)::after { animation-delay: 0.25s; }
.playing.email .pic-email > * { animation: m-write 2.4s ease-out backwards; }
.playing.email .pic-email > :nth-child(2) { animation-delay: 0.2s; }
.playing.email .pic-email > :nth-child(3) { animation-delay: 0.4s; }
.playing.email .pic-email > :nth-child(4) { animation-delay: 0.6s; }
.playing.message .pic-message .out { animation: m-send 2.4s cubic-bezier(0.3, 1.5, 0.5, 1); transform-origin: right bottom; }
.playing.notes .pic-notes span { animation: m-write 2.4s ease-out backwards; }
.playing.notes .pic-notes span:nth-child(2) { animation-delay: 0.25s; }
.playing.notes .pic-notes span:nth-child(3) { animation-delay: 0.5s; }
.playing.custom .pic-custom .field { animation: m-focus 2.4s ease-out; }

@keyframes m-level { to { scale: 1 0.35; } }
@keyframes m-strike {
  0%, 15% { transform: scaleX(0); }
  45%, 100% { transform: scaleX(1); }
}
@keyframes m-write {
  0%, 10% { opacity: 0; translate: -3cqw 0; }
  35%, 100% { opacity: 1; translate: 0 0; }
}
@keyframes m-send {
  0%, 12% { scale: 0.3; opacity: 0; }
  35%, 100% { scale: 1; opacity: 1; }
}
@keyframes m-focus {
  0%, 100% { border-color: var(--line-strong); }
  20%, 70% { border-color: var(--fg); }
}

.legend { display: grid; gap: 8px; max-width: 46rem; margin-top: 28px; color: var(--muted); }
.legend b { font-weight: 600; }
.c-cleanup { color: var(--cleanup-text); }
.c-email { color: var(--email-text); }
.c-message { color: var(--message-text); }
.c-notes { color: var(--notes-text); }

/* privacy: the app's settings beside what stays where */

.split {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: start;
  gap: 32px 64px;
}
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.settings {
  max-width: 420px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dev-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.5);
  color: var(--dev-fg);
  font: 400 0.875rem/1.3 var(--font-device);
}
.settings .titlebar { height: 34px; gap: 7px; padding: 0 12px; }
.settings .titlebar i { width: 11px; height: 11px; }
.settings .titlebar span { margin-left: 8px; font-size: 0.8125rem; }
.set-rows { display: grid; padding: 6px 16px 10px; }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--dev-line);
}
.set-row:last-child { border-bottom: 0; }
.set-row > span:first-child { color: var(--dev-muted); }
.set-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 7px;
  background: #1f2228;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-val.select::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border: solid var(--dev-muted); border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.set-val.key { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8125rem; letter-spacing: 0.02em; }
.set-val kbd { font: inherit; }
.set-note { color: var(--dev-muted); font-size: 0.75rem; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #1f2228; border: 1px solid rgba(255, 255, 255, 0.1); }
.seg span { padding: 4px 12px; border-radius: 6px; color: var(--dev-muted); }
.seg .on { background: #3a3f48; color: var(--dev-fg); }

.notes-list { max-width: 40rem; }
.notes-list p { margin-bottom: 16px; color: var(--muted); }
.notes-list b { color: var(--fg); font-weight: 600; }

/* setup */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  margin-bottom: 6px;
  font: 400 2.25rem/1 var(--font-display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* details */

.details { columns: 2; column-gap: 56px; max-width: 64rem; }
@media (max-width: 760px) { .details { columns: 1; } }
.details p { margin-bottom: 20px; color: var(--muted); break-inside: avoid; }
.details b { color: var(--fg); font-weight: 600; }

/* pricing */

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 48px 72px; }
.pricing-copy { display: grid; gap: 16px; max-width: 32rem; }
.pricing-copy > p { color: var(--muted); font-size: 1.125rem; }
@media (max-width: 860px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

/* What the others charge, as a short ruled list. */
.compare { display: grid; margin: 12px 0 0; border-bottom: 1px solid var(--line); }
.compare div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.compare dt { font-weight: 600; }
.compare dd { margin: 0; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.compare .us dd { color: var(--fg); font-weight: 600; }

.price-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.plan { font-weight: 600; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 12px; }
.amount {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.per { color: var(--muted); font-size: 1rem; }
.includes { margin-bottom: 6px; }
.req { color: var(--muted); font-size: 0.875rem; text-align: center; }

/* The waitlist form. Without scripts it posts and comes back to #joined, which
   :target shows; with them, waitlist.js sends it and says how it went in place. */
.waitlist { display: grid; gap: 10px; }
.waitlist label { font-size: 0.9375rem; font-weight: 600; }
.waitlist input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1 var(--font-body);
}
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist input[type="email"]:focus { outline: 2px solid var(--cleanup); outline-offset: 1px; border-color: transparent; }
.waitlist .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.4em; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.form-note.ok { color: var(--message-text); }
.form-note.err { color: var(--error-text); }
.joined { display: none; color: var(--message-text); font-size: 0.9375rem; text-align: center; }
.joined.err { color: var(--error-text); }
.joined:target { display: block; }

/* faq */

.faq { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq-list { display: grid; gap: 28px; margin: 0; }
.faq dt { font-weight: 600; }
.faq dd { max-width: 40rem; margin: 6px 0 0; color: var(--muted); }

/* footer */

.footer { border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 36px; color: var(--muted); font-size: 0.9375rem; }
.footer .brand { color: var(--fg); margin-right: auto; }
.footer a:not(.brand) { color: var(--fg); text-underline-offset: 3px; }
.fine { width: 100%; font-size: 0.8125rem; }
.heart { color: var(--heart); }

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