/* ============================================================
   AI Workshop Toolkit — Shared CSS
   Standalone (does not import style.css to avoid app-shell layout)
   Used by: /ai-workshop/, /idea-factory/, and future tool pages
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }

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

html, body { overflow-x: hidden; }

:root {
  --bg:         #0d0d0f;
  --bg-2:       #141416;
  --bg-3:       #1a1a1e;
  --bg-4:       #222228;
  --border:     #2a2a30;
  --accent:     #4f8ef7;
  --accent-dim: #3570d4;
  --text:       #eeeef2;
  --text-muted: #8888a0;
  --text-dim:   #4a4a60;
  --radius:     14px;
  --radius-sm:  8px;
  --font:       'Inter', -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

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


/* ── Workshop Nav ────────────────────────────────────────── */

.workshop-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
}

.workshop-nav {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-sep {
  color: var(--border);
  margin: 0 8px;
  user-select: none;
}

.nav-section {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-tool {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-tool:hover {
  background: var(--bg-3);
  color: var(--text);
  text-decoration: none;
}
.nav-tool.active {
  background: var(--bg-3);
  color: var(--text);
  font-weight: 500;
}
.nav-tool--soon {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}


/* ── Main Content ────────────────────────────────────────── */

.workshop-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}


/* ── Hub Page ────────────────────────────────────────────── */

.hub-hero { margin-bottom: 56px; }

.sizzle-reel { text-align: center; margin: 48px 0; }
.sizzle-reel-note { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.sizzle-reel-video {
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sizzle-reel-video iframe { width: 100%; height: 100%; display: block; }

.hub-badge {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hub-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hub-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hub-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: block;
  text-align: left;
}
.hub-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.hub-bullets li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }

.hub-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 0;
  align-items: start;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.hub-card-icon { grid-row: 1 / -1; font-size: 20px; line-height: 1.4; }
.hub-card-body { grid-column: 2; }
.hub-card:hover { text-decoration: none; }

.hub-card--live:hover {
  border-color: var(--accent-dim);
  background: var(--bg-3);
}

.hub-card--soon {
  opacity: 0.45;
  cursor: default;
}

.hub-card-body h2 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.hub-card-body p  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.hub-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hub-card-status--live {
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
}

.hub-card-status--soon {
  background: var(--bg-4);
  color: var(--text-dim);
  border: 1px solid var(--border);
}


/* ── Hub CTA Button ─────────────────────────────────────── */

.hub-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 24px;
}
.hub-cta:hover { background: var(--accent-dim); }
.hub-cta:active { transform: scale(0.98); }


/* ── What You'll Learn ──────────────────────────────────── */

.hub-learn {
  margin-bottom: 56px;
}

.hub-learn h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hub-learn-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hub-learn-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hub-learn-item--expanded {
  align-items: flex-start;
}

.hub-learn-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.hub-learn-content strong {
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.hub-learn-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hub-learn-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
}

.hub-learn-prompt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 12px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.hub-learn-infographics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.hub-learn-infographic img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hub-learn-ig-caption {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

.hub-learn-ig-caption strong {
  color: var(--text);
  font-size: 13px;
  display: inline;
  margin-bottom: 0;
}


/* ── Workshop Tools Section Header ──────────────────────── */

.hub-tools-section {
  margin-bottom: 20px;
}

.hub-tools-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hub-tools-sub {
  font-size: 15px;
  color: var(--text-muted);
}


/* ── Hub Capabilities ────────────────────────────────────── */

.hub-about h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hub-caps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-cap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hub-cap-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}


/* ── Idea Factory ────────────────────────────────────────── */

.if-header { margin-bottom: 40px; }
.if-header h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.if-sub { font-size: 16px; color: var(--text-muted); line-height: 1.6; max-width: 800px; }

.if-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.if-category {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.if-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.if-cat-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 3px;
}

.if-cat-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.if-cat-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.if-cat-context { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-top: 6px; font-style: italic; }

.if-result {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.if-placeholder {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
}

.if-ideas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  animation: fadeSlideIn 0.25s ease;
}

.if-idea-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.if-idea-card:hover {
  border-color: var(--accent-dim);
}

.if-idea-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.if-idea {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}

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

.if-btn {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.if-btn:hover { background: var(--accent-dim); }
.if-btn:active { opacity: 0.8; }
.if-btn:disabled { opacity: 0.5; cursor: wait; }


/* ── Onboarding Modal ───────────────────────────────────── */

.ob-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-modal.hidden { display: none; }

.ob-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.ob-box {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 800px;
  width: calc(100% - 48px);
  height: min(640px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 32px;
}

.ob-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.ob-close:hover { background: var(--bg-3); color: var(--text); }

.ob-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ob-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.ob-dots {
  display: flex;
  gap: 8px;
}

.ob-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ob-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.ob-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ob-content::-webkit-scrollbar { display: none; }

.ob-slide { display: none; }
.ob-slide.active { display: block; animation: fadeSlideIn 0.25s ease; }

.ob-slide h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ob-slide img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: #fff;
}

.ob-slide p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.ob-help {
  font-size: 13px;
  color: var(--text-dim);
}
.ob-help a {
  color: var(--accent);
  font-weight: 500;
}

.ob-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.ob-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
}

.ob-btn--primary {
  background: var(--accent);
  color: #fff;
}
.ob-btn--primary:hover { background: var(--accent-dim); }

.ob-btn--secondary {
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.ob-btn--secondary:hover { background: var(--bg-4); color: var(--text); }
.ob-btn--secondary:disabled { opacity: 0.3; cursor: default; }


/* ── Workshop Flow (breadcrumbs) ──────────────────────────── */

.workshop-flow {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.workshop-flow a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.workshop-flow a:hover { color: var(--accent); text-decoration: none; }


/* ── Copy Button ─────────────────────────────────────────── */

.copy-btn {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 8px;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-muted); }
.copy-btn.copied { color: #34d399; border-color: #34d399; }

.cs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.cs-actions .copy-btn { margin-top: 0; }

/* ── Step Checkboxes ─────────────────────────────────────── */

.hub-learn-item[data-step] .hub-learn-num {
  cursor: pointer;
  transition: all 0.2s;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.hub-learn-item[data-step] .hub-learn-num:hover {
  border-color: var(--accent);
}
.hub-learn-item[data-step].completed .hub-learn-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hub-learn-item[data-step].completed {
  opacity: 0.6;
}


/* ── HalperBot Mascot ─────────────────────────────────────── */

.nav-halperbot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}

.halperbot-inline {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-left: 8px;
  display: inline;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.halperbot-inline:hover {
  opacity: 1;
  transform: scale(1.15);
}


/* ── Prompt Lab ──────────────────────────────────────────── */

.pl-scenario {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.pl-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.pl-header .hub-learn-content { flex: 1; }

.pl-toggle {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.pl-toggle:hover { color: var(--text); border-color: var(--text-muted); }

.pl-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pl-comparison.hidden { display: none; }

.pl-side {
  border-radius: var(--radius-sm);
  padding: 16px;
}

.pl-bad { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.15); }
.pl-good { background: rgba(34, 197, 94, 0.06); border: 1px solid rgba(34, 197, 94, 0.15); }

.pl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.pl-label--bad { color: #ef4444; }
.pl-label--good { color: #22c55e; }

.pl-prompt {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}

.pl-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.pl-output-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pl-output p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pl-why {
  grid-column: 1 / -1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.pl-why strong { color: var(--text); }

.pl-scenario[data-step] .hub-learn-num {
  cursor: pointer;
  transition: all 0.2s;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.pl-scenario[data-step] .hub-learn-num:hover { border-color: var(--accent); }
.pl-scenario[data-step].completed .hub-learn-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pl-scenario[data-step].completed { opacity: 0.6; }

.pl-reroll {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.pl-reroll-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.pl-reroll-btn:hover { color: var(--text); border-color: var(--accent); background: var(--bg-2); }

.pl-reroll-count {
  font-size: 11px;
  color: var(--text-dim);
}


/* ── Cheat Sheet ────────────────────────────────────────── */

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}

.cs-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.cs-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.cs-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.cs-when {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.cs-when strong { color: var(--text); font-size: 13px; }

.cs-example {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
}

.cs-example-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.cs-prompt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cs-tip {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 8px;
}
.cs-tip strong { color: var(--text-muted); font-size: 12px; }


/* ── Challenge Board ────────────────────────────────────── */

.ch-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.ch-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}

.ch-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.ch-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 8px;
  vertical-align: middle;
}

.ch-badge--beginner { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.ch-badge--intermediate { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.ch-badge--advanced { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }


/* ── Glossary ───────────────────────────────────────────── */

.gl-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.gl-search {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.gl-search:focus { border-color: var(--accent); }
.gl-search::placeholder { color: var(--text-dim); }

.gl-count {
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.gl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
}

.gl-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.gl-item dt {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.gl-aka {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
}

.gl-item dd {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.gl-empty {
  text-align: center;
  font-size: 15px;
  color: var(--text-dim);
  padding: 40px 0;
}
.gl-empty.hidden { display: none; }


/* ── Print Styles ───────────────────────────────────────── */

@media print {
  .workshop-header, .workshop-footer, .workshop-flow, .halperbot-inline, .nav-halperbot, .hub-badge, .copy-btn, .hero-visual { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .workshop-main { padding: 0; max-width: 100%; }
  .hub-hero h1 { font-size: 24pt; color: #000; }
  .hub-sub { color: #333; }
  .cs-grid { gap: 12px; }
  .cs-card { border: 1px solid #ccc; padding: 12px; break-inside: avoid; }
  .cs-card h3 { color: #000; }
  .cs-example { border-color: #999; border-left-color: #333; }
  .cs-prompt, .cs-when, .cs-tip { color: #333; }
  .gl-item { border-color: #ccc; break-inside: avoid; }
  .gl-item dt { color: #000; }
  .gl-item dd { color: #333; }
  .gl-search-wrap { display: none; }
}


/* ── Tips Page ────────────────────────────────────────────── */

.tips-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.tips-column-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
@media (max-width: 700px) {
  .tips-columns { grid-template-columns: 1fr; gap: 32px; }
}


/* ── Footer ──────────────────────────────────────────────── */

.workshop-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.workshop-footer a { color: var(--text-muted); text-decoration: none; }
.workshop-footer a:hover { color: var(--accent); }


/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 700px) {
  .workshop-header { height: auto; padding: 12px 16px; }
  .workshop-nav { flex-wrap: wrap; gap: 8px; }
  .nav-sep, .nav-section { display: none; }
  .nav-tools {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: 0;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }
  .nav-tool { white-space: nowrap; flex-shrink: 0; font-size: 13px; padding: 12px 14px; }

  .workshop-main { padding: 40px 16px; }

  .hub-hero h1 { font-size: 32px; }
  .hub-sub { font-size: 16px; }
  .hub-grid { grid-template-columns: 1fr; }

  .hub-learn-infographics { grid-template-columns: 1fr; }

  .ob-box { padding: 16px; width: calc(100% - 24px); max-height: calc(100vh - 40px); height: auto; }
  .ob-progress { margin-bottom: 10px; gap: 10px; }
  .ob-slide h3 { font-size: 15px; margin-bottom: 8px; }
  .ob-slide img { max-height: 200px; margin-bottom: 8px; }
  .ob-slide p { font-size: 13px; line-height: 1.4; margin-bottom: 6px; }
  .ob-help { font-size: 12px; }
  .ob-nav { margin-top: 10px; padding-top: 10px; }
  .ob-btn { padding: 12px 18px; font-size: 13px; }

  .hub-hero { margin-bottom: 36px; }
  .hub-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 14px; }

  .hub-learn h2 { font-size: 22px; }
  .hub-learn-items { grid-template-columns: 1fr; }
  .hub-learn-item { padding: 14px 14px; gap: 10px; }
  .hub-learn-num { font-size: 11px; }
  .hub-learn-content strong { font-size: 14px; }
  .hub-learn-content p { font-size: 13px; }
  .hub-learn-prompt { padding: 12px 14px; font-size: 13px; }

  .if-header h1 { font-size: 28px; }
  .if-grid { grid-template-columns: 1fr; }
  .if-cat-header { gap: 12px; }

  .pl-comparison { grid-template-columns: 1fr; }
  .pl-why { grid-column: 1; }

  .cs-grid { grid-template-columns: 1fr; }
  .ab-builder { gap: 16px; }
  .ab-step { flex-direction: column; gap: 8px; }
  .ab-step-num { width: 28px; height: 28px; font-size: 13px; flex-shrink: 0; }
  .quiz-options { grid-template-columns: 1fr; }
}


/* ── Agent Builder ─────────────────────────────────────── */

.ab-builder {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ab-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ab-step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ab-step-body { flex: 1; }

.ab-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.ab-hint {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 8px;
}

.ab-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.ab-input:focus { border-color: var(--accent); }
.ab-input::placeholder { color: var(--text-dim); }

.ab-output-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 8px;
}

.ab-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ab-output-header h3 { font-size: 15px; font-weight: 700; margin: 0; }

.ab-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--mono, 'SF Mono', 'Fira Code', monospace);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  margin: 0;
}


/* ── Prompt Cookbook ────────────────────────────────────── */

.cb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.cb-cat-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.cb-cat-btn:hover { border-color: var(--text-muted); color: var(--text); }
.cb-cat-btn.active { border-color: var(--accent); color: var(--accent); background: var(--bg-3); }

.cb-cat-count {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 2px;
}

.cb-recipe {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.cb-recipe.hidden { display: none; }

.cb-recipe-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cb-recipe-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}

.cb-recipe-prompt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 8px;
}

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


/* ── AI Readiness Quiz ─────────────────────────────────── */

.quiz-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.quiz-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.quiz-question {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-option {
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  line-height: 1.4;
}
.quiz-option:hover { border-color: var(--text-muted); color: var(--text); }
.quiz-option.selected { border-color: var(--accent); color: var(--text); background: var(--bg-3); }

.quiz-result {
  text-align: center;
  padding: 32px 0;
}

.quiz-score {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.quiz-level {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 20px;
}

.quiz-reco {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin-top: 20px;
}

.quiz-reco h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.quiz-reco-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quiz-reco-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.quiz-reco-list li:last-child { border-bottom: none; }
.quiz-reco-list a { color: var(--accent); text-decoration: none; }
.quiz-reco-list a:hover { text-decoration: underline; }

.quiz-restart {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 16px;
}
.quiz-restart:hover { color: var(--text); border-color: var(--accent); }

.quiz-framework {
  background: none;
  border: none;
  border-radius: 0;
  padding: 24px;
  margin-bottom: 28px;
  text-align: center;
}
.quiz-framework img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.quiz-framework-caption {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}


/* ── ROI Calculator ──────────────────────────────────── */

.roi-calc {
  max-width: 680px;
  margin: 0 auto;
}

.roi-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.roi-presets-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.roi-preset {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.roi-preset:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }

.roi-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.roi-task {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
}

.roi-task-name { flex: 1; color: var(--text); font-weight: 500; }
.roi-task-hours { color: var(--text-dim); font-size: 13px; }
.roi-task-arrow { color: var(--text-dim); font-size: 12px; }
.roi-task-saved { color: var(--accent); font-size: 13px; font-weight: 600; }

.roi-task-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.roi-task-remove:hover { color: #ef4444; }

.roi-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.roi-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  flex: 1;
}
.roi-input:focus { border-color: var(--accent); }
.roi-input::placeholder { color: var(--text-dim); }
.roi-input--hours { max-width: 100px; flex: none; }
.roi-input--rate { width: 80px; flex: none; padding: 6px 10px; font-size: 13px; }

.roi-add-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.roi-add-btn:hover { opacity: 0.85; }

.roi-results { min-height: 40px; }

.roi-empty {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  padding: 24px 0;
}

.roi-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.roi-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.roi-stat--highlight {
  border-color: var(--accent);
  background: rgba(79, 142, 247, 0.08);
}

.roi-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.roi-stat--highlight .roi-stat-num { color: var(--accent); }

.roi-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.roi-rate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  justify-content: flex-end;
}


/* ── Prompt Fixer ────────────────────────────────────── */

.pf-wrap {
  max-width: 680px;
}

.pf-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  min-height: 120px;
}
.pf-textarea:focus { border-color: var(--accent); }
.pf-textarea::placeholder { color: var(--text-dim); }

.pf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.pf-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pf-btn:hover { opacity: 0.85; }

.pf-btn--secondary {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pf-btn--secondary:hover { opacity: 1; border-color: var(--text-muted); color: var(--text); }

.pf-btn--bs {
  background: #fd6524;
  color: #fff;
  text-decoration: none;
  margin-left: auto;
}
@media (max-width: 700px) {
  .pf-btn--bs { margin-left: 0; }
}

.pf-results { }

.pf-empty {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  padding: 16px 0;
}

.pf-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.pf-grade {
  width: 64px;
  height: 64px;
  border: 3px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.pf-score-detail { flex: 1; }

.pf-score-label {
  font-size: 16px;
  font-weight: 700;
}

.pf-word-count {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

.pf-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-check {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.pf-check--pass { border-left: 3px solid #22c55e; }
.pf-check--fail { border-left: 3px solid #ef4444; }

.pf-check-icon {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  margin-top: 1px;
}
.pf-check--pass .pf-check-icon { color: #22c55e; }
.pf-check--fail .pf-check-icon { color: #ef4444; }

.pf-check-body { flex: 1; }

.pf-check-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pf-check-msg {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pf-check-fix {
  font-size: 13px;
  color: var(--accent);
  line-height: 1.5;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}


/* ── Capability Explorer ─────────────────────────────── */

.cap-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.cap-role-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cap-role-btn:hover { border-color: var(--text-muted); }
.cap-role-btn.active { border-color: var(--accent); background: var(--bg-3); }

.cap-role-icon { font-size: 20px; margin-bottom: 4px; }
.cap-role-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cap-role-count { font-size: 12px; color: var(--text-dim); }

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 56px;
}

.cap-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.cap-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cap-item-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.cap-item-header strong {
  font-size: 15px;
  color: var(--text);
}

.cap-item-prompt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.cap-copy-btn {
  font-size: 12px;
  padding: 5px 12px;
}


/* ── Responsive additions (ROI, Fixer, Explorer) ─────── */

@media (max-width: 700px) {
  .roi-summary { grid-template-columns: 1fr 1fr; }
  .roi-add-row { flex-wrap: wrap; }
  .roi-input { min-width: 0; }
  .roi-task { flex-wrap: wrap; gap: 6px; }
  .roi-presets { gap: 6px; }
  .cap-roles { grid-template-columns: 1fr 1fr; }
  .pf-score-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ── Post-Result CTAs ────────────────────────────────── */

.tool-cta {
  display: none;
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.tool-cta.visible { display: block; }
.tool-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.tool-cta a:hover { text-decoration: underline; }


/* ── Newsletter CTA ──────────────────────────────────── */

.newsletter-cta {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  text-align: center;
}
.newsletter-cta p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.newsletter-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.newsletter-cta-btn:hover { opacity: 0.85; }


/* ── From The Agile VC (Newsletter Grid) ─────────────── */

.newsletter-section {
  max-width: 900px;
  margin: 0 auto;
}
.newsletter-section h2 {
  text-align: center;
  margin-bottom: 8px;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.newsletter-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}
.newsletter-card:hover { border-color: var(--accent); }
.newsletter-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
}
.newsletter-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.newsletter-card h3 a:hover { color: var(--accent); }
.newsletter-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.newsletter-card .read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.newsletter-card .read-link:hover { text-decoration: underline; }
.newsletter-all {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}
.newsletter-all a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.newsletter-all a:hover { text-decoration: underline; }


/* ── Work with Peter ─────────────────────────────────── */

.work-with-peter {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 56px auto 0;
  padding: 16px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ww-peter-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  min-width: 200px;
}
.ww-peter-sub {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.ww-peter-sub:hover { color: var(--accent); }
.ww-peter-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ww-peter-btn:hover { opacity: 0.85; }
.ww-peter-links a:hover { color: var(--accent); }


/* ── Agent Framework Grid ────────────────────────────── */

.agent-framework {
  max-width: 900px;
  margin: 0 auto 40px;
}
.agent-framework h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text);
}
.agent-framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.af-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.af-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.af-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.af-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}
.af-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}
.af-card li::before { content: "→ "; color: var(--accent); }


/* ── Footer Upgrade ──────────────────────────────────── */

.workshop-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 13px;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}
.footer-copy a { color: var(--text-dim); text-decoration: none; }
.footer-copy a:hover { color: var(--accent); }

/* ── Network Bar ─────────────────────────────────────── */
.network-bar{text-align:center;padding:14px 16px 10px;font-size:10px;color:var(--text-dim,rgba(255,255,255,0.3));border-top:1px solid rgba(255,255,255,0.05);margin-top:12px;line-height:2;}
.network-bar a{color:var(--text-dim,rgba(255,255,255,0.3));text-decoration:none;margin:0 2px;}
.network-bar a:hover{color:var(--accent,#4f8ef7);}


/* ── Site Brief Generator ────────────────────────────── */

.sb-builder {
  max-width: 680px;
  margin: 0 auto;
}
.sb-field {
  margin-bottom: 24px;
}
.sb-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.sb-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.sb-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.sb-input:focus { border-color: var(--accent); }
.sb-input::placeholder { color: var(--text-dim); }
.sb-textarea { resize: vertical; min-height: 60px; }

.sb-layout-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.sb-layout-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.sb-layout-btn.active { border-color: var(--accent); color: var(--accent); }
.sb-layout-btn:hover:not(.active) { border-color: var(--text-muted); }

.sb-vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.sb-tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.sb-tag.active { border-color: var(--accent); color: var(--accent); background: rgba(99,102,241,0.08); }
.sb-tag:hover:not(.active) { border-color: var(--text-muted); }

.sb-generate-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s;
  margin-bottom: 24px;
}
.sb-generate-btn:hover { opacity: 0.85; }

.sb-output-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sb-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sb-output-header h3 { font-size: 15px; font-weight: 700; margin: 0; color: var(--text); }
.sb-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  margin: 0;
}


/* ── Color & Style Picker ────────────────────────────── */

.cp-moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 24px;
}
.cp-mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.cp-mood-btn:hover { border-color: var(--accent); }
.cp-mood-btn.active { border-color: var(--accent); background: rgba(99,102,241,0.06); }
.cp-mood-icon { font-size: 24px; }
.cp-mood-name { font-size: 13px; font-weight: 600; color: var(--text); }

.cp-palette {
  max-width: 680px;
  margin: 0 auto;
}
.cp-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  text-align: center;
}
.cp-swatches {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.cp-swatch {
  flex: 1;
  padding: 24px 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 80px;
  justify-content: flex-end;
}
.cp-hex { font-size: 12px; font-weight: 600; font-family: var(--font); }
.cp-name { font-size: 11px; opacity: 0.75; font-family: var(--font); }

.cp-code-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.cp-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.cp-code {
  padding: 14px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}


/* ── Level Up — Component Prompt Pack ────────────────── */

.lu-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 24px;
}
.lu-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.lu-cat-btn:hover { border-color: var(--accent); }
.lu-cat-btn.active { border-color: var(--accent); background: rgba(99,102,241,0.06); }
.lu-cat-icon { font-size: 22px; }
.lu-cat-name { font-size: 13px; font-weight: 600; color: var(--text); }
.lu-cat-count { font-size: 11px; color: var(--text-dim); }

.lu-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lu-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.lu-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.lu-item-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  font-family: var(--font);
}
.lu-item-header strong {
  font-size: 15px;
  color: var(--text);
}
.lu-item-prompt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}


/* ── Responsive additions (funnel + website builder) ── */

@media (max-width: 700px) {
  .newsletter-grid { grid-template-columns: 1fr; }
  .agent-framework-grid { grid-template-columns: 1fr 1fr; }
  .work-with-peter { margin: 40px 8px 0; padding: 14px 16px; }
  .newsletter-cta { margin: 32px 8px; padding: 16px 20px; }
  .footer-nav { gap: 4px 12px; font-size: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 12px; }
  .cp-moods { grid-template-columns: repeat(2, 1fr); }
  .cp-swatches { flex-wrap: wrap; }
  .cp-swatch { min-width: 60px; flex: 1 1 auto; }
  .lu-cats { grid-template-columns: 1fr 1fr; }
  .sb-layout-btns { flex-wrap: wrap; }
  .copy-btn { padding: 6px 12px; }
  .pl-toggle { padding: 8px 14px; }
  .pl-reroll-btn { padding: 8px 16px; }
  .quiz-score { font-size: 48px; }
  .work-with-peter { margin: 40px 12px 0; padding: 14px 16px; }
}

@media (max-width: 420px) {
  .agent-framework-grid { grid-template-columns: 1fr; }
}


/* ── Common Mistakes ──────────────────────────────────── */

.mistakes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.mistake-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.mistake-card .mc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.mistake-card .mc-dont { color: #e74c3c; }
.mistake-card .mc-do { color: #2ecc71; }

.mistake-card .mc-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.mistake-card .mc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}


/* ── Peter's AI Stack ─────────────────────────────────── */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.stack-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}

.stack-card .sc-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stack-card .sc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stack-card .sc-role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.stack-card .sc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ── Prompt Cheat Sheet ───────────────────────────────── */

.cheat-list, .cheat-grid {
  max-width: 760px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.cheat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.cheat-card summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cheat-card summary::-webkit-details-marker { display: none; }

.cheat-card .cc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cheat-card .cc-when {
  font-size: 12px;
  color: var(--text-dim);
}

.cheat-card[open] {
  grid-column: 1 / -1;
}

.cheat-card .cc-prompt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 16px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
}

.cheat-card .cc-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
}

.cheat-card .cc-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* ── FAQ ──────────────────────────────────────────────── */

.faq-list {
  max-width: 760px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.faq-item[open] summary::before { content: "−"; }

.faq-item .faq-answer {
  padding: 0 20px 16px 52px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-more.hidden { display: none; }
.faq-toggle {
  display: block;
  margin: 16px auto 0;
  padding: 8px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.faq-toggle:hover { border-color: var(--accent); color: var(--accent); }


/* ── Video Easter Egg ─────────────────────────────────── */

.video-easter-egg {
  max-width: 680px;
  margin: 48px auto;
  text-align: center;
}

.video-easter-egg h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.video-easter-egg .vee-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.video-easter-egg iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}


/* ── Responsive: Tips new sections ────────────────────── */

@media (max-width: 700px) {
  .mistakes-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .cheat-list, .cheat-grid { grid-template-columns: 1fr; }
  .cheat-card .cc-prompt { font-size: 12px; }
  .faq-item summary { font-size: 14px; padding: 14px 16px; }
  .faq-item .faq-answer { padding: 0 16px 14px 44px; font-size: 13px; }
}

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

/* ── Open Source card links ──────────────────────────── */

.sc-link { display:inline-block; margin-top:8px; font-size:0.78rem; color:var(--accent); text-decoration:none; font-weight:500; }
.sc-link:hover { text-decoration:underline; }

/* ── Agent Library ───────────────────────────────────── */

.al-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 20px;
}
.al-breadcrumb a { color: var(--accent); text-decoration: none; }
.al-breadcrumb a:hover { text-decoration: underline; }
.al-breadcrumb .al-sep { opacity: 0.4; }

.al-stats-bar {
  display: flex; gap: 24px; justify-content: center;
  padding: 14px 0; margin: 20px 0 32px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
}
.al-stats-bar strong { color: var(--text); font-weight: 600; }

.al-search-wrap {
  max-width: 480px; margin: 0 auto 36px; position: relative;
}
.al-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; pointer-events: none; opacity: 0.5;
}
.al-search {
  width: 100%; padding: 12px 16px 12px 42px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 0.95rem; font-family: var(--font);
  outline: none; transition: border-color 0.2s;
}
.al-search:focus { border-color: var(--accent); }
.al-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none;
}

.al-dept-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.al-dept-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.al-dept-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.al-dept-icon { font-size: 1.8rem; }
.al-dept-name { font-size: 1.05rem; font-weight: 600; }
.al-dept-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.al-dept-count {
  font-size: 0.75rem; color: var(--accent); font-weight: 500;
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border);
}

.al-agent-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.al-agent-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.al-agent-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.al-agent-title { font-size: 1rem; font-weight: 600; }
.al-agent-oneliner { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.al-agent-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.al-tag {
  padding: 2px 10px; font-size: 0.7rem; font-weight: 500;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 99px;
  color: var(--text-muted);
}

.al-dept-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.al-dept-header-icon { font-size: 2rem; }
.al-dept-header-name { font-size: 1.3rem; font-weight: 700; }

.al-dept-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.al-dept-nav a {
  padding: 4px 12px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 99px;
  color: var(--text-muted); text-decoration: none; transition: all 0.2s;
}
.al-dept-nav a:hover, .al-dept-nav a.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.al-agent-hero { margin-bottom: 24px; }
.al-agent-hero h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 8px; }
.al-dept-badge {
  display: inline-block; padding: 3px 12px; font-size: 0.75rem; font-weight: 500;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 99px;
  color: var(--accent); margin-bottom: 12px;
}
.al-agent-hero p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.al-agent-hero .al-agent-tags { margin-top: 12px; }
.al-recipe-badge + .al-recipe-badge,
.al-dept-badge + .al-recipe-badge { margin-left: 8px; }

.al-prompt-section { margin: 32px 0; }
.al-prompt-section h2 {
  font-size: 1rem; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.al-prompt-block {
  position: relative; padding: 20px 24px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.85rem; line-height: 1.7; color: var(--text);
  white-space: pre-wrap; font-family: var(--font);
  max-height: 500px; overflow-y: auto;
}
.al-prompt-block .al-prompt-heading {
  display: block; color: var(--accent); margin: 12px 0 6px; font-size: 0.88rem;
}
.al-prompt-block .al-prompt-heading:first-child { margin-top: 0; }
.al-prompt-block .al-prompt-list {
  margin: 4px 0 8px 16px; padding: 0; list-style: disc;
}
.al-prompt-block .al-prompt-list--numbered { list-style: decimal; }
.al-prompt-block .al-prompt-list li {
  margin-bottom: 3px; font-size: 0.84rem; line-height: 1.6;
}

.al-copy-bar {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px;
}
.al-copy-btn {
  padding: 8px 20px; font-size: 0.85rem; font-weight: 600;
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font); transition: background 0.2s;
}
.al-copy-btn:hover { background: var(--accent-dim); }
.al-copy-btn.copied { background: #22c55e; }

.al-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin: 32px 0;
}
.al-meta-card {
  padding: 16px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.al-meta-card h3 {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px;
}
.al-meta-card ul { list-style: none; padding: 0; margin: 0; }
.al-meta-card li {
  padding: 4px 0; font-size: 0.85rem; color: var(--text);
  border-bottom: 1px solid var(--bg-3);
}
.al-meta-card li:last-child { border-bottom: none; }
.al-meta-card a { color: var(--accent); text-decoration: none; }
.al-meta-card a:hover { text-decoration: underline; }

/* Autoresearch section — teal/emerald zone (tools & resources) */
.al-autoresearch {
  margin: 48px 0 0; padding: 32px;
  border: 1px solid rgba(20,184,166,0.15);
  border-left: 3px solid #14b8a6;
  border-radius: var(--radius);
  background: rgba(20,184,166,0.02);
}
.al-autoresearch h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.al-autoresearch .al-ar-subtitle { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 24px; line-height: 1.5; }
.al-ar-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 28px;
}
.al-ar-grid .infographic-figure { margin: 0; max-width: none; }
.al-ar-grid .infographic-figure img {
  width: 100%; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); transition: border-color 0.2s;
}
.al-ar-grid .infographic-figure img:hover { border-color: #14b8a6; }
.al-ar-grid .infographic-figure figcaption {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; text-align: center;
}
.al-ar-bridge { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }
.al-ar-hero { margin: 0 auto 24px; max-width: 720px; text-align: center; }
.al-ar-hero .infographic-figure { margin: 0; max-width: none; }
.al-ar-hero .infographic-figure img {
  width: 100%; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--border); transition: border-color 0.2s;
}
.al-ar-hero .infographic-figure img:hover { border-color: #14b8a6; }
.al-ar-hero .infographic-figure figcaption {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 8px;
}
.al-ar-clone {
  margin: 0; padding: 12px 16px; background: var(--bg); border: 1px solid rgba(20,184,166,0.2);
  border-radius: var(--radius-sm); font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem; color: #14b8a6; overflow-x: auto; text-align: center;
}
.al-ar-link {
  display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 500;
  color: #14b8a6; text-decoration: none; transition: color 0.2s;
}
.al-ar-link:hover { color: var(--text); }
@media (max-width: 700px) {
  .al-ar-grid { grid-template-columns: 1fr; }
}

.al-cta-section {
  margin: 48px 0 24px; padding: 24px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.al-cta-section h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.al-cta-section p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 16px; }
.al-cta-btn {
  display: inline-block; padding: 10px 24px; font-size: 0.88rem; font-weight: 600;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm);
  text-decoration: none; transition: background 0.2s;
}
.al-cta-btn:hover { background: var(--accent-dim); }

.al-featured {
  margin: 0 0 40px; padding: 24px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.al-featured-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); margin-bottom: 8px;
}
.al-featured h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.al-featured h3 a { color: var(--text); text-decoration: none; }
.al-featured h3 a:hover { color: var(--accent); }
.al-featured p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Fresh This Week section */
.al-fresh-section { margin: 0 0 48px; }
.al-fresh-section h2 {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.al-fresh-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.al-footer {
  margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--border);
  text-align: center;
}
.al-footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.al-footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; }
.al-footer-links a:hover { color: var(--accent); }
.al-footer-copy { margin-top: 12px; font-size: 0.75rem; color: var(--text-dim); }

/* Bonus recipe badge */
.al-recipe-badge {
  display: inline-block; padding: 2px 8px; font-size: 0.65rem; font-weight: 600;
  background: #22c55e; color: #fff; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Playbook section */
.al-playbooks-section { margin: 0 0 48px; }
.al-playbooks-section h2 {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.al-playbook-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.al-playbook-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.al-playbook-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.al-playbook-icon { font-size: 1.8rem; }
.al-playbook-name { font-size: 1.05rem; font-weight: 600; }
.al-playbook-summary { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.al-playbook-count {
  font-size: 0.75rem; color: var(--accent); font-weight: 500;
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border);
}

/* Playbook detail page */
.al-playbook-hero { margin-bottom: 32px; }
.al-playbook-hero h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 12px; }
.al-playbook-hero p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.al-usecase-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; margin: 32px 0;
}
.al-usecase-card {
  padding: 20px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.al-usecase-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.al-usecase-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.al-takeaways {
  margin: 32px 0; padding: 24px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.al-takeaways h2 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.al-takeaways ul { margin: 0; padding: 0 0 0 20px; }
.al-takeaways li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 6px; }

/* Glossary section (index preview) */
.al-glossary-section { margin: 0 0 48px; }
.al-glossary-section h2 {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.al-glossary-preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.al-browse-link {
  margin-top: 12px; font-size: 0.85rem;
}
.al-browse-link a { color: var(--accent); }
.al-glossary-pill {
  display: block; padding: 10px 14px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-size: 0.85rem;
  transition: border-color 0.2s;
}
.al-glossary-pill:hover { border-color: var(--accent); }
.al-glossary-pill strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.al-glossary-pill span { color: var(--text-muted); font-size: 0.75rem; }

/* Glossary hub page */
.al-az-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px;
}
.al-az-tab {
  padding: 4px 10px; font-size: 0.8rem; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.al-az-tab:hover, .al-az-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.al-letter-group { margin-bottom: 24px; }
.al-letter-heading {
  font-size: 1.2rem; font-weight: 800; color: var(--accent);
  border-bottom: 2px solid var(--border); padding-bottom: 6px; margin-bottom: 12px;
}
.al-term-row {
  display: block; padding: 12px 16px; margin-bottom: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color 0.2s;
}
.al-term-row:hover { border-color: var(--accent); }
.al-term-name { font-weight: 600; font-size: 0.95rem; }
.al-term-aka { color: var(--text-muted); font-size: 0.8rem; margin-left: 6px; }
.al-term-def { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; line-height: 1.5; }
.al-cat-badge {
  display: inline-block; padding: 2px 8px; font-size: 0.65rem; font-weight: 600;
  border-radius: 99px; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--bg-3); color: var(--text-muted);
}

/* Glossary detail page */
.al-glossary-hero { margin-bottom: 32px; }
.al-glossary-hero h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 12px; }
.al-glossary-hero p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.al-glossary-def {
  font-size: 1.05rem; line-height: 1.8; color: var(--text-muted);
  padding: 24px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 32px;
  overflow-wrap: break-word; word-break: break-word;
}

/* Guide section (index preview) */
.al-guides-section { margin: 0 0 48px; }
.al-guides-section h2 {
  font-size: 1.1rem; font-weight: 700; margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.al-guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.al-guide-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.al-guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.al-guide-icon { font-size: 1.8rem; }
.al-guide-name { font-size: 1.05rem; font-weight: 600; }
.al-guide-meta { font-size: 0.75rem; color: var(--accent); font-weight: 500; }

/* Guide detail page */
.al-guide-hero { margin-bottom: 32px; }
.al-guide-hero h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 12px; }
.al-guide-hero p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.al-step-list { margin: 32px 0; }
.al-step {
  padding: 20px; margin-bottom: 16px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.al-step-num {
  display: inline-block; width: 28px; height: 28px; line-height: 28px;
  text-align: center; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 0.85rem; margin-right: 10px;
}
.al-step h3 { display: inline; font-size: 1rem; font-weight: 600; }
.al-step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 10px 0 0; }
.al-pro-tips {
  margin: 32px 0; padding: 24px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.al-pro-tips h2 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.al-pro-tips ul { margin: 0; padding: 0 0 0 20px; }
.al-pro-tips li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 6px; }

/* Reusable section heading (replaces inline styles) */
.al-section-heading {
  font-size: 1.1rem; font-weight: 700; margin: 32px 0 16px;
}

/* Compact agent card variant for recommended agents */
.al-agent-card--compact { padding: 14px; }

/* Focus-visible for interactive card elements */
.al-dept-card:focus-visible, .al-agent-card:focus-visible,
.al-playbook-card:focus-visible, .al-guide-card:focus-visible,
.al-term-row:focus-visible, .al-glossary-pill:focus-visible,
.al-dept-nav a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

@media (max-width: 700px) {
  .al-dept-grid { grid-template-columns: 1fr; }
  .al-agent-grid { grid-template-columns: 1fr; }
  .al-meta-grid { grid-template-columns: 1fr; }
  .al-stats-bar { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .al-fresh-grid { grid-template-columns: 1fr; }
  .al-playbook-grid { grid-template-columns: 1fr; }
  .al-glossary-preview { grid-template-columns: 1fr; }
  .al-guide-grid { grid-template-columns: 1fr; }
  .al-usecase-grid { grid-template-columns: 1fr; }
  .al-az-tabs { gap: 4px; }
}

/* ── Executive Assessment Flow ──────────────────────── */
.hub-cta--secondary {
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
  padding: 12px 28px; border-radius: var(--radius-sm); font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-block; margin-left: 12px;
}
.hub-cta--secondary:hover { background: var(--accent); color: #fff; }

.share-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
}

/* ── Color Zones ────────────────────────────────────────── */
.zone-exercise, .zone-concept, .zone-assess, .zone-reference {
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 56px;
}
.zone-exercise, .zone-concept, .zone-assess, .zone-reference {
  /* shared inner spacing */
}
.zone-exercise .hub-learn,
.zone-concept .hub-learn,
.zone-assess .hub-learn,
.zone-reference .hub-learn,
.zone-exercise .llm-section,
.zone-concept .llm-section,
.zone-reference .llm-section,
.zone-concept .rag-section,
.zone-exercise .rag-section,
.zone-assess .rag-section,
.zone-reference .rag-section,
.zone-concept .mcp-section,
.zone-exercise .mcp-section,
.zone-reference .mcp-section { margin-top: 40px; margin-bottom: 0; }
.zone-exercise .hub-learn:first-child,
.zone-concept .hub-learn:first-child,
.zone-assess .hub-learn:first-child,
.zone-reference .hub-learn:first-child,
.zone-concept .llm-section:first-child,
.zone-concept .rag-section:first-child,
.zone-concept .mcp-section:first-child,
.zone-exercise .mcp-section:first-child,
.zone-exercise .rag-section:first-child { margin-top: 0; }

/* Green — exercises / "do this" */
.zone-exercise {
  border-color: rgba(52,211,153,0.15);
  border-left-color: #34d399;
  background: rgba(52,211,153,0.02);
}
/* Purple — concepts / "learn this" */
.zone-concept {
  border-color: rgba(168,85,247,0.15);
  border-left-color: #a855f7;
  background: rgba(168,85,247,0.02);
}
/* Blue — assessment / leadership (was .assess-zone) */
.zone-assess {
  border-color: rgba(79,142,247,0.15);
  border-left-color: var(--accent);
  background: rgba(79,142,247,0.02);
}
/* Amber — reference / tips / takeaways */
.zone-reference {
  border-color: rgba(245,158,11,0.15);
  border-left-color: #f59e0b;
  background: rgba(245,158,11,0.02);
}
.exec-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.exec-banner {
  background: linear-gradient(135deg, rgba(79,142,247,0.08), rgba(168,85,247,0.06));
  border: 1px solid rgba(79,142,247,0.2); border-radius: var(--radius);
  padding: 32px; text-align: center; margin-bottom: 0;
}
.exec-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.exec-banner p { color: var(--text-muted); font-size: 15px; max-width: 640px; margin: 0 auto; }

/* Maturity Scorecard */
.maturity-wrap { max-width: 720px; margin: 0 auto; }
.maturity-dim {
  display: grid; grid-template-columns: 180px 1fr 40px; align-items: center;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.maturity-dim:last-child { border-bottom: none; }
.maturity-dim-label { font-size: 14px; font-weight: 600; }
.maturity-dim-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.maturity-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--bg-3); border-radius: 3px; outline: none;
}
.maturity-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg);
}
.maturity-val { font-size: 18px; font-weight: 700; color: var(--accent); text-align: center; }

.maturity-result {
  margin-top: 24px; padding: 24px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center;
}
.maturity-score { font-size: 48px; font-weight: 800; margin-bottom: 4px; }
.maturity-stage { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.maturity-desc { font-size: 14px; color: var(--text-muted); max-width: 520px; margin: 0 auto 16px; line-height: 1.5; }
.maturity-bars { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.maturity-bar-item { text-align: center; min-width: 100px; }
.maturity-bar-track { height: 6px; background: var(--bg-3); border-radius: 3px; margin-bottom: 4px; overflow: hidden; }
.maturity-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.maturity-bar-label { font-size: 10px; color: var(--text-dim); }

/* Decision Matrix */
.auto-depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.auto-dept-btn {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; text-align: center; cursor: pointer; transition: all 0.15s;
  font-family: var(--font);
}
.auto-dept-btn:hover { border-color: var(--accent); }
.auto-dept-btn.active { border-color: var(--accent); background: rgba(79,142,247,0.08); }
.auto-dept-icon { font-size: 24px; margin-bottom: 6px; }
.auto-dept-name { font-size: 13px; font-weight: 600; }

.auto-list { display: flex; flex-direction: column; gap: 10px; }
.auto-item {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.auto-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.auto-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.auto-item-meta { text-align: right; }
.auto-item-impact { font-size: 20px; font-weight: 800; }
.auto-item-impact--high { color: #22c55e; }
.auto-item-impact--med { color: #eab308; }
.auto-item-complexity { font-size: 11px; color: var(--text-dim); }

@media (max-width: 640px) {
  .auto-depts { grid-template-columns: repeat(2, 1fr); }
  .maturity-dim { grid-template-columns: 1fr; gap: 8px; }
  .hub-cta--secondary { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
}


/* ── Design Polish — Global ─────────────────────────── */

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Subtle gradient text on hero headings */
.hub-hero h1 {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section divider line before key sections */
.exec-banner { scroll-margin-top: 24px; }
#roi-section, #capability-section, #maturity-section, #auto-section {
  scroll-margin-top: 24px;
}

/* Card hover lift effect */
.hub-card--live {
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hub-card--live:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,142,247,0.08);
}

/* Accent glow on active quiz option */
.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(79,142,247,0.06);
}

/* ROI preset pill hover */
.roi-preset:not(:disabled):hover {
  border-color: var(--accent);
  background: rgba(79,142,247,0.08);
}

/* Capability role button hover lift */
.cap-role-btn {
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.cap-role-btn:hover {
  transform: translateY(-1px);
}

/* Maturity slider track gradient */
.maturity-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--bg-3) 0%, rgba(79,142,247,0.2) 100%);
}

/* Decision matrix item hover */
.auto-item {
  transition: border-color 0.15s, background 0.15s;
}
.auto-item:hover {
  border-color: rgba(79,142,247,0.3);
  background: rgba(79,142,247,0.03);
}

/* Department button active glow */
.auto-dept-btn.active {
  box-shadow: 0 0 12px rgba(79,142,247,0.15);
}

/* Footer nav link hover */
.footer-nav a {
  transition: color 0.15s;
}

/* Tool CTA reveal animation */
.tool-cta {
  transition: opacity 0.4s, transform 0.4s;
}

/* Newsletter card hover */
.newsletter-card {
  transition: border-color 0.2s, transform 0.2s;
}
.newsletter-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-1px);
}

/* Exec banner subtle animation */
.exec-banner {
  position: relative;
  overflow: hidden;
}
.exec-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(79,142,247,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Focus styles for accessibility */
.hub-cta:focus-visible, .hub-cta--secondary:focus-visible,
.quiz-option:focus-visible, .cap-role-btn:focus-visible,
.auto-dept-btn:focus-visible, .maturity-slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Mobile-specific polish */
@media (max-width: 700px) {
  .hub-hero h1 {
    background: none;
    -webkit-text-fill-color: var(--text);
  }
  .zone-exercise, .zone-concept, .zone-assess, .zone-reference,
  .assess-zone { padding: 16px; margin-top: 36px; }
  .exec-banner { padding: 24px 16px; }
  .exec-banner h2 { font-size: 22px; }
  .exec-banner p { font-size: 14px; }
  .maturity-wrap { padding: 0 4px; }
  .maturity-dim-label { font-size: 13px; }
  .auto-item { grid-template-columns: 1fr; gap: 8px; }
  .auto-item-meta { text-align: left; display: flex; gap: 12px; align-items: center; }
  .newsletter-grid { grid-template-columns: 1fr; }
}

/* ── Infographic images ─────────────────────────────────── */
.infographic-figure {
  margin: 24px auto;
  max-width: 640px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.infographic-figure img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.infographic-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
/* legacy standalone class — keep for any stragglers */
.infographic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  cursor: zoom-in;
}
.ob-slide img {
  cursor: zoom-in;
}

/* ── Infographic lightbox overlay ───────────────────────── */
.img-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.88);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.img-modal-overlay.active { display: flex; }
.img-modal-overlay img {
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  cursor: default;
}
.img-modal-dl {
  margin-top: 14px;
  padding: 8px 20px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: background .2s;
  cursor: pointer;
}
.img-modal-dl:hover { background: rgba(255,255,255,.22); }


/* ── Hero 2-Column Layout + Agent Builder Animation ───── */

.hub-hero:has(.hero-visual) {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hub-hero-text { flex: 1; min-width: 0; }

.hero-visual {
  flex: 0 0 400px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(79, 142, 247, 0.06), 0 0 0 1px rgba(79, 142, 247, 0.04);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.hv-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.hv-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-4);
}
.hv-dot:nth-child(1) { background: #ff5f57; }
.hv-dot:nth-child(2) { background: #febc2e; }
.hv-dot:nth-child(3) { background: #28c840; }

.hv-titlebar-label {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Prompt panel */
.hv-prompt {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  height: 62px;
  overflow: hidden;
}

.hv-prompt-label {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: var(--font);
}

.hv-prompt-text {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.hv-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: hv-blink 0.8s step-end infinite;
}

@keyframes hv-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Code panel */
.hv-code {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  height: 148px;
}

.hv-code-label {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-family: var(--font);
}

.hv-code-lines { }

.hv-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.hv-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.hv-key { color: var(--accent); }
.hv-str { color: #7ec699; }
.hv-comment { color: var(--text-dim); font-style: italic; }
.hv-punct { color: var(--text-muted); }

/* Status bar */
.hv-status {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  min-height: 38px;
}

.hv-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.4s;
  flex-shrink: 0;
}
.hv-status-dot.running { background: #febc2e; }
.hv-status-dot.done { background: #28c840; }

.hv-status-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font);
  transition: color 0.4s;
}
.hv-status-text.done { color: #7ec699; }

/* Fade transition between scenarios */
.hv-card.fading {
  opacity: 0.4;
  transition: opacity 0.4s;
}
.hv-card:not(.fading) {
  opacity: 1;
  transition: opacity 0.4s;
}

/* Activity Feed */
.hv-feed-card { font-family: var(--font); }

.hv-live-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #28c840;
  background: rgba(40, 200, 64, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  animation: hv-pulse 2s ease-in-out infinite;
}

@keyframes hv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hv-feed {
  padding: 6px 0;
  height: 168px;
  overflow: hidden;
  position: relative;
}

.hv-feed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(transparent, var(--bg-2));
  pointer-events: none;
}

.hv-feed-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.hv-feed-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.hv-feed-time {
  color: var(--text-dim);
  font-size: 11px;
  flex-shrink: 0;
  width: 36px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.hv-feed-agent {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 68px;
  font-size: 11px;
}

.hv-feed-msg {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footnote */
.hv-footnote {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  padding: 6px 4px 0;
  line-height: 1.4;
}
.hv-footnote a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.hv-footnote a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Responsive: stack on mobile */
@media (max-width: 700px) {
  .hub-hero:has(.hero-visual) { flex-direction: column; gap: 32px; }
  .hero-visual { flex: none; max-width: 100%; width: 100%; }
}

@media (max-width: 420px) {
  .hv-card { font-size: 12px; }
  .hv-feed-entry { gap: 6px; padding: 4px 12px; }
}
