:root {
  --bg: #f7f8fb;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-input: #ffffff;
  --bg-code: #0f172a;
  --text-code: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #5b6472;
  --border-color: rgba(15, 23, 42, 0.1);
  --accent-primary: #4f46e5;
  --accent-secondary: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.22);
  --bubble-user-bg: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --bubble-eliza-bg: #eef0ff;
  --success: #15803d;
  --danger: #b91c1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --bg-elevated: #10141f;
    --bg-card: rgba(22, 29, 45, 0.75);
    --bg-input: rgba(15, 23, 42, 0.9);
    --bg-code: #0a0e17;
    --text-code: #e2e8f0;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.09);
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --bubble-eliza-bg: rgba(30, 41, 59, 0.85);
    --success: #4ade80;
    --danger: #f87171;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
}

code,
pre {
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
}

.brand:hover {
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bubble-user-bg);
  color: #fff;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-muted);
}

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

.btn-ghost {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main) !important;
}

.btn-ghost:hover {
  border-color: var(--accent-secondary);
  text-decoration: none !important;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
}

.hero-tagline {
  margin: 0 auto 2rem;
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-primary-lg,
.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary-lg {
  background: var(--bubble-user-bg);
  color: #fff !important;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-primary-lg:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary-lg {
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
}

.btn-secondary-lg:hover {
  text-decoration: none;
  border-color: var(--accent-secondary);
}

.hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-note code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  font-size: 0.82rem;
}

/* Generic sections */
.section {
  padding: 3.5rem 0;
  /* Anchor targets land below the sticky header. */
  scroll-margin-top: 4.5rem;
}

/* The WebTransport reality-check section is only shown where the
   WebTransport option is actually unavailable (e.g. the Cloudflare
   Workers deployment); see setWebTransportAvailable() in main.ts. */
.section.hidden {
  display: none;
}

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

.section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}

.section-lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 640px;
}

.section > .section-inner > p {
  color: var(--text-muted);
  max-width: 720px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

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

/* Deployment warning on the WebTransport card. */
.feature-card .feature-caveat {
  margin-top: 0.8rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--danger);
  font-size: 0.86rem;
}

/* Spec/reference links at the foot of a feature card. */
.feature-card .feature-links {
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

/* Install row */
.install-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.install-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-code);
  color: var(--text-code);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.install-label {
  font-weight: 700;
  color: var(--accent-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.install-chip code {
  background: transparent;
  color: inherit;
}

.install-docs {
  align-self: center;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Code examples: stacked full-width cards — the snippets' lines are too
   long for side-by-side columns. */
.code-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 860px;
  margin: 0 auto;
}

/* Transport tabs (WebSocket / WebTransport) inside a code section. */
.code-tabs {
  max-width: 860px;
  margin: 0 auto;
}

.code-tab-switcher {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  margin-bottom: 1.1rem;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 11px;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.code-tab-btn:hover {
  color: var(--text-main);
}

.code-tab-btn.active {
  background: var(--bubble-user-bg);
  color: #fff;
  box-shadow: 0 3px 12px var(--accent-glow);
}

.code-tab-panel {
  display: none;
}

.code-tab-panel.active {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.code-card {
  background: var(--bg-code);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-lang {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--accent-secondary);
  border-radius: 5px;
  padding: 0.15rem 0.45rem;
}

.code-title {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
}

.code-card pre {
  margin: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  overflow-x: auto;
}

/* Breathing room between the feature cards above and the paragraphs
   below; the surrounding grid and paragraphs bring no margins of their
   own. */
.wire-format-card {
  margin: 2rem 0;
}

/* Wire-format card: frame diagram beside the flag-value table on wide
   screens, stacked on narrow ones. minmax(0, ...) lets the diagram's own
   horizontal scrollbar work instead of overflowing the page. */
.wire-format {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.flag-table {
  border-collapse: collapse;
  margin: 1rem 1.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-code);
}

.flag-table th,
.flag-table td {
  text-align: left;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flag-table td:first-child {
  padding-right: 1.1rem;
}

.flag-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b95a7;
}

.flag-table tbody tr:last-child th,
.flag-table tbody tr:last-child td {
  border-bottom: none;
}

.flag-table code {
  color: #98c379;
  background: transparent;
  padding: 0;
}

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

  .wire-format pre {
    padding-bottom: 0.5rem;
  }

  .flag-table {
    margin-top: 0.25rem;
  }
}

.code-card code {
  color: var(--text-code);
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre;
  background: transparent;
}

/* Syntax highlighting token colors (highlight.js classes; the code cards
   are dark in both color schemes, so one palette suffices). */
.code-card .hljs-comment,
.code-card .hljs-quote {
  color: #8b95a7;
  font-style: italic;
}

.code-card .hljs-keyword,
.code-card .hljs-selector-tag,
.code-card .hljs-literal {
  color: #c678dd;
}

.code-card .hljs-string,
.code-card .hljs-regexp,
.code-card .hljs-addition {
  color: #98c379;
}

.code-card .hljs-number,
.code-card .hljs-symbol,
.code-card .hljs-bullet {
  color: #d19a66;
}

.code-card .hljs-title,
.code-card .hljs-title.function_,
.code-card .hljs-section {
  color: #61afef;
}

.code-card .hljs-type,
.code-card .hljs-title.class_,
.code-card .hljs-built_in {
  color: #e5c07b;
}

.code-card .hljs-attr,
.code-card .hljs-property,
.code-card .hljs-variable,
.code-card .hljs-template-variable {
  color: #e06c75;
}

.code-card .hljs-operator,
.code-card .hljs-punctuation {
  color: #abb2bf;
}

/* WebTransport-unavailable badge, shown below the demo card */
.transport-unsupported-row {
  max-width: 720px;
  margin: 0.9rem auto 0;
  text-align: center;
}

/* "Run it yourself" block under the live demo */
.run-local {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.run-local h3 {
  margin: 0 0 0.35rem;
}

.run-local-lede {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.run-local-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.9rem 0 0;
}

.run-local-note p {
  margin: 0 0 0.6rem;
}

.run-local-note p:last-child {
  margin-bottom: 0;
}

.run-local-note ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

/* Pref and flag names are long unbroken tokens; let them wrap instead of
   forcing horizontal overflow on narrow screens. */
.run-local-note code {
  overflow-wrap: anywhere;
}

/* Live demo card (ported from the connect-es example client) */
.demo-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 0 30px var(--accent-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}

.demo-toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-toolbar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.demo-toolbar-row label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-toolbar-row select {
  flex: 1;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.demo-toolbar-row select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1em;
  padding-right: 2rem;
}

.demo-toolbar-row select:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  white-space: nowrap;
  cursor: help;
}

/* The badge doubles as an anchor to the WebTransport reality-check
   section; keep the pill look but hint that it's clickable. */
a.badge {
  cursor: pointer;
  text-decoration: none;
}

a.badge:hover {
  text-decoration: underline;
}

.badge.hidden {
  display: none;
}

.tab-switcher {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem;
  margin: 0.75rem 1rem 0;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.tab-btn {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-secondary);
}

.tab-btn.active {
  background: var(--bubble-user-bg);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px var(--accent-glow);
}

.demo-viewport {
  padding: 1rem;
}

.view-panel {
  display: none;
  flex-direction: column;
  /* One standard height for all three tabs, so switching between them
     never resizes the demo card. */
  height: 430px;
  overflow-y: auto;
}

.view-panel.active {
  display: flex;
}

.view-description {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.messages-list {
  /* Fills whatever the fixed-height panel leaves after the description
     and input row, keeping all tabs the same overall height. */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scroll-behavior: smooth;
}

.msg-bubble {
  max-width: 80%;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.msg-user {
  align-self: flex-end;
  background: var(--bubble-user-bg);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-eliza {
  align-self: flex-start;
  background: var(--bubble-eliza-bg);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.msg-system {
  align-self: center;
  background: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.input-container {
  padding: 0.75rem 0.25rem 0.25rem;
}

.chat-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input-row .chat-input {
  flex: 1;
  min-width: 0;
}

.chat-send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background: var(--accent-secondary);
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.chat-send-btn:hover {
  filter: brightness(1.1);
}

.chat-send-btn:active {
  filter: brightness(0.95);
}

.chat-send-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Streams visualizer */
.streams-header {
  margin-bottom: 0.9rem;
}

/* Pins the start/stop button to the bottom right of the fixed-height
   panel (the panel is a flex column). */
.streams-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.streams-info h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.streams-info p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-primary {
  background: var(--bubble-user-bg);
  color: #fff;
  border: none;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.lanes-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* One slim row per lane: label, a shared bidirectional track, counters,
   and a status badge. */
.lane-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.lane-row.running {
  border-color: rgba(99, 102, 241, 0.5);
}

.lane-label {
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  min-width: 3.2rem;
}

.status-badge {
  font-size: 0.66rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0.22rem 0;
  /* Fixed width sized to the longest state ("COMPLETED"), so state
     changes never shift the lane layout. */
  width: 5.2rem;
  flex-shrink: 0;
  text-align: center;
  display: inline-block;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* Shown when a stream lane fails with a WebTransport connection error,
   pointing at the local-certificate browser tweaks. */
.lane-error-hint {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.lane-error-hint.hidden {
  display: none;
}

.lane-counts {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  /* Wide enough for two-digit counts ("TX 20 · RX 20"), so the track
     doesn't shrink as the numbers grow. */
  min-width: 6.5rem;
}

.lane-counts strong {
  color: var(--text-main);
}

/* A single shared track: TX dots fly left-to-right along the upper half,
   RX dots fly back right-to-left along the lower half. */
.lane-track {
  flex: 1;
  position: relative;
  height: 20px;
  min-width: 80px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  overflow: hidden;
}

.lane-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lane-dot-tx {
  top: 3px;
  background: #6366f1;
  animation: laneDotTx 1.4s linear forwards;
}

.lane-dot-rx {
  bottom: 3px;
  background: #10b981;
  animation: laneDotRx 1.4s linear forwards;
}

@keyframes laneDotTx {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

@keyframes laneDotRx {
  0% {
    right: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    right: calc(100% - 8px);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .lane-row {
    flex-wrap: wrap;
  }

  /* The track drops to its own full-width line under the label/counters. */
  .lane-track {
    order: 4;
    flex-basis: 100%;
  }
}

/* Support matrix */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.support-table th,
.support-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.support-table thead th {
  background: var(--bg-elevated);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.support-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.support-table tbody tr:last-child td,
.support-table tbody tr:last-child th {
  border-bottom: none;
}

.support-yes {
  color: var(--success);
  font-weight: 600;
}

.support-no {
  color: var(--danger);
  font-weight: 600;
}

.support-footnote {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.table-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

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

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .demo-toolbar-row {
    flex-wrap: wrap;
  }

  .demo-toolbar-row label {
    width: 100%;
  }
}
