/* The landing page: a mid-2000s desktop in the app's own Luna palette, with the
   windows on it moving. Colors are set explicitly, no dark variant. Everything
   that moves stands still under prefers-reduced-motion (see the end). */
:root {
  color-scheme: light;

  --font-ui: Tahoma, 'Segoe UI', Geneva, Verdana, sans-serif;
  --font-title: 'Trebuchet MS', Tahoma, sans-serif;
  --font-mono: Menlo, Monaco, Consolas, 'Courier New', monospace;

  --text: #1a2233;
  --text-soft: #2b3a55;
  --muted: #6e6e6e;
  --heading: #1b3f7a;
  --link: #0645ad;

  --frame: #0b5ae6;
  --frame-dark: #0831d9;
  --pane-border: #7f9db9;
  --pane-border-soft: #b8cbe6;
  --xp-face: #ece9d8;
  --focus: #f8b330;
  --body-bg: linear-gradient(180deg, #f4f8fe 0%, #e3ecf9 45%, #d4e2f5 100%);
  --band-bg: linear-gradient(180deg, #ffffff 0%, #eef4fc 55%, #dbe7f7 100%);

  --luna-bar: linear-gradient(
    180deg,
    #0a5ce0 0%,
    #3d8df8 4%,
    #2b80f8 8%,
    #116ef5 13%,
    #0461ea 20%,
    #005ae5 32%,
    #0057e4 54%,
    #0059e9 66%,
    #0463f3 80%,
    #0560f0 88%,
    #024fd9 94%,
    #013fb7 100%
  );

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--link);
}

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

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

[id] {
  scroll-margin-top: 66px;
}

/* ---- top bar: a Luna title bar -------------------------------------------------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 16px;
  background: var(--luna-bar);
  border-bottom: 1px solid #012f8f;
  color: #fff;
  text-shadow: 1px 1px 0 #0a1f7a;
  transition: box-shadow 0.3s;
}

.bar.scrolled {
  box-shadow: 0 6px 22px rgba(0, 20, 70, 0.35);
}

.bar a {
  color: #fff;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font: bold 17px var(--font-title);
  white-space: nowrap;
}

.brand img {
  transition: transform 0.5s var(--ease-spring);
}

.brand:hover img {
  transform: rotate(-10deg) scale(1.12);
}

.bar nav {
  display: flex;
  gap: 4px;
  font-size: 13px;
}

.bar nav a {
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.bar nav a:hover,
.bar nav a.here {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
}

/* How far down the page you are, where a browser can tie an animation to the scrollbar. */
.bar-progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  .bar-progress {
    position: absolute;
    left: 0;
    bottom: -4px;
    display: block;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #7cc24a, #f8d330 60%, #f8b330);
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

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

/* ---- buttons ---------------------------------------------------------------------------- */
/* the green button: the Start button's glossy cousin */
.go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 14px 32px 15px 26px;
  border: 1px solid #1c651b;
  border-radius: 12px;
  background: linear-gradient(180deg, #8fe57e 0%, #4fb844 46%, #2f902e 54%, #3ea93a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(0, 60, 0, 0.3),
    0 6px 18px rgba(0, 25, 80, 0.4);
  color: #fff;
  font: italic bold 22px var(--font-title);
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-spring),
    box-shadow 0.25s,
    filter 0.2s;
}

/* a gleam that crosses it now and then */
.go::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: gleam 4.5s ease-in-out 2s infinite;
  pointer-events: none;
}

@keyframes gleam {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.go:hover {
  filter: brightness(1.07);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(0, 60, 0, 0.3),
    0 12px 28px rgba(0, 25, 80, 0.45),
    0 0 0 4px rgba(143, 229, 126, 0.3);
}

.go:active {
  transform: translateY(1px) scale(0.99);
}

.go-arrow {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.35));
}

.go:hover .go-arrow {
  animation: arrow 0.7s var(--ease-out);
}

@keyframes arrow {
  40% {
    transform: translateY(3px);
  }
}

.go.small,
.go.tiny {
  padding: 8px 20px 9px 16px;
  border-radius: 9px;
  font-size: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(0, 60, 0, 0.3);
}

.go.tiny {
  gap: 6px;
  padding: 4px 13px 5px 10px;
  border-radius: 7px;
  font-size: 14px;
}

.go.small .go-arrow,
.go.tiny .go-arrow {
  width: 16px;
  height: 16px;
}

.go.tiny .go-arrow {
  width: 14px;
  height: 14px;
}

/* the quieter second choice, in glass */
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #fff;
  font: bold 17px var(--font-title);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 25, 80, 0.6);
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s var(--ease-spring),
    background 0.2s;
}

.ghost:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2));
  transform: translateY(-2px);
}

.ghost svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 25, 80, 0.5));
}

/* an XP push button, for the small things */
.key,
.xp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 11px;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff 0%, #f3f2ec 40%, #ebe9e0 85%, #d8d3c6 100%);
  color: #000;
  font: 12px var(--font-ui);
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}

.key,
button.xp-btn {
  cursor: pointer;
}

.key:hover,
button.xp-btn:hover {
  box-shadow:
    inset 0 0 0 1px #fff,
    inset 0 -2px 0 1px #f8b330,
    inset 0 2px 0 1px #fde7ab;
}

.key:active,
button.xp-btn:active {
  background: linear-gradient(180deg, #e3e2da 0%, #efeee7 100%);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.18);
}

.xp-btn.primary {
  box-shadow:
    inset 0 0 0 1px #cee7ff,
    inset 0 -2px 0 1px #6982ee,
    inset 0 2px 0 1px #bcd4f6;
}

.key svg {
  width: 14px;
  height: 14px;
}

/* ---- hero: sky, clouds, hills and a beige monitor --------------------------------------- */
.hero,
.outro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #123f9c 0%, #1f5cc4 30%, #4f93e4 68%, #9fccf3 100%);
}

.hero {
  padding: 40px 0 96px;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.16) 32%, transparent 62%);
}

.cloud {
  position: absolute;
  left: -420px;
  width: 300px;
  height: 127px;
  opacity: 0.5;
  animation: drift linear infinite;
  will-change: transform;
}

/* Each cloud starts part of the way across, so the sky is never empty. */
.c1 {
  top: 5%;
  animation-duration: 120s;
  animation-delay: -22s;
}

.c2 {
  top: 30%;
  width: 190px;
  height: 80px;
  opacity: 0.36;
  animation-duration: 170s;
  animation-delay: -128s;
}

.c3 {
  top: 50%;
  width: 400px;
  height: 169px;
  opacity: 0.4;
  animation-duration: 210s;
  animation-delay: -60s;
}

.c4 {
  top: 17%;
  width: 150px;
  height: 63px;
  opacity: 0.42;
  animation-duration: 140s;
  animation-delay: -100s;
}

@keyframes drift {
  to {
    transform: translateX(calc(100vw + 840px));
  }
}

.hill {
  position: absolute;
  border-radius: 50%;
}

.hill.h1 {
  left: -14%;
  bottom: -250px;
  width: 88%;
  height: 460px;
  background: radial-gradient(ellipse at 50% 0, #93d85a 0, #62b03c 46%, #3f8a28 100%);
  box-shadow: inset 0 14px 30px rgba(255, 255, 255, 0.18);
}

.hill.h2 {
  right: -20%;
  bottom: -300px;
  width: 84%;
  height: 480px;
  background: radial-gradient(ellipse at 50% 0, #7cc24a 0, #4f9a32 52%, #387d24 100%);
}

/* The hills sink a little as the page scrolls away, where a browser can do that. */
@supports (animation-timeline: scroll()) {
  .hero .hill,
  .hero .sun {
    animation: sink linear both;
    animation-timeline: scroll(root);
    animation-range: 0 1000px;
  }

  .hero .sun {
    animation-name: set;
  }
}

@keyframes sink {
  to {
    transform: translateY(90px);
  }
}

@keyframes set {
  to {
    transform: translateY(220px);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 25, 80, 0.6);
  backdrop-filter: blur(6px);
  animation: rise 0.7s var(--ease-out) both;
  transition: background 0.2s;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.24);
}

.pill b {
  padding: 1px 9px 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc558, #f08a1c);
  color: #fff;
  font: bold 11px var(--font-title);
  letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(120, 50, 0, 0.5);
  text-transform: uppercase;
}

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

.pill svg {
  flex: none;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.pill:hover svg {
  transform: translateX(3px);
}

.hero h1 {
  margin: 0 auto 18px;
  font: bold clamp(38px, 5.6vw, 68px) / 1.04 var(--font-title);
  letter-spacing: -1.2px;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(8, 36, 110, 0.6),
    0 6px 20px rgba(0, 25, 80, 0.4);
}

/* The headline arrives a word at a time. */
.w {
  display: inline-block;
  animation: word 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i) * 75ms + 150ms);
}

@keyframes word {
  from {
    opacity: 0;
    transform: translateY(0.55em) rotate(3deg);
  }
}

.year {
  color: #ffe169;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 2px 0 rgba(120, 70, 0, 0.55),
    0 6px 20px rgba(0, 25, 80, 0.4);
}

.lede {
  max-width: 58ch;
  margin: 0 auto 28px;
  font-size: clamp(16px, 1.7vw, 19px);
  text-shadow: 0 1px 2px rgba(0, 25, 80, 0.6);
  text-wrap: pretty;
}

.hero .lede {
  animation: rise 0.8s var(--ease-out) 0.75s both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero .cta {
  animation: rise 0.8s var(--ease-out) 0.9s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.go-meta {
  margin: 14px 0 0;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 25, 80, 0.6);
  animation: rise 0.8s var(--ease-out) 1s both;
}

.go-meta a {
  color: inherit;
  text-underline-offset: 3px;
}

/* ---- toasts: the app's own way of saying someone is there ------------------------------- */
.toast,
.mini-toast {
  width: 232px;
  border: 1px solid #3c5fa8;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #fafcff 0%, #e6eefb 100%);
  box-shadow: 3px 8px 24px rgba(0, 20, 70, 0.4);
  color: #000;
  font: 12px/1.4 var(--font-ui);
  text-align: left;
  text-shadow: none;
}

.toast-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-bottom: 1px solid #c3d3ec;
  color: #2b3a55;
}

.toast-bar span {
  flex: 1;
}

.toast-bar i {
  color: #5a6c8c;
  font-size: 9px;
  font-style: normal;
}

.toast-body {
  display: flex;
  gap: 10px;
  padding: 10px 10px 4px;
}

.toast-body p {
  margin: 0;
}

.toast-opt {
  display: block;
  padding: 0 10px 7px;
  color: var(--link);
  text-align: right;
}

.emoticon {
  width: 19px;
  height: 19px;
  vertical-align: -4px;
}

/* a framed display picture */
.dp {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--pane-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 60, 130, 0.25);
}

.hero-toasts {
  display: none;
}

@media (min-width: 1260px) {
  .hero-toasts {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .hero-toasts .toast {
    position: absolute;
  }

  /* They slide up from below, as a toast does, then hang in the air. */
  .t1 {
    top: 300px;
    left: max(28px, calc(50% - 650px));
    rotate: -4deg;
    animation:
      toast-in 0.9s var(--ease-spring) 1.5s both,
      float 7s ease-in-out 2.4s infinite;
  }

  .t2 {
    top: 150px;
    right: max(28px, calc(50% - 650px));
    rotate: 3deg;
    animation:
      toast-in 0.9s var(--ease-spring) 2.3s both,
      float 8s ease-in-out 3.2s infinite reverse;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.92);
  }
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

/* ---- the monitor ---------------------------------------------------------------------- */
.monitor {
  position: relative;
  max-width: 1060px;
  margin: 40px auto 0;
  padding: 18px 18px 0;
  border: 1px solid #a39d86;
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, #f4f1e6 0%, #e4dfce 55%, #d2ccb7 100%);
  box-shadow:
    inset 0 2px 0 #fffdf5,
    inset 0 -4px 8px rgba(90, 80, 50, 0.22),
    0 30px 60px rgba(0, 25, 70, 0.5);
  color: #4c4737;
  text-shadow: none;
  animation: monitor-in 1.1s var(--ease-out) 0.85s both;
}

@keyframes monitor-in {
  from {
    opacity: 0;
    transform: perspective(1400px) translateY(70px) rotateX(14deg) scale(0.94);
  }
}

/* the stand */
.monitor::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 240px;
  height: 30px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #b9b39d 0%, #d8d2bf 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

.screen {
  overflow: hidden;
  border: 3px solid #2b2a26;
  border-radius: 8px;
  background: #3a7bd5;
  box-shadow: 0 0 0 1px #9a947d;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
}

.screen iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

.monitor figcaption {
  position: relative;
  padding: 11px 34px 13px;
  font-size: 13px;
  text-wrap: balance;
}

/* the power light */
.monitor figcaption::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 16px;
  width: 9px;
  height: 9px;
  border: 1px solid #1f6a16;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6ffc4, #4dbb37 60%);
  animation: power 2.6s ease-in-out infinite;
}

@keyframes power {
  50% {
    box-shadow: 0 0 9px 2px rgba(110, 230, 90, 0.85);
  }
}

.monitor-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}

.when-live,
.demo-live .when-still {
  display: none;
}

.demo-live span.when-live {
  display: inline;
}

/* One line while the demo shows itself around, another once it is the visitor's. */
.demo-live:not(.demo-touring) span.when-touring,
.demo-live.demo-touring span.when-yours {
  display: none;
}

.demo-live .key.when-live {
  display: inline-flex;
}

@media (max-width: 639px) {
  .monitor {
    padding: 10px 10px 0;
    border-radius: 14px 14px 10px 10px;
  }

  .monitor figcaption {
    padding-inline: 12px;
  }

  .monitor figcaption::after {
    display: none;
  }
}

/* A nudge: the shake the app gives a window. */
.nudged {
  animation: nudge 0.5s linear;
}

@keyframes nudge {
  10%,
  50%,
  90% {
    transform: translate(-8px, 3px);
  }
  30%,
  70% {
    transform: translate(8px, -3px);
  }
  20%,
  60% {
    transform: translate(-5px, -2px);
  }
  40%,
  80% {
    transform: translate(5px, 2px);
  }
}

/* ---- content bands ------------------------------------------------------------------------ */
.band {
  position: relative;
  padding: 104px 0;
}

.band.soft {
  border-block: 1px solid #c9d9f0;
  background: linear-gradient(180deg, #f4f8fe 0%, #e3ecf9 100%);
}

.band.luna {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #dbe9fb 0%, #b9d3f5 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #2a5fb4;
  font: bold 13px var(--font-title);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* the green dot of someone who is online */
.eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid #1f6a16;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6ffc4, #4dbb37 60%);
}

.band h2,
.outro h2 {
  margin: 0 0 12px;
  color: var(--heading);
  font: bold clamp(28px, 4vw, 44px) / 1.12 var(--font-title);
  letter-spacing: -0.5px;
  text-align: center;
  text-wrap: balance;
}

.intro {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 17px;
  text-align: center;
  text-wrap: pretty;
}

/* ---- arriving as you scroll --------------------------------------------------------------- */
/* Only with scripts: without them nothing is hidden. --i is an element's turn among its siblings. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .stage[data-reveal] {
  transform: translateY(28px) scale(0.96);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---- four agents ------------------------------------------------------------------------ */
.agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: center;
  margin-top: 52px;
  padding: 26px 30px;
  border: 1px solid var(--pane-border-soft);
  border-radius: 16px;
  background: var(--band-bg);
  box-shadow: 0 10px 30px rgba(20, 60, 130, 0.1);
}

.agents h3,
.show-text > h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font: bold clamp(22px, 2.6vw, 30px) / 1.15 var(--font-title);
  letter-spacing: -0.3px;
}

.agents h3 {
  font-size: 22px;
}

.agents p,
.show-text > p {
  margin: 0;
  color: var(--text-soft);
  text-wrap: pretty;
}

.agent-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-cards li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 6px 12px;
  border: 1px solid var(--pane-border-soft);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  text-align: center;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s;
}

.agent-cards li:hover {
  transform: translateY(-5px) rotate(-1.5deg);
  box-shadow: 0 12px 24px rgba(20, 60, 130, 0.18);
}

.agent-cards .dp {
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
}

.agent-cards b {
  color: var(--heading);
  font: bold 15px var(--font-title);
}

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

@media (max-width: 899px) {
  .agents {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

@media (max-width: 479px) {
  .agent-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- a feature and the window that shows it ------------------------------------------------ */
.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: center;
  margin-top: 112px;
}

.show.flip .show-text {
  order: 2;
}

.show-text .eyebrow {
  justify-content: flex-start;
}

.subs {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.sub {
  position: relative;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--pane-border-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s;
}

.sub:hover {
  transform: translateX(4px);
  border-color: #96b4dd;
  box-shadow: 0 6px 18px rgba(20, 60, 130, 0.12);
}

.sub-icon {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.sub-icon svg {
  width: 24px;
  height: 24px;
}

.sub h3 {
  margin: 0 0 3px;
  color: var(--heading);
  font: bold 16px var(--font-title);
}

.sub p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.sub .key {
  margin-top: 10px;
}

@media (max-width: 899px) {
  .show {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 80px;
  }

  .show.flip .show-text {
    order: 0;
  }
}

/* The stage: a patch of desktop for a window to stand on. */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: 30px 26px;
  overflow: hidden;
  border: 1px solid #2a5fb4;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 120% 150px at 30% calc(100% + 60px), #7cc24a 0 60%, #4f9a32 61% 74%, transparent 75%),
    radial-gradient(ellipse 50% 18% at 18% 16%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 34% 12% at 84% 26%, rgba(255, 255, 255, 0.4), transparent 70%),
    linear-gradient(180deg, #2a69cf 0%, #5c9be6 60%, #9cc9f2 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 24px 50px rgba(15, 45, 110, 0.28);
}

@media (max-width: 479px) {
  .stage {
    padding: 16px 10px;
    border-radius: 14px;
  }
}

/* ---- a window of the app, drawn small ----------------------------------------------------- */
.win {
  width: 100%;
  min-width: 0;
  max-width: 500px;
  padding: 0 3px 3px;
  border: 1px solid var(--frame-dark);
  border-radius: 8px 8px 0 0;
  background: var(--frame);
  box-shadow: 3px 8px 26px rgba(0, 20, 60, 0.45);
  color: #000;
  font: 12.5px/1.45 var(--font-ui);
  text-align: left;
}

.win-title,
.xp-title {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin: 0 -3px;
  padding: 0 4px 0 7px;
  border-radius: 7px 7px 0 0;
  background: var(--luna-bar);
  color: #fff;
  font: bold 13px var(--font-title);
  text-shadow: 1px 1px 0 #0a1f7a;
}

.win-title > svg,
.xp-title > svg {
  flex: none;
}

.win-title span,
.xp-title span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-ctl {
  display: flex;
  gap: 2px;
}

.win-ctl b,
.xp-close {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: radial-gradient(circle at 85% 88%, #1d47c8 0%, #3a78ee 50%, #8db6ff 100%);
}

.win-ctl .x,
.xp-close {
  background: radial-gradient(circle at 85% 88%, #b8300f 0%, #d9502c 45%, #f0a48c 100%);
}

.win-ctl svg,
.xp-close svg {
  width: 12px;
  height: 12px;
}

.win-menu {
  display: flex;
  gap: 14px;
  padding: 3px 9px;
  background: linear-gradient(180deg, #fff 0%, #f0f5fd 100%);
  border-bottom: 1px solid #d5e0f2;
  font-size: 12px;
}

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

.bud {
  flex: none;
  width: 16px;
  height: 16px;
}

/* the contact list */
.win-list {
  max-width: 330px;
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 6px;
  background: var(--band-bg);
}

.me-text {
  display: grid;
  min-width: 0;
}

.me-text i {
  color: var(--muted);
  font-style: normal;
}

.reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 8px;
  background: #dbe7f7;
  font-size: 12px;
}

.reviews svg {
  width: 15px;
  height: 15px;
}

.find {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: var(--body-bg);
}

.find span {
  flex: 1;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid var(--pane-border);
  background: #fff;
  color: #8a94a6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.find i {
  display: grid;
}

.find svg {
  width: 17px;
  height: 17px;
}

.buddies {
  min-height: 232px;
  padding: 5px 4px 8px;
  background: #fff;
}

.grp {
  display: flex;
  gap: 5px;
  padding: 4px 6px 1px;
  color: #1b3f7a;
  font-weight: bold;
}

.grp i {
  color: #2a5fb4;
  font-size: 10px;
  font-style: normal;
}

.row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto 11px;
  align-items: center;
  gap: 5px;
  margin: 1px 0;
  padding: 2px 6px 2px 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
  transition:
    background 0.4s,
    border-color 0.4s;
}

.row b {
  overflow: hidden;
  font-weight: normal;
  text-overflow: ellipsis;
}

.row.off b {
  color: #8a8a8a;
}

.row .line {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.row .line.waiting {
  color: #8a5a00;
  font-style: italic;
}

/* the row something has just happened to */
.row.hot {
  border-color: #8eb2e3;
  background: #d6e5f9;
}

.plus {
  display: grid;
  opacity: 0;
  transition: opacity 0.3s;
}

.plus svg {
  width: 11px;
  height: 11px;
}

.row.hot .plus {
  opacity: 1;
}

.tags {
  display: inline-flex;
  gap: 3px;
}

/* a pull request tag, coloured as in the app */
.tag {
  --tag-text: #3d5578;
  --tag-top: #f8fbff;
  --tag-bottom: #e2ecf9;
  --tag-border: #a9c0e2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 15px;
  padding: 0 5px 0 4px;
  border: 1px solid var(--tag-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--tag-top) 0%, var(--tag-bottom) 100%);
  color: var(--tag-text);
  font: bold 10px/13px var(--font-ui);
  animation: pop 0.5s var(--ease-spring);
}

.tag svg {
  flex: none;
  width: 9px;
  height: 9px;
}

.tag[data-kind='merged'] {
  --tag-text: #6a3cb5;
  --tag-top: #fbf8ff;
  --tag-bottom: #ebe0fc;
  --tag-border: #bba0e6;
}

.tag[data-kind='conflict'] {
  --tag-text: #a84b00;
  --tag-top: #fffaf2;
  --tag-bottom: #ffe3c2;
  --tag-border: #eba65a;
}

.tag[data-kind='failing'] {
  --tag-text: #bd1f27;
  --tag-top: #fff7f6;
  --tag-bottom: #ffd9d5;
  --tag-border: #ec8f88;
}

.tag[data-kind='running'] {
  --tag-text: #7f5d00;
  --tag-top: #fffdf3;
  --tag-bottom: #fbedb3;
  --tag-border: #dcbd52;
}

.tag[data-kind='running'] svg {
  animation: spin 2.4s linear infinite;
}

.tag[data-kind='passed'] {
  --tag-text: #1f7228;
  --tag-top: #f6fff4;
  --tag-bottom: #d6f2cf;
  --tag-border: #89c97f;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

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

.mini-toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 212px;
  opacity: 0;
  transform: translateY(120%);
  transition:
    transform 0.6s var(--ease-spring),
    opacity 0.4s;
}

.mini-toast.on {
  opacity: 1;
  transform: none;
}

.mini-toast .dp {
  width: 36px;
  height: 36px;
}

.mini-toast .toast-body {
  padding-bottom: 10px;
}

/* a conversation */
.tools {
  display: flex;
  gap: 2px;
  padding: 5px 6px 4px;
  overflow: hidden;
  background: var(--band-bg);
  border-bottom: 1px solid var(--pane-border-soft);
}

.tools span {
  display: grid;
  justify-items: center;
  flex: none;
  min-width: 52px;
  padding: 0 3px;
  font-size: 11px;
  white-space: nowrap;
}

.tools svg {
  width: 26px;
  height: 26px;
}

.tools .end {
  margin-left: auto;
}

.to {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  overflow: hidden;
  border: solid #e3ecf9;
  border-width: 6px 6px 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--pane-border-soft);
  white-space: nowrap;
}

.log {
  height: 236px;
  margin: 0;
  padding: 8px 10px;
  overflow: hidden auto;
  border: 6px solid #e3ecf9;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--pane-border);
  scrollbar-width: none;
}

.log::-webkit-scrollbar {
  display: none;
}

.msg {
  margin-bottom: 5px;
}

/* A scene with scripts shows its lines one at a time. */
.js [data-log] .msg:not(.on) {
  display: none;
}

.msg.on {
  animation: msg-in 0.4s var(--ease-out);
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

.msg p {
  margin: 0 0 0 14px;
}

.msg code,
.invite-what {
  padding: 0 3px;
  border-radius: 2px;
  background: #eef2f8;
  color: #1e3f73;
}

.msg u,
.invite u {
  color: var(--link);
  white-space: nowrap;
}

.msg.act,
.msg.done {
  align-items: center;
  gap: 6px;
  color: #3d5578;
}

.msg.act.on,
.msg.done.on,
.pane-chat .msg.act {
  display: flex;
}

.msg.act > svg,
.msg.done > svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.msg.done {
  color: var(--muted);
}

.at {
  color: var(--link);
  font-weight: bold;
}

.invite {
  margin: 7px 0;
  padding: 8px 10px;
  border: 1px solid #b8cbe6;
  border-radius: 6px;
  background: #f5f8fd;
  box-shadow: 0 0 0 3px #e9f0fb;
}

.invite-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1b3f7a;
}

.invite-head svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.invite-what {
  margin: 6px 0 6px 22px;
  padding: 3px 8px;
  border: 1px solid #d5e0f2;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.invite-ask,
.invite-done {
  margin-left: 22px;
}

.invite-ask u {
  border-radius: 2px;
  transition:
    background 0.15s,
    color 0.15s;
}

.invite-ask u.press {
  background: #316ac5;
  color: #fff;
}

.invite-done {
  display: none;
  align-items: center;
  gap: 5px;
  color: #1f7228;
}

.invite-done svg {
  width: 13px;
  height: 13px;
}

.invite.accepted .invite-ask {
  display: none;
}

.invite.accepted .invite-done {
  display: flex;
}

.compose {
  padding: 0 6px 6px;
  background: #e3ecf9;
}

.compose-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 4px 5px;
  font-size: 12px;
}

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

.compose-bar svg,
.compose-bar img {
  width: 17px;
  height: 17px;
}

.compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 6px;
}

.input {
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid var(--pane-border);
  background: #fff;
}

.caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-left: 1px;
  background: #000;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}

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

.send {
  display: grid;
  place-items: center;
  border: 1px solid var(--pane-border);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #e4eefb 100%);
  color: #8a94a6;
  transition:
    background 0.15s,
    color 0.15s;
}

.send.ready {
  color: #000;
}

.send.press {
  background: linear-gradient(180deg, #d4e2f6 0%, #e9f0fb 100%);
}

.status {
  height: 21px;
  background: #e3ecf9;
  padding: 2px 9px;
  overflow: hidden;
  border-top: 1px solid var(--pane-border-soft);
  color: #444;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* a conversation with company */
.group-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  background: #e3ecf9;
}

.group-main .to {
  border-right-width: 0;
}

.group-main .log {
  height: 268px;
  border-right-width: 0;
}

.people {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 8px 8px 8px 9px;
}

.person {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px 7px;
  align-items: center;
  font-size: 11.5px;
}

.person .dp {
  width: 34px;
  height: 34px;
  padding: 1px;
}

.person b {
  display: block;
  overflow: hidden;
  font-weight: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person .chips {
  grid-column: 1 / -1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chip {
  display: inline-block;
  padding: 0 7px 1px;
  border: 1px solid #a9c0e2;
  border-radius: 9px;
  background: linear-gradient(180deg, #f8fbff 0%, #e2ecf9 100%);
  color: #2b3a55;
  font-size: 10.5px;
  white-space: nowrap;
}

/* a level the agents picked */
.chip.picked {
  border-color: #eba65a;
  background: linear-gradient(180deg, #fffaf2 0%, #ffe3c2 100%);
  color: #8a3d00;
  font-weight: bold;
  animation: pop 0.5s var(--ease-spring);
}

@media (max-width: 479px) {
  .group-body {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .group-main .log {
    border-right-width: 6px;
  }

  /* Five buttons are what a phone has room for. */
  .tools span:nth-child(n + 5):not(.end) {
    display: none;
  }
}

/* ---- beside the conversation: night falls for the terminal -------------------------------- */
.band.night {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0, rgba(60, 120, 240, 0.55), transparent 70%),
    linear-gradient(180deg, #081643 0%, #0b2163 55%, #123184 100%);
  color: #c9d8f7;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.8px 1.8px at 12% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 27% 64%, #cfe0ff, transparent),
    radial-gradient(2px 2px at 41% 9%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 58% 78%, #cfe0ff, transparent),
    radial-gradient(1.8px 1.8px at 69% 22%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 83% 58%, #fff, transparent),
    radial-gradient(2px 2px at 92% 12%, #cfe0ff, transparent),
    radial-gradient(1.6px 1.6px at 6% 82%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 49% 92%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 76% 88%, #cfe0ff, transparent),
    radial-gradient(1.4px 1.4px at 20% 38%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 96% 40%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 34% 96%, #cfe0ff, transparent),
    radial-gradient(1.6px 1.6px at 3% 50%, #cfe0ff, transparent);
  opacity: 0.8;
  animation: twinkle 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes twinkle {
  to {
    opacity: 0.35;
  }
}

.night .eyebrow {
  color: #9fc2ff;
}

.night h2 {
  color: #fff;
}

.night .intro {
  color: #c9d8f7;
}

.beside {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 36px;
  align-items: center;
  margin-top: 56px;
}

.pane-cards {
  display: grid;
  gap: 12px;
}

.night .sub {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.night .sub:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* the one whose tab is showing */
.night .sub.active {
  border-color: #f8b330;
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 1px #f8b330,
    0 10px 30px rgba(0, 0, 0, 0.3);
}

/* The app's icons are drawn for a light window, so each gets a little one. */
.night .sub-icon {
  border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, #dbe7f7 100%);
}

.night .sub-icon svg {
  width: 19px;
  height: 19px;
}

.night .sub h3 {
  color: #fff;
}

.night .sub p {
  color: #c9d8f7;
}

.stage.dark {
  display: block;
  padding: 26px 22px;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(ellipse 60% 40% at 80% 0, rgba(120, 170, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #0c2a78 0%, #0a1f5c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 30px 60px rgba(0, 0, 0, 0.4);
}

.win-pane {
  max-width: none;
}

.pane-body {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.4fr);
  min-height: 356px;
  background: #e3ecf9;
}

.pane-chat {
  margin: 6px 0 6px 6px;
  padding: 8px 9px;
  border: 1px solid var(--pane-border);
  background: #fff;
  font-size: 12px;
}

.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 6px;
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 4px;
  border-bottom: 1px solid #919b9c;
}

.tabs button {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-bottom: -1px;
  padding: 3px 9px 4px;
  border: 1px solid #919b9c;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #fff 0%, #ebe9dd 100%);
  color: #000;
  font: 12px var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
}

.tabs button svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.tabs button[aria-selected='true'] {
  padding-top: 5px;
  border-top: 3px solid #e68b2c;
  border-bottom-color: #fff;
  background: #fff;
}

.tab-plus {
  padding: 0 8px 3px;
  color: #3d5578;
  font-style: normal;
  font-weight: bold;
}

.panel {
  flex: 1;
  min-height: 300px;
  border: 1px solid #919b9c;
  border-top: 0;
  background: #fff;
  animation: msg-in 0.35s var(--ease-out);
}

.plan {
  padding: 14px 16px 6px;
}

.plan-h {
  display: block;
  margin-bottom: 4px;
  color: #1b3f7a;
  font: bold 16px var(--font-title);
}

.plan ol {
  margin: 0;
  padding-left: 22px;
}

.plan li {
  margin-top: 5px;
}

.plan-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px;
  padding: 10px 12px;
  border: 1px solid #b8cbe6;
  border-radius: 6px;
  background: #f5f8fd;
}

.plan-ask span:first-child {
  flex-basis: 100%;
  color: #1b3f7a;
  font-weight: bold;
}

.panel-terminal {
  background: #0f1728;
}

.term {
  height: 100%;
  min-height: 298px;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  color: #d6e2f5;
  font: 11.5px/1.55 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term .pr {
  color: #7fb4ff;
}

.term .ok {
  color: #9fe28f;
}

.term .dim {
  color: #8192ad;
}

.term .block {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #d6e2f5;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}

.chg-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-bottom: 1px solid #d5e0f2;
  background: var(--band-bg);
}

.chg-head svg {
  width: 14px;
  height: 14px;
}

.chg-head span:not(.xp-btn) {
  flex: 1;
  color: var(--muted);
}

.chg-file {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-bottom: 1px solid #eef2f8;
}

.chg-file.open {
  background: #eef4fc;
}

.chg-file i {
  color: #2a5fb4;
  font-size: 10px;
  font-style: normal;
}

.chg-file code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chg-file em {
  font: bold 11px var(--font-mono);
}

.st {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  color: #fff;
  font: bold 10px var(--font-ui);
}

.st.m {
  background: #c98a00;
}

.st.a {
  background: #2f9a22;
}

em.add {
  color: #1f7228;
}

em.del {
  color: #bd1f27;
}

/* Each line is its own block, so the line breaks between them in the markup are not lines too. */
.diff {
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid #d5e0f2;
  font: 11px/1.6 var(--font-mono);
  white-space: normal;
}

.diff span {
  display: block;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: pre;
}

.diff .hunk {
  background: #f1edff;
  color: #6a3cb5;
}

.diff .add {
  background: #e6ffec;
}

.diff .del {
  background: #ffebe9;
}

@media (max-width: 899px) {
  .beside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .stage.dark {
    padding: 14px 8px;
  }

  .pane-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .pane-chat {
    display: none;
  }

  .tabs button {
    padding-inline: 6px;
  }
}

/* ---- feature tiles ------------------------------------------------------------------------ */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.tiles li {
  position: relative;
  padding: 22px 22px 20px;
  overflow: hidden;
  border: 1px solid var(--pane-border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  box-shadow: 0 2px 6px rgba(20, 60, 130, 0.08);
}

/* Once a tile has arrived, it answers the mouse at once. */
.tiles li:not([data-reveal]) {
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s,
    border-color 0.3s;
}

.tiles li:hover {
  transform: translateY(-4px);
  border-color: #96b4dd;
  box-shadow: 0 16px 34px rgba(20, 60, 130, 0.18);
}

/* a light that follows the mouse across the tile */
.tiles li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(61, 141, 248, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tiles li:hover::before {
  opacity: 1;
}

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

.tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--pane-border-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #e3eefc 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 5px rgba(20, 60, 130, 0.14);
  transition: transform 0.4s var(--ease-spring);
}

.tiles li:hover .tile-icon {
  transform: scale(1.1) rotate(-6deg);
}

.tile-icon svg,
.tile-icon img {
  width: 28px;
  height: 28px;
}

.tiles h3 {
  margin: 14px 0 4px;
  color: var(--heading);
  font: bold 17px var(--font-title);
}

.tiles p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.tile-extra {
  position: relative;
  margin-top: 14px;
}

/* an XP menu, with the middle entry pointed at */
.tile-extra.menu {
  display: inline-block;
  padding: 2px;
  border: 1px solid #aca899;
  background: #fff;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

.tile-extra.menu span {
  display: block;
  padding: 2px 22px 3px 18px;
}

.tile-extra.menu .hot {
  background: #316ac5;
  color: #fff;
}

.tile-extra.sounds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.key.playing {
  box-shadow:
    inset 0 0 0 1px #fff,
    inset 0 -2px 0 1px #4dbb37,
    inset 0 2px 0 1px #c9f2bd;
}

.tile-extra.chips .hot {
  border-color: #eba65a;
  background: linear-gradient(180deg, #fffaf2 0%, #ffe3c2 100%);
  color: #8a3d00;
  font-weight: bold;
}

.tile-extra.chips .chip {
  padding: 1px 9px 2px;
  font-size: 11.5px;
}

.tile-extra.emos {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.emos img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s var(--ease-spring);
}

.tiles li:hover .emos img {
  animation: hop 0.6s var(--ease-out) both;
}

.emos img:nth-child(2n) {
  animation-delay: 60ms !important;
}

.emos img:nth-child(3n) {
  animation-delay: 120ms !important;
}

@keyframes hop {
  40% {
    transform: translateY(-9px) rotate(-12deg);
  }
}

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

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

  .tiles .wide {
    grid-column: auto;
  }
}

/* ---- an XP window, used for the comparison and the setup steps ---------------------------- */
.xp-window {
  max-width: 940px;
  margin: 40px auto 0;
  padding: 0 3px 3px;
  border: 1px solid var(--frame-dark);
  border-radius: 8px 8px 0 0;
  background: var(--frame);
  box-shadow: 4px 14px 40px rgba(0, 20, 60, 0.3);
}

.xp-title {
  height: 30px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14.5px;
  text-align: left;
}

.compare th {
  padding: 7px 14px;
  border-bottom: 1px solid #cbc7b8;
  background: linear-gradient(180deg, #fff 0%, #f1efe4 85%, #dedbcc 100%);
  font-size: 13px;
  font-weight: normal;
}

.compare th + th {
  padding-left: 34px;
  border-left: 1px solid #d6d2c2;
}

.compare td {
  padding: 11px 14px;
  border-top: 1px solid #e6edf8;
  vertical-align: top;
  transition: background 0.2s;
}

.compare td:first-child {
  width: 40%;
  color: var(--text-soft);
}

.compare td:last-child {
  position: relative;
  padding-left: 34px;
}

/* an arrow from the old way to the new one */
.compare td:last-child::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 17px;
  width: 9px;
  height: 9px;
  border: solid #4dbb37;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}

.compare tbody tr:hover td {
  background: #f3f8ff;
}

.compare tbody tr:hover td:last-child::before {
  transform: translateX(4px) rotate(45deg);
}

/* Folded, the table shows its first rows; the button under it shows the rest. */
.compare.folded tbody tr:nth-child(n + 11) {
  display: none;
}

.compare tbody tr.unfolding {
  animation: msg-in 0.45s var(--ease-out) both;
  animation-delay: calc(var(--i) * 28ms);
}

.compare-more {
  padding: 10px;
  border-top: 1px solid #cbc7b8;
  background: var(--xp-face);
  text-align: center;
}

.compare-more:has([hidden]) {
  display: none;
}

@media (max-width: 639px) {
  .compare thead {
    position: absolute;
    clip-path: inset(50%);
  }

  .compare tr,
  .compare td {
    display: block;
  }

  .compare td:first-child {
    width: auto;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .compare td:last-child {
    padding-top: 0;
    border-top: 0;
  }

  .compare td:last-child::before {
    top: 6px;
  }
}

/* ---- setup ---------------------------------------------------------------------------- */
.setup-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  padding: 28px 28px 24px;
  background: var(--xp-face);
  font-size: 14.5px;
}

@media (max-width: 759px) {
  .setup-body {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
}

.steps {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
}

.steps li + li {
  margin-top: 22px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #174e9f;
  border-radius: 50%;
  background: linear-gradient(180deg, #8ec5ff, #1f63c9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #fff;
  font: bold 14px var(--font-title);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* the line that joins one step to the next */
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, #7fa9e6, #c5d6ee);
}

.steps h3 {
  margin: 0 0 4px;
  font: bold 16px var(--font-title);
}

.steps p {
  margin: 0 0 10px;
}

.group {
  min-width: 0;
  margin: 0;
  padding: 6px 16px 14px;
  border: 1px solid #d0d0bf;
  border-radius: 4px;
}

.group legend {
  padding: 0 5px;
  color: #0046d5;
  font-size: 13px;
}

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

.group li + li {
  margin-top: 6px;
}

.setup-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #cbc7b8;
  background: var(--xp-face);
  box-shadow: inset 0 1px 0 #fff;
}

/* The wizard's progress bar fills once the window is in view. */
.progress {
  flex: 1;
  height: 16px;
  margin-right: 8px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  background: #fff;
}

.progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #4dbb37 0 8px, transparent 8px 10px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 2.4s steps(24) 0.5s;
}

.setup.in .progress i {
  clip-path: inset(0);
}

@media (max-width: 479px) {
  .setup-foot .xp-btn:not(.primary) {
    display: none;
  }
}

/* ---- questions: collapsible like the contact list's groups ------------------------------ */
.faq-find {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 0 12px;
  border: 1px solid var(--pane-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(20, 60, 130, 0.12);
}

.faq-find:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.faq-find svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.faq-find input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: none;
  font: 15px var(--font-ui);
}

.faq-none {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.narrow details {
  margin-top: 10px;
  border: 1px solid var(--pane-border-soft);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.narrow details:hover,
.narrow details[open] {
  border-color: #96b4dd;
  box-shadow: 0 4px 14px rgba(20, 60, 130, 0.08);
}

.narrow h2 + details,
.faq-find + .faq-none + details {
  margin-top: 18px;
}

summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--heading);
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

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

summary::before {
  content: '';
  flex: none;
  border: 5px solid transparent;
  border-left: 7px solid #2a5fb4;
  border-right-width: 0;
  transition: transform 0.25s var(--ease-out);
}

details[open] summary::before {
  transform: rotate(90deg);
}

details p {
  margin: 0;
  padding: 0 18px 16px 33px;
  color: var(--text-soft);
  font-size: 15px;
}

/* An answer opens and closes smoothly, where a browser can animate to its own height. */
@supports (interpolate-size: allow-keywords) {
  .narrow details {
    interpolate-size: allow-keywords;
  }

  .narrow details::details-content {
    height: 0;
    overflow: hidden;
    transition:
      height 0.35s var(--ease-out),
      content-visibility 0.35s allow-discrete;
  }

  .narrow details[open]::details-content {
    height: auto;
  }
}

/* ---- the way out: the same sky ------------------------------------------------------------ */
.outro {
  padding: 96px 0 150px;
}

.outro h2 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 52px);
  text-shadow:
    0 2px 0 rgba(8, 36, 110, 0.6),
    0 6px 20px rgba(0, 25, 80, 0.4);
}

.outro .cloud {
  opacity: 0.3;
}

.outro .hill.h1 {
  bottom: -330px;
}

.outro .hill.h2 {
  bottom: -370px;
}

.outro-buddies {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.outro-buddies .dp {
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(0, 25, 80, 0.4);
  animation: float 4s ease-in-out infinite;
}

.outro-buddies .dp:nth-child(2) {
  animation-delay: -1s;
}

.outro-buddies .dp:nth-child(3) {
  animation-delay: -2s;
}

.outro-buddies .dp:nth-child(4) {
  animation-delay: -3s;
}

/* ---- feedback: a dialog with a form in it ------------------------------------------------- */
.xp-window.feedback {
  max-width: 560px;
}

.feedback-form {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px 24px 16px;
  background: var(--xp-face);
  color: #000;
  font: 14px/1.45 var(--font-ui);
}

.feedback-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  min-width: 0;
  margin: 0;
  padding: 6px 12px 10px;
  border: 1px solid #c5c2b2;
  border-radius: 4px;
}

.feedback-form legend {
  padding: 0 4px;
  color: var(--heading);
}

.feedback-form .pick {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feedback-form .pick input {
  margin: 0;
}

.feedback-form .field {
  display: grid;
  gap: 4px;
}

.feedback-form textarea,
.feedback-form input[type='email'] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--pane-border);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}

.feedback-form input[type='file'] {
  max-width: 100%;
  font: inherit;
}

.feedback-form small {
  color: #555;
  font-size: 12px;
}

/* People never see this field. Bots fill it in. */
.trap {
  position: absolute;
  left: -9999px;
}

.feedback-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #cbc7b8;
  box-shadow: inset 0 1px 0 #fff;
}

.feedback-note {
  flex: 1;
  margin: 0;
}

.feedback-form.failed .feedback-note {
  color: #b3261e;
}

.feedback-form.sent .feedback-note {
  color: #1f6a16;
}

.feedback-foot .xp-btn {
  justify-content: center;
  min-width: 78px;
}

.feedback-foot .xp-btn:disabled {
  border-color: #c9c7ba;
  color: #a1a192;
  cursor: default;
}

@media (max-width: 479px) {
  .feedback-form {
    padding: 16px 14px 14px;
  }
}

/* ---- footer: the taskbar ------------------------------------------------------------------ */
.foot {
  background: #1941a5;
  color: #dbe7ff;
  font-size: 12.5px;
}

.fine {
  max-width: 76ch;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
}

.taskbar {
  display: flex;
  align-items: stretch;
  min-height: 36px;
  border-top: 1px solid #0c2f87;
  background: linear-gradient(180deg, #3f8cf3 0%, #245edb 12%, #2860e0 50%, #2357d1 88%, #1941a5 100%);
}

.start {
  display: grid;
  place-items: center;
  padding: 0 22px 2px 14px;
  border-radius: 0 12px 12px 0;
  background: radial-gradient(circle at 30% 20%, #6fcf5f 0%, #3c9a3c 45%, #2a7a2a 100%);
  box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.3);
  color: #fff;
  font: italic bold 18px var(--font-title);
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.start:hover {
  filter: brightness(1.1);
}

.taskbar nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  padding: 4px 8px;
}

.taskbar nav a {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid #1c46b8;
  border-radius: 3px;
  background: linear-gradient(180deg, #5b9bf7 0%, #3c81f3 60%, #3170e6 100%);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.taskbar nav a:hover {
  background: linear-gradient(180deg, #7db2ff 0%, #5796f8 60%, #4583ee 100%);
}

.tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 12px;
  border-left: 1px solid #0b4fb5;
  background: linear-gradient(180deg, #2fa5f5 0%, #0f8deb 50%, #0b76d6 100%);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .taskbar nav a:nth-child(n + 3) {
    display: none;
  }
}

/* ---- for anyone who would rather things stood still --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress i {
    clip-path: inset(0);
  }

  /* A conversation that doesn't play shows all of itself. */
  .log,
  .group-main .log {
    height: auto;
  }
}

/* The same without scripts. */
html:not(.js) .log {
  height: auto;
}
