/* XAICG website.
 *
 * The page follows the product's design system: a deep near-black canvas
 * holding white type and one accent, yellow (#FCD535), which carries every
 * primary action, the wordmark and the claims worth shouting. Cards are flat
 * blocks a step lighter than the canvas; depth comes from that contrast,
 * not from shadows or gradients. Corners are tight (6 to 12px), headings
 * are bold, every number is set in its own typeface, and the page closes on
 * a light footer. Sections that are about doing something (the steps, the
 * prices) flip to a light surface with the same yellow buttons.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --primary: #fcd535;
  --primary-active: #f0b90b;
  --ink: #181a20;
  --body: #eaecef;
  --muted: #707a8a;
  --muted-strong: #929aa5;
  --hairline-dark: #2b3139;
  --hairline-light: #eaecef;
  --border-strong: #cdd1d6;
  --canvas-dark: #0b0e11;
  --card-dark: #1e2329;
  --elevated-dark: #2b3139;
  --canvas-light: #ffffff;
  --soft-light: #fafafa;
  --strong-light: #f5f5f5;
  --on-primary: #181a20;
  --on-dark: #ffffff;
  --up: #0ecb81;
  --down: #f6465d;
  --info: #3b82f6;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 9999px;

  --section: 80px;
  --focus: 0 0 0 2px rgba(59, 130, 246, 0.5);
  /* Apple's own typefaces wherever the device has them; Inter stands in elsewhere. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  /* Every number is set in this face. */
  --num: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas-dark);
  color: var(--body);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--on-dark);
  text-wrap: balance;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
b,
strong {
  font-weight: 600;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-sm);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: var(--r-md);
  background: var(--primary);
  color: var(--on-primary);
}
.skip:focus {
  left: 8px;
}
.wrap {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 848px;
}
.num {
  font-family: var(--num);
  font-weight: 500;
}

/* ---------- type ---------- */
.display-mega {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}
.display-mega em {
  color: var(--primary);
  font-style: normal;
}
.display-lg {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.display-md {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
/* The headline worth shouting: yellow, upper case. */
.claim {
  color: var(--primary) !important;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.lead {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 18px;
}

/* ---------- small label above a heading ---------- */
.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--card-dark);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--card-dark);
  color: var(--on-dark);
  font: 600 14px/1 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:hover {
  background: var(--elevated-dark);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}
/* The one primary action: black on yellow, on every surface. */
.btn.primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn.primary:hover,
.btn.primary:active {
  background: var(--primary-active);
}
/* The pill is reserved for "this is THE action". */
.btn.lg {
  min-height: 48px;
  padding: 14px 32px;
  font-size: 16px;
}
.btn.primary.lg {
  border-radius: var(--r-pill);
}
.btn.pending,
.btn.pending:hover {
  cursor: default;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- top nav ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.scrolled {
  border-bottom-color: var(--hairline-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}
.nav nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav nav a {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav nav a:hover,
.nav nav a.current {
  color: var(--primary);
}
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--card-dark);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform 0.2s ease;
}
.top.open .menu-btn span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.top.open .menu-btn span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.hero .lead {
  max-width: 520px;
  color: var(--body);
  font-size: 20px;
}
.fine {
  margin-top: 20px;
  color: var(--muted-strong);
  font-size: 14px;
}
.fine .num {
  color: var(--primary);
}

/* ---------- the live demo: a card, like a markets table ---------- */
.stack {
  position: relative;
  padding: 0 0 84px;
}
.ui-card {
  border-radius: var(--r-xl);
  background: var(--card-dark);
}
.demo {
  padding: 24px;
  color: var(--on-dark);
  font-size: 14px;
  line-height: 1.5;
}
.demo-tones {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--hairline-dark);
}
.demo-tones button {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font: 600 14px/1.4 var(--sans);
  cursor: pointer;
  transition: color 0.15s ease;
}
.demo-tones button:hover {
  color: var(--on-dark);
}
.demo-tones button[aria-pressed="true"] {
  color: var(--on-dark);
}
.demo-tones button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
}
.demo-post {
  display: flex;
  gap: 12px;
}
.demo-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--elevated-dark);
  color: var(--on-dark);
  font-weight: 600;
}
.demo-body {
  flex: 1;
  min-width: 0;
}
.demo-who b {
  color: var(--on-dark);
}
.demo-who span {
  color: var(--muted-strong);
}
.demo-text {
  margin-top: 2px;
  color: var(--body);
  font-size: 15px;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.demo-stats {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font: 500 13px/1.4 var(--num);
}
.demo-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.demo-ai:hover {
  background: var(--primary-active);
}
.demo-ai:active {
  transform: scale(0.97);
}
.demo-ai svg {
  width: 13px;
  height: 13px;
}
.demo.busy .demo-ai svg {
  animation: spin 0.8s linear infinite;
}
.demo-reply {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--canvas-dark);
}
.demo-label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 500;
}
.demo-draft {
  min-height: 3.1em;
  margin-top: 6px;
  color: var(--on-dark);
  font-size: 17px;
  line-height: 1.5;
}
.demo.typing .demo-draft::after,
.demo.busy .demo-draft::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--primary);
  vertical-align: text-bottom;
  animation: blink 0.9s steps(2) infinite;
}
.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-dark);
  color: var(--muted-strong);
  font-size: 13px;
}
.demo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-again,
.demo-send {
  min-height: 28px;
  padding: 6px 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--elevated-dark);
  color: var(--on-dark);
  font: 600 13px/1.2 var(--sans);
}
.demo-again {
  cursor: pointer;
  transition: background 0.15s ease;
}
.demo-again:hover {
  background: #363d47;
}
.demo-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
/* Two small cards sit over the demo's corners. */
.mini {
  position: absolute;
  right: -16px;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: 200px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--elevated-dark);
  color: var(--muted-strong);
  font-size: 13px;
}
.mini-label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 500;
}
.mini-value b {
  color: var(--primary);
  font: 700 28px/1.1 var(--num);
}
.mini-bar {
  display: block;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--canvas-dark);
  overflow: hidden;
}
.mini-bar i {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.4s ease;
}
.toast {
  position: absolute;
  left: 0;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-lg);
  background: var(--elevated-dark);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.toast.show,
html:not(.js) .toast {
  opacity: 1;
  transform: none;
}

/* ---------- stat callouts: yellow numbers, nothing else ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 64px 0 0;
  padding: 40px 0 var(--section);
  border-top: 1px solid var(--hairline-dark);
}
.stat dt {
  color: var(--primary);
  font: 700 clamp(32px, 3.4vw, 40px) / 1.1 var(--num);
  letter-spacing: -0.3px;
}
.stat dt .num {
  font-weight: 700;
}
.stat dd {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
}

/* ---------- bands ---------- */
.band {
  padding: var(--section) 0;
}
.band.alt {
  background: var(--ink);
}
/* Sections about doing something sit on a light surface. */
.band.light {
  background: var(--canvas-light);
  color: var(--muted);
}
.band.light h2,
.band.light h3 {
  color: var(--ink);
}
.band.light .lead {
  color: var(--muted);
}
.band.light .badge {
  background: var(--strong-light);
  color: var(--ink);
}
.band.light a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
}
.band-head {
  margin-bottom: 40px;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--card-dark);
  color: var(--muted-strong);
  font-size: 14px;
  transition: background 0.15s ease, opacity 0.5s ease, transform 0.5s ease;
}
.card:hover {
  background: #232930;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.card p {
  margin-top: 8px;
}
.band.alt .card {
  background: var(--card-dark);
}
.plate-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: var(--r-lg);
  background: var(--elevated-dark);
  color: var(--on-dark);
}
.plate-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Step cards live on the light surface. */
.band.light .card {
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  background: var(--canvas-light);
  color: var(--muted);
}
.band.light .card:hover {
  background: var(--soft-light);
}
.band.light .card h3 {
  font-size: 16px;
  line-height: 1.4;
}
.plate-box.step {
  background: var(--primary);
  color: var(--on-primary);
  font: 700 16px/1 var(--num);
}

/* ---------- split sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 64px;
}
.split.reverse > .split-text {
  order: 2;
}
.split-text p {
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 16px;
}
.ticks {
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--body);
  font-size: 14px;
}
.ticks li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--hairline-dark);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fcd535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--card-dark);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.frame.dark {
  padding: 8px;
}
.frame.dark img {
  border-radius: var(--r-lg);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
}
.pair .frame {
  max-height: 560px;
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  background: var(--canvas-light);
  color: var(--muted);
  transition: border-color 0.15s ease, opacity 0.5s ease, transform 0.5s ease;
}
.plan:hover {
  border-color: var(--border-strong);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.plan h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.plan-tag {
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.plan-price {
  margin-top: 12px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
}
.plan-price strong {
  color: var(--ink);
  font: 700 40px/1.1 var(--num);
  letter-spacing: -0.3px;
}
.plan-quiet {
  line-height: 48px;
}
.plan ul {
  flex: 1;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 14px;
}
.plan li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline-light);
}
.plan .btn {
  width: 100%;
  border: 1px solid var(--hairline-light);
  background: var(--canvas-light);
  color: var(--ink);
}
.plan .btn:hover {
  background: var(--strong-light);
}
/* The chosen tier is the dark card on the light surface, with the yellow button. */
.plan.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--muted-strong);
}
.plan.featured h3,
.plan.featured .plan-price strong {
  color: var(--on-dark);
}
.plan.featured ul {
  color: var(--body);
}
.plan.featured li {
  border-top-color: var(--hairline-dark);
}
.plan.featured .btn {
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
}
.plan.featured .btn:hover {
  background: var(--primary-active);
}
.plans-note {
  margin-top: 24px;
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid var(--hairline-dark);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.faq details:last-child {
  border-bottom: 1px solid var(--hairline-dark);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.faq summary:hover {
  color: var(--primary);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23929aa5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(180deg);
}
.faq details p {
  max-width: 680px;
  padding: 0 0 20px;
  color: var(--muted-strong);
  font-size: 14px;
  animation: drop 0.2s ease;
}

/* ---------- closing band: one elevated card ---------- */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: var(--r-xl);
  background: var(--card-dark);
}
.cta-card h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}
.cta-card .actions {
  flex: none;
  margin-top: 0;
}

/* ---------- footer: light, to close the page ---------- */
.footer {
  padding: 64px 0 0;
  background: var(--soft-light);
  color: var(--muted);
  font-size: 14px;
}
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.footer .logo {
  color: var(--ink);
}
.footer-about p {
  max-width: 320px;
  margin-top: 16px;
}
.footer h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.footer ul {
  padding: 0;
  list-style: none;
}
.footer li {
  padding: 4px 0;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer a:hover {
  color: var(--ink);
}
.footer-about a {
  color: var(--ink);
}
.legal {
  margin-top: 48px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--hairline-light);
  font-size: 12px;
}
.legal p + p {
  margin-top: 4px;
}

/* ---------- inner pages ---------- */
.page-head .wrap {
  padding-top: 32px;
  padding-bottom: 56px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.crumbs a {
  color: var(--muted-strong);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--primary);
}
.crumbs a::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted);
}
.crumbs span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-head h1 {
  margin-top: 20px;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.page-lead {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.5;
}
.page-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
/* Long reading happens on the light surface. */
.reading {
  background: var(--canvas-light);
}
.prose {
  padding-top: 56px;
  padding-bottom: var(--section);
  color: var(--ink);
  font-size: 15px;
}
.prose h2 {
  margin: 40px 0 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.prose h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.prose p,
.prose ul {
  margin: 12px 0;
  color: #474d57;
}
.prose strong {
  color: var(--ink);
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose code {
  padding: 1px 6px;
  border-radius: var(--r-sm);
  background: var(--strong-light);
  font: 500 0.9em var(--mono);
  color: var(--ink);
}
.table-scroll {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--hairline-light);
  color: #474d57;
}
th {
  border-top: 0;
  background: var(--soft-light);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
td:first-child {
  color: var(--ink);
  font-weight: 500;
}
.notfound {
  padding: var(--section) 24px;
  text-align: center;
}
.notfound p {
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 18px;
}
.notfound .actions {
  justify-content: center;
}

/* ---------- ease in on scroll (only when the script is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.hero h1,
.hero .badge,
.hero .lead,
.hero .actions,
.hero .fine,
.hero .stack {
  animation: rise 0.5s ease both;
}
.hero .lead {
  animation-delay: 0.06s;
}
.hero .actions {
  animation-delay: 0.12s;
}
.hero .fine {
  animation-delay: 0.16s;
}
.hero .stack {
  animation-delay: 0.1s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .split.reverse > .split-text {
    order: 0;
  }
  .grid,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack {
    max-width: 620px;
  }
  .mini {
    right: 0;
  }
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  :root {
    --section: 56px;
  }
  .menu-btn {
    display: block;
  }
  .nav {
    gap: 12px;
  }
  .nav .logo {
    margin-right: auto;
  }
  .nav nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 20px;
    background: var(--canvas-dark);
    border-bottom: 1px solid var(--hairline-dark);
  }
  .top.open .nav nav {
    display: flex;
    animation: drop 0.2s ease;
  }
  .nav nav a {
    padding: 14px 4px;
    border-top: 1px solid var(--hairline-dark);
    font-size: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
    padding-top: 32px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero .lead {
    font-size: 17px;
  }
  .grid,
  .grid.two,
  .plans {
    grid-template-columns: 1fr;
  }
  .hero .actions .btn {
    width: 100%;
  }
  .stack {
    padding: 0 0 8px;
  }
  .mini {
    display: none;
  }
  .demo {
    padding: 16px;
  }
  .demo-tones {
    gap: 16px;
  }
  .toast,
  .toast.show {
    position: static;
    display: inline-flex;
    margin-top: 12px;
  }
  .cta-card {
    padding: 32px 24px;
  }
  .cta-card .actions,
  .cta-card .btn {
    width: 100%;
  }
  .band-head {
    margin-bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* A secondary button that sits on a card needs to be a step lighter than it. */
.cta-card .btn:not(.primary) {
  background: var(--elevated-dark);
}
.cta-card .btn:not(.primary):hover {
  background: #363d47;
}

/* ---------- support page ---------- */
.help {
  padding: 0 0 var(--section);
}
.help-title {
  margin: 48px 0 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.help-text {
  margin: 0 0 12px;
  color: var(--muted-strong);
}
p.help-text:first-child {
  color: var(--body);
  font-size: 18px;
}
ul.help-text {
  padding-left: 20px;
}
ul.help-text li {
  margin: 6px 0;
}
/* The last question of each group closes its list. */
.faq details:has(+ :not(details)) {
  border-bottom: 1px solid var(--hairline-dark);
}
.faq details ul {
  margin: 0;
  padding: 0 0 20px 20px;
  color: var(--muted-strong);
  font-size: 14px;
}
.faq details li {
  max-width: 660px;
  margin: 6px 0;
}
.faq details strong,
.help-text strong {
  color: var(--on-dark);
}
.faq details code {
  padding: 1px 6px;
  border-radius: var(--r-sm);
  background: var(--card-dark);
  color: var(--body);
  font: 500 0.92em var(--mono);
}
.cta-card p {
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 14px;
}

/* ---------- "see more" links under a section ---------- */
.more {
  margin-top: 32px;
  font-size: 15px;
  font-weight: 600;
}
.more a::after {
  content: " \2192";
}

/* ---------- blog: cards for articles ---------- */
.blog-list {
  padding-top: 8px;
}
.post {
  position: relative;
  display: flex;
  flex-direction: column;
}
.card .post-tag {
  margin-top: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.post h2,
.post h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.post h2 a,
.post h3 a {
  color: var(--on-dark);
  text-decoration: none;
}
/* The whole card opens the article. */
.post h2 a::after,
.post h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
}
.post:hover h2 a,
.post:hover h3 a {
  color: var(--primary);
}
.card .post-meta {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- blog: an article, on the light surface ---------- */
.article {
  padding-bottom: 0;
  font-size: 17px;
  line-height: 1.65;
}
.article h2 {
  margin: 48px 0 12px;
  font-size: 26px;
  line-height: 1.25;
  scroll-margin-top: 88px;
}
.article h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}
.article p,
.article ul,
.article ol {
  margin: 16px 0;
}
.article > :first-child {
  margin-top: 0;
}
.prose ol {
  margin: 12px 0;
  padding-left: 24px;
  color: #474d57;
}
.prose em {
  font-style: italic;
}
/* Examples: a post, and a reply to it. */
.prose blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--soft-light);
}
.prose blockquote p {
  margin: 0;
  color: var(--ink);
}
.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 28px 32px;
  border-radius: var(--r-xl);
  background: var(--ink);
}
.article-cta h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.article-cta p {
  margin-top: 6px;
  color: var(--muted-strong);
  font-size: 14px;
}
.article-cta .btn {
  flex: none;
}
.related {
  margin-top: 48px;
  padding-bottom: var(--section);
}
.related h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}
.related ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.related li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline-light);
}
.related li:last-child {
  border-bottom: 1px solid var(--hairline-light);
}
.related a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.related a:hover {
  text-decoration: underline;
}
.related span {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- questions with numbered steps ---------- */
.faq details ol {
  margin: 0;
  padding: 0 0 20px 22px;
  color: var(--muted-strong);
  font-size: 14px;
}
.faq details p + p {
  margin-top: -8px;
}

/* ---------- the menu has six links: tighten it before it folds away ---------- */
@media (min-width: 769px) and (max-width: 960px) {
  .nav {
    gap: 20px;
  }
  .nav nav {
    gap: 18px;
  }
  .nav nav a {
    font-size: 13px;
  }
}
@media (max-width: 1024px) {
  .footer-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .article-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .page-head .wrap {
    padding-top: 24px;
    padding-bottom: 40px;
  }
}
@media (max-width: 640px) {
  .article {
    font-size: 16px;
  }
  .article h2 {
    margin-top: 40px;
    font-size: 22px;
  }
  .related li {
    flex-direction: column;
    gap: 2px;
  }
}
