/* Vaznor: monochrome, editorial, quiet. Ivory on near-black, hairline rules, one accent: light. */

:root {
  --bg: #070707;
  --bg-raised: #0d0d0e;
  --panel: #111112;
  --panel-2: #161618;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f2ec;
  --soft: #c9c6bd;
  --muted: #8d8b84;
  --faint: #55544f;
  --danger: #e5484d;
  --display: "Unbounded", "Helvetica Neue", sans-serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 68px;
  /* How far the home page window leans back and shrinks before it's scrolled into place. */
  --tilt: 24deg;
  --shrink: 0.08;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

/* Film grain over everything, so black never reads as flat. It's a small tiled image on
   its own compositor layer, so scrolling and animations never have to redraw it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background: url("/assets/grain.png") repeat;
  will-change: transform;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- navigation ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 30px;
  height: 30px;
}
.wordmark {
  font: 600 13px/1 var(--display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav .btn {
  margin-left: auto;
}
.nav .btn .short {
  display: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-primary {
  background: var(--text);
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 40px -10px rgba(244, 242, 236, 0.45);
}
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.display {
  font: 400 clamp(38px, 5.6vw, 76px) / 1.04 var(--display);
  letter-spacing: -0.04em;
  margin: 0;
}
.h2 {
  font: 400 clamp(28px, 3.5vw, 46px) / 1.08 var(--display);
  letter-spacing: -0.035em;
  margin: 0;
}
.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 34em;
  margin: 0;
}
.lede code {
  font-size: 0.86em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 1px 6px;
}
.lede strong {
  color: var(--soft);
  font-weight: 500;
}

/* ---- Discord-style demo ---------------------------------------------------------- */

.demo {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, #0f0f10, #0b0b0c);
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font: 600 14px/1 var(--sans);
}
.demo-head .hash {
  color: var(--faint);
  font: 400 20px/1 var(--sans);
}
.demo-head .topic {
  color: var(--faint);
  font-weight: 400;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.demo-feed {
  height: 404px;
  padding: 14px 18px 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  overflow: hidden;
  position: relative;
}
/* Older messages fade under a static gradient; an animated mask would repaint every frame. */
.demo-feed::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 80px;
  z-index: 1;
  background: linear-gradient(#0f0f10, rgba(15, 15, 16, 0));
  pointer-events: none;
}
.demo-input {
  margin: 0 14px 4px;
  height: 44px;
  border-radius: 10px;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font: 400 14px/1 var(--sans);
  color: var(--faint);
}
/* "Vaznor is typing…", like Discord shows under the message box. */
.demo-typing {
  height: 26px;
  padding: 2px 18px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 12px/1 var(--sans);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.demo-typing.on {
  opacity: 1;
}
.demo-typing b {
  color: var(--soft);
  font-weight: 600;
}
.demo-typing .dots {
  display: inline-flex;
  gap: 3px;
  margin-right: 2px;
}
.demo-typing .dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--soft);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.demo-typing .dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.demo-typing .dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
.demo-input .typed {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
}
.demo-input .caret {
  display: inline-block;
  width: 1.5px;
  height: 18px;
  margin-left: 1px;
  background: var(--text);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.demo-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}
.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 14px/1 var(--sans);
  color: #0a0a0a;
  background: linear-gradient(135deg, #e9e6de, #8d8b84);
}
.avatar.a2 {
  background: linear-gradient(135deg, #bdbab1, #3b3a37);
  color: #f4f2ec;
}
.avatar.a3 {
  background: linear-gradient(135deg, #6d6b66, #1d1d1c);
  color: #f4f2ec;
}
.avatar.bot {
  background: #0a0a0a;
  border: 1px solid var(--line-2);
}
.avatar.bot img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.msg-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 3px;
}
.msg-name {
  font-weight: 600;
}
.app-tag {
  font: 700 9.5px/1 var(--sans);
  letter-spacing: 0.04em;
  padding: 3px 4px 2px;
  border-radius: 4px;
  background: var(--text);
  color: #0a0a0a;
  align-self: center;
}
.msg-time {
  font-size: 11.5px;
  color: var(--faint);
}
.msg-text {
  font-size: 14.5px;
  color: var(--soft);
}
.msg-text code {
  font-size: 13px;
}
.card {
  margin-top: 4px;
  max-width: 420px;
  border-radius: 6px 10px 10px 6px;
  border-left: 3px solid var(--text);
  background: var(--panel-2);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
}
.card.warn {
  border-left-color: #8d8b84;
}
.card b {
  color: var(--text);
  font-weight: 600;
}
.card .kick {
  font-size: 11.5px;
  color: var(--muted);
}
.card .ttl {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}
.card .row-sep {
  height: 1px;
  background: var(--line-2);
  margin: 9px 0;
}
.card .sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}
.card-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.card .thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, #bdbab1, #3b3a37);
}
.card-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.dbtn {
  font: 500 13px/1 var(--sans);
  padding: 8px 14px;
  border-radius: 7px;
  background: #2b2b2e;
  color: var(--text);
}
.dbtn {
  transition: transform 0.15s ease, filter 0.15s ease;
}
.dbtn.red {
  background: var(--danger);
}
.dbtn.pressed {
  transform: scale(0.95);
  filter: brightness(0.8);
}
.emo {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  margin-right: 2px;
}
.mention {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 500;
}

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

.section {
  padding: 120px 0;
}
.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: 56px;
}

/* the mark in the nav and footer */
.brand .mark {
  width: 26px;
  height: 26px;
  color: var(--text);
  flex: none;
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plans.two {
  grid-template-columns: 3fr 2fr;
}
.plans.three {
  grid-template-columns: 1.3fr 1fr 1fr;
}
.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.plan.featured {
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 55%), var(--panel);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.plan-name {
  margin: 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.price {
  margin: 0;
  font: 400 44px/1 var(--display);
  letter-spacing: -0.03em;
}
.price span {
  font: 400 14px/1 var(--sans);
  letter-spacing: 0;
  color: var(--muted);
}
.plan-note {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}
.plan .ticks {
  align-self: start;
}
.plan .btn {
  justify-self: start;
}

/* plain data tables (limits, permissions, legal notice) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 18px;
}
.table th,
.table td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.table td:first-child {
  color: var(--text);
  white-space: nowrap;
}
.table td {
  color: var(--soft);
}
.section-tight {
  padding: 64px 0 0;
}
.h3 {
  font: 400 24px/1.2 var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font: 400 11.5px/1 var(--mono);
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}
.chip.off {
  color: var(--faint);
  text-decoration: line-through;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--soft);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1px solid var(--text);
}

/* Discord's slash command picker */
.picker {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  padding: 6px;
  font-size: 14px;
}
.picker-row {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 6px;
}
.picker-row:first-child {
  background: rgba(255, 255, 255, 0.06);
}
.picker-name {
  font-weight: 600;
  color: var(--text);
}
.picker-name i {
  font-style: normal;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 0 6px;
  margin-left: 4px;
}
.picker-desc {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.closing {
  margin: 40px 0 0;
  color: var(--muted);
}
.closing a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---- home ------------------------------------------------------------------------ */

/* The page script gives scenes --p (how far they've been scrolled through, 0 to 1) and the
   pinned opening also --q (0 while the intro shows, 1 once the window is in place). Without
   the script the defaults show everything finished. */

.center {
  text-align: center;
  justify-items: center;
}
.center .lede {
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lede a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* The opening: a pinned screen. The intro sits on top while the window lies back below it;
   scrolling stands the window up, then plays the conversation one caption at a time. */
.show {
  position: relative;
  height: 440vh;
}
.show-pin {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(18px, 3.4vh, 34px);
  padding: 0 var(--gutter);
  overflow: hidden;
}
.show-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30vh;
  width: 1200px;
  height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}
.show-intro {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(28px, 7vh, 80px) var(--gutter) 0;
  text-align: center;
  opacity: calc(1 - var(--q, 0) * 1.8);
  transform: translateY(calc(var(--q, 0) * -70px)) scale(calc(1 - var(--q, 0) * 0.05));
}
.show.past-intro .show-intro {
  pointer-events: none;
  visibility: hidden;
}
.show-intro > * {
  animation: intro-in 1.1s var(--ease) both;
}
.show-intro > :nth-child(n + 3) {
  animation-delay: 0.12s;
}
@keyframes intro-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
.show-mark .mark {
  display: block;
  width: 46px;
  height: 46px;
  color: var(--text);
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.35));
}
.show-title {
  margin: 0;
  max-width: 9.5em;
  font: 400 clamp(40px, 7.6vw, 112px) / 0.98 var(--display);
  letter-spacing: -0.055em;
}
.show-lede {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.5;
}
.show-lede code,
.modules .lede code {
  font-size: 0.86em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 1px 6px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.show-device {
  position: relative;
  width: min(1040px, 100%);
  justify-self: center;
  perspective: 1600px;
  transform: translateY(calc((1 - var(--q, 0)) * min(49svh, 500px)));
  animation: device-in 1.4s var(--ease) 0.15s both;
}
@keyframes device-in {
  from {
    opacity: 0;
    translate: 0 60px;
  }
}
/* Light pooling under the window as it stands up. */
.show-device::before {
  content: "";
  position: absolute;
  inset: 12% -8% -18%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent);
  opacity: var(--q, 0);
  pointer-events: none;
}
.show .demo {
  transform: rotateX(calc((1 - var(--q, 0)) * var(--tilt))) scale(calc(1 - (1 - var(--q, 0)) * var(--shrink)));
  transform-origin: 50% 0;
}
.show-foot {
  display: grid;
  justify-items: center;
  gap: 18px;
  opacity: calc((var(--q, 0) - 0.7) * 3.4);
}
.show-captions {
  display: grid;
  max-width: 40em;
}
.cap {
  grid-area: 1 / 1;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: clamp(15.5px, 1.35vw, 19px);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.cap b {
  color: var(--text);
  font-weight: 600;
}
.cap.on {
  opacity: 1;
  transform: none;
}
.show-dots {
  display: flex;
  gap: 7px;
}
.show-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--faint);
  transition: width 0.5s var(--ease), background 0.3s;
}
.show-dots i.on {
  width: 24px;
  background: var(--text);
}

/* The window itself: Discord with its server and channel lists. */
.show .demo {
  display: grid;
  grid-template-columns: 66px 210px minmax(0, 1fr);
  border-radius: 14px;
}
.demo-servers {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 12px 0;
  background: #080808;
  border-right: 1px solid var(--line);
}
.srv {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 14px/1 var(--sans);
  color: var(--soft);
  background: var(--panel-2);
}
.srv.on {
  position: relative;
  border-radius: 14px;
  background: var(--text);
  color: #0a0a0a;
  font: italic 700 11px/1 var(--display);
  letter-spacing: -0.04em;
}
/* Discord's marker for the open server: a pill against the left edge of the list. */
.srv.on::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 36px;
  margin-top: -18px;
  border-radius: 0 4px 4px 0;
  background: var(--text);
}
.srv.add {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}
.srv-sep {
  width: 28px;
  height: 1px;
  background: var(--line-2);
}
.demo-channels {
  display: flex;
  flex-direction: column;
  background: #0c0c0d;
  border-right: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.demo-guild {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.demo-group {
  margin: 18px 16px 6px;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.ch {
  margin: 1px 8px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.ch::before {
  content: "#";
  margin-right: 8px;
  color: var(--faint);
  font-size: 17px;
}
.ch.voice::before {
  content: "◖";
  font-size: 12px;
}
.ch.on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.demo-me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #090909;
  color: var(--text);
  font-weight: 600;
}
.demo-me .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.demo-main {
  position: relative;
  min-width: 0;
}
.show .demo-feed {
  height: clamp(200px, calc(100svh - 420px), 430px);
}
.demo-head .demo-channel {
  transition: opacity 0.25s;
}
.demo-picker {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 80px;
  z-index: 2;
  box-shadow: 0 -16px 50px -10px rgba(0, 0, 0, 0.8);
}
.demo-picker .picker-row:first-child {
  background: none;
}
.demo-picker .picker-row.on {
  background: rgba(255, 255, 255, 0.07);
}
.picker-row[hidden] {
  display: none;
}
.demo-input .opts:empty {
  display: none;
}
.opt {
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: 400 13px/1 var(--mono);
}
.opt i {
  font-style: normal;
  color: var(--muted);
  margin-right: 6px;
}
/* "Mira used /timeout add", which Discord shows over an answer to a slash command. */
.msg-used {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 48px;
  margin-bottom: -4px;
  font-size: 12.5px;
  color: var(--muted);
}
.msg-used::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 24px;
  height: 12px;
  border: 2px solid var(--line-2);
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 7px;
}
.msg-used b {
  color: var(--soft);
  font-weight: 600;
}
.used-avatar {
  width: 16px;
  height: 16px;
}
.used-cmd {
  color: var(--text);
}
.plain {
  font-size: 14.5px;
  color: var(--soft);
}
.plain code,
.card code {
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
}

/* A paragraph that lights up word by word as it's read. */
.statement {
  padding: 16vh 0 18vh;
}
.statement-text {
  margin: 0 auto;
  max-width: 21em;
  font: 600 clamp(30px, 4.6vw, 66px) / 1.12 var(--sans);
  letter-spacing: -0.035em;
}
.statement-text span {
  opacity: calc(0.16 + 0.84 * clamp(0, calc((var(--p, 1) - 0.2) / 0.36 * var(--n, 1) - var(--i, 0)), 1));
}

/* Modules: a row of tiles to swipe through. */
.modules {
  overflow: hidden;
}
.rail {
  --inset: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--inset);
  padding: 6px var(--inset) 28px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail:focus-visible {
  outline-offset: -2px;
}
.rail-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  width: max-content;
}
.tile {
  flex: none;
  width: min(372px, 80vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 236px 1fr;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-raised);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.6s var(--ease);
}
.tile:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}
.tile-shot {
  display: flex;
  align-items: center;
  padding: 24px 22px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%), #0e0e0f;
  border-bottom: 1px solid var(--line);
}
.tile-shot .msg {
  width: 100%;
}
.tile-shot .card {
  max-width: none;
}
.tile-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 26px 28px;
}
.tile-name {
  margin: 0;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile-title {
  margin: 0;
  font: 400 25px/1.16 var(--display);
  letter-spacing: -0.04em;
}
.tile-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.tile-link {
  justify-self: start;
  max-width: 100%;
  margin-top: 8px;
}
.tile-link code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  transition: border-color 0.2s, color 0.2s;
}
.tile-link:hover code {
  color: var(--text);
  border-color: var(--line-2);
}
.ttt {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 4px;
}
.ttt i {
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #2b2b2e;
  font: 600 13px/1 var(--sans);
  font-style: normal;
  color: var(--text);
}
.rail-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rail-all {
  margin-right: auto;
  color: var(--muted);
  font-size: 15px;
}
.rail-all:hover {
  color: var(--text);
}
.rail-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.rail-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}
.rail-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.rail-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stats cards: the big one stands up as it comes in, the rest sit underneath. */
.stage {
  position: relative;
  padding: 0 var(--gutter);
  perspective: 1800px;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 5% 10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent);
  pointer-events: none;
}
.stage-shot {
  --in: min(1, var(--p, 1) * 2.8);
  position: relative;
  margin: 0 auto;
  max-width: 960px;
  display: grid;
  justify-items: center;
  gap: 18px;
  transform: rotateX(calc((1 - var(--in)) * var(--tilt))) scale(calc(1 - (1 - var(--in)) * var(--shrink) * 1.6));
  transform-origin: 50% 100%;
}
.stage-shot img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.stage-shot img {
  border-radius: 24px;
}
.stage-shot figcaption code,
.shot figcaption code {
  font-size: 12.5px;
  color: var(--soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 10px;
  border-radius: 8px;
}
.trio {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.shot {
  margin: 0;
  display: grid;
  gap: 14px;
}

/* Permissions: every one it asks for lights up; Administrator gets crossed out. */
.cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 56px auto 0;
}
.cloud .chip {
  padding: 8px 13px;
  font-size: 12.5px;
  opacity: calc(0.14 + 0.86 * clamp(0, calc((var(--p, 1) - 0.18) / 0.3 * var(--n, 1) - var(--i, 0)), 1));
}
.cloud .chip.off {
  position: relative;
  opacity: 1;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-color: rgba(229, 72, 77, 0.45);
}
.cloud .chip.off::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  background: var(--danger);
  transform: scaleX(clamp(0, calc((var(--p, 1) - 0.35) * 5), 1));
  transform-origin: left;
}

/* Price: one big number. */
.buy-head {
  display: grid;
  gap: 8px;
  margin-bottom: 64px;
}
.buy-price {
  margin: 0;
  font: 300 clamp(110px, 19vw, 250px) / 0.9 var(--display);
  letter-spacing: -0.07em;
  text-shadow: 0 0 90px rgba(255, 255, 255, 0.16);
}
.buy-once {
  margin: 0 0 14px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.buy .hero-actions {
  margin-top: 18px;
}
.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.extra {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 30px 30px 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-raised);
  transition: border-color 0.3s, transform 0.6s var(--ease);
}
.extra:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.extra .arrow {
  display: inline-block;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.extra:hover .arrow {
  color: var(--text);
  transform: translateX(5px);
}
.closing.center {
  margin: 48px auto 0;
}

@media (max-width: 1000px) {
  .show .demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-servers,
  .demo-channels {
    display: none;
  }
  .trio {
    grid-template-columns: 1fr 1fr;
  }
  .trio .shot:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .show {
    height: 460vh;
  }
  .show-intro {
    gap: 18px;
  }
  .show-mark .mark {
    width: 38px;
    height: 38px;
  }
  .show .demo-feed {
    height: clamp(190px, calc(100svh - 470px), 380px);
    padding: 12px 12px 6px;
  }
  .demo-picker {
    left: 10px;
    right: 10px;
  }
  .trio {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .extras {
    grid-template-columns: 1fr;
  }
  .stage-shot img {
    border-radius: 14px;
  }
  .tile {
    grid-template-rows: 210px 1fr;
  }
  .statement {
    padding: 10vh 0 12vh;
  }
  .rail-all {
    font-size: 14px;
  }
}

/* Phones and tablets: the same page with less for the graphics chip to redo on every frame of
   a scroll. A live blur behind the nav, a full-screen grain layer, layers that change size
   (each new size is redrawn) and very wide soft shadows are what make phones stutter. */
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  :root {
    --shrink: 0;
  }
  body::before {
    display: none;
  }
  .nav {
    background: rgba(7, 7, 7, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Drawn once and moved, instead of repainted at each step of the scroll. */
  .show-intro {
    transform: translateY(calc(var(--q, 0) * -70px));
    will-change: transform, opacity;
  }
  .show-device {
    will-change: transform;
  }
  .show-device::before,
  .stage::before {
    display: none;
  }
  .show-mark .mark {
    filter: none;
  }
  .demo {
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  }
  .stage-shot img,
  .shot img {
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
  }
}

/* No script: no pinning, everything shown in order. */
.no-js .show {
  height: auto;
}
.no-js .show-pin {
  position: static;
  height: auto;
  padding: 0 var(--gutter) 40px;
}
.no-js .show-intro {
  position: static;
  padding-bottom: 56px;
}
.no-js .show-captions {
  gap: 14px;
}
.no-js .cap {
  grid-area: auto;
  opacity: 1;
  transform: none;
}
.no-js .show-dots {
  display: none;
}
.no-js .show-device,
.no-js .show-foot {
  --q: 1;
}

/* ---- footer ---------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  margin: 0 0 14px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer a:hover {
  color: var(--text);
}
.footer-note {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--faint);
}

/* ---- page headers (commands, docs, legal) --------------------------------------- */

.page-head {
  padding-top: 76px;
  padding-bottom: 40px;
  display: grid;
  gap: 18px;
}
.page-head .display {
  font-size: clamp(44px, 6.2vw, 80px);
}

/* ---- commands -------------------------------------------------------------------- */

.toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: rgba(7, 7, 7, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 52px;
  padding: 0 64px 0 46px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-raised);
  color: var(--text);
  font: 400 16px/1 var(--sans);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search input::placeholder {
  color: var(--faint);
}
.search input:focus {
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--panel);
}
.search kbd {
  position: absolute;
  right: 14px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px 8px;
}
.cmd-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-top: 36px;
  padding-bottom: 120px;
}
.module-nav {
  position: sticky;
  top: 162px;
  align-self: start;
  display: grid;
  gap: 2px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  scrollbar-width: none;
}
.module-nav button {
  all: unset;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.module-nav button span:last-child {
  font: 400 12px/1.6 var(--mono);
  color: var(--faint);
}
.module-nav button:hover {
  color: var(--text);
}
.module-nav button[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.module-nav button:focus-visible {
  outline: 2px solid var(--text);
}
.result-note {
  font: 400 13px/1 var(--mono);
  color: var(--muted);
  margin: 0 0 8px;
  min-height: 13px;
}
.cmd-group {
  scroll-margin-top: 170px;
}
.cmd-group > h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 40px 0 6px;
  font: 400 24px/1.15 var(--display);
  letter-spacing: -0.03em;
}
.cmd-group > h2 span {
  font: 400 12px/1 var(--mono);
  color: var(--faint);
}
.cmd-group:first-of-type > h2 {
  margin-top: 8px;
}
.cmd {
  position: relative;
  padding: 22px 0 22px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 170px;
}
.cmd:target {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 70%);
}
.cmd-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-right: 44px;
}
.cmd-name {
  font: 500 16px/1.3 var(--mono);
  color: var(--text);
}
.cmd-usage {
  font: 400 14px/1.3 var(--mono);
  color: var(--muted);
}
.perm {
  margin-left: auto;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
}
.cmd p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 15px;
  max-width: 60em;
}
.cmd p code,
.prose code,
.sub-desc code {
  font-size: 0.88em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 1px 5px;
}
.aliases {
  margin-top: 8px;
  font: 400 12.5px/1.5 var(--mono);
  color: var(--faint);
}
.aliases b {
  color: var(--muted);
  font-weight: 400;
}
.copy {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.cmd:hover .copy,
.copy:focus-visible {
  opacity: 1;
}
.copy:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.copy svg {
  width: 16px;
  height: 16px;
}
.copy.done {
  color: var(--text);
  opacity: 1;
}
details.subs {
  margin-top: 12px;
}
details.subs summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 13px/1 var(--mono);
  color: var(--muted);
  padding: 6px 0;
}
details.subs summary::-webkit-details-marker {
  display: none;
}
details.subs summary::before {
  content: "+";
  width: 14px;
  color: var(--text);
}
details.subs[open] summary::before {
  content: "−";
}
details.subs summary:hover {
  color: var(--text);
}
.sub-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.sub-list li {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 4px 24px;
}
.sub-syntax {
  font: 400 13px/1.5 var(--mono);
  color: var(--text);
  overflow-wrap: anywhere;
}
.sub-syntax i {
  font-style: normal;
  color: var(--muted);
}
.sub-desc {
  color: var(--muted);
  font-size: 14px;
}
.empty {
  display: none;
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}
.empty.show {
  display: block;
}
[hidden] {
  display: none !important;
}

/* ---- docs ------------------------------------------------------------------------ */

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding-top: 24px;
  padding-bottom: 120px;
}
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.toc a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  border-left: 1px solid transparent;
}
.toc a:hover {
  color: var(--text);
}
.toc a.on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.toc .toc-label {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 18px 12px 8px;
}
.prose {
  max-width: 760px;
  color: var(--soft);
}
.prose section {
  padding-bottom: 28px;
}
.prose h2 {
  font: 400 30px/1.1 var(--display);
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 40px 0 16px;
  scroll-margin-top: 96px;
}
.prose section:first-child h2 {
  margin-top: 0;
}
.prose h3 {
  font: 600 17px/1.3 var(--sans);
  color: var(--text);
  margin: 34px 0 10px;
  scroll-margin-top: 96px;
}
.prose p,
.prose li {
  font-size: 16px;
}
.prose a {
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
}
.prose a:hover {
  border-color: var(--text);
}
.prose ol,
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin: 6px 0;
}
.prose pre {
  margin: 14px 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
}
.prose pre .c {
  color: var(--faint);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 14.5px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.prose td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.callout {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  margin: 18px 0;
}
.updated {
  font: 400 13px/1 var(--mono);
  color: var(--faint);
}
.legal {
  max-width: 720px;
  padding-bottom: 120px;
}

/* ---- embed builder ------------------------------------------------------------------ */

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 96px;
}
.builder-editor,
.builder-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 22px;
}
.builder-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 88px;
}
/* Grid items size to their content by default; long one-line commands must not widen the page. */
.builder-editor,
.builder-side,
.builder-panel {
  min-width: 0;
}
.builder-noscript {
  grid-column: 1 / -1;
  color: var(--soft);
}
.builder-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.builder-start > span {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.builder .chip {
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.builder .chip:hover {
  border-color: var(--line-2);
  color: var(--text);
}
.field-label {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--soft);
}
.field-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.field-count {
  font: 12px/1.4 var(--mono);
  color: var(--faint);
}
.builder input[type="text"],
.builder input[type="url"],
.builder input:not([type]),
.builder textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0a0a0b;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  padding: 10px 12px;
  resize: vertical;
  transition: border-color 0.15s;
}
.builder textarea {
  min-height: 46px;
}
.builder input:focus,
.builder textarea:focus {
  outline: none;
  border-color: var(--soft);
}
.builder input::placeholder,
.builder textarea::placeholder {
  color: var(--faint);
}
.builder-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-row input[type="color"] {
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.color-row input[type="text"] {
  max-width: 150px;
  font-family: var(--mono);
}
.builder .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--soft);
  cursor: pointer;
}
.builder .check input {
  accent-color: var(--text);
  width: 16px;
  height: 16px;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font: 13px var(--sans);
  cursor: pointer;
  padding: 4px;
}
.link-btn:hover {
  color: var(--text);
}
.builder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0a0b;
}
.builder-tabs [role="tab"] {
  flex: 1;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: 500 14px var(--sans);
  padding: 9px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.builder-tabs [role="tab"]:hover {
  color: var(--text);
}
.builder-tabs [role="tab"][aria-selected="true"] {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.builder-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 0;
  margin-bottom: 12px;
  background: var(--panel);
}
.builder-row-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.builder-row-head span:first-child {
  flex: 1;
}
.builder-row-head .check {
  font: 13px var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.builder-hint,
.builder-note {
  color: var(--muted);
  font-size: 13px;
}
.builder-import {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.builder-import summary {
  cursor: pointer;
  color: var(--soft);
  font-size: 14px;
}
.builder-import textarea {
  margin: 12px 0;
  font-family: var(--mono);
  font-size: 13px;
}
.builder-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.builder-panel-head .h3 {
  margin: 0;
}
.builder-script {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0a0b;
  padding: 12px 14px;
  font: 13px/1.6 var(--mono);
  color: var(--soft);
}
.builder-problems {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--danger);
  font-size: 13px;
}
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.builder-use {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14px;
  color: var(--soft);
}
.builder-use p {
  margin: 0 0 8px;
}
.builder-use code[data-use] {
  display: block;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0a0a0b;
  border: 1px solid var(--line);
  font: 12px/1.5 var(--mono);
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.var-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.var-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--soft);
  font: 12px/1 var(--mono);
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.var-chip:hover {
  border-color: var(--line-2);
  color: var(--text);
}

/* The Discord preview, in Discord's own colours and sizes. */
.dc {
  display: flex;
  gap: 16px;
  border-radius: 10px;
  background: #313338;
  padding: 16px 16px 18px;
  color: #dbdee1;
  font: 400 15px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}
.dc-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.dc-message {
  min-width: 0;
  flex: 1;
}
.dc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.dc-name {
  color: #f2f3f5;
  font-weight: 600;
}
.dc-app {
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  padding: 0 4px;
  border-radius: 3px;
}
.dc-time {
  color: #949ba4;
  font-size: 12px;
}
.dc-content {
  word-wrap: break-word;
}
.dc-empty {
  color: #949ba4;
  font-style: italic;
}
.dc a {
  color: #00a8fc;
  text-decoration: none;
}
.dc a:hover {
  text-decoration: underline;
}
.dc code {
  background: #1e1f22;
  border-radius: 3px;
  padding: 0 3px;
  font: 85% var(--mono);
}
.dc-codeblock {
  display: block;
  margin: 4px 0;
  padding: 7px;
  background: #1e1f22;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  font: 13px/1.4 var(--mono);
  white-space: pre-wrap;
}
.dc-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 500;
}
.dc-spoiler {
  background: #1e1f22;
  border-radius: 3px;
  padding: 0 2px;
}
.dc-quote {
  display: block;
  border-left: 4px solid #4e5058;
  padding-left: 12px;
}
.dc-h1,
.dc-h2,
.dc-h3 {
  display: block;
  color: #f2f3f5;
  font-weight: 700;
  margin: 8px 0 4px;
  line-height: 1.25;
}
.dc-h1 {
  font-size: 24px;
}
.dc-h2 {
  font-size: 20px;
}
.dc-h3 {
  font-size: 16px;
}
.dc-sub {
  display: block;
  color: #949ba4;
  font-size: 12px;
}
.dc-embed {
  max-width: 520px;
  margin-top: 4px;
  border-left: 4px solid #1e1f22;
  border-radius: 4px;
  background: #2b2d31;
  padding: 8px 16px 16px 12px;
}
.dc-embed-grid.has-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 16px;
}
.dc-embed-body > * {
  margin-top: 8px;
}
.dc-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f2f3f5;
}
.dc-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.dc-author a {
  color: #f2f3f5;
}
.dc-title {
  font-size: 16px;
  font-weight: 600;
  color: #f2f3f5;
}
.dc-description {
  font-size: 14px;
}
.dc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dc-field {
  grid-column: 1 / -1;
  font-size: 14px;
}
.dc-field.inline {
  grid-column: auto;
}
.dc-field-name {
  font-weight: 600;
  color: #f2f3f5;
  margin-bottom: 2px;
}
.dc-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 8px;
}
.dc-image {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
  margin-top: 16px;
}
.dc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #dbdee1;
}
.dc-footer img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.dc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dc .dc-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  background: #4e5058;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.dc .dc-button:hover {
  background: #6d6f78;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .builder {
    grid-template-columns: 1fr;
  }
  .builder-side {
    position: static;
  }

}

@media (max-width: 560px) {
  .builder-editor,
  .builder-panel {
    padding: 16px;
  }
  .builder-pair {
    grid-template-columns: 1fr;
  }
  .builder-tabs [role="tab"] {
    flex: 1 0 30%;
  }

}

/* ---- responsive ------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .plans,
  .plans.two,
  .plans.three {
    grid-template-columns: 1fr;
  }
  .cmd-layout,
  .docs-layout {
    /* minmax(0, …) lets wide code blocks scroll instead of widening the page. */
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .module-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    max-height: none;
    gap: 6px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
  }
  .module-nav button {
    flex: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
  }
  .toc {
    display: none;
  }

}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --nav-h: 60px;
  }
  .table td:first-child {
    white-space: normal;
  }
  /* Support, the embed builder and pricing (the button goes there) stay in the footer; the
     bar keeps what fits. */
  .nav-links a[href="/support/"],
  .nav-links a[href="/embed/"],
  .nav-links a[href="/pricing/"] {
    display: none;
  }
  .nav .wrap {
    gap: 12px;
  }
  .nav-links {
    margin-left: 0;
  }
  .nav-links a {
    padding: 8px 8px;
  }
  .nav .wordmark {
    display: none;
  }
  .card {
    max-width: none;
  }
  .section {
    padding: 84px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .footer-note {
    flex-direction: column;
  }
  .sub-list li {
    grid-template-columns: 1fr;
  }
  .prose table {
    display: block;
    overflow-x: auto;
  }
  .perm {
    margin-left: 0;
  }
  .copy {
    opacity: 1;
  }
  .page-head {
    padding-top: 48px;
  }

}

@media (max-width: 420px) {
  .nav .btn .long {
    display: none;
  }
  .nav .btn .short {
    display: inline;
  }

}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tilt: 0deg;
    --shrink: 0;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

}
