/* Tourniquet landing page v2 — glass-morphism, cohesive with dashboard */

:root {
  /* Background */
  --bg: #080c17;
  --bg-deep: #050811;

  /* Glass surfaces — subtle ice-blue tint so every panel reads as part of
     the same family. The inset white highlight in --glass-shadow stays
     white because it represents specular reflection on glass, not surface. */
  --glass-bg: rgba(79, 195, 247, 0.04);
  --glass-bg-hover: rgba(79, 195, 247, 0.08);
  --glass-blur: 20px;
  --glass-shadow: 0 4px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.10);
  --glass-shadow-sm: 0 2px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);

  /* Borders — ice-blue tinted; opacities tuned so they read as cleanly as
     the previous white borders on the dark gradient. */
  --border: rgba(79, 195, 247, 0.18);
  --border-strong: rgba(79, 195, 247, 0.30);

  /* Text */
  --fg: #e8eaf6;
  --fg-muted: rgba(232, 234, 246, 0.55);

  /* Accent — ice blue */
  --accent: #4fc3f7;
  --accent-dim: rgba(79, 195, 247, 0.12);
  --accent-border: rgba(79, 195, 247, 0.35);
  --accent-glow: rgba(79, 195, 247, 0.25);

  /* Semantic */
  --danger: #ef5350;
  --danger-glass: rgba(239, 83, 80, 0.12);
  --danger-border: rgba(239, 83, 80, 0.35);
  --warn: #ffa726;
  --success: #66bb6a;

  /* Typography */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* Layout */
  --max-w: 860px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(79,195,247,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(102,102,187,0.05) 0%, transparent 55%),
    linear-gradient(180deg, #080c17 0%, #050811 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

section { padding: 6rem 0; }
section + section { border-top: 1px solid rgba(79,195,247,0.10); }

/* ── Glass panel mixin ── */
.glass-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,23,0.80);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 0.875rem 0;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(79,195,247,0.3);
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  font-size: 0.85rem;
}

.nav-links a { color: var(--fg-muted); transition: color var(--transition); white-space: nowrap; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

.nav-stars img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
  height: 20px;
}

/* ── Hero ── */
#hero {
  padding: 7rem 0 5.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.975rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 20px rgba(79,195,247,0.35);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Hero media row ── */
.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

/* Terminal demo */
.terminal-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(79,195,247,0.22);
  box-shadow: var(--glass-shadow);
  background: rgba(5,8,17,0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.terminal-bar {
  background: rgba(79,195,247,0.05);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(79,195,247,0.18);
}

.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #3a3a3a;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
}

.terminal-body {
  background: rgba(5,8,17,0.85);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
}

.t-prompt { color: var(--fg-muted); }
.t-cmd { color: var(--fg); }
.t-stream { color: #b0d4ff; }
.t-stream-fade { color: #4a6e90; }
.t-killed { color: var(--danger); font-weight: 700; }
.t-stop { color: var(--accent); }
.t-comment { color: rgba(255,255,255,0.25); }

/* Dashboard screenshot */
.hero-screenshot-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-screenshot {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,12,23,0.6);
}

.hero-screenshot img,
.hero-screenshot picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
}

.hero-media-caption {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Hero video */
.hero-video-wrap {
  margin-top: 2.5rem;
}

.hero-video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-video-inner video {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  display: block;
}

.hero-video-caption {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-inner video {
    /* autoplay is set via attribute; JS respects this */
    animation: none;
  }
}

/* ── Section headings ── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

h3 { font-size: 1rem; font-weight: 700; }

/* ── Pain / incident cards ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.incident-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.incident-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}

.incident-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.incident-headline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
}

.incident-body {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}

.incident-source {
  font-size: 0.78rem;
  color: rgba(232,234,246,0.4);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(79,195,247,0.14);
}

.incident-source a {
  color: var(--fg-muted);
  transition: color var(--transition);
}

.incident-source a:hover { color: var(--accent); text-decoration: none; }

.ext-link-glyph {
  font-size: 0.7em;
  opacity: 0.7;
  margin-left: 0.15em;
}

/* ── How it works ── */
.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-sm);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition);
}

.step:hover { border-color: rgba(79,195,247,0.30); }

.step-icon {
  font-size: 1.75rem;
  line-height: 1;
  padding-top: 0.1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step p { color: var(--fg-muted); font-size: 0.925rem; }

/* Inline <code> inside step body paragraphs — small chip, matches FAQ inline code. */
.step p code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(79,195,247,0.07);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.05em 0.4em;
  color: var(--accent);
}

/* (formerly .step-cmd — steps now embed full .install-block components so
   their commands have the same visual treatment AND a Copy button as the
   Install section's terminal block.) */
.step .install-block { margin-top: 0.75rem; margin-bottom: 0; }

/* ── Dashboard section ── */
.section-lede {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 2rem;
}
.section-lede code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(79,195,247,0.07);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  color: var(--accent);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.dashboard-card {
  background: rgba(79,195,247,0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(79,195,247,0.18);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 195, 247, 0.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dashboard-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid rgba(79, 195, 247, 0.2);
  color: var(--accent);
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.dashboard-card p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}
.dashboard-card strong {
  color: var(--fg);
  font-weight: 600;
}

/* ── Install box ── */
.install-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

.install-block {
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.10), rgba(5, 8, 17, 0.70));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(79, 195, 247, 0.35);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), 0 0 24px rgba(79, 195, 247, 0.06);
}

.install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(79,195,247,0.10);
  border-bottom: 1px solid rgba(79, 195, 247, 0.25);
}

.install-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-family: var(--font);
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-btn:hover { border-color: var(--accent-border); color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent-border); }

.install-code {
  padding: 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  white-space: pre;
  overflow-x: auto;
}

/* Prominent "keep it running" callout — sits between the install command
   and the alternate-install options. Slightly stronger ice-blue accent
   than other panels so it pulls the eye without screaming. */
.always-on-hint {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.13), rgba(79, 195, 247, 0.07));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(79, 195, 247, 0.45);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  box-shadow:
    0 0 0 1px rgba(79, 195, 247, 0.10) inset,
    0 8px 32px rgba(0, 0, 0, 0.40),
    0 0 24px rgba(79, 195, 247, 0.10);
}
.always-on-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(79, 195, 247, 0.14);
  border: 1px solid rgba(79, 195, 247, 0.30);
  color: var(--accent);
  flex-shrink: 0;
}
.always-on-hint-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.always-on-hint-body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}
.always-on-hint-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(79, 195, 247, 0.10);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}
.always-on-hint-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(79, 195, 247, 0.4);
  text-underline-offset: 3px;
}
.always-on-hint-body a:hover { text-decoration-color: var(--accent); }
.always-on-hint-content {
  /* min-width:0 lets the grid 1fr column shrink below its content's intrinsic
     size, which is what allows overflow-x:auto on the inner code blocks to
     actually engage instead of pushing the parent wider. */
  min-width: 0;
  width: 100%;
}

/* Defensive sizing across every install-block on the page — guarantees
   the box never grows wider than its container regardless of how long
   the inner code is. overflow-x:auto on .install-code then handles
   horizontal scroll for genuinely long lines. */
.install-block {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.install-code {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}
.integrate-panel {
  min-width: 0;
  max-width: 100%;
}
.integrate-code-wrap {
  min-width: 0;
  overflow-x: auto;
}
.integrate-code-wrap pre {
  min-width: 0;
  overflow-x: auto;
}
.sse-block {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

/* Per-OS command stack inside the always-on hint. Each install-block is the
   same component used in the Install section, so visual + copy-button
   behaviour matches across the page. */
.always-on-os {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
  min-width: 0;
}
.always-on-os .install-block {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
}
.always-on-os .install-code {
  font-size: 0.82rem;
  padding: 0.85rem 1rem;
  min-width: 0;
}
.always-on-os .os-stop {
  font-size: 0.82rem;
  margin: 0 0 0.6rem 0.25rem;
  color: var(--fg-muted);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .always-on-hint { grid-template-columns: 1fr; }
}

/* Container for the alternate-install snippets (Homebrew / From source /
   Upgrade). Uses install-block components inside, so the boxes match the
   primary Terminal block visually and all have working Copy buttons. */
.install-alts {
  display: grid;
  gap: 0.875rem;
}
.install-alts .install-block { margin-bottom: 0; }

/* ── Integrate / code-tabs section ── */
#integrate .section-desc {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  font-size: 0.975rem;
}

.integrate-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.integrate-tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.integrate-tab-btn.active,
.integrate-tab-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

.integrate-panel {
  background: rgba(5,8,17,0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.integrate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(79,195,247,0.04);
  border-bottom: 1px solid var(--border);
}

.integrate-lang {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.integrate-code-wrap {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

.integrate-code-wrap pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--fg);
  white-space: pre;
  margin: 0;
}

/* ── Comparison table ── */
#compare {
  overflow-x: auto;
}

#compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

#compare th,
#compare td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(79,195,247,0.14);
  text-align: left;
  vertical-align: middle;
}

#compare th {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  background: rgba(79,195,247,0.04);
  white-space: nowrap;
}

#compare th.col-tourniquet {
  color: var(--accent);
}

#compare tr:last-child td { border-bottom: none; }

#compare td:first-child {
  color: var(--fg);
  font-weight: 500;
  font-size: 0.85rem;
}

#compare td { color: var(--fg-muted); }

#compare td.cell-yes { color: var(--success); font-weight: 600; }
#compare td.cell-no  { color: var(--danger); }
#compare td.cell-warn { color: var(--warn); }

.compare-footnote {
  font-size: 0.78rem;
  color: rgba(232,234,246,0.35);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── Trust card ── */
.trust-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 2.25rem 2.5rem;
}

.trust-card h2 {
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 30px var(--accent-glow);
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.trust-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.trust-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.trust-list code {
  overflow-wrap: anywhere;
}

.trust-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  transition: color var(--transition);
}

.trust-link:hover { color: var(--accent); text-decoration: none; }

/* ── Kill mechanism ── */
/* The SSE block is now wrapped in an .install-block (so it shares the
   header bar + Copy button affordance with every other code panel on
   the page). The .sse-block class only provides the inline-span colours
   and per-line spacing — outer chrome comes from .install-block. */
.sse-block {
  font-size: 0.85rem;
  line-height: 1.9;
}

.sse-event { color: var(--fg-muted); }
.sse-key { color: #b0d4ff; }
.sse-val { color: var(--accent); }
.sse-stop { color: var(--danger); }

.kill-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.kill-col {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow-sm);
}

.kill-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.kill-col p { font-size: 0.875rem; color: var(--fg-muted); }

.kill-col.bad h4 { color: var(--danger); }
.kill-col.good h4 { color: var(--accent); }

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 0.625rem;
}

.faq-list details {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-list details[open] {
  border-color: rgba(79,195,247,0.30);
}

.faq-list summary {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--fg);
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color var(--transition);
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--fg-muted);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition), color var(--transition);
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-list summary:hover { color: var(--accent); }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--fg-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(79,195,247,0.14);
  padding-top: 1rem;
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(79,195,247,0.10);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}


/* ── Footer ── */
footer {
  border-top: 1px solid rgba(79,195,247,0.14);
  padding: 2.75rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a { font-size: 0.875rem; color: var(--fg-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--fg); text-decoration: none; }

.footer-copy { font-size: 0.8rem; color: var(--fg-muted); }
.footer-tagline { font-size: 0.8rem; color: rgba(232,234,246,0.25); margin-top: 0.625rem; text-align: center; }

/* ── Inline description text ── */
.body-muted {
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

/* ── Mobile ── */
@media (max-width: 680px) {
  section { padding: 4rem 0; }
  #hero { padding: 5rem 0 4rem; }

  .nav-links { display: none; }

  .cta-row { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 320px; justify-content: center; }

  .hero-media { grid-template-columns: 1fr; }
  .hero-screenshot-wrap { order: -1; }

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

  .kill-compare { grid-template-columns: 1fr; }

  .trust-card { padding: 1.5rem; }

  /* Compare table → card-per-row on mobile (5-col matrix doesn't fit) */
  #compare {
    overflow-x: visible;
  }
  #compare table {
    display: block;
    border: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    font-size: 0.875rem;
  }
  #compare thead { display: none; }
  #compare tbody,
  #compare tr { display: block; }
  #compare tr {
    border: 1px solid rgba(79, 195, 247, 0.14);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    padding: 0.5rem 1rem;
  }
  #compare td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border: none;
    font-size: 0.85rem;
  }
  #compare td:first-child {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fg);
    padding: 0.35rem 0 0.5rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(79, 195, 247, 0.14);
    text-align: left;
  }
  #compare td:nth-child(2)::before { content: 'Tourniquet'; color: var(--accent); }
  #compare td:nth-child(3)::before { content: 'Anthropic Console'; color: var(--fg-muted); }
  #compare td:nth-child(4)::before { content: 'LiteLLM'; color: var(--fg-muted); }
  #compare td:nth-child(5)::before { content: 'Helicone'; color: var(--fg-muted); }
  #compare td:nth-child(n+2)::before {
    font-weight: 600;
    flex-shrink: 0;
    min-width: 7rem;
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Cursor blink ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.1em;
  background: var(--fg);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}
