:root {
  color-scheme: light dark;
  --bg: #0b0d12;
  --bg-panel: #12151c;
  --fg: #e8ebf1;
  --fg-muted: #a3aab8;
  --accent: #6fd0a8;
  --accent-dim: #3c7a5e;
  --border: #262b36;
  --danger: #e0876b;
  --radius: 10px;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06110c;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--fg);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

p {
  color: var(--fg-muted);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg);
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: #06110c;
}

.button.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.card h3 {
  color: var(--fg);
}

.card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.will-not {
  border-color: var(--danger);
}

.will-not-list li::marker {
  color: var(--danger);
}

.banner {
  background: var(--bg-panel);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.status-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-left: 3px solid var(--border);
  padding-left: 0.8rem;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.85rem;
}

footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a {
  color: var(--fg-muted);
}

/* Demo page */
.demo-shell {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.demo-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.demo-controls button {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  padding: 0.5rem 0.9rem;
}

.demo-controls button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
}

.demo-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .demo-columns {
    grid-template-columns: 1fr;
  }
}

.transcript-pane,
.cards-pane {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 260px;
}

.transcript-pane h3,
.cards-pane h3 {
  margin-top: 0;
}

#transcript-text {
  white-space: pre-wrap;
  font-size: 1.02rem;
}

.suggestion-card {
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.75rem;
}

.suggestion-card h4 {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 1rem;
}

.suggestion-card ul {
  margin: 0 0 0.4rem;
  padding-left: 1.1rem;
}

.suggestion-card .source {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.empty-state {
  color: var(--fg-muted);
  font-size: 0.9rem;
}
