/* Cowork Showcase — self-hosted system typography, light & dark themes */

:root {
  color-scheme: light dark;

  --bg: #faf9f6;
  --bg-alt: #f2efe9;
  --surface: #ffffff;
  --surface-subtle: #f7f5f0;
  --border: #e5e1d8;
  --border-strong: #d3cdc0;

  --text: #14171f;
  --text-secondary: #434b5c;
  --text-muted: #626c80;

  --claude: #b85314;
  --claude-bg: #fff3ea;
  --claude-border: #f3cba9;

  --antigravity: #1b5fd1;
  --antigravity-bg: #eef5ff;
  --antigravity-border: #bfd8ff;

  --human: #0f7268;
  --human-bg: #ebf9f7;
  --human-border: #b5e4de;

  --shared: #5542c8;
  --shared-bg: #f2f0ff;
  --shared-border: #d4ccff;

  --btn-primary-bg: #14171f;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #293040;

  --header-bg: rgba(250, 249, 246, 0.86);
  --shadow-sm: 0 1px 2px rgba(20, 23, 31, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 23, 31, 0.07);
  --shadow-hero: 0 22px 50px rgba(15, 23, 42, 0.16);
  --focus-ring: #1b5fd1;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17;
    --bg-alt: #101622;
    --surface: #141c2b;
    --surface-subtle: #192336;
    --border: #243047;
    --border-strong: #334361;

    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --claude: #fb923c;
    --claude-bg: rgba(251, 146, 60, 0.14);
    --claude-border: rgba(251, 146, 60, 0.36);

    --antigravity: #60a5fa;
    --antigravity-bg: rgba(96, 165, 250, 0.15);
    --antigravity-border: rgba(96, 165, 250, 0.36);

    --human: #2dd4bf;
    --human-bg: rgba(45, 212, 191, 0.14);
    --human-border: rgba(45, 212, 191, 0.35);

    --shared: #a78bfa;
    --shared-bg: rgba(167, 139, 250, 0.15);
    --shared-border: rgba(167, 139, 250, 0.36);

    --btn-primary-bg: #f1f5f9;
    --btn-primary-text: #0b0f17;
    --btn-primary-hover: #dbe4f0;

    --header-bg: rgba(11, 15, 23, 0.84);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-hero: 0 24px 56px rgba(0, 0, 0, 0.55);
    --focus-ring: #60a5fa;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b0f17;
  --bg-alt: #101622;
  --surface: #141c2b;
  --surface-subtle: #192336;
  --border: #243047;
  --border-strong: #334361;

  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --claude: #fb923c;
  --claude-bg: rgba(251, 146, 60, 0.14);
  --claude-border: rgba(251, 146, 60, 0.36);

  --antigravity: #60a5fa;
  --antigravity-bg: rgba(96, 165, 250, 0.15);
  --antigravity-border: rgba(96, 165, 250, 0.36);

  --human: #2dd4bf;
  --human-bg: rgba(45, 212, 191, 0.14);
  --human-border: rgba(45, 212, 191, 0.35);

  --shared: #a78bfa;
  --shared-bg: rgba(167, 139, 250, 0.15);
  --shared-border: rgba(167, 139, 250, 0.36);

  --btn-primary-bg: #f1f5f9;
  --btn-primary-text: #0b0f17;
  --btn-primary-hover: #dbe4f0;

  --header-bg: rgba(11, 15, 23, 0.84);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-hero: 0 24px 56px rgba(0, 0, 0, 0.55);
  --focus-ring: #60a5fa;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.mark-claude {
  stroke: var(--claude);
}

.mark-antigravity {
  stroke: var(--antigravity);
}

.mark-human {
  fill: var(--human);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-subtle);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

/* Hero */

.hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--human);
}

h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.035em;
}

.subhead {
  margin: 0 0 28px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
}

.hero-trio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hero-trio li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-claude {
  background: var(--claude);
}

.dot-antigravity {
  background: var(--antigravity);
}

.dot-human {
  background: var(--human);
}

.hero-visual {
  margin: 0;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: var(--shadow-hero);
  aspect-ratio: 1376 / 768;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */

.section {
  padding: 72px 0;
}

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

.section-header {
  margin-bottom: 36px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.section-intro {
  margin: 0;
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 64ch;
}

/* Cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* 2. Meet the team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.role-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--border);
}

.role-claude {
  border-top-color: var(--claude);
}

.role-antigravity {
  border-top-color: var(--antigravity);
}

.role-human {
  border-top-color: var(--human);
}

.role-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.role-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.role-icon-claude {
  color: var(--claude);
  background: var(--claude-bg);
  border-color: var(--claude-border);
}

.role-icon-antigravity {
  color: var(--antigravity);
  background: var(--antigravity-bg);
  border-color: var(--antigravity-border);
}

.role-icon-human {
  color: var(--human);
  background: var(--human-bg);
  border-color: var(--human-border);
}

.role-tagline {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.role-meta {
  margin: 0 0 16px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.list-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.check-list li {
  position: relative;
  padding-left: 20px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.role-claude .check-list li::before {
  background: var(--claude);
}

.role-antigravity .check-list li::before {
  background: var(--antigravity);
}

.human-role-copy {
  margin: 0 0 22px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.human-gates {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.gate-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--human);
  background: var(--human-bg);
  border: 1px solid var(--human-border);
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 650;
  border: 1px solid transparent;
  line-height: 1.3;
}

.badge-claude {
  color: var(--claude);
  background: var(--claude-bg);
  border-color: var(--claude-border);
}

.badge-antigravity {
  color: var(--antigravity);
  background: var(--antigravity-bg);
  border-color: var(--antigravity-border);
}

.badge-human {
  color: var(--human);
  background: var(--human-bg);
  border-color: var(--human-border);
}

.badge-shared {
  color: var(--shared);
  background: var(--shared-bg);
  border-color: var(--shared-border);
}

/* 3. Who leads what */

.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-pill.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.pill-count {
  font-size: 0.76rem;
  opacity: 0.78;
}

.filter-status {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.leads-table th {
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.leads-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.leads-table tbody tr:last-child td {
  border-bottom: none;
}

.leads-table tbody tr:hover {
  background: var(--surface-subtle);
}

.leads-table tbody tr.is-hidden {
  display: none;
}

.leads-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.leads-table td:last-child {
  color: var(--text-secondary);
}

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

/* 4. Known limits */

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

.limit-card {
  padding: 24px;
}

.limit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.limit-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.limit-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* 5. How a feature gets built */

.mode-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 4px;
}

.mode-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.mode-btn.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

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

.step-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:last-child {
  grid-column: 1 / -1;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body {
  min-width: 0;
  flex: 1;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.step-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.owner-pill {
  font-size: 0.76rem;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.owner-human {
  color: var(--human);
  background: var(--human-bg);
  border-color: var(--human-border);
}

.owner-shared {
  color: var(--shared);
  background: var(--shared-bg);
  border-color: var(--shared-border);
}

.owner-claude {
  color: var(--claude);
  background: var(--claude-bg);
  border-color: var(--claude-border);
}

.workflow-list.is-fast-mode .step-card[data-fast="false"] {
  opacity: 0.42;
}

.workflow-list.is-fast-mode .step-card[data-fast="true"] {
  border-color: var(--human);
  box-shadow: 0 0 0 1px var(--human), var(--shadow-md);
}

.workflow-list.is-fast-mode .step-card[data-fast="true"] .step-num {
  background: var(--human);
  border-color: var(--human);
  color: var(--surface);
}

.fast-track-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--human-bg);
  border: 1px solid var(--human-border);
}

.fast-track-badge {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--human);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--human-border);
}

.fast-track-banner p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
}

/* 6. House rules */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.rule-card {
  padding: 24px;
}

.rule-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--text);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.rule-card h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.rule-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.protocol-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px dashed var(--border-strong);
}

.protocol-node {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.protocol-claude {
  border-left: 3px solid var(--claude);
}

.protocol-hub {
  border-left: 3px solid var(--human);
}

.protocol-antigravity {
  border-left: 3px solid var(--antigravity);
}

.protocol-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.protocol-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.protocol-arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

/* 7. How this page was made */

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

.credit-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.credit-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  background: var(--bg);
}

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

.footer-inner p {
  margin: 0;
}

.back-top {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.back-top:hover {
  color: var(--text);
  background: var(--surface-subtle);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .team-grid,
  .limits-grid,
  .rules-grid,
  .credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid .role-human,
  .limits-grid .limit-both,
  .credits-grid .credit-human {
    grid-column: 1 / -1;
  }

  .protocol-diagram {
    grid-template-columns: 1fr;
  }

  .protocol-arrow {
    transform: rotate(90deg);
  }
}

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

  .site-nav {
    display: none;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .section {
    padding: 52px 0;
  }

  .team-grid,
  .limits-grid,
  .workflow-list,
  .rules-grid,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .team-grid .role-human,
  .limits-grid .limit-both,
  .credits-grid .credit-human,
  .step-card:last-child {
    grid-column: auto;
  }

  .leads-table th,
  .leads-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .theme-toggle-label {
    display: none;
  }
}
