/* PSPC website. Colors follow the PSPC logo: cyan → blue → violet → pink. */

:root {
  --bg: #0b0d1a;
  --bg-alt: #0f1224;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: #151935;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ebf8;
  --muted: #a6acca;
  --cyan: #67dcf7;
  --blue: #6b84ff;
  --violet: #a46bf7;
  --pink: #ec5aa6;
  --ok: #4fd8b0;
  --warn: #f5c35b;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 40%, var(--violet) 72%, var(--pink));
  --grad-button: linear-gradient(120deg, #67dcf7, #8d9dff 55%, #c3a0ff);
  --radius: 14px;
  --radius-small: 8px;
  --container: 1160px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  /* Keep focused and linked content clear of the sticky header and the viewport's bottom edge. */
  scroll-padding-top: calc(var(--header-height) + 16px);
  scroll-padding-bottom: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #9ae8fb;
}

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

/* The skip link moves focus to <main> only to set the reading position. */
#main:focus {
  outline: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

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

:not(pre) > code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9ddf7;
  overflow-wrap: break-word;
}

code.nowrap {
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-small);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

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

.small {
  font-size: 0.9rem;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--grad-button);
  color: #0b0d1a;
  box-shadow: 0 8px 28px rgba(120, 130, 255, 0.35);
}

.btn-primary:hover {
  color: #0b0d1a;
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(120, 130, 255, 0.5);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn-small {
  padding: 7px 16px;
  font-size: 0.92rem;
}

.text-link {
  font-weight: 600;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 26, 0.82);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current] {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  /* Without JavaScript the navigation simply wraps under the brand. */
  .header-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .js .header-inner {
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
  }

  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle-bar {
    position: relative;
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before {
    top: -6px;
  }

  .nav-toggle-bar::after {
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 24px 20px;
    background: rgba(11, 13, 26, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav ul a {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .js .site-nav .btn {
    align-self: flex-start;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 56px;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(164, 107, 247, 0.28), transparent 60%),
    radial-gradient(50rem 28rem at -10% 10%, rgba(103, 220, 247, 0.18), transparent 60%),
    radial-gradient(40rem 24rem at 60% 110%, rgba(236, 90, 166, 0.12), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 220, 247, 0.45);
  background: rgba(103, 220, 247, 0.1);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.82rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.45em;
}

.lead {
  font-size: 1.14rem;
  color: #cdd1ea;
  max-width: 40em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}

.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  margin: 0;
}

.hero-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.code-window {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(25, 29, 60, 0.95), rgba(14, 16, 34, 0.95));
  box-shadow: 0 30px 80px rgba(4, 6, 20, 0.6), 0 0 0 1px rgba(164, 107, 247, 0.12);
  overflow: hidden;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3f63;
}

.dot:nth-child(1) {
  background: var(--pink);
}

.dot:nth-child(2) {
  background: var(--violet);
}

.dot:nth-child(3) {
  background: var(--cyan);
}

.code-window-title {
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.code-pane {
  padding: 16px 18px 18px;
}

.code-pane-out {
  position: relative;
  border-top: 1px dashed var(--border-strong);
  background: rgba(107, 132, 255, 0.05);
}

.code-pane-out::before {
  /* Decorative: the second declaration hides it from screen readers where supported. */
  content: "↓";
  content: "↓" / "";
  position: absolute;
  top: -14px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background: var(--grad-button);
  color: #0b0d1a;
  font-weight: 800;
  font-family: var(--font-sans);
}

.code-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-pane pre {
  margin: 0;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #dfe3ff;
}

.c-addr,
.c-comment {
  color: #7b82a8;
}

.c-kw {
  color: #c3a0ff;
}

.c-fn {
  color: var(--cyan);
}

.c-num {
  color: #f6a6cf;
}

.c-prompt {
  color: var(--violet);
  user-select: none;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats strong span {
  font-size: 1.1rem;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 820px;
  margin-bottom: 44px;
}

.kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lead {
  color: #c6cbe6;
  font-size: 1.08rem;
}

.sub-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: var(--surface);
}

.principle p {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: #dfe2f5;
}

.principle footer {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pipeline */

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

.pipeline-step {
  position: relative;
  padding: 22px 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pipeline-step:not(:last-child)::after {
  content: "→";
  content: "→" / "";
  position: absolute;
  top: 50%;
  right: -23px;
  transform: translateY(-50%);
  color: var(--violet);
  font-size: 1.3rem;
  font-weight: 700;
}

.pipeline-step h4 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-button);
  color: #0b0d1a;
  font-weight: 800;
  font-size: 0.9rem;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 64px;
  padding: 14px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(164, 107, 247, 0.3);
  background: linear-gradient(140deg, rgba(103, 220, 247, 0.06), rgba(164, 107, 247, 0.08));
}

.runtime-card {
  padding: 16px;
  border-radius: var(--radius-small);
  background: rgba(11, 13, 26, 0.6);
  border: 1px solid var(--border);
}

.runtime-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.runtime-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.split h3 {
  font-size: 1.35rem;
}

.split p {
  color: #c6cbe6;
}

.split-center {
  align-items: center;
  margin-top: 56px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: rgba(164, 107, 247, 0.45);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(103, 220, 247, 0.18), rgba(164, 107, 247, 0.22));
  border: 1px solid rgba(164, 107, 247, 0.35);
  font-size: 1.3rem;
}

.feature h3 {
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:last-child > * {
  border-bottom: 0;
}

tbody th {
  font-weight: 650;
}

.compat {
  min-width: 860px;
}

.compat tbody th {
  width: 23%;
}

.compat td:nth-child(2),
.compat td:nth-child(3) {
  width: 21%;
  color: var(--muted);
}

.compat td:last-child {
  color: #c6cbe6;
}

.disc-id {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
}

.badge {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-ok {
  color: var(--ok);
  border-color: rgba(79, 216, 176, 0.4);
  background: rgba(79, 216, 176, 0.1);
}

.badge-online {
  color: #c9a6ff;
  border-color: rgba(164, 107, 247, 0.5);
  background: rgba(164, 107, 247, 0.14);
}

.badge-muted {
  color: var(--muted);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.badge-warn {
  color: var(--warn);
  border-color: rgba(245, 195, 91, 0.45);
  background: rgba(245, 195, 91, 0.1);
}

.table-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-table tbody th {
  font-weight: 500;
}

.status-table td {
  width: 34%;
  color: var(--muted);
}

.options td:first-child {
  white-space: nowrap;
}

.options {
  min-width: 560px;
}

/* Test cards */

.test-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.test-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.test-card h3 {
  font-size: 1.2rem;
}

.test-card > p:not(.muted) {
  color: #c6cbe6;
}

.meter-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.meter-row strong {
  font-variant-numeric: tabular-nums;
}

meter {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-appearance: none;
  appearance: none;
}

meter::-webkit-meter-bar {
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: var(--grad);
}

meter::-moz-meter-bar {
  border-radius: 999px;
  background: var(--grad);
}

/* Online */

.online-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.online-card {
  position: relative;
  overflow: hidden;
  padding: 27px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.online-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.online-card h3 {
  font-size: 1.12rem;
}

.online-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Terminal */

.terminal {
  position: relative;
  margin: 0 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #080a16;
}

.terminal pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #dfe3ff;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--muted);
  font: 600 0.78rem var(--font-sans);
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--text);
}

/* Tabs */

.tab-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.tab-list[hidden] {
  display: none;
}

.tab-list button {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.95rem var(--font-sans);
  cursor: pointer;
}

.tab-list button:hover {
  color: var(--text);
}

.tab-list button[aria-selected="true"] {
  background: var(--grad-button);
  color: #0b0d1a;
}

.tab-panel {
  margin-bottom: 48px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel > p {
  max-width: 52em;
  color: #c6cbe6;
}

.panel-title {
  font-size: 1.3rem;
}

/* When the tabs work, the selected tab names the panel. */
.tabs.is-enhanced .panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.steps {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  /* Grid items grow to fit a long code line otherwise; the code block scrolls instead. */
  min-width: 0;
  padding: 20px 22px 18px 76px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  /* The list already announces the step number. */
  content: counter(step);
  content: counter(step) / "";
  position: absolute;
  top: 18px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-button);
  color: #0b0d1a;
  font-weight: 800;
}

.steps h3,
.steps h4 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  color: #c6cbe6;
}

.steps p + p,
.steps p + ul,
.steps .terminal {
  margin-top: 10px;
}

.steps .terminal {
  margin-bottom: 0;
}

.steps .note {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-small);
  background: rgba(245, 195, 91, 0.08);
  border: 1px solid rgba(245, 195, 91, 0.25);
  color: #e9dcbc;
  font-size: 0.92rem;
}

.link-list {
  margin: 0;
  padding-left: 1.2em;
}

.link-list li {
  margin-bottom: 6px;
}

/* Controls */

.controls {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.controls h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

@media (min-width: 560px) {
  .key-grid .key-wide {
    grid-column: span 2;
  }
}

.key-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.key-grid dt {
  display: flex;
  gap: 4px;
}

.key-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

/* FAQ */

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

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 1.08rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0 0 22px;
  color: #c6cbe6;
}

/* Closing call to action */

.cta-band {
  padding: 0 0 96px;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(164, 107, 247, 0.4);
  background:
    radial-gradient(30rem 14rem at 0% 0%, rgba(103, 220, 247, 0.18), transparent 70%),
    radial-gradient(30rem 14rem at 100% 100%, rgba(236, 90, 166, 0.16), transparent 70%),
    var(--surface-strong);
}

.cta-band-inner img {
  border-radius: 22px;
}

.cta-band h2 {
  margin-bottom: 4px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

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

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: #080a15;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-grid .brand {
  margin-bottom: 14px;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: var(--text);
}

.disclaimer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #8a90b0;
  font-size: 0.84rem;
}

/* Guides: the how-to pages in guides/ */

.page-hero {
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50rem 22rem at 90% -30%, rgba(164, 107, 247, 0.22), transparent 60%),
    radial-gradient(40rem 20rem at -10% 0%, rgba(103, 220, 247, 0.14), transparent 60%);
}

.page-hero h1 {
  max-width: 24em;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  margin-bottom: 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb li + li::before {
  content: "/";
  content: "/" / "";
  margin-right: 8px;
  color: #6b7194;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.guide-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.guide-nav > h2,
.prose .toc h2 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-nav h3 {
  margin: 18px 0 6px;
  color: var(--text);
  font-size: 0.88rem;
}

.guide-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.guide-nav a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
}

.guide-nav a:hover {
  color: var(--text);
}

.guide-nav a[aria-current="page"] {
  border-left-color: var(--violet);
  color: var(--text);
  font-weight: 600;
}

.prose {
  max-width: 48em;
}

.prose h2 {
  margin-top: 56px;
  font-size: 1.6rem;
  font-weight: 750;
}

.prose h3 {
  margin-top: 32px;
  font-size: 1.18rem;
}

.prose > :first-child,
.prose .toc h2 {
  margin-top: 0;
}

.prose .steps h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.prose p,
.prose li,
.prose dd {
  color: #c6cbe6;
}

.prose .muted,
.prose .key-grid dd {
  color: var(--muted);
}

.prose strong {
  color: var(--text);
}

.prose :is(ul, ol):not([class]) {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose :is(ul, ol):not([class]) > li {
  margin-bottom: 6px;
}

.prose :is(ul, ol):not([class]) :is(ul, ol) {
  margin: 6px 0 0;
}

.prose .table-wrap,
.prose .terminal,
.prose .steps,
.prose .callout,
.prose .key-grid {
  margin: 20px 0 24px;
}

/* "Unreleased" labels next to headings and terms. */
.prose :is(h2, h3, dt) .badge {
  margin: 0 0 0 8px;
  vertical-align: middle;
}

.prose code.hash {
  overflow-wrap: anywhere;
}

.prose :is(p, li, td) kbd {
  display: inline-block;
  min-width: 0;
  height: auto;
  padding: 0 6px;
  border-bottom-width: 2px;
  font-size: 0.8em;
  line-height: 1.5;
}

.defs dt {
  margin-top: 16px;
  color: var(--text);
  font-weight: 650;
}

.defs dd {
  margin: 4px 0 0;
}

.toc {
  margin-bottom: 40px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 40px;
}

.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.callout {
  padding: 14px 18px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(107, 132, 255, 0.35);
  background: rgba(107, 132, 255, 0.08);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-warn {
  border-color: rgba(245, 195, 91, 0.3);
  background: rgba(245, 195, 91, 0.08);
}

.prose .callout-warn p {
  color: #e9dcbc;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
}

.pager a {
  display: block;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.pager a:hover {
  border-color: rgba(164, 107, 247, 0.45);
}

.pager-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pager-next {
  grid-column: 2;
  text-align: right;
}

.guide-index {
  padding-top: 56px;
  padding-bottom: 96px;
}

.guide-group + .guide-group {
  margin-top: 56px;
}

.release-note {
  margin-bottom: 48px;
}

.release-note p {
  margin: 0;
}

.guide-group > h2 {
  font-size: 1.5rem;
}

.guide-group > p {
  max-width: 46em;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-card:hover,
.guide-card:focus-within {
  border-color: rgba(164, 107, 247, 0.45);
}

.guide-card:hover {
  transform: translateY(-2px);
}

.guide-card h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.guide-card h3 a {
  color: var(--text);
  text-decoration: none;
}

/* The whole card follows the link in its heading. */
.guide-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* The heading comes first for screen readers; the tag shows above it. */
.guide-card .card-tag {
  order: -1;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 24px;
}

.verdict {
  padding: 24px 24px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.prose .verdict h3 {
  margin-top: 0;
}

.verdict ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.verdict li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
}

.verdict li::before {
  content: "✓";
  content: "✓" / "";
  position: absolute;
  top: 0;
  left: 2px;
  color: var(--ok);
  font-weight: 800;
}

.verdict-no li::before {
  content: "✕";
  content: "✕" / "";
  color: var(--pink);
}

.compare {
  min-width: 720px;
}

.compare tbody th {
  width: 20%;
}

.compare td {
  width: 40%;
  color: #c6cbe6;
}

/* Responsive */

@media (max-width: 1080px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 980px) {
  .hero {
    padding-top: 56px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

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

  .pipeline-step:nth-child(2)::after {
    content: none;
  }

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

  .split,
  .test-cards,
  .verdict-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-bottom: 72px;
  }

  .guide-aside {
    position: static;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }

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

  .cta-band-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .stats,
  .runtime-grid,
  .online-grid,
  .feature-grid,
  .pipeline,
  .guide-grid,
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-next {
    grid-column: auto;
  }

  .toc ol {
    columns: 1;
  }

  .stats {
    margin-top: 44px;
  }

  .pipeline-step:not(:last-child)::after {
    content: "↓";
    content: "↓" / "";
    top: auto;
    right: auto;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
  }

  .pipeline-step:nth-child(2)::after {
    content: "↓";
    content: "↓" / "";
  }

  .steps li {
    padding: 64px 18px 18px;
  }

  .steps li::before {
    top: 18px;
    left: 18px;
  }

  .tab-list {
    display: flex;
    width: 100%;
  }

  .tab-list button {
    flex: 1 1 auto;
    padding: 9px 10px;
    white-space: nowrap;
  }

  .meter-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .meter-row meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cta-band-inner {
    padding: 28px 24px;
  }

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

  .footer-grid > div {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .btn-primary:hover,
  .feature:hover,
  .guide-card:hover {
    transform: none;
  }
}

/* Forced colors (e.g. Windows High Contrast) drop backgrounds, which mark the selected tab and draw the meters. */
@media (forced-colors: active) {
  .tab-list button[aria-selected="true"] {
    text-decoration: underline 3px;
    text-underline-offset: 6px;
  }

  meter {
    forced-color-adjust: none;
    border: 1px solid CanvasText;
    background: Canvas;
  }

  meter::-webkit-meter-bar {
    background: Canvas;
  }

  meter::-webkit-meter-optimum-value {
    background: Highlight;
  }

  meter::-moz-meter-bar {
    background: Highlight;
  }
}
