  /* ── Design Tokens ─────────────────────────────────────── */
  :root {
    --bg:           #FFFFFF;
    --bg-alt:       #F5F4F0;
    --bg-card:      #FFFFFF;
    --bg-dark:      #111111;
    --text:         #111111;
    --text-muted:   #3D3D3D;
    --text-subtle:  #888888;
    --accent:       #111111;
    --accent-hover: #000000;
    --border:       #D0CEC9;
    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body:    'IBM Plex Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
    --radius:       3px;
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.09);
    --shadow-lg:    0 12px 40px rgba(0,0,0,0.13);
  }

  [data-theme="dark"] {
    --bg:           #111111;
    --bg-alt:       #1A1A1A;
    --bg-card:      #1E1E1E;
    --bg-dark:      #000000;
    --text:         #EEEEEE;
    --text-muted:   #AAAAAA;
    --text-subtle:  #666666;
    --accent:       #EEEEEE;
    --accent-hover: #FFFFFF;
    --border:       #333333;
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:    0 12px 40px rgba(0,0,0,0.6);
  }

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

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip; /* prevent any element from causing horizontal page scroll */
  }

  body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; border: none; background: none; font-family: inherit; }

  /* ── Animations ─────────────────────────────────────────── */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .anim-1 { opacity: 0; animation: fadeInUp 0.6s ease forwards 0.1s; }
  .anim-2 { opacity: 0; animation: fadeInUp 0.6s ease forwards 0.25s; }
  .anim-3 { opacity: 0; animation: fadeInUp 0.6s ease forwards 0.4s; }
  .anim-4 { opacity: 0; animation: fadeInUp 0.6s ease forwards 0.55s; }
  .anim-5 { opacity: 0; animation: fadeInUp 0.6s ease forwards 0.7s; }

  /* ── Utilities ──────────────────────────────────────────── */
  .container {
    max-width: min(1440px, calc(100vw - 64px));
    margin: 0 auto;
    padding: 0 32px;
  }

  .section-divider {
    width: 100%;
    height: 2px;
    background: var(--border);
    margin-bottom: 48px;
  }

  .sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
  }

/* -- NAVBAR ----------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: var(--bg);
  transition: border-color 0.2s ease, backdrop-filter 0.2s ease, background 0.2s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: min(1440px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-icon {
  font-size: 21px;
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.nav-github {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.nav-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-theme-toggle:hover {
  color: var(--text);
  background: var(--bg-alt);
}

/* Show/hide sun/moon based on theme */
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

@media (max-width: 767px) {
  .nav-tools-link { display: none; }
}

/* -- HERO ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, #EFEFED, var(--bg) 55%);
  pointer-events: none;
}

[data-theme="dark"] .hero-bg-gradient {
  background: radial-gradient(ellipse 80% 60% at 80% 20%, #1E1E1E, var(--bg) 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { display: none; }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.accent-text { color: var(--accent); font-style: italic; }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.built-at-nyu {
  position: relative;
  border-bottom: 1px solid var(--border);
  cursor: default;
  display: inline-block;
}

.built-at-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-family: var(--font-body);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: normal;
  max-width: min(300px, calc(100vw - 64px));
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

/* Tooltip arrow */
.built-at-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  border: 4px solid transparent;
  border-top-color: var(--text);
}

.built-at-nyu:hover + .built-at-tooltip,
.built-at-nyu:focus + .built-at-tooltip { opacity: 1; }

/* Position tooltip relative to its container */
.hero-subtitle {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #F0EFEC;
  border: 1px solid #C8C6C1;
  color: #3D3D3D;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}

[data-theme="dark"] .hero-badge {
  background: rgba(255,255,255,0.07);
  border-color: #444444;
  color: #AAAAAA;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -- Buttons ---------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-light {
  background: #fff;
  color: #111111;
}

.btn-light:hover {
  background: #F4F4F5;
  transform: translateY(-2px);
}

.btn-text-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.btn-text-link:hover { opacity: 0.75; }

/* -- Mock card -------------------------------------------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px 0;
}

.mock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mock-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.18);
}

.mock-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #EDEDED;
  border-bottom: 1px solid #D0CEC9;
  color: #444444;
  font-weight: 500;
}

[data-theme="dark"] .mock-card-header {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #AAAAAA;
}

.mock-warn-icon { font-size: 16px; }

.mock-card-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-issue {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
}

.mock-issue code {
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.mock-x {
  color: #DC2626;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.mock-x-warn { color: #D97706; }

.mock-fn {
  color: var(--accent);
  font-weight: 600;
}

.mock-card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.mock-status {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

/* -- Mock Tabs -------------------------------------------- */
.mock-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.mock-tab {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-subtle);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mock-tab:hover {
  color: var(--text-muted);
  border-color: var(--text-subtle);
}

.mock-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* -- Mock Panels ------------------------------------------ */
.mock-panel { display: none; }

.mock-panel.active {
  display: block;
  animation: mockFadeIn 0.3s ease;
}

@keyframes mockFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- Zotero Mock ------------------------------------------ */
.mock-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #22C55E;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  display: inline-block;
}

.mock-lib-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.mock-lib-item:last-child { border-bottom: none; }

.mock-check {
  color: #22C55E;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.mock-spin {
  color: var(--text-subtle);
  flex-shrink: 0;
  margin-top: 2px;
}

.mock-lib-content { min-width: 0; }

.mock-lib-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-lib-url {
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-lib-perma {
  font-size: 11px;
  color: #22C55E;
}

.mock-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  width: 140px;
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  width: 65%;
  background: var(--accent);
  border-radius: 2px;
  animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* -- PermaDrop Mock --------------------------------------- */
.mock-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.mock-url-row-dim { opacity: 0.45; }

.mock-checkbox {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--accent);
}

.mock-checkbox-empty { color: var(--text-subtle); }

.mock-url-text {
  font-size: 11px;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.mock-perma-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
}

/* -- TOOL LAUNCHER ---------------------------------------- */
.tools-section {
  padding: 80px 0 96px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.tool-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tool-card-dark {
  background: #111111;
  border-color: #2A2A2A;
  border-left-color: #555555;
  color: #EEEEEE;
}

[data-theme="dark"] .tool-card-dark {
  background: #0A0A0A;
  border-color: #222222;
}

/* Buttons on dark cards: outlined style so they read as buttons, not white blocks */
.tool-card-dark .btn-primary,
.tool-card-dark .btn-primary.btn-light {
  background: transparent;
  color: #EEEEEE;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.tool-card-dark .btn-primary:hover,
.tool-card-dark .btn-primary.btn-light:hover {
  background: #EEEEEE;
  color: #111111;
  border-color: #EEEEEE;
  box-shadow: 0 4px 16px rgba(255,255,255,0.1);
}

.tool-phase-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.tool-phase-label-dark {
  color: #777777;
}

.tool-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.tool-card-dark .tool-name { color: #EEEEEE; }

.tool-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.tool-card-dark .tool-tagline { color: #AAAAAA; }

.tool-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.tool-card-dark .tool-desc { color: #777777; }

.tool-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* -- Badges ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-live {
  background: #EFEFED;
  color: #3D3D3D;
}

.badge-live::before { content: '●'; color: #888888; font-size: 8px; }

.badge-new {
  background: #EFEFED;
  color: #3D3D3D;
}

.badge-new::before { content: '★'; font-size: 9px; }

[data-theme="dark"] .badge-live { background: #2A2A2A; color: #AAAAAA; }
[data-theme="dark"] .badge-new  { background: #2A2A2A; color: #AAAAAA; }

/* -- PRIVACY BANNER --------------------------------------- */
.privacy-banner {
  background: #111111;
  padding: 80px 0;
}

[data-theme="dark"] .privacy-banner { background: #000000; }

.privacy-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: #F0F0F0;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.privacy-body {
  font-size: 16px;
  color: #AAAAAA;
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-proof {
  font-size: 15px;
  color: #777777;
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 48px;
}

.privacy-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 48px;
}

@media (max-width: 600px) {
  .privacy-features { grid-template-columns: 1fr; gap: 2rem; }
}

.privacy-feature { text-align: center; }

.privacy-feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.privacy-feature-title {
  font-size: 15px;
  font-weight: 600;
  color: #EEEEEE;
  margin-bottom: 6px;
}

.privacy-feature-desc {
  font-size: 13px;
  color: #777777;
  line-height: 1.5;
}

/* -- TECH SECTION ----------------------------------------- */
.tech-section {
  padding: 96px 0;
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Both grid cells must allow shrinking below content size */
.tech-inner > * { min-width: 0; }

.tech-code-wrap {
  overflow: hidden; /* code block cannot widen the grid cell */
}

@media (max-width: 800px) {
  .tech-inner { grid-template-columns: 1fr; gap: 32px; }
}

.tech-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.tech-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.tech-links {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.code-chrome {
  background: #2D2D3F;
  border-radius: 6px 6px 0 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.code-chrome-dots {
  display: flex;
  gap: 6px;
}

.code-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3D3D50;
}

.code-chrome-dots span:first-child { background: #FF5F57; }
.code-chrome-dots span:nth-child(2) { background: #FEBC2E; }
.code-chrome-dots span:last-child { background: #28C840; }

.code-chrome-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6B6B8A;
}

.code-block {
  background: #1E1E2E;
  color: #CDD6F4;
  border-radius: 0 0 6px 6px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  margin: 0;
}

.c-comment { color: #6272A4; }
.c-kw      { color: #FF79C6; }
.c-fn      { color: #50FA7B; }
.c-str     { color: #F1FA8C; }

/* -- AUTHOR SECTION --------------------------------------- */
.author-section {
  padding: 0 0 96px;
}

.author-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 700px;
}

@media (max-width: 600px) {
  .author-inner { flex-direction: column; }
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.author-avatar-fallback {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 24px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.author-roles {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.author-pubs {
  font-size: 14px;
  color: var(--text-subtle);
  line-height: 1.65;
  margin-bottom: 16px;
}

.author-pubs em { font-style: italic; }

.author-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.author-link:hover { opacity: 0.75; }

.author-link-sep {
  color: var(--text-subtle);
  font-size: 14px;
}

/* -- FOOTER ----------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-subtle);
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-subtle);
}


.page-main { padding: 80px 0; }

.section-divider { width: 100%; height: 2px; background: var(--border); margin: 64px 0; }

.phase-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-subtle); margin-bottom: 14px;
}
.page-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--text); letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 20px;
}
.page-subtitle {
  font-size: 18px; color: var(--text-muted); line-height: 1.65;
  max-width: 620px; margin-bottom: 32px;
}
.page-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.compat-note { font-size: 13px; color: var(--text-subtle); }

/* (duplicate btn-primary/ghost block removed — canonical rules are earlier in this file) */

.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
@media (max-width: 700px) { .docs-grid { grid-template-columns: 1fr; } }

.docs-h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--text); margin-bottom: 16px; border-left: 3px solid var(--accent); padding-left: 12px; }

.docs-steps { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.docs-steps li { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.docs-steps strong { color: var(--text); }
.docs-steps code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 13px; }

.docs-body { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.docs-body strong { color: var(--text); }

.docs-callout {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 14px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-top: 16px;
}

.docs-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.docs-list li { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.inline-link { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.inline-link:hover { text-decoration-color: var(--accent); }

.docs-footer-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; flex-wrap: wrap; gap: 16px; }

.page-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-bottom { font-size: 13px; color: var(--text-subtle); }
.footer-bottom a { color: var(--text-muted); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--text); }

.phase-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-subtle); margin-bottom: 14px;
}
.page-title {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 400;
  color: var(--text); letter-spacing: -0.02em; margin-bottom: 8px;
}
.last-updated { font-size: 13px; color: var(--text-subtle); margin-bottom: 48px; }

.policy-body { display: flex; flex-direction: column; gap: 0; }
.policy-body p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.policy-body h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 400;
  color: var(--text); margin-top: 36px; margin-bottom: 12px;
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.policy-body code {
  background: var(--bg-alt); padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 13px;
}
.policy-body a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.policy-body a:hover { text-decoration-color: var(--accent); }

.btn-text-link { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 500; transition: opacity 0.15s; }
.btn-text-link:hover { opacity: 0.75; }

.policy-footer-nav { margin-top: 64px; }

.page-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-bottom { font-size: 13px; color: var(--text-subtle); }
.footer-bottom a { color: var(--text-muted); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--text); }
