/* Beeplight website. Dark only, like the app icon; the three state colors are the icon's. */

:root {
  --bg: #07090e;
  --surface: #0f131b;
  --surface-2: #141924;
  --raise: #1a2030;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #eef1f6;
  --muted: #a3abba;
  --faint: #6f7889;

  --orange: #ff9f0a;
  --blue: #0a84ff;
  --blue-text: #5aa9ff;
  --green: #30d158;
  --red: #ff453a;

  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  font: 0.92em var(--mono);
  background: rgb(255 255 255 / 0.07);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Even line lengths: no lone word or half a phrase left on the last line, in either language. */
h1,
h2,
.lead,
.sub {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

/* Phrases in a lead that must not break across lines (Chinese breaks between any characters). */
.lead span {
  white-space: nowrap;
}

h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 18px;
  font-weight: 650;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 1200px;
}

.wrap-narrow {
  max-width: 780px;
}

.sub {
  margin-top: 16px;
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.o {
  color: var(--orange);
}

.b {
  color: var(--blue-text);
}

.g {
  color: var(--green);
}

.r {
  color: var(--red);
}

.dim {
  color: var(--faint);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--text);
  color: #0a0d14;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  background: #fff;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.06);
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
}

.copy {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.copy:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--text);
}

.copy::before {
  content: '';
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='1.8'/%3E%3Cpath d='M10.5 3.5v-.2A1.8 1.8 0 0 0 8.7 1.5H4.3A1.8 1.8 0 0 0 2.5 3.3v4.4a1.8 1.8 0 0 0 1.8 1.8h.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='1.8'/%3E%3Cpath d='M10.5 3.5v-.2A1.8 1.8 0 0 0 8.7 1.5H4.3A1.8 1.8 0 0 0 2.5 3.3v4.4a1.8 1.8 0 0 0 1.8 1.8h.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.copy.copied {
  color: var(--green);
}

.copy.copied::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(7 9 14 / 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a,
.lang {
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.lang:hover,
.gh:hover {
  color: var(--text);
}

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.gh {
  display: grid;
  color: var(--muted);
}

.gh svg {
  width: 20px;
  height: 20px;
}

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

.hero {
  position: relative;
  padding: 96px 0 40px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -60px 0 auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(600px 380px at 50% 0%, rgb(10 132 255 / 0.22), transparent 70%),
    radial-gradient(520px 340px at 18% 70%, rgb(48 209 88 / 0.1), transparent 70%),
    radial-gradient(520px 340px at 82% 62%, rgb(255 159 10 / 0.11), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.03);
  color: var(--muted);
  font-size: 13.5px;
}

.lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.lamp:last-of-type {
  margin-right: 6px;
}

.lamp.b {
  color: var(--blue);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(42px, 7.4vw, 82px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, #b9c3d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--muted);
  line-height: 1.55;
}

.cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 6px 0 18px;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 30px rgb(0 0 0 / 0.3);
  max-width: 100%;
}

.cmd code {
  background: none;
  padding: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fine {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------------------------------------------------------------- the demo Mac */

.mac {
  position: relative;
  margin: 64px auto 0;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  box-shadow:
    0 0 0 1px var(--line-2),
    0 30px 70px -30px rgb(0 0 0 / 0.7),
    0 0 80px -10px rgb(10 132 255 / 0.18);
  background:
    radial-gradient(700px 400px at 15% 110%, rgb(48 209 88 / 0.18), transparent 70%),
    radial-gradient(800px 500px at 95% -10%, rgb(255 159 10 / 0.16), transparent 65%),
    radial-gradient(900px 600px at 50% 50%, rgb(10 132 255 / 0.18), transparent 70%),
    linear-gradient(160deg, #141b2e, #0b0f1a 55%, #161125);
}

.mb {
  position: relative;
  z-index: 3;
  height: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  background: rgb(16 19 28 / 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e9edf4;
}

.mb-left {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.mb-app {
  font-weight: 700;
}

.mb-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.mb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.16);
}

.mb-wifi {
  width: 16px;
  height: 12px;
}

.mb-clock {
  font-variant-numeric: tabular-nums;
}

.mb-face {
  display: inline-flex;
  width: 30px;
  height: 22px;
}

.i {
  width: 11px;
  height: 11px;
  flex: none;
}

.i-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 6px 0 5px;
  border-radius: 9px;
  color: #fff;
  font: 650 12px/1 var(--font);
  font-variant-numeric: tabular-nums;
}

.pill.o {
  background: var(--orange);
}

.pill.b {
  background: var(--blue);
}

.pill.g {
  background: #28b84c;
}

.pill.r {
  background: var(--red);
}

/* The notch island: a black bar with wings, and a message that drops out of it. */
.island {
  position: relative;
  align-self: start;
  width: 300px;
  color: #fff;
}

.island-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 30px;
  background: #000;
  border-radius: 0 0 12px 12px;
}

.notch {
  flex: 1;
}

.wing {
  width: 66px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wing-l {
  padding-left: 12px;
}

.wing-r {
  justify-content: flex-end;
  padding-right: 12px;
}

.wing .i {
  width: 13px;
  height: 13px;
}

.wing-face {
  display: inline-flex;
  width: 26px;
  height: 20px;
}

.island-msg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 34px 16px 12px;
  background: #000;
  border-radius: 0 0 20px 20px;
  clip-path: inset(0 0 100% 0 round 0 0 20px 20px);
  transition: clip-path 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.island.open .island-msg {
  clip-path: inset(0 0 0 0 round 0 0 20px 20px);
}

.island-msg b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.island-msg span {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk {
  position: relative;
  height: 612px;
}

.term {
  position: absolute;
  left: 4%;
  top: 46px;
  width: 54%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(12 15 22 / 0.94);
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px rgb(0 0 0 / 0.55);
}

.term-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  background: rgb(255 255 255 / 0.04);
  border-bottom: 1px solid var(--line);
}

.term-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.term-bar i:nth-child(2) {
  background: #febc2e;
}

.term-bar i:nth-child(3) {
  background: #28c840;
}

.term-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--faint);
  pointer-events: none;
}

.term-body {
  margin: 0;
  padding: 14px 16px;
  font: 12.5px/1.65 var(--mono);
  color: #cfd6e2;
  white-space: pre-wrap;
}

.term-body .sel {
  color: var(--blue-text);
}

.caret {
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.panel {
  position: absolute;
  right: 14px;
  top: 6px;
  width: 372px;
  padding: 12px;
  border-radius: 12px;
  background: rgb(30 34 45 / 0.82);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px rgb(0 0 0 / 0.5);
  color: #e9edf4;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-head b {
  font-size: 15px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tile {
  padding: 5px 0 6px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.05);
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.tile b {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  transition: color 0.3s;
}

.tile.o b {
  color: var(--orange);
}

.tile.b b {
  color: var(--blue-text);
}

.tile.g b {
  color: var(--green);
}

.tile.r b {
  color: var(--faint);
}

.limits {
  margin: 10px 2px 4px;
  display: grid;
  gap: 4px;
}

.limit {
  display: grid;
  grid-template-columns: 52px 1fr 34px 74px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.limit i,
.meter i {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.1);
  overflow: hidden;
}

.limit i::after,
.meter i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: inherit;
  background: var(--green);
}

.limit b {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.limit em {
  font-style: normal;
  color: var(--faint);
  text-align: right;
}

.panel-tasks {
  min-height: 336px;
  margin-top: 6px;
}

.group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 4px 3px;
  font-size: 11px;
  color: var(--muted);
}

.group i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.group.waiting i {
  background: var(--orange);
}

.group.fresh i,
.group.done i {
  background: var(--green);
}

.group span {
  color: var(--faint);
}

.task {
  position: relative;
  display: flex;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 9px;
  transition: background 0.2s, transform 0.2s;
}

.task.enter {
  animation: enter 0.45s ease both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.task.waiting {
  background: rgb(255 159 10 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 159 10 / 0.35);
}

.task.fresh {
  box-shadow: inset 0 0 0 1px rgb(10 132 255 / 0.45);
}

.task.fresh::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.task.pressed {
  background: rgb(255 159 10 / 0.24);
  transform: scale(0.985);
}

.ti {
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 18px;
}

.ti .i {
  width: 14px;
  height: 14px;
}

.task.doing .ti {
  color: var(--blue-text);
}

.task.waiting .ti {
  color: var(--orange);
}

.task.fresh .ti,
.task.done .ti {
  color: var(--green);
}

.task.done {
  opacity: 0.6;
}

.tb {
  flex: 1;
  min-width: 0;
}

.tt {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tt b {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt span {
  flex: none;
  font-size: 11px;
  color: var(--faint);
}

.ts {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ask {
  color: var(--orange);
  font-weight: 600;
  margin-right: 2px;
}

.tl,
.tl-bar {
  display: flex;
  gap: 1px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  overflow: hidden;
}

.tl i,
.tl-bar i {
  background: var(--blue);
}

.tl i.o,
.tl-bar i.o {
  background: var(--orange);
}

.tl i.g,
.tl-bar i.g {
  background: rgb(48 209 88 / 0.5);
}

.tl i.live {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.board-btn {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: #e9edf4;
}

.toast {
  position: absolute;
  left: 30%;
  bottom: 30px;
  transform: translate(-50%, 8px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.78);
  box-shadow: 0 0 0 1px var(--line-2);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

section {
  padding: 96px 0;
}

.hero {
  padding-bottom: 40px;
}

.states h2,
.states .sub,
.limits h2,
.limits .sub,
.phone h2,
.phone .sub,
.features h2,
.customize h2,
.customize .sub,
.trust h2,
.install h2,
.faq h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.state-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.state {
  --tone: var(--blue);
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(260px 140px at 0% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 75%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--tone);
  box-shadow: 0 0 18px var(--tone);
}

.state.o {
  --tone: var(--orange);
}

.state.g {
  --tone: var(--green);
}

.state-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, transparent);
}

.state-icon svg {
  width: 22px;
  height: 22px;
}

.spinning {
  transform-origin: 8px 8px;
  animation: spin 1.1s linear infinite;
}

.state h3 {
  margin-top: 22px;
  font-size: 26px;
}

.state-tag {
  margin-top: 2px;
  color: var(--tone);
  font-weight: 600;
}

.state p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------------- features */

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.span-2 {
  grid-column: span 2;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.hosts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hosts li {
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hosts b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.hosts span {
  font-size: 12.5px;
  color: var(--faint);
}

.retitle {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.retitle .before {
  font-size: 13.5px;
  color: var(--faint);
  font-style: italic;
}

.retitle .arrow {
  color: var(--faint);
  padding-left: 6px;
}

.retitle .after {
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 14.5px;
}

.meters {
  display: grid;
  gap: 14px;
}

.meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  font-size: 13px;
}

.meter span {
  color: var(--muted);
}

.meter b {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.meter i {
  grid-column: span 2;
  height: 6px;
}

.meter em {
  grid-column: span 2;
  font-style: normal;
  font-size: 12px;
  color: var(--faint);
}

.meter.warn b,
.meter.warn em {
  color: var(--orange);
}

.meter.warn i::after {
  background: var(--orange);
}

.unread {
  display: grid;
  gap: 8px;
}

.mini-task {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--raise);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.mini-task.fresh {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgb(10 132 255 / 0.55);
}

.mini-task i {
  margin-left: auto;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.notch-demo {
  position: relative;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a2238, #0c1019);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.nd-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 12px;
  background: #000;
  border-radius: 0 0 11px 11px;
  font-size: 12px;
  font-weight: 650;
  z-index: 1;
}

.nd-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nd-pop {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  padding: 32px 14px 11px;
  background: #000;
  border-radius: 0 0 18px 18px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: pop 5s ease-in-out infinite;
}

.nd-pop b {
  margin-right: 4px;
}

@keyframes pop {
  0%,
  18% {
    clip-path: inset(0 0 100% 0 round 0 0 18px 18px);
  }
  26%,
  80% {
    clip-path: inset(0 0 0 0 round 0 0 18px 18px);
  }
  90%,
  100% {
    clip-path: inset(0 0 100% 0 round 0 0 18px 18px);
  }
}

.tl-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.tl-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline .tl-bar {
  height: 10px;
  margin: 0;
  border-radius: 4px;
  gap: 2px;
}

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgb(44 48 60 / 0.85);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px rgb(0 0 0 / 0.4);
  font-size: 13px;
  animation: banner 6s ease-in-out infinite;
}

.banner div {
  flex: 1;
  min-width: 0;
  display: grid;
}

.banner span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.banner em {
  font-style: normal;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
}

@keyframes banner {
  0%,
  8% {
    opacity: 0;
    transform: translateX(24px);
  }
  16%,
  86% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateX(24px);
  }
}

.tl-axis {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 0 224px;
  font-size: 11.5px;
  color: var(--faint);
}

.card .tl-today {
  margin-top: 14px;
  font-size: 13px;
}

.tl-today b {
  color: var(--text);
  font-weight: 600;
}

.also {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  color: var(--muted);
  font-size: 15px;
}

.also li {
  position: relative;
  padding-left: 26px;
}

.also li::before,
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border: solid var(--green);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.also b {
  color: var(--text);
  font-weight: 600;
}

/* ---------------------------------------------------------------- limit details */

.quota {
  max-width: 980px;
  margin: 48px auto 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -30px rgb(0 0 0 / 0.7);
  font-size: 13px;
  color: var(--muted);
}

.q-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.06);
}

.seg span {
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  white-space: nowrap;
}

.seg .on {
  background: rgb(255 255 255 / 0.13);
  color: var(--text);
  font-weight: 600;
}

.q-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 16px 2px 14px;
  font-size: 12.5px;
  line-height: 1.55;
}

.q-big {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.q-right {
  text-align: right;
}

.q-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.035);
  box-shadow: inset 0 0 0 1px var(--line);
}

.q-card + .q-card {
  margin-top: 12px;
}

.q-h {
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--faint);
}

.q-h b {
  margin-right: 8px;
  font-size: 13px;
  color: var(--text);
}

.q-chart {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
}

.q-y {
  position: relative;
  /* Same height as the plot next to it, so the labels sit on its lines. */
  margin-bottom: 24px;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.q-y span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
}

.q-plot {
  position: relative;
  height: 140px;
  margin-bottom: 24px;
}

.q-plot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.q-x span {
  position: absolute;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--faint);
}

/* Now: everything right of it is still to come. */
.q-now {
  position: absolute;
  top: -4px;
  bottom: 0;
  border-left: 1px dashed rgb(255 255 255 / 0.3);
}

.q-plot.bars {
  height: 110px;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat;
}

.q-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.q-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #6b7cff;
  opacity: 0.8;
}

.q-bars i.on {
  background: #9aa8ff;
  opacity: 1;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35);
}

/* The bar under the pointer, and what went into it. */
.q-tip {
  position: absolute;
  z-index: 1;
  /* Right of the highlighted bar, where the window hasn't happened yet. */
  left: calc(46.7% + 10px);
  bottom: 14%;
  width: max-content;
  max-width: 330px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgb(20 24 33 / 0.96);
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 30px rgb(0 0 0 / 0.5);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.q-tip b {
  display: block;
  color: var(--text);
}

.q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.q-grid .q-card + .q-card {
  margin-top: 0;
}

.q-row {
  --c: #6b7cff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin-top: 10px;
  font-size: 12.5px;
}

.q-row span:first-child {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-row em {
  margin-left: 6px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--faint);
}

.q-row span:last-child {
  font-variant-numeric: tabular-nums;
}

.q-row i {
  position: relative;
  grid-column: span 2;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.08);
}

.q-row i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--c);
}

.q-row.k-out {
  --c: var(--green);
}

.q-row.k-cw {
  --c: var(--orange);
}

.q-row.k-cr {
  --c: #8fb7ff;
}

.q-points {
  list-style: none;
  max-width: 980px;
  margin: 32px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}

.q-points b {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: var(--text);
}

.panel-cpu {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--faint);
}

.panel-cpu b {
  color: var(--muted);
  font-weight: 600;
}

.panel-cpu i {
  font-style: normal;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.packs {
  margin-top: 18px;
  text-align: center;
  font-size: 14.5px;
  color: var(--faint);
}

.packs a {
  color: var(--blue-text);
}

.card .more {
  color: var(--blue-text);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- customize */

.custom-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.custom-block,
.characters {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.note {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--faint);
}

.styles,
.presets,
.char-row {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
}

.styles li,
.presets li,
.char-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.mbar {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #fff;
  font: 650 12.5px/1 var(--font);
  font-variant-numeric: tabular-nums;
}

.lights {
  display: flex;
  gap: 5px;
}

.lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.25;
}

.lights i.o {
  background: var(--orange);
}

.lights i.g {
  background: var(--green);
}

.lights i.r {
  background: var(--red);
}

.lights i.on {
  opacity: 1;
  box-shadow: 0 0 6px currentColor;
}

.blink {
  animation: pulse 1s ease-in-out infinite;
}

.radar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.radar svg {
  width: 18px;
  height: 18px;
}

.radar .sweep {
  transform-origin: 9px 9px;
  animation: spin 1.4s linear infinite;
}

.hand-o {
  display: inline-flex;
  color: var(--orange);
}

.cells {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  margin-right: 3px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55);
}

.cells i {
  width: 5px;
  height: 11px;
  border-radius: 1.5px;
  background: var(--blue);
}

.cells i.o {
  background: var(--orange);
}

.cells i.g {
  background: var(--green);
}

.cells i.r {
  background: var(--red);
}

.mbar-term {
  background: #010401;
  box-shadow: inset 0 0 0 1px rgb(51 255 102 / 0.35);
}

.term-text {
  font: 600 12.5px var(--mono);
  color: #33ff66;
  text-shadow: 0 0 6px rgb(51 255 102 / 0.6);
}

.term-text b {
  animation: caret 1.1s steps(1) infinite;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 2px;
}

.dot.o {
  background: var(--orange);
}

.dot.b {
  background: var(--blue);
}

.dot.g {
  background: var(--green);
}

.presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pre-art {
  width: 100%;
  aspect-ratio: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pre-art i {
  width: 16px;
  height: 7px;
  border-radius: 4px;
  background: var(--orange);
}

.pre-art i.g {
  background: var(--green);
}

.pre-art i.b {
  background: var(--blue);
}

.pre-native .pre-art {
  background: #eceef2;
}

.pre-neon .pre-art {
  background: #07060e;
}

.pre-neon .pre-art i {
  background: transparent;
  box-shadow: 0 0 0 1.5px #ffb020, 0 0 10px #ffb020;
}

.pre-neon .pre-art i.g {
  box-shadow: 0 0 0 1.5px #3dff9e, 0 0 10px #3dff9e;
}

.pre-neon .pre-art i.b {
  box-shadow: 0 0 0 1.5px #00e5ff, 0 0 10px #00e5ff;
}

.pre-term .pre-art {
  background:
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.35) 0 1px, transparent 1px 3px),
    #010401;
}

.pre-term code {
  background: none;
  padding: 0;
  font-size: 10px;
  color: #33ff66;
  text-shadow: 0 0 6px rgb(51 255 102 / 0.7);
}

.pre-holo .pre-art {
  gap: 2px;
  background:
    linear-gradient(rgb(77 217 255 / 0.12) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, rgb(77 217 255 / 0.12) 1px, transparent 1px) 0 0 / 10px 10px,
    #020b18;
}

.pre-holo .pre-art i {
  width: 5px;
  height: 12px;
  border-radius: 1px;
  background: #ffc24d;
}

.pre-holo .pre-art i.b {
  background: #4dd9ff;
}

.pre-holo .pre-art i.g {
  background: #3dffa8;
}

.pre-min .pre-art {
  background: #fafafa;
}

.pre-min .pre-art i {
  width: 8px;
  height: 8px;
  background: #d9a441;
}

.characters {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
}

.char-text p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.energy {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.energy output {
  min-width: 76px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.energy input {
  --fill: 20%;
  --tone: var(--green);
  flex: 1;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tone) var(--fill), rgb(255 255 255 / 0.12) var(--fill));
  cursor: pointer;
}

.energy input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.5);
}

.energy input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.char-row {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.char-row li > span {
  width: 100%;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #05070b;
  box-shadow: inset 0 0 0 1px var(--line);
}

.fig svg {
  width: 100%;
  height: 100%;
}

.char-row .fig svg {
  width: 72px;
  height: 60px;
  filter: drop-shadow(0 0 6px currentColor);
}

.fig pre {
  margin: 0;
  font: 600 10.5px/1.15 var(--mono);
  text-shadow: 0 0 6px currentColor;
}

.fig {
  transition: color 0.4s;
}

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

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.ticks li {
  position: relative;
  padding-left: 26px;
}

.soon {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(300px 160px at 100% 0%, rgb(10 132 255 / 0.16), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-text);
  background: rgb(10 132 255 / 0.14);
}

.soon h3 {
  margin-top: 12px;
}

.soon p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* The status screen in landscape, like public/app.js's ambient view on a phone beside the Mac.
   Sizes are in cqw of the screen, so it scales as one picture; the light follows --tone. */
@property --tone {
  syntax: '<color>';
  inherits: true;
  initial-value: #38bdf8;
}

@property --tone2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #818cf8;
}

.land {
  position: relative;
  container-type: inline-size;
  width: min(100%, 920px);
  margin: 48px auto 0;
  padding: 12px;
  border-radius: 50px;
  background: #15181f;
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.12),
    0 40px 100px -20px rgb(0 0 0 / 0.8);
}

/* The Dynamic Island, on the left edge in landscape. */
.land::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: calc(12px + 1cqw);
  top: 50%;
  width: 2.7cqw;
  height: 11cqw;
  transform: translateY(-50%);
  border-radius: 99px;
  background: #000;
}

.amb {
  --tone: #38bdf8;
  --tone2: #818cf8;
  position: relative;
  aspect-ratio: 844 / 390;
  display: grid;
  grid-template-columns: 29% 27% 1fr;
  align-items: center;
  gap: 3cqw;
  padding: 0 3cqw 0 5.4cqw;
  overflow: hidden;
  border-radius: 38px;
  color: #f3f6ff;
  background: radial-gradient(120% 80% at 50% 0%, #0c1030 0%, #05061a 45%, #020308 100%);
  transition: --tone 1.2s ease, --tone2 1.2s ease;
}

.amb[data-tone='waiting'] {
  --tone: #ffb020;
  --tone2: #ff4d6d;
}

.amb[data-tone='success'] {
  --tone: #34d399;
  --tone2: #22d3ee;
}

.amb > * {
  position: relative;
  min-width: 0;
}

/* Aurora: three soft clouds of light drifting behind everything, tinted by the state. */
.amb-sky {
  position: absolute !important;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.amb-sky i {
  position: absolute;
  width: 95cqw;
  height: 95cqw;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
  animation: amb-drift 22s ease-in-out infinite alternate;
}

.amb-sky i:nth-child(1) {
  left: -45cqw;
  top: -50cqw;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 55%, transparent), transparent);
}

.amb-sky i:nth-child(2) {
  right: -50cqw;
  top: -15cqw;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone2) 42%, transparent), transparent);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.amb-sky i:nth-child(3) {
  left: -20cqw;
  bottom: -70cqw;
  background: radial-gradient(closest-side, rgb(124 58 237 / 0.4), transparent);
  animation-duration: 34s;
}

@keyframes amb-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(8cqw, 6cqw, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-6cqw, 10cqw, 0) scale(0.95);
  }
}

/* Star field: two tiled layers of points; the top one twinkles. */
.amb-stars,
.amb-stars::before {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 23px 41px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 131px 17px, rgb(255 255 255 / 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 77px 133px, rgb(200 220 255 / 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 161px 97px, rgb(255 255 255 / 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 49px 181px, rgb(255 255 255 / 0.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 189px 163px, rgb(220 200 255 / 0.85) 50%, transparent 51%);
  background-size: 210px 200px;
  opacity: 0.55;
}

.amb-stars::before {
  content: '';
  background-size: 290px 310px;
  background-position: 70px 40px;
  opacity: 1;
  animation: amb-twinkle 5s ease-in-out infinite;
}

@keyframes amb-twinkle {
  50% {
    opacity: 0.25;
  }
}

/* The terminal cat on its ground line, under faint scanlines, with the count as a prompt. */
.amb-walk {
  --fs: 1.25cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2cqw;
}

.amb-walk::after {
  content: '';
  position: absolute;
  inset: -20% 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 3px);
  -webkit-mask: radial-gradient(closest-side, #000 45%, transparent);
  mask: radial-gradient(closest-side, #000 45%, transparent);
}

/* Room for the tallest walking frame (five lines) and a hop, so nothing below moves. */
.amb-ground {
  position: relative;
  align-self: stretch;
  height: calc(var(--fs) * 1.15 * 7 + 10px);
}

.amb-ground::before,
.amb-ground::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 16% 84%, transparent);
  mask: linear-gradient(90deg, transparent, #000 16% 84%, transparent);
}

.amb-ground::after {
  bottom: 5px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--tone) 80%, white) 0 calc(var(--fs) * 0.6),
    transparent calc(var(--fs) * 0.6) calc(var(--fs) * 0.9)
  );
  filter: drop-shadow(0 0 4px var(--tone)) drop-shadow(0 0 10px var(--tone));
}

.amb-ground::before {
  bottom: calc(var(--fs) * -0.25);
  height: calc(var(--fs) * 0.5);
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--tone) 40%, transparent) 0 1px,
    transparent 1px calc(var(--fs) * 1.8)
  );
  opacity: 0.7;
}

.amb[data-tone='waiting'] .amb-ground::after {
  animation: amb-ground 1.8s ease-in-out infinite;
}

@keyframes amb-ground {
  50% {
    opacity: 0.35;
  }
}

.amb-cat {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  width: max-content;
  margin: 0 auto;
  font: 700 var(--fs) / 1.15 var(--mono);
  white-space: pre;
  color: color-mix(in srgb, var(--tone) 65%, white);
  text-shadow:
    0 0 calc(var(--fs) * 0.35) var(--tone),
    0 0 calc(var(--fs) * 0.9) color-mix(in srgb, var(--tone) 55%, transparent);
}

/* Waiting for you: it hops to get your attention (translate and scale carry its place). */
.amb[data-tone='waiting'] .amb-cat {
  animation: amb-hop 1.8s ease-out infinite;
}

@keyframes amb-hop {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  68% {
    transform: translateY(-30%);
  }
  76% {
    transform: translateY(0);
  }
  83% {
    transform: translateY(-12%);
  }
  90% {
    transform: translateY(0);
  }
}

.amb-caption {
  font: 1.9cqw var(--mono);
  letter-spacing: 0.08em;
  color: rgb(226 232 255 / 0.66);
}

.amb-caption::before {
  content: '> ';
}

.amb-caption::after {
  content: '_';
  animation: caret 1.06s steps(1) infinite;
}

/* The middle: clock, what's going on, counts and limits. */
.amb-time {
  font-size: 7.4cqw;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.amb-state {
  margin-top: 1.6cqw;
  font-size: 2.7cqw;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 70%, white), var(--tone2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amb-task {
  margin-top: 0.8cqw;
  font-size: 1.9cqw;
  color: rgb(226 232 255 / 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9cqw;
  margin-top: 2cqw;
}

.amb-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.5cqw 1.4cqw;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  font-size: 1.6cqw;
  color: rgb(226 232 255 / 0.66);
  transition: background 0.6s, box-shadow 0.6s;
}

.amb-chips i {
  width: 0.9cqw;
  height: 0.9cqw;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.22);
}

.amb-chips b {
  color: #f3f6ff;
  font-weight: 600;
}

.amb-chips .on {
  --c: #38bdf8;
  background: color-mix(in srgb, var(--c) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent);
}

.amb-chips .on.o {
  --c: #ffb020;
}

.amb-chips .on.g {
  --c: #34d399;
}

.amb-chips .on i {
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
}

.amb-limits {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1cqw 1.6cqw;
  margin-top: 2.4cqw;
  font-size: 1.5cqw;
  color: rgb(226 232 255 / 0.5);
}

.amb-limits i {
  position: relative;
  height: 0.55cqw;
  border-radius: 1cqw;
  background: rgb(255 255 255 / 0.1);
}

.amb-limits i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #6ee7b7);
  box-shadow: 0 0 8px rgb(52 211 153 / 0.5);
}

.amb-limits b {
  color: #f3f6ff;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* The tasks that need you or are running. */
.amb-list {
  display: grid;
  gap: 1.3cqw;
}

.amb-card {
  --c: #38bdf8;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.3cqw 1.6cqw;
  padding: 1.7cqw 2cqw 1.7cqw 2.6cqw;
  border-radius: 2.4cqw;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.amb-card.enter {
  animation: enter 0.5s ease both;
}

.amb-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 0.45cqw;
  border-radius: 1cqw;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.amb-card.waiting {
  --c: #ffb020;
  background: rgb(255 176 32 / 0.1);
}

.amb-card.fresh {
  --c: #34d399;
}

.amb-card .i {
  grid-row: span 2;
  width: 2.3cqw;
  height: 2.3cqw;
  color: var(--c);
}

.amb-card b,
.amb-card span {
  grid-column: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amb-card b {
  font-size: 1.95cqw;
}

.amb-card span {
  font-size: 1.5cqw;
  color: rgb(226 232 255 / 0.6);
}

.amb-card em {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-style: normal;
  font-size: 1.5cqw;
  color: rgb(226 232 255 / 0.45);
}

.phone .phone-grid {
  margin-top: 48px;
  align-items: start;
}

.phone .soon {
  margin-top: 0;
}

/* ---------------------------------------------------------------- trust */

.trust-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.trust-grid article {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.trust-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------------- install */

.install-box {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: rgb(255 255 255 / 0.04);
}

.tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 14px var(--font);
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: var(--raise);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.pane {
  padding: 22px 18px 18px;
  color: var(--muted);
  font-size: 15px;
}

.pane p + .btn,
.code + p {
  margin-top: 16px;
}

.code {
  position: relative;
  border-radius: 12px;
  background: #05070b;
  box-shadow: inset 0 0 0 1px var(--line);
}

.code pre {
  margin: 0;
  padding: 16px 56px 16px 18px;
  font: 14px/1.75 var(--mono);
  color: var(--text);
  overflow-x: auto;
}

.code .copy {
  position: absolute;
  top: 10px;
  right: 10px;
}

.reqs {
  max-width: 720px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.reqs h3 {
  font-size: 15px;
}

.reqs p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- faq */

.faq h2 {
  margin-bottom: 36px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

details p {
  padding: 0 40px 22px 0;
  color: var(--muted);
}

/* ---------------------------------------------------------------- final + footer */

.final {
  position: relative;
  text-align: center;
  isolation: isolate;
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(500px 300px at 50% 45%, rgb(10 132 255 / 0.16), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
  mask-image: linear-gradient(to bottom, transparent, #000 30%);
}

.final img {
  filter: drop-shadow(0 10px 30px rgb(10 132 255 / 0.35));
}

.final h2 {
  margin-top: 24px;
}

.final .sub {
  margin: 12px auto 0;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--faint);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
}

.foot nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.foot nav a {
  text-decoration: none;
}

.foot nav a:hover {
  color: var(--text);
}

.legal {
  flex-basis: 100%;
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- 404 */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
  background: radial-gradient(520px 340px at 50% 35%, rgb(10 132 255 / 0.16), transparent 70%);
}

.nf-fig {
  width: 120px;
  height: 100px;
}

.nf-fig svg {
  filter: drop-shadow(0 0 10px currentColor);
}

.notfound h1 {
  margin-top: 24px;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.03em;
}

.notfound .sub {
  margin: 12px auto 0;
}

/* Chinese headlines: CJK glyphs need normal tracking, and the long lines a little more room. */
:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3 {
  letter-spacing: 0;
}

:lang(zh) .hero h1 {
  font-size: clamp(38px, 6.6vw, 72px);
  line-height: 1.12;
}

:lang(zh) h2 {
  line-height: 1.25;
}

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .term {
    display: none;
  }

  .mb-left span:not(.mb-app) {
    display: none;
  }

  .panel {
    right: 50%;
    transform: translateX(50%);
  }

  .toast {
    left: 50%;
  }

  .state-grid,
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: span 2;
  }

  .custom-grid,
  .characters,
  .phone-grid {
    grid-template-columns: 1fr;
  }

  .q-points {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 64px;
  }

  .nav-in {
    gap: 16px;
  }

  .mac {
    border-radius: 12px;
  }

  .island {
    display: none;
  }

  .mb {
    grid-template-columns: 1fr auto;
  }

  .mb-wifi {
    display: none;
  }

  .desk {
    height: 500px;
  }

  .panel {
    top: 8px;
    width: calc(100% - 16px);
  }

  .limit {
    grid-template-columns: 48px 1fr 32px;
  }

  .limit em {
    display: none;
  }

  .state-grid,
  .bento,
  .also,
  .trust-grid,
  .reqs {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .hosts {
    grid-template-columns: 1fr 1fr;
  }

  .tl-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tl-axis {
    margin-left: 0;
  }

  .styles {
    grid-template-columns: 1fr 1fr;
  }

  .presets {
    grid-template-columns: repeat(3, 1fr);
  }

  .char-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .land {
    padding: 7px;
    border-radius: 30px;
  }

  .land::after {
    left: calc(7px + 1cqw);
  }

  .amb {
    border-radius: 24px;
  }

  .q-head {
    grid-template-columns: auto 1fr;
  }

  .q-right {
    grid-column: span 2;
    text-align: left;
  }

  .q-grid {
    grid-template-columns: 1fr;
  }

  .q-tip {
    display: none;
  }

  .cmd {
    padding-left: 14px;
  }

  .cmd code {
    font-size: 12.5px;
  }

  .cmd .dim {
    display: none;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
