:root {
  --bg: #050506;
  --fg: #ededee;
  --muted: #9a9aa2;
  --faint: #80808a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #6d8cff;
  --green: #4fce86;
  --amber: #e8a952;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 66rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.top,
main > section,
.foot {
  width: min(var(--max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.wordmark {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
  background: #ffffff;
}

.button-small {
  min-height: 2.25rem;
  padding: 0 0.9375rem;
  font-size: 0.875rem;
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* Header */

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 3vw, 1.5rem);
  font-size: 0.9375rem;
}

.nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.nav a:not(.button):hover {
  color: var(--fg);
}

@media (max-width: 29.99rem) {
  .top {
    flex-wrap: wrap;
  }

  .top,
  .nav {
    gap: 0.625rem;
  }

  .nav {
    font-size: 0.875rem;
  }

  .top .wordmark {
    font-size: 1rem;
  }

  .nav .button-small {
    padding-inline: 0.625rem;
    font-size: 0.8125rem;
  }
}

/* Links that only fit beside the button on wider screens. */
@media (max-width: 34.99rem) {
  .nav-wide {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(1.5rem, 5vh, 3rem) clamp(4.5rem, 10vw, 7.5rem);
  isolation: isolate;
}

.glow {
  position: absolute;
  z-index: -1;
  inset: -12rem calc(50% - 50vw) auto;
  height: 52rem;
  pointer-events: none;
  background:
    radial-gradient(40rem 22rem at 50% 38%, rgba(109, 140, 255, 0.16), transparent 70%),
    radial-gradient(26rem 14rem at 62% 30%, rgba(160, 120, 255, 0.08), transparent 70%);
  animation: breathe 12s ease-in-out infinite alternate;
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 4rem 4rem;
  background-position: center;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 50% 45% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 45% at 50% 40%, #000 20%, transparent 75%);
}

.hero h1 {
  max-width: 13em;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
  /* Room below the last line for descenders (g, y, the comma): background-clip: text
     only paints inside the box. The negative margin keeps the spacing below unchanged. */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  background: linear-gradient(180deg, #ffffff 30%, #a9a9b2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rise 900ms var(--ease) both;
}

.lede {
  max-width: 48rem;
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  animation: rise 900ms 120ms var(--ease) both;
}

.lede b {
  color: var(--fg);
  font-weight: 600;
}

/* Free and Enterprise, side by side: two tiers to choose from. */

.paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  animation: rise 900ms 200ms var(--ease) both;
}

.path {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
  padding: 1rem 1.125rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

/* The same accent border, tint and badge as the Enterprise column in the table. */
.path-ent {
  border-color: rgba(109, 140, 255, 0.4);
  background:
    radial-gradient(24rem 12rem at 100% 0%, rgba(109, 140, 255, 0.12), transparent 70%),
    rgba(109, 140, 255, 0.06);
}

.path-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.path-tier {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.path-ent .badge {
  line-height: 1.6;
}

/* On phones the cards are compact (title and button), so both fit on the first screen. */
.path-list {
  display: none;
  gap: 0.375rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.path-list li {
  position: relative;
  padding-left: 1rem;
}

.path-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--faint);
}

.path-ent .path-list li::before {
  background: var(--accent);
}

.path-list code {
  color: #a9bbff;
}

.path-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.path-install {
  min-width: 0;
}

/* The small print under the buttons sits at the bottom of each card. */
.path > .path-install,
.path > .path-note {
  margin-top: auto;
}

@media (min-width: 48rem) {
  .paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .path {
    padding: 1.375rem 1.5rem 1.5rem;
  }

  .path-list {
    display: grid;
  }

  /* Both cards share the parent's rows (title, bullets, buttons, small print),
     so the button rows line up even when one card has more bullets. */
  @supports (grid-template-rows: subgrid) {
    .path {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0.875rem;
    }

    .path-list {
      align-content: start;
    }
  }
}

.install {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  min-height: 2.875rem;
  padding: 0.375rem 0.375rem 0.375rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.45;
  scroll-margin-top: 2rem;
}

.install-ps {
  flex: none;
  color: var(--accent);
}

/* One line; on narrow screens it scrolls sideways and the Copy button stays put. */
.install code {
  min-width: 0;
  overflow-x: auto;
  font-size: inherit;
  white-space: nowrap;
  scrollbar-width: none;
}

.install code::-webkit-scrollbar {
  display: none;
}

.copy {
  flex: none;
  align-self: stretch;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4375rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.then {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

.then code {
  color: var(--muted);
}

.copy-status:not(:empty) {
  color: var(--green);
}

/* Demo */

.demo {
  container: demo / inline-size;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  animation: rise 900ms 300ms var(--ease) both;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  contain: layout;
  user-select: none;
}

.scene {
  position: absolute;
  inset: 0;
  transition: opacity 500ms ease;
}

.is-fading .scene {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .stage:not(.is-live) .scene {
    opacity: 0;
  }
}

.no-anim,
.no-anim * {
  transition: none !important;
  animation: none !important;
}

.is-paused,
.is-paused * {
  animation-play-state: paused !important;
}

.is-off {
  display: none !important;
}

/*
 * Geometry. The final frame (laptop and phone) is the default; .is-term is
 * the opening frame with two terminal windows. Sizes are fractions of the
 * stage, so the scene keeps its shape at every width.
 */

.stage {
  --term-font: clamp(10px, 1.3cqi, 14px);
  --pw: 25.6cqi;
  --bezel: 0.7cqi;
}

.win {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: 10px;
  box-shadow: 0 0 0 0 #19191e, 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.8);
  transition:
    left 900ms var(--ease) 200ms,
    top 900ms var(--ease) 200ms,
    width 900ms var(--ease) 200ms,
    height 900ms var(--ease) 200ms,
    border-radius 900ms var(--ease) 200ms,
    box-shadow 900ms var(--ease) 200ms;
}

.win-l {
  --x: 2.5%;
  --y: 24%;
  --w: 47%;
  --h: 50%;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 0 var(--bezel) #19191e, 0 0 0 calc(var(--bezel) + 1px) var(--line-strong);
}

.win-r {
  --x: 72.5%;
  --y: 11%;
  --w: var(--pw);
  --h: 82%;
  border-radius: calc(var(--pw) * 0.13);
  box-shadow: 0 0 0 var(--bezel) #19191e, 0 0 0 calc(var(--bezel) + 1px) var(--line-strong);
}

.is-term .win-l {
  --x: 3%;
  --y: 8%;
  --w: 46%;
  --h: 84%;
}

.is-term .win-r {
  --x: 51%;
  --y: 8%;
  --w: 46%;
  --h: 84%;
}

.is-term .win {
  border-radius: 10px;
  box-shadow: 0 0 0 0 #19191e, 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.8);
}

.place-l {
  left: 2.5%;
  top: 15%;
}

.place-r {
  left: 72.5%;
  top: 2.5%;
}

/* Narrower stages: a taller scene. */

@container demo (max-width: 47.99rem) {
  .stage {
    aspect-ratio: 4 / 3;
    --term-font: clamp(9.5px, 1.75cqi, 12px);
    --pw: 31.5cqi;
  }

  .win-l {
    --x: 1.5%;
    --y: 31%;
    --w: 50%;
    --h: 42%;
  }

  .win-r {
    --x: 66.5%;
    --y: 10%;
    --h: 84%;
  }

  .place-l {
    left: 1.5%;
    top: 23%;
  }

  .place-r {
    left: 66.5%;
    top: 2%;
  }
}

/* Phone widths: the windows stack, and the devices move up and down. */

@container demo (max-width: 29.99rem) {
  .stage {
    aspect-ratio: 10 / 18;
    --term-font: clamp(9.5px, 3.1cqi, 13px);
    --pw: 49.5cqi;
    --bezel: 1.4cqi;
  }

  .win-l {
    --x: 6%;
    --y: 5%;
    --w: 88%;
    --h: 28%;
  }

  .win-r {
    --x: 25.25%;
    --y: 43.5%;
    --h: 55%;
  }

  .is-term .win-l {
    --x: 0%;
    --y: 10%;
    --w: 100%;
    --h: 38%;
  }

  .is-term .win-r {
    --x: 0%;
    --y: 52%;
    --w: 100%;
    --h: 38%;
  }

  .place-l {
    left: 6%;
    top: 0.6%;
  }

  .place-r {
    left: 25.25%;
    top: 39.4%;
  }
}

.win-in {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  background: #0b0b0e;
}

/* Terminal */

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 2.3em;
  padding-inline: 0.85em;
  border-bottom: 1px solid var(--line);
  background: #111115;
  font-family: var(--sans);
  font-size: var(--term-font);
}

.bar i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #2b2b31;
}

.title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 0.9em;
}

.screen {
  position: absolute;
  inset: 2.3em 0 0;
  overflow: hidden;
  padding: 0.7em 0.9em;
  font-family: var(--mono);
  font-size: var(--term-font);
  line-height: 1.45;
  color: #d9d9de;
}

.ln {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ps {
  color: var(--accent);
}

.out {
  color: var(--muted);
}

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

.ai {
  color: #b9a4ff;
}

.url {
  color: #a9bbff;
}

.cur::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.22em;
  background: #d9d9de;
  animation: blink 1.1s steps(1) infinite;
}

.term {
  position: absolute;
  inset: 0;
  transition: opacity 200ms ease;
}

.win-r .term {
  opacity: 0;
}

.is-term .win-r .term {
  opacity: 1;
}

/* Laptop base */

.base {
  position: absolute;
  top: calc(100% + var(--bezel));
  left: -4%;
  right: -4%;
  height: max(6px, 1.3cqi);
  border-radius: 0 0 0.8cqi 0.8cqi;
  background: linear-gradient(#2c2c33, #141418);
  box-shadow: 0 1rem 2rem -0.5rem rgba(0, 0, 0, 0.8);
  transition: opacity 500ms ease 800ms;
}

.base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 40%;
  border-radius: 0 0 0.5cqi 0.5cqi;
  background: #101013;
  transform: translateX(-50%);
}

.is-term .base {
  opacity: 0;
  transition-delay: 0ms;
  transition-duration: 150ms;
}

/* Location labels */

.place {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: clamp(10px, 1.05cqi, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 500ms ease 900ms;
}

.place::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.6em rgba(109, 140, 255, 0.7);
}

.is-term .place {
  opacity: 0;
  transition-delay: 0ms;
  transition-duration: 150ms;
}

@container demo (max-width: 29.99rem) {
  .place {
    font-size: clamp(10px, 3cqi, 12px);
  }
}

/* Phone: the Readable view */

.phone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: clamp(8.5px, calc(var(--pw) * 0.052), 13px);
  line-height: 1.35;
  background: #0c0c0f;
  transition: opacity 350ms ease 1100ms;
}

.is-term .phone {
  opacity: 0;
  transition-delay: 0ms;
  transition-duration: 150ms;
}

.status {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  height: 2.6em;
  padding-inline: 1.6em;
  font-size: 0.85em;
  font-weight: 600;
}

.island {
  position: absolute;
  top: 0.7em;
  left: 50%;
  width: 28%;
  height: 1.3em;
  border-radius: 1em;
  background: #000;
  transform: translateX(-50%);
}

.app-head {
  flex: none;
  padding: 0.3em 0.9em 0.7em;
  border-bottom: 1px solid var(--line);
}

.app-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--green);
  font-size: 0.85em;
}

.live::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.6em;
  padding: 0.2em;
  border-radius: 0.6em;
  background: #1a1a1f;
  font-size: 0.85em;
  text-align: center;
  color: var(--muted);
}

.tabs span {
  padding: 0.25em 0;
  border-radius: 0.45em;
}

.tabs .active {
  background: #2c2c34;
  color: var(--fg);
}

.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55em;
  min-height: 0;
  overflow: hidden;
  padding: 0.8em 0.9em;
}

.chat > * {
  flex: none;
  animation: pop 350ms var(--ease) both;
}

.msg {
  max-width: 86%;
  padding: 0.5em 0.75em;
  border-radius: 0.95em;
}

.you {
  align-self: flex-end;
  border-bottom-right-radius: 0.3em;
  background: var(--accent);
  color: #0a0a10;
}

.bot {
  align-self: flex-start;
  border-bottom-left-radius: 0.3em;
  background: #1c1c22;
}

.tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.5em 0.7em;
  border: 1px solid var(--line-strong);
  border-radius: 0.6em;
  background: #121216;
  font-family: var(--mono);
  font-size: 0.9em;
}

.tool-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spin {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  border: 2px solid #34343c;
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.tick {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}

.tick circle {
  fill: var(--green);
}

.tick path {
  fill: none;
  stroke: #06240f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card {
  display: grid;
  gap: 0.1em;
  padding: 0.55em 0.75em;
  border: 1px solid rgba(109, 140, 255, 0.35);
  border-radius: 0.7em;
  background: rgba(109, 140, 255, 0.08);
}

.link-card span {
  color: var(--muted);
  font-size: 0.85em;
}

.link-card b {
  overflow: hidden;
  font-weight: 500;
  color: #a9bbff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.press {
  transition: transform 150ms ease, background-color 150ms ease;
}

.press.on {
  transform: scale(0.96);
  background-color: rgba(109, 140, 255, 0.24);
}

.composer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  margin: 0 0.9em 1.4em;
  padding: 0.5em 0.5em 0.5em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 1.2em;
  color: var(--faint);
}

.composer i {
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--accent);
}

.sheet {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  overflow: hidden;
  border-radius: 1.1em 1.1em 0 0;
  background: #f4f4f6;
  color: #16161a;
  box-shadow: 0 -0.5em 2em rgba(0, 0, 0, 0.6);
  transform: translateY(105%);
  transition: transform 450ms var(--ease);
}

.sheet.on {
  transform: none;
}

.urlbar {
  margin: 0.6em 0.7em 0;
  padding: 0.35em 0.6em;
  overflow: hidden;
  border-radius: 0.6em;
  background: #e2e2e7;
  color: #4a4a55;
  font-size: 0.85em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 1.1em 1em;
  animation: pop 300ms var(--ease) both;
}

.page b {
  font-size: 1.25em;
  letter-spacing: -0.02em;
}

.continue {
  align-self: flex-start;
  margin-top: 0.2em;
  padding: 0.45em 1em;
  border-radius: 0.6em;
  background: #16161a;
  color: #f4f4f6;
  font-weight: 600;
}

.continue.on {
  background-color: #3b3b45;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45em;
  margin-top: 0.2em;
}

.plans i {
  height: 5.5em;
  border: 1px solid #dcdce2;
  border-radius: 0.5em;
  background: linear-gradient(#ffffff, #ffffff) 0.5em 0.6em / 60% 0.45em no-repeat,
    linear-gradient(#dcdce2, #dcdce2) 0.5em 1.5em / 75% 0.35em no-repeat,
    linear-gradient(#dcdce2, #dcdce2) 0.5em 2.2em / 50% 0.35em no-repeat,
    #ffffff;
}

.plans i:nth-child(2) {
  border-color: var(--accent);
}

/* Agent bus: three agents' terminals side by side, and the bus between them. */

.bus {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}

.bus-lede {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: var(--muted);
}

.bus-demo {
  container: bus / inline-size;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.bus-stage {
  --term-font: clamp(9.5px, 1.2cqi, 12.5px);
  position: relative;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .bus-stage:not(.is-live) .scene {
    opacity: 0;
  }
}

.bus-stage .scene {
  position: relative;
}

.panes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqi;
}

.pane {
  position: relative;
  height: 30em;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0b0b0e;
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.8);
  font-size: var(--term-font);
}

.pane .title {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: pre;
  font-size: 0.9em;
}

.pane .title b {
  font-weight: 600;
}

.pane-claude {
  --agent: #e5916f;
}

.pane-codex {
  --agent: #d9d9de;
}

.pane-aider {
  --agent: var(--green);
}

.pane .title b,
.pane .mk {
  color: var(--agent);
}

.pane .ln + .ln {
  margin-top: 0.3em;
}

.pane .cur::after {
  display: none;
}

/* A message arriving from the bus. */
.pane .in {
  padding-left: 0.6em;
  border-left: 2px solid var(--accent);
  color: #a9bbff;
}

.pane .say {
  color: var(--fg);
}

.flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(109, 140, 255, 0.7), inset 0 0 2.5em rgba(109, 140, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.flash.on {
  opacity: 1;
  transition-duration: 120ms;
}

/* The bus: a line under the three terminals, with each message travelling along it. */
.rail {
  position: relative;
  height: 3.25rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.rail::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 16.667%;
  right: 16.667%;
  border-top: 1px solid rgba(109, 140, 255, 0.45);
}

.node {
  position: absolute;
  top: 0;
  left: var(--at);
  padding-top: 1.35rem;
  color: var(--faint);
  transform: translateX(-50%);
}

.node::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(-50%);
}

.node-1,
.from-1 {
  --at: 16.667%;
  --from: 16.667%;
}

.node-2,
.from-2 {
  --at: 50%;
  --from: 50%;
}

.node-3,
.from-3 {
  --at: 83.333%;
  --from: 83.333%;
}

.to-1 {
  --to: 16.667%;
}

.to-2 {
  --to: 50%;
}

.to-3 {
  --to: 83.333%;
}

.pkt {
  position: absolute;
  top: 0.45rem;
  left: var(--from);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #c9d4ff;
  box-shadow: 0 0 0.75rem 0.15rem rgba(109, 140, 255, 0.8);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.pkt.on {
  left: var(--to);
  opacity: 1;
  transition: left 500ms var(--ease), opacity 100ms ease;
}

.bus .cmds {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.cmds p code {
  color: inherit;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Narrow screens: the terminals stack, and the arriving glow stands in for the line. */
@container bus (max-width: 39.99rem) {
  .bus-stage {
    --term-font: clamp(10px, 2.9cqi, 12.5px);
  }

  .panes {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pane {
    height: 15em;
  }

  .rail {
    display: none;
  }
}

/* Free */

.section-title {
  max-width: 22em;
  margin-top: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.free {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--line);
}

.cmds {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.cmds article {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.cmds code {
  color: #a9bbff;
  font-size: 0.9375rem;
}

.cmds h3 {
  font-size: clamp(1.25rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cmds h3 {
  margin-top: 0.75rem;
}

.cmds p {
  margin-top: 0.75rem;
  max-width: 30rem;
  color: var(--muted);
}

.readable {
  max-width: 40rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.0625rem;
}

.limits {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.dots {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.dots li {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.dots li::before {
  content: "";
  flex: none;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.75rem rgba(109, 140, 255, 0.6);
  transform: translateY(-0.2em);
}

/* Enterprise */

.enterprise {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 10vw, 7rem) clamp(5rem, 12vw, 9rem);
}

/* A full-width band with an accent edge, so the section reads as its own part of the page. */
.enterprise::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  border-top: 1px solid rgba(109, 140, 255, 0.45);
  background:
    radial-gradient(50rem 26rem at 50% 0%, rgba(109, 140, 255, 0.16), transparent 70%),
    linear-gradient(#0a0b12, var(--bg) 70%);
}

.enterprise .label {
  color: #a9bbff;
}

.ent-title {
  max-width: 14em;
  margin-top: 1rem;
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.intro {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: var(--muted);
}

.ent-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.ent-more {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
}

.ent-more:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

/* Outcomes */

.outcomes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.outcomes article {
  padding: clamp(1.5rem, 3.5vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.outcomes h3 {
  font-size: clamp(1.1875rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.outcomes p {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* The two promises in the hero: administration and engineering. Unlike the old tier cards,
   the bullets are the point, so they show on phones too. */

.hero-label {
  margin-bottom: 1rem;
  animation: rise 900ms var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  animation: rise 900ms 160ms var(--ease) both;
}

.hero .paths {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hero .path-list {
  display: grid;
}

/* The pill sits on its own line above the title, the same in both cards. */
.hero .path-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

/* Two rows (title, bullets), not the four the tier cards used, so no empty space below. */
.hero .path {
  grid-row: span 2;
}

/* No single word left alone on a bullet's last line. */
.hero .path-list li {
  text-wrap: pretty;
}

/* How it works: five steps, the checkpoints in bold. */

.how,
.team {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.25rem 1.25rem 1.375rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.step-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.steps h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.steps b {
  color: var(--fg);
  font-weight: 600;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.business {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}

.depts {
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 60rem) {
  .outcomes.depts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-roles {
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* Developers (Free): install, then the session demo. */

.dev-install {
  margin-top: 2rem;
}

.harness {
  margin-top: 2.5rem;
}

.harness h3 {
  margin: 0 0 0.5rem;
}

.harness p {
  max-width: 62ch;
}

.dev-cta {
  margin-top: 1.25rem;
}

/* Free and Enterprise table */

.compare {
  margin-top: clamp(4rem, 9vw, 6rem);
  scroll-margin-top: 1.5rem;
}

/* Scrolls sideways only on screens too narrow for the table's minimum width. */
.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.plans-table {
  width: 100%;
  min-width: 19rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  line-height: 1.45;
}

.plans-table th,
.plans-table td {
  padding: 1rem clamp(0.625rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.plans-table thead th,
.plans-table thead td {
  padding-block: 1.25rem 1rem;
  border-bottom-color: var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  vertical-align: bottom;
}

.plans-table tbody th {
  width: 44%;
  padding-left: 0;
  font-weight: 400;
}

.plans-table td {
  width: 28%;
  color: var(--muted);
}

.plans-table code {
  color: #a9bbff;
}

/* The Enterprise column: tinted, with an accent border around it. */
.plans-table .ent {
  border-inline: 1px solid rgba(109, 140, 255, 0.4);
  background: rgba(109, 140, 255, 0.06);
  color: var(--fg);
}

.plans-table thead .ent {
  border-top: 1px solid rgba(109, 140, 255, 0.4);
  border-radius: 0.75rem 0.75rem 0 0;
}

.plans-table tbody tr:last-child .ent {
  border-bottom-color: rgba(109, 140, 255, 0.4);
  border-radius: 0 0 0.75rem 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(109, 140, 255, 0.5);
  border-radius: 999px;
  background: rgba(109, 140, 255, 0.14);
  color: #c9d4ff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yes,
.no {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1.45em;
  vertical-align: top;
}

.yes::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0.125rem;
  width: 0.7rem;
  height: 0.375rem;
  border-bottom: 2px solid var(--muted);
  border-left: 2px solid var(--muted);
  transform: rotate(-45deg);
}

.ent .yes::before {
  border-color: var(--accent);
}

.no::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0.125rem;
  width: 0.75rem;
  border-top: 1px solid var(--faint);
}

/* Closing call to action */

.ent-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: clamp(4rem, 9vw, 6rem);
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid rgba(109, 140, 255, 0.4);
  border-radius: 1.25rem;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(109, 140, 255, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.ent-close h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Partners page */

.wins {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  animation: rise 900ms 200ms var(--ease) both;
}

.wins article {
  padding: 1.375rem 1.5rem 1.5rem;
  border: 1px solid rgba(109, 140, 255, 0.4);
  border-radius: 1rem;
  background:
    radial-gradient(24rem 12rem at 100% 0%, rgba(109, 140, 255, 0.12), transparent 70%),
    rgba(109, 140, 255, 0.06);
}

.wins .label {
  color: #a9bbff;
}

.wins h2 {
  margin-top: 0.625rem;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.wins p:not(.label) {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.gap,
.ways,
.kit,
.fit,
.faq {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.split h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dots-muted li {
  color: var(--muted);
}

.dots-muted li::before {
  background: var(--faint);
  box-shadow: none;
}

.ways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.way {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3.5vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.way-main {
  border-color: rgba(109, 140, 255, 0.4);
  background:
    radial-gradient(24rem 12rem at 100% 0%, rgba(109, 140, 255, 0.12), transparent 70%),
    rgba(109, 140, 255, 0.06);
}

.way-tag {
  align-self: flex-start;
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.way-main .way-tag {
  border-color: rgba(109, 140, 255, 0.5);
  background: rgba(109, 140, 255, 0.14);
  color: #c5d1ff;
}

.way h3 {
  margin-top: 0.875rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.way-sum {
  margin-top: 0.625rem;
  color: var(--muted);
  text-wrap: pretty;
}

.way-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.625rem 1rem;
  margin: auto 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.way-sum {
  margin-bottom: 1.25rem;
}

.way-split dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.way-split dd {
  margin: 0;
  text-wrap: pretty;
}

/* One column per side, so each list reads top to bottom. */
.split .dots {
  grid-template-columns: 1fr;
}

.partners .how {
  border-top: 1px solid var(--line);
}

.kit-grid {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.fit-list {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fit-list li {
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.0625rem;
}

.fit-list b {
  color: var(--fg);
  font-weight: 600;
}

.faq-list {
  max-width: 48rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  max-width: 42rem;
  padding-bottom: 1.375rem;
  color: var(--muted);
}

.partners-close {
  margin-bottom: clamp(4rem, 10vw, 7rem);
}

.partners-close h2 {
  flex: 1 1 100%;
  max-width: 20em;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.partners-close .intro {
  flex: 1 1 20rem;
  margin-top: 0;
}

@media (min-width: 48rem) {
  .wins,
  .ways-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
}

/* Terms, acceptable use and privacy pages */

.legal {
  max-width: 44rem;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
}

.legal .section-title {
  margin-bottom: 0.5rem;
}

.legal-version {
  margin-bottom: 2rem;
  color: var(--faint);
  font-size: 0.9375rem;
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul,
.legal ol {
  margin-bottom: 1rem;
  color: var(--muted);
}

.legal b {
  color: var(--fg);
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal a {
  color: var(--fg);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-right: auto;
  font-size: 0.9375rem;
}

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

.foot-links a:hover {
  color: var(--fg);
}

/* Wider screens */

@media (min-width: 40rem) {
  .dots,
  .outcomes {
    grid-template-columns: repeat(2, 1fr);
  }

  .dots {
    column-gap: 2.5rem;
  }
}

@media (min-width: 60rem) {
  .cmds {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .cmds article {
    padding: 2.75rem 2.5rem 3rem;
    border-top: 0;
  }

  .cmds article + article {
    border-left: 1px solid var(--line);
  }

  .cmds article:first-child {
    padding-left: 0;
  }

  .cmds article:last-child {
    padding-right: 0;
  }

  .readable {
    border-top: 0;
  }
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* 404 */
.notfound {
  min-height: calc(100vh - 14rem);
}

.notfound-links {
  display: grid;
  gap: 0.25rem;
  max-width: 32rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  animation: rise 900ms 220ms var(--ease) both;
}

.notfound-links a {
  padding-block: 0.5rem;
  color: var(--muted);
  text-decoration: none;
}

.notfound-links a::after {
  content: " →";
  color: var(--accent);
}

.notfound-links a:hover {
  color: var(--fg);
}

/* Workflows page */

.workflow .lede code,
.workflow .steps code,
.workflow .outcomes code,
.workflow .dots code,
.wf-title-code {
  color: #a9bbff;
}

.workflow .hero .install {
  width: fit-content;
  max-width: 100%;
}

.wf-title-code {
  font-size: 0.86em;
  letter-spacing: -0.02em;
}

.workflow .steps code {
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

/* The terminal demo: init, dev, deploy in one window. */
.wf-stage {
  --term-font: clamp(11px, 1.45cqi, 13.5px);
  position: relative;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .wf-stage:not(.is-live) .scene {
    opacity: 0;
  }
}

.wf-stage .scene {
  position: relative;
}

.wf-term {
  position: relative;
  max-width: 56rem;
  height: 27em;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b0b0e;
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.8);
  font-size: var(--term-font);
}

.wf-term .ln + .ln {
  margin-top: 0.15em;
}

.wf-term .mk {
  color: var(--green);
}

.wf-term .wait {
  color: var(--amber);
}

.wf-term .live b {
  color: var(--fg);
  font-weight: 600;
}

@container demo (max-width: 29.99rem) {
  .wf-term {
    height: 22em;
  }
}

.wf-section {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}

/* studio.yaml beside what each key means. */
.wf-spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.wf-file {
  --term-font: 0.8125rem;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b0b0e;
}

.wf-file pre {
  margin: 0;
  padding: 1rem 1.125rem 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #d9d9de;
}

.wf-file pre code {
  font-size: inherit;
}

.wf-file .k {
  color: #a9bbff;
}

.wf-file .s {
  color: #e5916f;
}

.wf-keys {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.wf-keys div {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.wf-keys dt code {
  color: #a9bbff;
}

.wf-keys dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wf-keys dd code {
  color: var(--fg);
}

.wf-outcomes {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.workflow .split h3 + .dots {
  margin-top: 1rem;
}

.workflow .split .dots li {
  font-size: 1rem;
}

/* Not built yet: clearly labelled and muted. */
.wf-soon {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.wf-soon-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wf-soon .dots li {
  font-size: 1rem;
}

.wf-plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.wf-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.wf-list li {
  position: relative;
  padding-left: 1rem;
}

.wf-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--faint);
}

.way-main .wf-list li::before {
  background: var(--accent);
}

.wf-plans .button {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 48rem) {
  .wf-spec {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }

  /* The file stays in view while you read down the keys. */
  .wf-file {
    position: sticky;
    top: 1.5rem;
  }

  .wf-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .workflow .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* The receipts workflow as a diagram: left to right on wide screens, top to bottom on phones. */
.wf-figure {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.wf-diagram {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--sans);
}

.wf-diagram-h {
  display: none;
}

.wf-diagram-v {
  max-width: 24rem;
  margin-inline: auto;
}

@media (min-width: 60rem) {
  .wf-diagram-h {
    display: block;
  }

  .wf-diagram-v {
    display: none;
  }
}

.wf-diagram .box {
  fill: rgba(255, 255, 255, 0.015);
  stroke: var(--line-strong);
  stroke-width: 1.25;
  stroke-dasharray: 5 5;
}

.wf-diagram .boxlabel {
  fill: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.wf-diagram .agent {
  fill: var(--muted);
  font-size: 12.5px;
}

.wf-diagram .branch {
  fill: var(--amber);
  font-size: 12.5px;
}

.wf-diagram .e {
  fill: none;
  stroke: rgba(255, 255, 255, 0.26);
  stroke-width: 1.5;
}

.wf-diagram .a {
  fill: rgba(255, 255, 255, 0.4);
}

/* The travelling highlight: one short bright dash per edge, only when motion is welcome. */
.wf-diagram .f {
  display: none;
  fill: none;
  stroke: #c9d4ff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 94;
  stroke-dashoffset: 6;
}

@media (prefers-reduced-motion: no-preference) {
  .wf-diagram .f {
    display: inline;
    animation: wf-travel 4.5s linear infinite;
  }
}

@keyframes wf-travel {
  0% {
    stroke-dashoffset: 6;
    opacity: 0;
  }
  4% {
    opacity: 0.9;
  }
  22% {
    stroke-dashoffset: -100;
    opacity: 0.9;
  }
  23%,
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}

.wf-diagram .n rect {
  stroke-width: 1.25;
}

.wf-diagram .t {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.wf-diagram .h {
  fill: var(--fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wf-diagram .s {
  fill: var(--muted);
  font-size: 12.5px;
}

.wf-diagram .n-x rect {
  fill: #0e0e12;
  stroke: var(--line-strong);
}

.wf-diagram .n-x .t {
  fill: var(--faint);
}

.wf-diagram .n-ai rect {
  fill: #10142a;
  stroke: rgba(109, 140, 255, 0.7);
}

.wf-diagram .n-ai .t {
  fill: #a9bbff;
}

.wf-diagram .n-code rect {
  fill: #0d1c15;
  stroke: rgba(79, 206, 134, 0.65);
}

.wf-diagram .n-code .t {
  fill: var(--green);
}

.wf-diagram .n-p rect {
  fill: #1f1910;
  stroke: rgba(232, 169, 82, 0.7);
}

.wf-diagram .n-p .t {
  fill: var(--amber);
}

.wf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.wf-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sw {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border: 1.5px solid;
  border-radius: 0.25rem;
}

.sw-ai {
  border-color: var(--accent);
  background: rgba(109, 140, 255, 0.2);
}

.sw-code {
  border-color: var(--green);
  background: rgba(79, 206, 134, 0.18);
}

.sw-p {
  border-color: var(--amber);
  background: rgba(232, 169, 82, 0.18);
}

.sw-box {
  border: 1.5px dashed var(--faint);
}

.wf-kinds {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.wf-kinds a {
  color: var(--fg);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}
