/*
 * muxscale.com
 *
 * The app's design, on a page. Every token below is app/src/theme.ts, value
 * for value: warm stone greys, the phosphor-teal accent, and safety orange
 * for "your turn" -- the only colour that should ever draw the eye first. If
 * one changes there it changes here; the site is meant to feel like opening
 * the app, not like a brochure about it.
 *
 * Dark only, as the app is. System faces only, as the app uses: no web fonts
 * to fetch, so nothing to track and nothing to wait for.
 */

:root {
  color-scheme: dark;

  /* colour */
  --bg: #100f0d;
  --surface: #191815;
  --surface-high: #23211d;
  --border: #2c2a25;
  --hairline: #1f1e1a;
  --text: #f1eee8;
  --text-dim: #9c978d;
  --text-faint: #69655d;
  --accent: #3ecfb2;
  --accent-soft: #15322c;
  --attention: #ff8a1f;
  --danger: #e5384f;
  --success: #a3d96b;
  --busy: #35bfa4;
  --code-bg: #0b0a09;
  --code-inline: #24221e;
  --code-inline-text: #9fe3d4;

  /* syntax */
  --syn-plain: #dad6ce;
  --syn-comment: #736e65;
  --syn-string: #b5d98a;
  --syn-keyword: #e3c463;
  --syn-add: #a3d96b;
  --syn-del: #ff8a7a;
  --syn-meta: #6fcfe0;

  /* space */
  --xs: 4px;
  --sm: 8px;
  --md: 12px;
  --lg: 16px;
  --xl: 24px;
  --xxl: 32px;

  /* radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* type */
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, Menlo, "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --page: 1120px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: #3ecfb255;
}

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

code,
kbd,
.mono {
  font-family: var(--font-mono);
}

/* Inline code: a chip lifted off the prose, as in the chat. */
p code,
li code,
h3 code {
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--code-inline);
  color: var(--code-inline-text);
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--md);
  top: var(--md);
  z-index: 10;
  padding: var(--sm) var(--md);
  background: var(--surface-high);
  color: var(--text);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(16, 15, 13, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 26px;
  height: 26px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--xl);
  font-size: 14px;
}
.nav-links a:not(.button) {
  color: var(--text-dim);
}
.nav-links a:not(.button):hover {
  color: var(--text);
  text-decoration: none;
}
.nav-links a.nav-icon {
  display: inline-flex;
  padding: 4px;
  margin: -4px;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 720px) {
  .nav-links {
    gap: var(--lg);
  }
  .nav-links a:not(.button):not(.nav-icon) {
    display: none;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, filter 120ms ease;
}
.button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}
.button:active {
  transform: scale(0.98);
}
.button.small {
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
}
.button.quiet {
  background: var(--surface-high);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
/* A faint teal glow behind the phone, the way the cursor lights a dark screen. */
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 4%;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(62, 207, 178, 0.1), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}
@media (max-width: 960px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  margin: 0 0 var(--lg);
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow svg {
  width: 16px;
  height: 16px;
}
/* The agents' own marks, in a row after the words, at the size of the text. */
.eyebrow {
  padding: 6px 10px 6px 14px;
  gap: 10px;
}
.eyebrow .logos {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.eyebrow .logos svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.eyebrow .logos svg[aria-label="omp"] {
  width: 22px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
}
h1 .turn {
  color: var(--attention);
}
.lede {
  max-width: 34em;
  margin: var(--xl) 0 0;
  color: var(--text-dim);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
}
.lede strong {
  color: var(--text);
  font-weight: 600;
}

.signup {
  display: flex;
  gap: var(--sm);
  max-width: 460px;
  margin-top: var(--xxl);
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.signup:focus-within {
  border-color: #3ecfb288;
}
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.signup input::placeholder {
  color: var(--text-faint);
}
.signup .trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.signup-note {
  min-height: 22px;
  margin: var(--md) 0 0 var(--lg);
  color: var(--text-faint);
  font-size: 13px;
}
.signup-note.ok {
  color: var(--accent);
}
.signup-note.bad {
  color: var(--danger);
}
@media (max-width: 420px) {
  .signup {
    flex-direction: column;
    border-radius: var(--r-lg);
  }
  .signup input[type="email"] {
    height: 40px;
  }
}

/* ---------- the phone ---------- */

.stage {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 318px;
  max-width: 100%;
  aspect-ratio: 318 / 660;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(160deg, #2a2823, #161512 46%, #22201c);
  box-shadow:
    0 0 0 1px #34312b,
    0 40px 80px -24px rgba(0, 0, 0, 0.85),
    0 18px 36px -18px rgba(0, 0, 0, 0.6);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 14px;
  background: #000;
  z-index: 2;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 4px 26px 0 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  flex: none;
}
.statusbar .bars {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
/* A battery with charge in it. An empty outline read as 0%. */
.statusbar .bars i {
  position: relative;
  display: block;
  width: 20px;
  height: 10px;
  margin-right: 2px;
  border-radius: 3px;
  border: 1px solid #9c978d99;
}
.statusbar .bars i::before {
  content: "";
  position: absolute;
  top: 1.5px;
  bottom: 1.5px;
  left: 1.5px;
  width: 78%;
  border-radius: 1.5px;
  background: var(--text);
}
.statusbar .bars i::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: -3px;
  width: 1.5px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: #9c978d99;
}
.statusbar .bars b {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}
.statusbar .bars b span {
  width: 3px;
  background: var(--text);
  border-radius: 1px;
}
.home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 104px;
  height: 4px;
  margin-left: -52px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.85;
}

/* ---------- app: sessions list ---------- */

.app-head {
  padding: 4px var(--lg) var(--md);
  display: grid;
  gap: 10px;
  flex: none;
}
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.large-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.search {
  display: flex;
  align-items: center;
  gap: var(--sm);
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-faint);
  font-size: 13px;
}
/* The app's agent chips: a row that scrolls sideways, so it runs off the edge. */
.tabs {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-right: calc(-1 * var(--lg));
}
.tab {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
}
.tab.on {
  background: var(--surface-high);
  border-color: var(--surface-high);
  color: var(--text);
}
.tab .n {
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.tab.on .n {
  color: var(--text-dim);
}

.group {
  display: flex;
  align-items: center;
  gap: var(--sm);
  padding: 7px var(--lg);
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
  font-weight: 600;
}
.group .chev {
  width: 9px;
  height: 9px;
  transform: rotate(90deg);
}
.group .chev.closed {
  transform: none;
}
.group .n {
  color: var(--text-faint);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.group svg.mark {
  width: 14px;
  height: 14px;
}

.row {
  display: flex;
  padding-left: var(--lg);
}
.row .icon {
  width: 14px;
  padding-top: 11px;
  margin-right: 10px;
  flex: none;
}
.row .icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.row .body {
  flex: 1;
  min-width: 0;
  padding: 9px var(--lg) 9px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 2px;
}
.row:last-child .body {
  border-bottom: 0;
}
.row .line {
  display: flex;
  align-items: center;
  gap: var(--sm);
  min-width: 0;
}
.row .title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.row .time {
  color: var(--text-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.row .meta {
  color: var(--text-dim);
  font-size: 11.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.row .meta .branch {
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.row .ask {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 7px;
  border-radius: var(--r-sm);
  background: #ff8a1f14;
  font-size: 11px;
  line-height: 1.4;
}
.row .ask b {
  color: var(--attention);
}
.row .ask code {
  font-size: 10px;
  color: var(--text);
}

/* ---------- app: session header, chat ---------- */

.session-head {
  display: flex;
  align-items: center;
  gap: var(--sm);
  padding: 2px var(--md) 10px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.session-head .back {
  width: 18px;
  height: 18px;
  flex: none;
}
.session-head .who {
  flex: 1;
  min-width: 0;
}
.session-head .t {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}
.session-head .s {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ff8a1f1c;
  color: var(--attention);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge svg {
  width: 11px;
  height: 11px;
}

.view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.view[hidden] {
  display: none;
}
.convo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: var(--md) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
}
.mine {
  align-self: flex-end;
  max-width: 82%;
  margin-right: var(--md);
  padding: 8px 12px;
  border-radius: 16px 16px 6px 16px;
  background: var(--accent-soft);
  font-size: 12.5px;
  line-height: 1.45;
}
.theirs {
  padding: 0 var(--md);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}
.theirs code {
  font-size: 11px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--code-inline);
  color: var(--code-inline-text);
}
.step {
  margin: 0 var(--md);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.step .add {
  color: var(--syn-add);
}
.step .del {
  color: var(--syn-del);
}
.approval {
  margin: 2px var(--md) 0;
  padding: 10px;
  border-radius: var(--r-md);
  background: #ff8a1f14;
  border: 1px solid #ff8a1f55;
  display: grid;
  gap: 6px;
}
.approval .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.approval .eye {
  color: var(--attention);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.approval .left {
  color: var(--text-faint);
  font-size: 10px;
}
.approval .subject {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.approval .tool {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.approval .actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.approval .actions span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 12.5px;
  font-weight: 700;
}
.approval .deny {
  color: var(--danger);
  border-color: #e5384f66;
}
.approval .allow {
  color: var(--success);
  border-color: #a3d96b66;
  background: #a3d96b12;
}
.composer {
  margin: 10px var(--lg) 0;
  display: flex;
  align-items: center;
  gap: var(--sm);
  padding: 4px 4px 4px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12.5px;
  flex: none;
}
.composer > span:first-child {
  flex: 1;
}
.composer .send {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-high);
  display: grid;
  place-items: center;
}
.composer .send svg {
  width: 12px;
  height: 12px;
}

/* ---------- app: shell ---------- */

.term {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: pre;
  overflow: hidden;
  color: var(--syn-plain);
}
.term .p {
  color: #82b7ff;
}
.term .g {
  color: var(--busy);
}
.term .y {
  color: #e5c07b;
}
.term .ghost {
  color: #585858;
}
.term .cur {
  background: var(--accent);
  color: var(--bg);
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink {
  50% {
    background: transparent;
    color: #585858;
  }
}
.keybar {
  display: flex;
  gap: 4px;
  padding: 7px 8px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  flex: none;
}
.keybar span {
  flex: none;
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface-high);
  font-family: var(--font-mono);
  font-size: 11px;
}
.keybar .armed {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

/* ---------- app: files ---------- */

.files {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 0 0;
}
.fsearch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 var(--md);
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-faint);
  font-size: 11.5px;
}
.fsearch svg {
  width: 11px;
  height: 11px;
}
.fseg {
  display: flex;
  margin: 8px var(--md) 6px;
  padding: 2px;
  border-radius: 8px;
  background: var(--surface);
}
.fseg span {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 600;
}
.fseg .on {
  background: var(--surface-high);
  color: var(--text);
}
.froot {
  padding: 2px var(--md) 4px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.frow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px var(--md);
  border-bottom: 1px solid var(--hairline);
}
.fm {
  width: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
}
.fm.a {
  color: var(--success);
}
.fm.m {
  color: var(--syn-keyword);
}
.fn {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.fd {
  color: var(--text-faint);
  font-size: 9.5px;
  margin-top: 1px;
}
.fchip {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* a file open: the viewer's header, its info line, and the code */
.file-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px var(--md) 8px;
  flex: none;
}
.fback {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-size: 12.5px;
}
.fback svg {
  width: 15px;
  height: 15px;
}
.ftitle {
  font-size: 13px;
  font-weight: 700;
}
.fedit {
  justify-self: end;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}
.fmeta {
  display: flex;
  justify-content: space-between;
  padding: 2px var(--md) 8px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  flex: none;
}
.fcopy {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-dim);
  font-family: var(--font-body, inherit);
  font-weight: 600;
}
.fcopy svg {
  width: 10px;
  height: 10px;
}
.code {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--syn-plain);
}
.cl {
  display: flex;
  white-space: pre;
}
.cl i {
  flex: none;
  width: 26px;
  padding-right: 8px;
  text-align: right;
  color: var(--text-faint);
  font-style: normal;
}
.code .c {
  color: var(--syn-comment);
  font-style: italic;
}
.code .k {
  color: var(--syn-keyword);
}
.code .n {
  color: #f0b37a;
}
.code .t {
  color: var(--syn-meta);
}
.code .f {
  font-weight: 650;
}

/* ---------- app: chat / shell / files switch ---------- */

.modes {
  display: flex;
  padding: 3px;
  margin: 10px var(--lg) 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex: none;
}
.modes button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.modes button[aria-selected="true"] {
  background: var(--surface-high);
  color: var(--text);
}
.modes button svg {
  width: 14px;
  height: 14px;
}
.modes .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

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

section {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}
.kicker {
  margin: 0 0 var(--md);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  max-width: 20em;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.section-lede {
  max-width: 38em;
  margin: var(--lg) 0 0;
  color: var(--text-dim);
  font-size: 17px;
}

/* the four screens, two by two: four across would shrink the phones past
   reading */
.screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px var(--xxl);
  margin-top: 56px;
}
.screens figure {
  margin: 0;
  display: grid;
  align-content: start;
  gap: var(--xl);
  justify-items: center;
}
.screens .phone {
  width: 286px;
}
.screens figcaption {
  max-width: 300px;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
}
.screens figcaption b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
@media (max-width: 1040px) {
  .screens {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }
}

/* notifications: an iPhone lock screen, and one held open for its actions */
.lock {
  background:
    radial-gradient(120% 60% at 20% 8%, rgba(62, 207, 178, 0.34), transparent 60%),
    radial-gradient(90% 50% at 95% 60%, rgba(255, 138, 31, 0.2), transparent 65%),
    radial-gradient(100% 60% at 10% 100%, rgba(53, 191, 164, 0.18), transparent 70%),
    #0c0b0a;
}
.lock-time {
  display: grid;
  justify-items: center;
  margin-top: 2px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.lock-time .padlock {
  width: 11px;
  height: 13px;
  color: var(--text);
}
.lock-time .date {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}
.lock-time .clock {
  margin-top: -4px;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
}
.notifs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: auto;
  padding: 0 9px 74px;
}
.notif {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 11px 11px 10px;
  border-radius: 20px;
  background: rgba(46, 44, 39, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  font-size: 11.5px;
  line-height: 1.32;
}
.notif img {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 7px;
}
.notif > div {
  min-width: 0;
  flex: 1;
}
.nline {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.nline b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.nline span {
  flex: none;
  color: rgba(241, 238, 232, 0.55);
  font-size: 10.5px;
}
.nsub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.ntext {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(241, 238, 232, 0.86);
}
.lock-buttons {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
}
.lock-buttons span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(46, 44, 39, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* held: the lock screen dims and blurs behind the notification */
.lock.held::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 7, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lock.held > * {
  position: relative;
}
.lock.held .island,
.lock.held .home-indicator {
  position: absolute;
}
.notif.big {
  margin: 96px 9px 0;
  padding: 13px 13px 14px 12px;
  background: rgba(58, 55, 49, 0.78);
  font-size: 12.5px;
}
.notif.big .nline b,
.notif.big .nsub {
  white-space: normal;
}
.notif.big .ntext:last-child {
  margin-top: 2px;
}
.nmenu {
  width: 62%;
  margin: 10px 9px 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(58, 55, 49, 0.78);
  font-size: 13px;
}
.nmenu div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
}
.nmenu div + div {
  border-top: 1px solid rgba(241, 238, 232, 0.1);
}
.nmenu .no {
  color: #ff5a6e;
}
.nmenu svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sealed {
  display: flex;
  gap: var(--md);
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin: 56px auto 0;
  color: var(--text-dim);
  font-size: 15px;
  text-align: left;
}
.sealed svg {
  flex: none;
  width: 14px;
  height: 16px;
  color: var(--accent);
}

/* the watch: real screenshots in a drawn case, the Crown on the right */
.gestures {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--md) var(--xl);
}
.gestures li {
  display: flex;
  align-items: center;
  gap: var(--md);
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 15px;
}
.gestures b {
  margin-right: 6px;
  color: var(--text);
  font-weight: 650;
}
.gestures svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: var(--accent);
}
/* what's waiting and a question, then the three steps of a spoken reply;
   then two across, then one */
.watches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 64px var(--lg);
  margin-top: 56px;
}
.watches figure {
  grid-column: span 2;
  margin: 0;
  display: grid;
  gap: var(--xl);
  justify-items: center;
  align-content: start;
}
.watch {
  position: relative;
  width: min(228px, 100%);
  padding: 9px;
  border-radius: 64px;
  background: linear-gradient(150deg, #4a4740, #24221e 45%, #34312c);
  box-shadow: 0 0 0 1px #57534a, 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(62, 207, 178, 0.07);
}
.watch img {
  display: block;
  width: 100%;
  height: auto;
  border: 12px solid #000;
  border-radius: 55px;
  background: #000;
}
.watch::before,
.watch::after {
  content: "";
  position: absolute;
  border-radius: 4px;
}
.watch::before {
  right: -8px;
  top: 58px;
  width: 10px;
  height: 42px;
  background: repeating-linear-gradient(0deg, #6a665c 0 2px, #3b3832 2px 4px);
}
.watch::after {
  right: -4px;
  top: 128px;
  width: 6px;
  height: 52px;
  background: #3b3832;
}
.watches figcaption {
  max-width: 260px;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
}
.watches figcaption b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.watches figure:first-child {
  grid-column: 2 / span 2;
}
@media (max-width: 1100px) {
  .watches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .watches figure,
  .watches figure:first-child {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .watches {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
}

/* steps */
/* What you need, before the steps: said up front, not found out later. */
.needs {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm) var(--xl);
  color: var(--text-dim);
  font-size: 15px;
}
.needs li {
  position: relative;
  padding-left: 22px;
  max-width: 520px;
}
.needs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.needs strong {
  color: var(--text);
  font-weight: 600;
}
.needs a {
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--lg);
  margin-top: 32px;
  counter-reset: step;
}
@media (max-width: 1040px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.step-card {
  padding: var(--xl);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--md);
  align-content: start;
}
.step-card h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.step-card h3::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.step-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}
.step-card p code,
.faq code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--code-inline);
  color: var(--code-inline-text);
  font-family: var(--font-mono);
  font-size: 13px;
}
/* One line each, so the install step is no taller than the others. The long
   install line scrolls sideways and fades under the copy button, which is how
   most people will take it anyway. */
.cmd-row {
  position: relative;
  border-radius: var(--r-md);
  background: var(--code-bg);
}
.cmd-row pre.cmd {
  white-space: pre;
  background: none;
  scrollbar-width: none;
}
.cmd-row pre.cmd::-webkit-scrollbar {
  display: none;
}
.cmd-row:has(.copy:not([hidden])) pre.cmd {
  padding-right: 44px;
  mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent calc(100% - 34px));
}
.copy {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.copy:hover {
  color: var(--text);
  background: var(--surface-high);
}
.copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.copy svg {
  width: 15px;
  height: 15px;
}
.copy.done {
  color: var(--accent);
}

/* faq: native disclosure, so it works with no script and reads in order */
.faq {
  margin-top: 32px;
  max-width: 820px;
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--lg);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--text-faint);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.faq details p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.faq a {
  color: var(--accent);
}
.closing .section-lede a {
  color: var(--accent);
}
pre.cmd {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--syn-plain);
  overflow-x: auto;
}
pre.cmd .c {
  color: var(--syn-comment);
}
pre.cmd .k {
  color: var(--accent);
}
pre.cmd .s {
  color: var(--syn-string);
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--lg);
  margin-top: 48px;
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feature {
  padding: var(--xl);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feature svg {
  width: 26px;
  height: 26px;
  margin-bottom: var(--lg);
}
.feature h3 {
  margin: 0 0 var(--sm);
  font-size: 17px;
  letter-spacing: -0.2px;
}
.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* privacy */
.privacy .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .privacy .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.path {
  padding: var(--xl);
  border-radius: var(--r-lg);
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 13px;
  display: grid;
  gap: 14px;
}
.path .hop {
  display: flex;
  align-items: center;
  gap: var(--md);
}
.path .node {
  flex: none;
  min-width: 112px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: center;
}
.path .wire {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
  opacity: 0.7;
}
.path .label {
  color: var(--text-faint);
  font-size: 12px;
}
.path .never {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}
.checks {
  list-style: none;
  margin: var(--xl) 0 0;
  padding: 0;
  display: grid;
  gap: var(--md);
}
.checks li {
  display: flex;
  gap: var(--md);
  color: var(--text-dim);
}
.checks li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.checks li strong {
  color: var(--text);
  font-weight: 600;
}

/* closing call */
.closing {
  text-align: center;
}
.closing h2 {
  margin: 0 auto;
}
.closing .section-lede {
  margin-left: auto;
  margin-right: auto;
}
.closing .signup {
  margin-left: auto;
  margin-right: auto;
}
.closing .signup-note {
  margin-left: 0;
}

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--lg);
}
footer a {
  color: var(--text-dim);
}

/* ---------- the status marks, moving ---------- */

.meter rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: level 1.04s ease-in-out infinite alternate;
}
.meter rect:nth-child(2) {
  animation-duration: 1.38s;
}
.meter rect:nth-child(3) {
  animation-duration: 1.72s;
}
@keyframes level {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1.7);
  }
}
.still .meter rect,
.meter.still rect {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .meter rect,
  .term .cur {
    animation: none;
  }
}

/* ---------- documents: /privacy, /terms ---------- */

.doc {
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.doc .updated {
  margin: var(--md) 0 0;
  color: var(--text-faint);
  font-size: 14px;
}
.doc .summary {
  margin: var(--xxl) 0 0;
  padding: var(--lg) var(--xl);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.doc .summary strong {
  color: var(--text);
}
.doc h2 {
  margin: 48px 0 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.doc h3 {
  margin: var(--xl) 0 0;
  font-size: 16px;
}
.doc p,
.doc li {
  color: var(--text-dim);
  font-size: 16px;
}
.doc p {
  margin: var(--md) 0 0;
}
.doc ul {
  margin: var(--md) 0 0;
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: var(--sm);
}
.doc strong {
  color: var(--text);
  font-weight: 600;
}
.doc table {
  width: 100%;
  margin: var(--lg) 0 0;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th,
.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
  color: var(--text-dim);
}
.doc th {
  color: var(--text);
  font-weight: 600;
}

/* agents: a compatibility table, agents down the side, features across */
.compat {
  margin-top: 48px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  /* Wider than a phone: it scrolls inside its box, never the page. */
  overflow-x: auto;
}
.compat:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.compat table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}
.compat th,
.compat td {
  padding: 14px var(--lg);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  vertical-align: middle;
}
.compat tbody tr:last-child > * {
  border-bottom: 0;
}
.compat thead th {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  border-bottom-color: var(--border);
}
.compat th[scope="row"],
.compat thead th:first-child {
  text-align: left;
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--surface);
}
.compat th[scope="row"] {
  color: var(--text);
  font-weight: 600;
}
.compat td {
  /* Holds the hidden word below, which would otherwise widen the page. */
  position: relative;
  color: var(--text-dim);
  font-size: 13px;
}
/* The word stays for screen readers; the eye gets the mark. */
.compat .yes span,
.compat .no span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.compat .yes::before,
.compat .no::before,
.compat .part::before {
  font-weight: 700;
}
.compat .yes::before {
  content: "✓";
  color: var(--success);
  font-size: 16px;
}
.compat .part::before {
  content: "~ ";
  color: var(--busy);
}
.compat .no::before {
  content: "–";
  color: var(--text-faint);
  font-size: 16px;
}
.agents-more {
  margin: var(--xl) 0 0;
  max-width: 760px;
  color: var(--text-faint);
  font-size: 15px;
}
.agents-more em {
  color: var(--text-dim);
  font-style: normal;
}
.agents-more code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--code-inline);
  color: var(--code-inline-text);
  font-family: var(--font-mono);
  font-size: 13px;
}
