/*
 * Shared look for bevibe.pro. The landing page (index.html) is authored with
 * inline styles and only needs the base, responsive and motion rules here;
 * the Worker-rendered pages (pricing, download, account, legal) use the
 * component classes below.
 */

:root {
  --bg: #09090b;
  --bg-deep: #050507;
  --surface: #151518;
  --surface-2: #1a1a1e;
  --line: #232328;
  --line-strong: #2e2e35;
  --fg: #f4f4f6;
  --fg-2: #c8c9cf;
  --muted: #a6a8b0;
  --subtle: #8b8d96;
  --accent: #3e63dd;
  --accent-light: #9db4ff;
  --success: #3dd68c;
  --danger: #ff7a90;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* Web fonts arrive after a reload restores the scroll position; anchoring
   would then nudge the page down by the change in text height. */
html {
  overflow-anchor: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

/* Landing page: responsive rules and motion. */

/* Sections rise in once as they scroll into view; the script that adds
   .l-js runs only when IntersectionObserver exists, so without it all
   content shows. */
.l-js .l-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.l-js .l-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .l-js .l-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Anchored sections land below the sticky header. */
section[id] {
  scroll-margin-top: 64px;
}

/* The header stays reachable while scrolling. */
/* The hero runs up behind it (margin-top: -64px). At the top of the page the
   bar is invisible, so the light rays reach the top untouched; once the page
   scrolls it turns into frosted glass (.is-scrolled, set by the page script). */
.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  box-sizing: border-box;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    -webkit-backdrop-filter 0.25s ease,
    backdrop-filter 0.25s ease;
}

.l-header.is-scrolled {
  background-color: rgba(9, 9, 11, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.l-header header {
  height: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.l-card {
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.l-card:hover {
  border-color: rgba(143, 166, 255, 0.28) !important;
}

.l-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2e2e35;
  background: #151518;
}

/* The board mock in the landing page. */
.l-col {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 4px;
  color: #b0b4ba;
  font-size: 12px;
  font-weight: 500;
}

.l-col span {
  padding: 0 6px;
  border-radius: 999px;
  background: #212225;
  font-size: 11px;
}

.l-task {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #18191b;
  border: 1px solid #2a2a33;
}

.l-key,
.l-branch {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #8e929a;
}

.l-desc {
  color: #a6a8b0;
  font-size: 12px;
  line-height: 17px;
}

.l-run {
  display: flex;
  align-items: center;
  gap: 7px;
}

.l-run i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
}

.l-run b {
  margin-left: auto;
  font-weight: 500;
}

/* The board mock: the tracker's columns, and the selected card's details in a
   panel over the board's right edge, as the app shows them. */
.l-board-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 170px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid #34343c;
  color: #8e929a;
  font-size: 12px;
}

.l-board-body {
  position: relative;
  display: flex;
  min-height: 470px;
}

.l-board-cols {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 14px;
}

.l-board-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 232px;
  min-width: 0;
}

.l-col i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.l-col-acts {
  margin-left: auto;
  padding: 0 2px !important;
  background: none !important;
  color: #6b6f78;
  font-size: 13px !important;
}

.l-col-acts em {
  margin-left: 8px;
  font-style: normal;
  letter-spacing: 1px;
}

/* Cards from the tracker have its colored edge and mark; a card that lives only in bevibe is dashed. */
.l-task {
  border-left-width: 3px;
  border-left-color: #5e6ad2;
}

.l-task.is-selected {
  border-color: rgba(143, 166, 255, 0.75);
  border-left-color: #5e6ad2;
  box-shadow: 0 0 0 1px rgba(143, 166, 255, 0.3);
}

.l-task-own {
  border-style: dashed;
  border-left-width: 1px;
  border-left-color: #2a2a33;
}

.l-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  background: #5e6ad2;
  vertical-align: -1px;
}

.l-board-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #121216;
  border-left: 1px solid #26262d;
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45);
}

.l-panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  flex: none;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid #26262d;
}

.l-panel-tab {
  padding: 3px 10px;
  border-radius: 5px;
  color: #b0b4ba;
  font-size: 12px;
}

.l-panel-tab.is-on {
  background: #26272b;
  color: #fcfcfd;
}

.l-panel-x {
  display: flex;
  padding: 4px;
  color: #8e929a;
}

.l-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  padding: 14px 14px 16px 16px;
}

.l-panel-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.l-panel-open {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8e929a;
  font-size: 11px;
  white-space: nowrap;
}

.l-panel-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.l-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fcfcfd;
}

.l-comment {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 17px;
  color: #c8c9cf;
}

.l-comment > span {
  min-width: 0;
}

.l-comment > span b {
  color: #fcfcfd;
  font-weight: 600;
}

.l-comment em {
  margin-left: 6px;
  color: #8e929a;
  font-style: normal;
  font-size: 11px;
}

.l-comment-input {
  min-height: 52px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #2f2f37;
  background: #18191b;
  color: #8e929a;
  font-size: 12px;
}

.l-panel-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid #26262d;
  font-size: 12px;
}

.l-field-name {
  margin-top: 8px;
  color: #8e929a;
  font-size: 11px;
}

.l-field-name:first-child {
  margin-top: 0;
}

.l-field-val {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  min-width: 0;
  flex-wrap: wrap;
}

.l-field-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #34343c;
  background: #18191b;
}

.l-avatar {
  width: 16px;
  height: 16px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #3e63dd;
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
}

.l-label {
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid #34343c;
  font-style: normal;
  font-size: 11px;
}

/* Narrower screens: the columns wrap two by two and the panel sits beside them. */
@media (max-width: 1100px) and (min-width: 761px) {
  .l-board-cols {
    flex-wrap: wrap;
  }
  .l-board-col {
    flex: 1 1 calc(50% - 6px);
  }
  .l-board-panel {
    position: static;
    width: 300px;
    flex: none;
    box-shadow: none;
  }
  .l-panel-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .l-panel-fields {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #26262d;
  }
  .l-board-search {
    display: none;
  }
}

/* Pieces of the app's own chrome, shared by the mocks: traffic lights, the
   Agent | Board switch, small chips, panel tabs. */
.l-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.l-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.l-switch {
  display: flex;
  flex: none;
  padding: 2px;
  border-radius: 6px;
  background: #1e1f23;
  border: 1px solid #2f2f37;
  font-size: 11px;
}

.l-switch span {
  padding: 1px 8px;
  border-radius: 4px;
  color: #b0b4ba;
}

.l-switch .is-on {
  background: #34343c;
  color: #fcfcfd;
}

.l-chip-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #34343c;
  color: #b0b4ba;
  font-size: 11px;
}

.l-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  flex: none;
  padding: 0 8px;
  border-bottom: 1px solid #26262d;
  font-size: 12px;
  color: #b0b4ba;
}

.l-tabs span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
}

.l-tabs i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.l-tabs .is-on,
.l-tab-on {
  padding: 2px 8px;
  border-radius: 4px;
  background: #182449;
  color: #e2e8ff;
}

/* See it run: the app window with the device in its right panel, and the
   agent's browser floating over the chat. */
.l-app {
  display: flex;
  flex-direction: column;
}

.l-app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  flex: none;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid #26262d;
  font-size: 12px;
}

.l-app-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.l-run-chat {
  width: 236px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-right: 1px solid #26262d;
  font-size: 12px;
  line-height: 17px;
}

.l-msg {
  padding: 8px 10px;
  border-radius: 6px;
  background: #1e1f23;
  border: 1px solid rgba(221, 234, 248, 0.08);
}

.l-tools {
  display: flex;
  flex-direction: column;
}

.l-tool {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  color: #b0b4ba;
  white-space: nowrap;
}

.l-tool .l-mono {
  font-size: 11px;
  color: #d8dae0;
}

.l-composer-sm {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 8px;
  background: #18191b;
  border: 1px solid #2f2f37;
  color: #8e929a;
}

.l-run-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.l-dev-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  flex: none;
  padding: 0 10px;
  border-bottom: 1px solid #26262d;
  font-size: 12px;
  color: #b0b4ba;
}

.l-dev-bar .l-btn {
  padding: 2px 8px;
  font-size: 11px;
}

.l-dev-state {
  color: #3dd68c;
}

.l-dev-stage {
  position: relative;
  flex: 1;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #17181f, #0e0f12 70%);
}

.l-live {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.7);
  border: 1px solid #2f2f37;
  color: #b0b4ba;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.l-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 8px #3dd68c;
}

.l-phone {
  position: relative;
  width: 172px;
  height: 352px;
  border-radius: 34px;
  border: 7px solid #1d1d22;
  background: #0b0b0e;
  box-shadow:
    0 0 0 1px #3a3b42,
    0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.l-notch {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 50px;
  height: 14px;
  margin-left: -25px;
  border-radius: 999px;
  background: #000;
}

.l-home-bar {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 56px;
  height: 4px;
  margin-left: -28px;
  border-radius: 2px;
  background: #e6edf3;
}

/* The developer's own app on the device: a dev build, mid-fix. */
.l-phone {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 14px;
}

.l-ph-status {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px 0;
  font-size: 9px;
  font-weight: 600;
}

.l-ph-dev {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 8px 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(61, 214, 140, 0.14);
  color: #3dd68c;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.l-ph-dev i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3dd68c;
}

.l-ph-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 6px;
}

.l-ph-back {
  color: #8fa6ff;
  font-size: 10px;
}

.l-ph-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.l-ph-badge {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(252, 211, 77, 0.16);
  color: #fcd34d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.l-ph-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 8px;
}

.l-up {
  padding: 6px 8px;
  border-radius: 8px;
  background: #1a1b1f;
}

.l-up.is-active {
  background: #1b2036;
  box-shadow: 0 0 0 1px rgba(143, 166, 255, 0.45);
}

.l-up-bar {
  margin-top: 5px;
  height: 3px;
  border-radius: 2px;
  background: #2a2b31;
  overflow: hidden;
}

.l-up-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
}

.l-ph-toast {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f4f6;
  color: #09090b;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.l-ph-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  display: flex;
  justify-content: space-around;
  padding: 7px 6px 0;
  border-top: 1px solid #26262d;
  background: #121216;
  font-size: 8px;
  color: #8e929a;
}

.l-ph-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.l-ph-tabs .is-on {
  color: #8fa6ff;
}

.l-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: #18191b;
  border: 1px solid #2a2a33;
}

.l-win.l-float {
  border-color: rgba(62, 99, 221, 0.55);
  box-shadow:
    0 0 0 4px rgba(62, 99, 221, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.6);
}

.l-url {
  padding: 2px 8px;
  border-radius: 5px;
  background: #0e0f12;
  color: #b0b4ba;
  font-size: 10.5px;
}

.l-page {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  font-size: 12px;
}

.l-page-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #1a1b1f;
}

.l-page-btn {
  padding: 1px 8px;
  border-radius: 5px;
  background: #3e63dd;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(143, 166, 255, 0.35);
}

.l-page-row > svg {
  margin: 8px 0 -8px -14px;
}

.l-agent-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #212225;
  border: 1px solid #2f2f37;
  color: #c8c9cf;
  font-size: 11px;
}

.l-agent-tag i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

/* Anywhere: the remote browser and the bevibe window are the same size. */
.l-win.l-node-win {
  position: relative;
  width: 300px;
  height: 204px;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 15px;
}

.l-remote-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.l-remote-msg {
  padding: 6px 8px;
  border-radius: 6px;
  background: #1a1b1f;
  color: #c8c9cf;
}

.l-approval {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #1e1a0e;
  border: 1px solid rgba(252, 211, 77, 0.45);
}

.l-approval .l-btn {
  padding: 1px 7px;
  font-size: 11px;
}

.l-hub-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px;
}

.l-env {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 21px;
  padding: 0 4px;
  font-weight: 600;
}

.l-env i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.l-env span {
  color: #8b8d96;
  font-weight: 400;
}

.l-thr {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 21px;
  padding: 0 4px 0 17px;
  border-radius: 4px;
  color: #c8c9cf;
}

.l-thr span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-thr em {
  font-style: normal;
  color: #8b8d96;
}

@media (max-width: 760px) {
  .l-node-win {
    width: 100%;
    max-width: 300px;
  }
}

/* The composer's mic and language badge, as in the app; recording turns it red with a level ring. */
.l-mic {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 2px;
  border-radius: 5px;
  background: rgba(221, 234, 248, 0.06);
}

.l-mic-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #b0b4ba;
}

.l-mic-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 6px;
  border-radius: 4px;
  color: #b0b4ba;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.l-mic.is-rec .l-mic-btn {
  background: rgba(229, 70, 102, 0.18);
  color: #ff7a90;
  box-shadow: 0 0 0 4px rgba(229, 70, 102, 0.22);
}

/* The recording's waveform: bars that grow in once, from the middle. */
.l-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}

.l-wave .l-bar,
.l-js .l-reveal .l-wave .l-bar {
  width: 3px;
  flex: none;
  border-radius: 2px;
  background: #ff9aac;
  transform-origin: center;
}

.l-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  color: #b0b4ba;
}

.l-lang.is-on {
  color: #fcfcfd;
}

.l-lang-check {
  display: flex;
  width: 11px;
  color: #fcfcfd;
  opacity: 0;
}

.l-lang.is-on .l-lang-check {
  opacity: 1;
}

/* The ⌘K section's grid of smaller features, each with an icon. */
.l-more {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
  padding-top: 36px;
  border-top: 1px solid #1f1f24;
}

.l-more-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.l-more-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #151518;
  border: 1px solid #26262d;
  color: #9db4ff;
}

.l-more-icon svg {
  width: 17px;
  height: 17px;
}

.l-more-title {
  font-weight: 600;
  font-size: 17px;
}

.l-more-text {
  color: #a6a8b0;
  font-size: 15px;
}

@media (max-width: 900px) {
  .l-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .l-more {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The hero window is 1280px wide; below that it scales down so it stays whole. */
@media (max-width: 1340px) {
  .l-stage {
    zoom: 0.9;
  }
}

@media (max-width: 1200px) {
  .l-stage {
    zoom: 0.78;
  }
}

@media (max-width: 1040px) {
  .l-stage {
    zoom: 0.68;
  }
}

@media (max-width: 900px) {
  .l-stage {
    zoom: 0.56;
  }
}

@media (max-width: 760px) {
  .l-nav-links,
  .site-nav-links {
    display: none !important;
  }
  .l-header header {
    padding: 0 16px !important;
  }
}

/* Phones show the same desktop window, whole, at the width the screen allows
   (1328px with its padding). */
@media (max-width: 760px) {
  .l-stage {
    zoom: 0.55;
  }
}

@media (max-width: 680px) {
  .l-stage {
    zoom: 0.49;
  }
}

@media (max-width: 600px) {
  .l-stage {
    zoom: 0.43;
  }
}

@media (max-width: 520px) {
  .l-stage {
    zoom: 0.37;
  }
}

@media (max-width: 460px) {
  .l-stage {
    zoom: 0.33;
  }
}

@media (max-width: 420px) {
  .l-stage {
    zoom: 0.3;
  }
}

@media (max-width: 380px) {
  .l-stage {
    zoom: 0.28;
  }
}

@media (max-width: 360px) {
  .l-stage {
    zoom: 0.26;
  }
}

/* Worker-rendered pages. */

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.page > .container,
.page > .site-footer {
  position: relative;
}

/* The landing page's night: indigo above the title, warming toward the
   page's lit card, with a few still sparks. */
.page-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 760px 520px at 50% 0%,
      rgba(40, 62, 200, 0.34),
      rgba(40, 62, 200, 0.1) 55%,
      rgba(40, 62, 200, 0) 100%
    ),
    radial-gradient(
      ellipse 560px 360px at 50% 470px,
      rgba(255, 160, 80, 0.07),
      rgba(255, 160, 80, 0) 100%
    );
}

.page-sky i {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  transform: scale(var(--s));
  opacity: 0.4;
  background: #fff3dc;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'><path d='M0 -10 Q0 0 10 0 Q0 0 0 10 Q0 0 -10 0 Q0 0 0 -10 Z'/></svg>")
    center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'><path d='M0 -10 Q0 0 10 0 Q0 0 0 10 Q0 0 -10 0 Q0 0 0 -10 Z'/></svg>")
    center / contain no-repeat;
}

/* A phone has no empty sky beside the content, so the sparks would sit on text. */
@media (max-width: 760px) {
  .page-sky i {
    display: none;
  }
}

.page > .container {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* Sub-pages share the landing page's sticky bar (.l-header). */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 760px) {
  /* The nav links hide on phones; two columns keep the buttons on the right. */
  .site-header,
  .l-header header {
    grid-template-columns: 1fr auto !important;
  }
  .site-header {
    padding: 0 16px;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.site-logo svg {
  width: 22px;
  height: 22px;
}

.site-nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.site-logo {
  justify-self: start;
}

.site-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer {
  border-top: 1px solid #1f1f24;
  margin-top: 96px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--subtle);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  color: var(--fg);
  border-color: #3a3a42;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* The landing page's Download for Mac: white, in a ring from amber to blue. */
.btn-light {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--fg), var(--fg)) padding-box,
    linear-gradient(110deg, #ffb86b, #f4f4f6 35%, #8fb0ff 70%, #3e63dd) border-box;
  color: var(--bg);
  box-shadow:
    0 0 24px rgba(110, 142, 255, 0.35),
    0 0 50px rgba(255, 184, 107, 0.12);
}

.btn-light:hover {
  color: var(--bg);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(110deg, #ffb86b, #f4f4f6 35%, #8fb0ff 70%, #3e63dd) border-box;
}

.btn-accent {
  border: 0;
  background: linear-gradient(145deg, #5878e4, #3a57c2);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(62, 99, 221, 0.4);
}

.btn-accent:hover {
  color: #ffffff;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.kicker {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 96px 0 48px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.page-head p {
  margin: 0;
  max-width: 34em;
  font-size: 17px;
  color: var(--muted);
}

.tone-2 {
  color: var(--subtle);
}

.plans {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* A page's lit card: the landing window's frame and spark on its top edge,
   with the gold dawn rising behind it. One per page. */
.card.lit,
.narrow.lit {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 -10px 40px -12px rgba(255, 180, 110, 0.32),
    0 -30px 110px -30px rgba(40, 62, 200, 0.55),
    0 40px 100px rgba(0, 0, 0, 0.5);
}

.lit::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: calc(100% - 30px);
  /* Never wider than the card, so it cannot push a phone page sideways. */
  width: min(560px, 100%);
  height: 200px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(
      closest-side at 50% 85%,
      rgba(255, 200, 130, 0.3),
      rgba(255, 160, 80, 0.1) 50%,
      rgba(255, 160, 80, 0) 100%
    ),
    radial-gradient(closest-side at 50% 80%, rgba(40, 62, 200, 0.35), rgba(40, 62, 200, 0) 100%);
}

.lit-frame {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 196, 140, 0.4))
    drop-shadow(0 -4px 16px rgba(110, 142, 255, 0.22));
}

.lit-frame i {
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #8fa6ff 0%,
    #9db4ff 20%,
    #ffc98a 38%,
    #ffe7c2 46%,
    #ffffff 50%,
    #ffe7c2 54%,
    #ffc98a 62%,
    #9db4ff 80%,
    #8fa6ff 100%
  );
  -webkit-mask:
    linear-gradient(180deg, #000 0, #000 18px, rgba(0, 0, 0, 0.35) 90px, transparent 220px),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask-composite: source-out;
  mask:
    linear-gradient(180deg, #000 0, #000 18px, rgba(0, 0, 0, 0.35) 90px, transparent 220px),
    linear-gradient(#000 0 0) content-box;
  mask-composite: subtract;
}

.card.lit .lit-frame,
.narrow.lit .lit-frame {
  border-radius: 17px;
}

.lit-spark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 300px;
  height: 120px;
  margin: -60px 0 0 -150px;
  overflow: visible;
  pointer-events: none;
  animation: lSparkIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  .lit-spark {
    animation: none;
  }
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
}

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(110deg, #ffb86b, #f4f4f6 45%, #a9bcff);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price strong {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price span,
.fine {
  color: var(--subtle);
  font-size: 14px;
}

/* Pricing: the Monthly | Yearly toggle is two radios before the cards, so
   it works without script, on the landing page and on /pricing alike. */
.pricing {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.billing-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.billing {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.billing label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.billing label:hover {
  color: var(--fg);
}

.billing label span {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(143, 166, 255, 0.14);
  color: #b9c6ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#billing-monthly:checked ~ .billing [for="billing-monthly"],
#billing-yearly:checked ~ .billing [for="billing-yearly"] {
  background: var(--fg);
  color: var(--bg);
}

#billing-yearly:checked ~ .billing [for="billing-yearly"] span {
  background: rgba(62, 99, 221, 0.14);
  color: var(--accent);
}

#billing-monthly:focus-visible ~ .billing [for="billing-monthly"],
#billing-yearly:focus-visible ~ .billing [for="billing-yearly"] {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

#billing-monthly:checked ~ .plans [data-billing="yearly"],
#billing-yearly:checked ~ .plans [data-billing="monthly"] {
  display: none;
}

#billing-monthly:checked ~ .plans .tier-price[data-billing="yearly"],
#billing-yearly:checked ~ .plans .tier-price[data-billing="monthly"] {
  display: flex;
  visibility: hidden;
}

/* Tier cards share the grid's row tracks, so the same row lines up across
   cards: header, price, button, list label, then one row per feature. */
.card.tier {
  display: grid;
  grid-row: span calc(4 + var(--feature-rows));
  grid-template-rows: subgrid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background: transparent;
  border-color: var(--line-strong);
}

/* The recommended tier is the filled, blue-lit card; the others stay outlined. */
.card.tier.lit {
  border-color: rgba(110, 142, 255, 0.18);
  background: linear-gradient(180deg, #1a1f3a 0%, rgba(21, 23, 34, 0.6) 45%, #141418 100%);
}

/* Hover: the other cards step back, and a light runs once around the
   hovered card's border in the spark's colors. It plays once per hover,
   so nothing repaints while the pointer rests. */
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.card.tier {
  position: relative;
  isolation: isolate;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    border-color 0.35s ease;
}

.card.tier::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from var(--sweep),
    rgba(143, 166, 255, 0) 0deg,
    rgba(143, 166, 255, 0) 250deg,
    #9db4ff 310deg,
    #ffc98a 340deg,
    #ffffff 354deg,
    rgba(255, 255, 255, 0) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(255, 196, 140, 0.55));
}

@media (hover: hover) {
  .plans:has(.card.tier:hover) .card.tier:not(:hover) {
    opacity: 0.45;
    filter: saturate(0.6);
  }

  .card.tier:hover {
    border-color: rgba(143, 166, 255, 0.3);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card.tier:hover::after {
    animation: tierSweep 1.5s cubic-bezier(0.45, 0.1, 0.3, 1) both;
  }
}

@keyframes tierSweep {
  0% {
    --sweep: 0deg;
    opacity: 0;
  }
  12%,
  80% {
    opacity: 1;
  }
  100% {
    --sweep: 360deg;
    opacity: 0;
  }
}

.tier-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-head .card-row {
  justify-content: flex-start;
  gap: 10px;
}

.tier-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tier-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Both periods' prices share one cell and the hidden one keeps its space, so
   the card lays out the same whichever period is shown. */
.tier-prices {
  display: grid;
  padding-top: 4px;
}

.tier-price {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 4px;
}

.tier-price strong {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tier-price span {
  color: var(--muted);
  font-size: 14px;
}

.tier-price em {
  grid-column: 1 / -1;
  color: var(--subtle);
  font-size: 13px;
  font-style: normal;
}

.tier-action {
  display: flex;
  flex-direction: column;
}

.tier-label {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--accent-light);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier .features {
  display: grid;
  grid-row: span var(--feature-rows);
  grid-template-rows: subgrid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.lit .feature-icon {
  background: rgba(62, 99, 221, 0.16);
  border-color: rgba(143, 166, 255, 0.22);
  color: #c9d5ff;
}

.feature-icon svg {
  width: 15px;
  height: 15px;
}

.features li > div {
  min-width: 0;
  padding-top: 4px;
}

.features strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.features p {
  margin: 2px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.soon {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  vertical-align: 1px;
}

.tier-note {
  align-self: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.notice.notice-steps {
  margin-top: 32px;
  text-align: left;
  line-height: 1.6;
}

.notice-steps strong:first-child {
  color: var(--fg);
}

.page-foot {
  margin-top: 28px;
  text-align: center;
}

.page-foot a {
  color: var(--accent-light);
}

.notice {
  max-width: 880px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg-2);
  text-align: center;
}

.narrow {
  width: 100%;
  max-width: 420px;
  margin: 96px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(21, 21, 24, 0.86);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(143, 166, 255, 0.05),
    0 40px 100px rgba(0, 0, 0, 0.5);
}

@media (max-width: 760px) {
  .narrow {
    margin-top: 48px;
    padding: 24px 20px;
  }
}

.narrow h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.narrow p {
  margin: 0;
  color: var(--muted);
}

.narrow form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.input {
  height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}

.input:focus {
  outline: none;
  border-color: rgba(110, 142, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(62, 99, 221, 0.2);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--subtle);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.downloads {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  color: var(--fg-2);
}

.prose h1 {
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 72px 0 8px;
  color: var(--fg);
}

.prose h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 40px 0 8px;
  color: var(--fg);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--accent-light);
}

/* Changelog: releases on a thin line, each marked with a spark; the
   newest one lit. */
.releases {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
}

.releases::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 201, 138, 0.6),
    rgba(143, 166, 255, 0.35) 30%,
    rgba(143, 166, 255, 0.08)
  );
}

.release {
  position: relative;
  padding: 0 0 36px;
}

.release::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 15px;
  height: 15px;
  background: #8fa6ff;
  opacity: 0.6;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'><path d='M0 -10 Q0 0 10 0 Q0 0 0 10 Q0 0 -10 0 Q0 0 0 -10 Z'/></svg>")
    center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'><path d='M0 -10 Q0 0 10 0 Q0 0 0 10 Q0 0 -10 0 Q0 0 0 -10 Z'/></svg>")
    center / contain no-repeat;
}

.release:first-child::before {
  background: #fff6e6;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 200, 140, 0.9));
}

.release header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.release h2 {
  margin: 0;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-light);
}

.release:first-child h2 {
  color: var(--fg);
}

.release:first-child h2::after {
  content: "Latest";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 2px;
  background: rgba(255, 201, 138, 0.16);
  color: #ffd7a8;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.release ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

/* Landing feature sections: copy beside one large, layered visual. */
.l-sec {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #1f1f24;
}

.l-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 40px 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px 80px;
}

.l-copy {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.l-kicker {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9db4ff;
}

.l-h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.l-h2 span {
  color: #8b8d96;
}

.l-lead {
  margin: 0;
  max-width: 30em;
  font-size: 17px;
  color: #a6a8b0;
}

.l-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #c8c9cf;
}

.l-list li {
  display: flex;
  gap: 12px;
}

.l-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--dot, #8fa6ff);
  box-shadow: 0 0 10px var(--dot, #8fa6ff);
}

/* A fixed-size stage so overlapping windows keep their composition; it scales down on phones. */
.l-vis {
  flex: 1 1 640px;
  display: flex;
  justify-content: center;
}

.l-vis-stage {
  position: relative;
  width: 640px;
  height: 520px;
  flex: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #fcfcfd;
}

.l-glow {
  position: absolute;
  inset: -80px -120px;
  background: radial-gradient(closest-side, var(--glow), transparent 100%);
  pointer-events: none;
}

.l-win {
  position: absolute;
  border-radius: 12px;
  background: #121216;
  border: 1px solid #2a2a33;
  box-shadow:
    0 0 0 1px rgba(143, 166, 255, 0.04),
    0 40px 110px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.l-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #26262d;
  color: #b0b4ba;
  font-size: 12px;
}

.l-mono {
  font-family: "Geist Mono", ui-monospace, monospace;
}

.l-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #34343c;
  color: #fcfcfd;
  font-size: 12px;
  white-space: nowrap;
}

.l-btn-primary {
  border-color: transparent;
  background: linear-gradient(145deg, #5878e4, #3a57c2);
}

@media (max-width: 760px) {
  /* Phones scroll through one column, so sections sit closer together. */
  .l-wrap {
    padding: 64px 16px 56px;
    gap: 40px;
  }
  .l-pad {
    padding-top: 64px !important;
    padding-bottom: 56px !important;
    padding-inline: 16px !important;
    row-gap: 36px !important;
  }
  /* The hero's feature list ends the hero; the closing keeps room for its horizon. */
  #top > .l-pad {
    padding-top: 0 !important;
  }
  section > .l-pad[style*="padding: 260px"] {
    padding-top: 250px !important;
    padding-bottom: 72px !important;
  }
  .l-hero-copy {
    padding-top: 40px !important;
  }
  .l-vis-stage {
    zoom: 0.55;
  }
}

/* The Anywhere diagram: devices joined by labelled links; it stacks on narrow screens. */
.l-net {
  display: grid;
  grid-template-columns: 1fr 120px auto 120px 1fr;
  align-items: center;
  gap: 16px;
}

.l-node {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.l-node-label {
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.l-node-label span {
  color: #8b8d96;
  font-weight: 400;
  font-size: 13px;
}

.l-link {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(143, 166, 255, 0.55) 0 6px,
    transparent 6px 12px
  );
}

.l-link span {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #9db4ff;
}

.l-machine {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #151518;
  border: 1px solid #2a2a33;
  font-size: 14px;
  line-height: 19px;
}

.l-machine b {
  font-weight: 600;
}

.l-machine span span {
  color: #8b8d96;
  font-size: 12px;
}

.l-machine-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}

.l-surface {
  display: flex;
  align-items: center;
  padding: 7px 8px;
  border-radius: 5px;
}

.l-surface span {
  flex: 1;
}

.l-surface kbd {
  padding: 0 5px;
  border-radius: 3px;
  background: #26272b;
  color: #b0b4ba;
  font: inherit;
  font-size: 11px;
}

@media (max-width: 960px) {
  .l-net {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
  }
  .l-link {
    width: 2px;
    height: 48px;
    background: repeating-linear-gradient(
      180deg,
      rgba(143, 166, 255, 0.55) 0 6px,
      transparent 6px 12px
    );
  }
  .l-link span {
    left: 14px;
    bottom: 50%;
    transform: translateY(50%);
  }
}

/* A small server glyph: two lit drive bays and an empty one. */
.l-rack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 26px;
  flex: none;
  padding: 4px;
  border-radius: 5px;
  background: #1f2025;
  border: 1px solid #2f3037;
}

.l-rack i {
  height: 3px;
  border-radius: 2px;
  background: #34353c;
}

/* One-shot motion inside revealed blocks. --d orders the pieces; nothing loops. */
.l-js .l-reveal .l-pop {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms + 150ms);
}

.l-js .l-reveal.is-in .l-pop {
  opacity: 1;
  transform: none;
}

.l-js .l-reveal .l-bar {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 60ms + 350ms);
}

.l-js .l-reveal.is-in .l-bar {
  transform: none;
}

/* Links draw in once. */
.l-js .l-reveal .l-link {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s;
}

.l-js .l-reveal.is-in .l-link {
  clip-path: inset(-40px -40px -40px -40px);
}

@media (max-width: 960px) {
  .l-js .l-reveal .l-link {
    clip-path: inset(0 0 100% 0);
  }
  .l-js .l-reveal.is-in .l-link {
    clip-path: inset(-40px -200px -40px -40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .l-js .l-reveal .l-pop,
  .l-js .l-reveal .l-bar,
  .l-js .l-reveal .l-link {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

.l-rail-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* FAQ: a sticky title beside the questions, grouped by topic; a plus turns
   into a cross when an answer is open. */
.l-faq-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 40px 120px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 96px;
  align-items: start;
}

.l-faq-intro {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.l-faq-groups {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.l-faq-group {
  display: flex;
  flex-direction: column;
}

.l-faq-label {
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a33;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9db4ff;
}

.l-faq {
  border-bottom: 1px solid #1f1f24;
}

.l-faq summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 2px;
  font-weight: 500;
  font-size: 16px;
  color: #e4e5ea;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.l-faq summary::-webkit-details-marker {
  display: none;
}

.l-faq summary > span {
  flex: 1;
}

.l-faq-plus {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  color: #8b8d96;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.15s ease;
}

.l-faq-plus::before,
.l-faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 1px;
  background: currentColor;
}

.l-faq-plus::after {
  transform: rotate(90deg);
}

.l-faq[open] .l-faq-plus {
  transform: rotate(45deg);
  color: #fcfcfd;
}

.l-faq[open] summary,
.l-faq summary:hover {
  color: #ffffff;
}

.l-faq summary:focus-visible {
  outline: 2px solid rgba(110, 142, 255, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

.l-faq p {
  margin: 0;
  padding: 0 36px 20px 2px;
  max-width: 44em;
  color: #a6a8b0;
  font-size: 15px;
  line-height: 1.6;
}

.l-faq p a {
  color: #9db4ff;
}

@media (max-width: 900px) {
  .l-faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .l-faq-intro {
    position: static;
  }
}

/* Get started: three steps, each a small window from the real flow. */
.l-go {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-go-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.l-go-win {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 208px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #121216;
  border: 1px solid #2a2a33;
  border-top-color: color-mix(in srgb, var(--c) 45%, #2a2a33);
  box-shadow:
    0 -8px 30px -12px color-mix(in srgb, var(--c) 40%, transparent),
    0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  line-height: 17px;
  color: #fcfcfd;
}

.l-go-num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c);
}

.l-go-step > b {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.l-go-step p {
  margin: 0;
  color: #a6a8b0;
  font-size: 15px;
}

/* 1 · the disk image: drag bevibe to Applications. */
.l-dmg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(40, 62, 200, 0.22), transparent);
}

.l-dmg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.l-dmg-app {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #09090b;
  border: 1px solid #34343c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.l-dmg-folder {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(180deg, #1f2440, #151826);
  border: 1px solid #2f3350;
}

/* 2 · the welcome wizard's Agents step. */
.l-go-crumbs {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: #6b6f78;
}

.l-go-crumbs span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
}

.l-go-crumbs .is-done {
  color: #b0b4ba;
}

.l-go-crumbs .is-on {
  background: #26272b;
  color: #fcfcfd;
}

.l-go-wizard {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
}

.l-agent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #18191b;
  border: 1px solid #26262d;
  font-size: 11px;
  line-height: 14px;
  color: #8e929a;
}

.l-agent-row i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
}

.l-agent-row > span {
  flex: 1;
  min-width: 0;
}

.l-agent-row b {
  color: #fcfcfd;
  font-weight: 600;
}

.l-agent-row em {
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
}

.l-agent-row .is-ok {
  color: #3dd68c;
}

.l-go-wizard .l-btn {
  padding: 3px 12px;
}

.l-agent-note {
  padding: 2px 4px 0;
  color: #8e929a;
  font-size: 11px;
  line-height: 15px;
}

.l-agent-note b {
  color: #b0b4ba;
  font-weight: 500;
}

/* 3 · the new-thread composer. */
.l-go-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 10px;
}

.l-go-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 9px 10px 8px 12px;
  border-radius: 9px;
  background: #18191b;
  border: 1px solid rgba(62, 99, 221, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 99, 221, 0.08);
  color: #d8dae0;
}

.l-caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #8fa6ff;
}

.l-go-composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #b0b4ba;
}

.l-go-send {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: linear-gradient(145deg, #5878e4, #3a57c2);
}

.l-go-where {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 4px;
  font-size: 11px;
  color: #b0b4ba;
}

.l-go-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b6f78;
  font-size: 11px;
}

.l-go-or::before,
.l-go-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #26262d;
}

.l-go-chip {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #34343c;
  color: #b0b4ba;
  font-size: 12px;
}

@media (max-width: 860px) {
  .l-go {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .l-go-win {
    max-width: 420px;
  }
}

/* The hero sky: a canvas 1500 × 1160 with x = 750 on the anchor and y = 880
   on the window's top edge, drawn once by the page script. */
.l-light {
  position: absolute;
  left: -750px;
  top: -880px;
  width: 1500px;
  height: 1160px;
}

/* The bevibe spark sits on the window's top edge; its viewBox origin is the
   star's center. */
.l-spark {
  position: absolute;
  left: -600px;
  top: -400px;
  width: 1200px;
  height: 520px;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

/* The spark lights up once as the page loads; nothing in the hero moves after. */
@keyframes lSparkIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}

.l-spark {
  transform-origin: 600px 400px;
  animation: lSparkIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  .l-spark {
    animation: none;
  }
}

/* Small copies of the spark in the sky, held still. */
.l-mini {
  opacity: 0.4;
}

/* The window's lit frame: a 1.5px ring on the window's own corners, colored
   left to right and faded down the sides. The glow sits on the outer span,
   since a mask would also cut a shadow drawn on the ring itself. */
.l-frame {
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 196, 140, 0.45))
    drop-shadow(0 -4px 18px rgba(110, 142, 255, 0.25));
}

.l-frame i {
  position: absolute;
  inset: 0;
  padding: 1.5px 1.5px 0;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(
    90deg,
    #8fa6ff 0%,
    #9db4ff 22%,
    #ffc98a 52%,
    #ffe7c2 68%,
    #ffffff 77%,
    #ffe7c2 84%,
    #ffc98a 94%,
    #ffc98a 100%
  );
  -webkit-mask:
    linear-gradient(180deg, #000 0, #000 24px, rgba(0, 0, 0, 0.4) 140px, transparent 420px),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask-composite: source-out;
  mask:
    linear-gradient(180deg, #000 0, #000 24px, rgba(0, 0, 0, 0.4) 140px, transparent 420px),
    linear-gradient(#000 0 0) content-box;
  mask-composite: subtract;
}

/* The spark's light caught in the window glass, under its top edge. */
.l-glass {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  z-index: 2;
  border-radius: 12px 12px 0 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 22% 100% at 77% 0%,
    rgba(255, 214, 160, 0.11),
    rgba(255, 214, 160, 0) 100%
  );
}

/* Phones: the layered visuals come apart into a readable stack instead of
   shrinking the whole composition. */
@media (max-width: 760px) {
  /* A 640px flex basis would otherwise hold the visual wider than the phone. */
  .l-vis {
    flex-basis: 100%;
    min-width: 0;
  }
  .l-vis-stage {
    max-width: 100%;
    zoom: 1;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .l-vis-stage > :not(.l-glow) {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
  }
  .l-vis-stage > .l-glow {
    inset: -40px -16px;
  }
  /* See it run: the right panel alone; the chat is in the copy above. */
  #run .l-run-chat {
    display: none;
  }
  #run .l-float {
    width: 100% !important;
  }
  /* The board scrolls sideways by column instead of stacking nine cards. */
  .l-board-cols {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .l-board-cols > div {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  /* The details panel follows the columns instead of covering them. */
  .l-board-body {
    flex-direction: column;
    min-height: 0;
  }
  .l-board-panel {
    position: static;
    width: auto;
    box-shadow: none;
    border-left: 0;
    border-top: 1px solid #26262d;
  }
  .l-panel-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .l-panel-fields {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #26262d;
  }
  .l-board-search {
    display: none;
  }
  /* The recording's waveform fits what is left beside its timer. */
  .l-wave {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  /* The notification sits under the palette instead of over its search. */
  .l-toast {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    margin-bottom: 12px;
  }
}
