/* RevBots.ai Theme CSS v3 */
/* Design System: Inter font, 70/30 layout, dark mode, WCAG AA */

/* ===== FONT FACE (self-hosted Inter) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors */
  --brand-blue: #488EFF;
  --brand-blue-dark: #2B6FD4;    /* WCAG AA for small text on white */
  --brand-blue-light: #5C9CFF;
  --brand-blue-bg: #EBF2FF;

  /* ARM Stage Colors */
  --stage-tab-hopper: #EF4444;       /* Red - Stage 1 */
  --stage-tab-hopper-bg: #FEE2E2;
  --stage-tab-hopper-border: #EF4444;
  --stage-saas-hoarder: #EAB308;     /* Yellow - Stage 2 */
  --stage-saas-hoarder-bg: #FEF9C3;
  --stage-saas-hoarder-border: #EAB308;
  --stage-ai-sprinkler: #22C55E;     /* Green - Stage 3 */
  --stage-ai-sprinkler-bg: #DCFCE7;
  --stage-ai-sprinkler-border: #22C55E;
  --stage-arm: #8B5CF6;              /* Purple - Stage 4 (Royalty) */
  --stage-arm-bg: #EDE9FE;
  --stage-arm-border: #8B5CF6;

  /* Semantic Colors - Light Mode */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;
  --color-bg-card: #FFFFFF;
  --color-bg-card-hover: #FFFFFF;
  --color-surface: #F7F8FA;
  --color-border: #E2E5EA;
  --color-border-light: #F0F1F3;

  --color-text: #1A1A1A;
  --color-text-secondary: #5A6370;
  --color-text-muted: #8B929D;
  --color-text-link: #2B6FD4;     /* Passes WCAG AA on white */
  --color-text-link-hover: #488EFF;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 680px;
  --sidebar-width: 340px;
  --gap: 2rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Header */
  --header-height: 80px;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg: #0f0f0f;
  --color-bg-alt: #1a1a2e;
  --color-bg-card: #1e1e2e;
  --color-bg-card-hover: #252540;
  --color-surface: #1a1a2e;
  --color-border: #2a2a3a;
  --color-border-light: #222233;

  --color-text: #e0e0e0;
  --color-text-secondary: #a0a0b0;
  --color-text-muted: #707080;
  --color-text-link: #6BA3FF;
  --color-text-link-hover: #488EFF;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

  --stage-tab-hopper-bg: rgba(239, 68, 68, 0.15);
  --stage-saas-hoarder-bg: rgba(234, 179, 8, 0.15);
  --stage-ai-sprinkler-bg: rgba(34, 197, 94, 0.15);
  --stage-arm-bg: rgba(139, 92, 246, 0.15);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-md);
}

/* ===== READING PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-blue);
  z-index: 10001;
  transition: width 50ms linear;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  display: none; /* Hidden by default. Set display:flex to activate */
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}
.announcement-bar a {
  color: #fff;
  text-decoration: underline;
}
.announcement-bar .announcement-close {
  position: absolute;
  right: var(--space-lg);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: var(--space-xs);
  opacity: 0.8;
}
.announcement-bar .announcement-close:hover {
  opacity: 1;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-slow);
  height: var(--header-height);
}
.site-header.header-hidden {
  transform: translateY(-100%);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img {
  height: 65px;
  width: auto;
  margin-top: 4px;
}
[data-theme="dark"] .header-logo img,
[data-theme="dark"] .welcome-modal-logo {
  filter: brightness(0) invert(1);
}

/* Header Search */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-input {
  width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: width var(--transition-slow), padding var(--transition-slow), border-color var(--transition-slow);
  outline: none;
}
.header-search.open .header-search-input {
  width: 180px;
  padding: 0.35rem 0.8rem;
  border-color: var(--color-border);
}
.header-search.open .header-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(72, 142, 255, 0.2);
}
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}
.header-search-btn:hover {
  color: var(--color-text);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: var(--space-2xl);
}
.header-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--color-text);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}
.theme-toggle:hover {
  color: var(--color-text);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Subscribe Button (nav) */
.btn-subscribe-nav {
  background: var(--brand-blue);
  color: #fff !important;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
}
.btn-subscribe-nav:hover {
  background: var(--brand-blue-light);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}
.hamburger svg {
  width: 24px;
  height: 24px;
}

/* ===== MOBILE NAV PANEL ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--color-bg);
  z-index: 2001;
  transition: right var(--transition-slow);
  padding: var(--space-xl);
  overflow-y: auto;
}
.mobile-nav-panel.open { right: 0; }
.mobile-nav-panel .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.mobile-nav-panel nav a {
  display: block;
  padding: var(--space-md) 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-panel nav a:hover {
  color: var(--brand-blue);
}

/* ===== MAIN LAYOUT (70/30) ===== */
.layout-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}
.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap);
  align-items: start;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-xs);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.filter-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.filter-pill.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
/* Stage-specific active colors */
.filter-pill.active[data-stage="tab-hopper"] {
  background: var(--stage-tab-hopper);
  border-color: var(--stage-tab-hopper);
}
.filter-pill.active[data-stage="saas-hoarder"] {
  background: var(--stage-saas-hoarder);
  border-color: var(--stage-saas-hoarder);
}
.filter-pill.active[data-stage="ai-sprinkler"] {
  background: var(--stage-ai-sprinkler);
  border-color: var(--stage-ai-sprinkler);
}
.filter-pill.active[data-stage="arm"] {
  background: var(--stage-arm);
  border-color: var(--stage-arm);
}

/* ===== HERO ARTICLE ===== */
.article-hero {
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.article-hero:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.article-hero:hover .article-hero-title {
  color: var(--brand-blue);
}
.article-hero:hover .article-hero-img img {
  transform: scale(1.03);
}
.article-hero-img {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}
.article-hero-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.article-hero-body {
  padding: var(--space-lg) var(--space-xl);
}
.article-hero .article-source-row {
  margin-bottom: var(--space-sm);
}
.article-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
  color: var(--color-text);
}
.article-hero-excerpt {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* ===== STAGE BADGE ===== */
.stage-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.article-meta .stage-badge {
  margin-bottom: 0;
}
.stage-badge-lg {
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
}
.stage-badge-tab-hopper {
  background: var(--stage-tab-hopper-bg);
  color: var(--stage-tab-hopper);
}
.stage-badge-saas-hoarder {
  background: var(--stage-saas-hoarder-bg);
  color: var(--stage-saas-hoarder);
}
.stage-badge-ai-sprinkler {
  background: var(--stage-ai-sprinkler-bg);
  color: var(--stage-ai-sprinkler);
}
.stage-badge-arm {
  background: var(--stage-arm-bg);
  color: var(--stage-arm);
}

/* "RevBots Analysis" original badge */
.badge-original {
  background: var(--brand-blue-bg);
  color: var(--brand-blue-dark);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: var(--space-sm);
}

/* ===== ARTICLE META LINE ===== */
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.article-meta img.source-favicon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}
.article-meta .meta-sep {
  color: var(--color-border);
}

/* ===== ARTICLE LIST (Thumbnail layout) ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
  background: transparent;
  transition: background-color 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.article-item:last-child {
  border-bottom: none;
}
.article-item:hover {
  background-color: var(--color-bg-alt);
}
.article-item:hover .article-item-title {
  color: var(--brand-blue);
}
.article-item:hover .article-item-thumb img {
  transform: scale(1.03);
}

.article-item-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 134px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.article-item-body {
  flex: 1;
  min-width: 0;
}
.article-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item-excerpt {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Source row: favicon + name + badges */
.article-source-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}
.source-favicon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}
.source-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* Topic pill */
.topic-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-light);
}

.article-item-title a {
  color: inherit;
  text-decoration: none;
}

/* No-thumb layout: article body takes full width */
.article-hero.no-thumb .article-hero-body {
  padding: var(--space-xl) 0;
}

/* Hero image on detail page */
.article-hero-image {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Detail page header */
.article-detail-header {
  margin-bottom: var(--space-lg);
}
.article-detail-header .article-source-row {
  margin-bottom: var(--space-sm);
}
.article-detail-header .source-favicon {
  width: 20px;
  height: 20px;
}

/* ===== INLINE SUBSCRIBE CTA ===== */
.inline-cta {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}
.inline-cta h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.inline-cta p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}
.inline-cta .btn-subscribe-nav {
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
}

/* ===== LOAD MORE ===== */
.load-more-wrap {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.btn-load-more {
  background: var(--color-bg);
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 0.6rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-load-more:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

/* Section spacing + gradient divider between sections */
.sidebar-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  position: relative;
}
.sidebar-section:not(:last-child)::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border-light) 30%, var(--color-border-light) 70%, transparent);
}
.sidebar-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Sidebar icons */
.sidebar-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.3rem;
  color: var(--brand-blue);
}

/* Base title */
.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--brand-blue);
}

/* Tier: Primary (Top Signal) - bolder, more prominent */
.sidebar-tier-primary .sidebar-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
.sidebar-tier-primary .sidebar-article-title {
  font-weight: 700;
}

/* Tier: Secondary (Trending) - lighter accent */
.sidebar-tier-secondary .sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom-color: var(--color-border);
}

/* Tier: Analysis (RevBots Recommended) */
.sidebar-tier-analysis .sidebar-title {
  border-bottom-color: var(--stage-arm);
}

/* Sidebar CTA (ARM Quiz) */
.sidebar-cta-quiz {
  background: var(--brand-blue-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}
.sidebar-cta-quiz .sidebar-title {
  border-bottom-color: var(--brand-blue-dark);
}
.sidebar-cta-quiz p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}
.btn-cta-quiz {
  display: inline-block;
  text-decoration: none;
  background: var(--brand-blue);
  color: #fff;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.btn-cta-quiz:hover {
  background: var(--brand-blue-dark);
}

/* Article rows (shared across all sidebar sections) */
.sidebar-article {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-article:first-child { padding-top: 0; }
.sidebar-article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.sidebar-article:hover .sidebar-article-title { color: var(--brand-blue); }

/* Thumbnails */
.sidebar-article-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.sidebar-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text */
.sidebar-article-body {
  flex: 1;
  min-width: 0;
}
.sidebar-article-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-article-meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

/* ===== SUBSCRIBE MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 440px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-xs);
}
.modal-close:hover { color: var(--color-text); }
.modal h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}
.modal p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}
.modal input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.modal input[type="email"]:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(72, 142, 255, 0.2);
}
.modal .btn-subscribe {
  width: 100%;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.modal .btn-subscribe:hover {
  background: var(--brand-blue-light);
}
.modal .gdpr-check {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* ===== ARTICLE DETAIL PAGE ===== */
.article-detail-header {
  margin-bottom: var(--space-xl);
}
.article-detail-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}
.article-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.article-detail-meta .source-logo {
  height: 16px;
  width: auto;
}
.article-detail-meta .meta-original-link {
  color: var(--color-text-link);
  font-weight: 500;
  text-decoration: none;
}
.article-detail-meta .meta-original-link:hover {
  text-decoration: underline;
}

/* Article body prose */
.article-body {
  max-width: var(--content-width);
  line-height: 1.8;
  font-size: 1.05rem;
}
.article-body h2 {
  font-size: 1.4rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.article-body p {
  margin-bottom: var(--space-lg);
}
.article-body ul, .article-body ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}
.article-body li {
  margin-bottom: var(--space-sm);
}
.article-body blockquote {
  border-left: 4px solid var(--brand-blue);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--brand-blue-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

/* The Gist + Key Takeaways */
.the-gist {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.the-gist h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-blue-dark);
  margin-bottom: var(--space-sm);
}
.the-gist p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* Summary bullets (The Gist + signal list cards) */
.summary-bullets {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  padding: 0;
  margin: 0;
}
.summary-bullets li {
  margin-bottom: 0.4rem;
  list-style: none;
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.summary-bullets li::before {
  content: "\2022\00a0\00a0";
  font-size: 1.1em;
  color: var(--brand-blue);
  vertical-align: -0.05em;
}

.key-takeaways {
  margin-bottom: var(--space-xl);
}
.key-takeaways h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
}
.key-takeaways ul {
  list-style: none;
  padding: 0;
}
.key-takeaways li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}
.key-takeaways li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  background: none;
  cursor: pointer;
}
.share-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
}

/* Bottom CTA (article) */
.bottom-cta {
  background: var(--brand-blue-bg);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  margin: var(--space-2xl) 0;
  max-width: var(--content-width);
}
.bottom-cta h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.bottom-cta p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* ARM stage inline links in RevBots Take */
.arm-stage-link {
  color: var(--brand-blue-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand-blue-light);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.arm-stage-link:hover {
  color: var(--brand-blue);
}

/* Source attribution (signal articles) */
.source-attribution {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}
.source-attribution a {
  color: var(--color-text-link);
  font-weight: 600;
  text-decoration: none;
}
.source-attribution a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-3xl);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.footer-top-row img {
  height: 48px;
}
.footer-brand-statement {
  font-size: 1.0rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  text-align: right;
}
.footer-brand {
}
.footer-brand-keywords {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.footer-nav-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.footer-links {
  display: flex;
  gap: var(--space-xl);
}
.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-text-link);
}
.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-left: var(--space-lg);
}
.footer-social a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--brand-blue);
}
.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  width: 44px;
  height: 44px;
  margin: var(--space-2xl) auto var(--space-lg);
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--transition-base);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  display: flex;
}
.back-to-top:hover {
  opacity: 1;
}

/* ===== ARTICLE NAV BAR ===== */
.article-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}
.article-nav-bar a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}
.article-nav-bar a:hover {
  color: var(--color-text);
}
.article-nav-back::before {
  content: "\2190";
}
.article-nav-next::after {
  content: "\2192";
}

/* ===== FORMS ===== */
input, select, textarea {
  font-family: inherit;
}
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(72, 142, 255, 0.2);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-primary:hover { background: var(--brand-blue-light); }

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: var(--content-width);
}
.about-content h1 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}
.about-content h2 {
  font-size: 1.3rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}
.about-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* About: Bullets */
.about-bullets {
  list-style: none;
  padding: 0 0.5rem;
  margin: 0 0 var(--space-lg);
}
.about-bullets li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  padding-left: 1.4em;
  text-indent: -1.4em;
  margin-bottom: 0.35rem;
}
.about-bullets li::before {
  content: "\2022\00a0\00a0";
  color: var(--brand-blue);
  font-size: 1.2em;
  vertical-align: -0.05em;
}

/* About: LinkedIn icon next to heading */
.about-linkedin-link {
  color: var(--color-text-muted);
  text-decoration: none;
  vertical-align: middle;
  margin-left: 0.35rem;
  transition: color var(--transition-fast);
}
.about-linkedin-link:hover {
  color: #0A66C2;
}
.about-linkedin-link svg {
  vertical-align: -0.15em;
}

/* About: Host Row (headshot + bio) */
.about-host-row {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}
.about-headshot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.about-headshot {
  width: 140px;
  height: auto;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}
.about-headshot:hover {
  box-shadow: var(--shadow-lg);
}
.about-headshot-wrap:hover .about-linkedin-link {
  color: #0A66C2;
}
.about-headshot-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.about-host-bio {
  flex: 1;
  min-width: 0;
}
.about-host-bio p {
  margin-bottom: var(--space-md);
}
@media (max-width: 479px) {
  .about-host-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-headshot {
    width: 120px;
  }
}

/* About: Stat Cards */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: var(--space-xl) 0;
}
.about-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.about-stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.about-stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.about-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.about-stat-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 479px) {
  .about-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ===== MATURITY MAP ===== */
.maturity-curve-wrap {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  padding: var(--space-lg);
}
.maturity-curve-wrap svg {
  width: 100%;
  height: auto;
}
.stage-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
.stage-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.stage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stage-card .stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}
.stage-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}
.stage-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* FAQ accordion */
.faq-list details {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  list-style: none;
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  color: var(--brand-blue);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq-list details[open] summary::after {
  content: '-';
}
.faq-list details p {
  padding: var(--space-sm) 0 var(--space-sm) 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== PRIVACY / TERMS ===== */
.legal-content {
  max-width: var(--content-width);
}
.legal-content h1 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}
.legal-content h2 {
  font-size: 1.2rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}
.legal-content p, .legal-content li {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.legal-content ul {
  padding-left: var(--space-xl);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .layout-two-col {
    grid-template-columns: 1fr 280px;
  }
  .stage-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .layout-two-col {
    grid-template-columns: 1fr;
  }
  .header-nav { display: none; }
  .hamburger { display: block; }
  .header-actions .btn-subscribe-nav { display: none; }
  .header-search { display: none; }

  .article-hero-img img { height: 200px; }
  .article-hero-title { font-size: 1.25rem; }

  .article-item {
    flex-direction: column;
  }
  .article-item-thumb {
    width: 100%;
    height: 180px;
  }

  .stage-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    text-align: center;
  }
  .footer-nav-row {
    flex-direction: column;
    align-items: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-social {
    margin-left: 0;
  }
  .footer-copyright {
    text-align: center;
  }


  .article-detail-header h1 {
    font-size: 1.5rem;
  }

  .sidebar {
    position: static;
  }
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ===== SECTION HEADINGS ===== */
.section-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--brand-blue);
}

/* (Top Signal moved to sidebar tier system) */

/* ===== RELATED SIGNALS ===== */
.related-signals {
  margin: var(--space-2xl) 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.related-signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.related-signal-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.related-signal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-signal-card:hover h3 {
  color: var(--brand-blue);
}
.related-signal-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .related-signals-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SAVE FOR LATER ===== */
.save-for-later-btn.saved {
  background: var(--brand-blue-bg);
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
}
.save-for-later-btn.saved svg {
  fill: var(--brand-blue);
}

/* ===== NEWSLETTER ARCHIVE ===== */
.archive-month-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border-light);
}
.archive-month-group {
  display: flex;
  flex-direction: column;
}
.archive-issue-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
}
.archive-issue-row:hover {
  background: var(--color-bg-alt);
}
.archive-issue-date {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 100px;
}
.archive-issue-count {
  font-size: 0.8rem;
  color: var(--brand-blue);
  font-weight: 600;
  white-space: nowrap;
}
.archive-issue-peek {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .archive-issue-row {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .archive-issue-peek {
    display: none;
  }
}

/* ===== ARM ASSESSMENT ===== */
.assessment-wrap {
  max-width: 640px;
  margin: 0 auto;
}
#assessment-intro {
  text-align: center;
  padding: var(--space-3xl) 0;
}
#assessment-intro h1 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}
.assessment-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
}
.assessment-progress {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.assessment-progress-bar {
  height: 100%;
  background: var(--brand-blue);
  border-radius: 2px;
  transition: width var(--transition-slow);
}
.assessment-step-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}
.assessment-question {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.35;
}
.assessment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.assessment-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  font-size: 0.95rem;
  line-height: 1.5;
}
.assessment-option:hover {
  border-color: var(--brand-blue);
}
.assessment-option.selected {
  border-color: var(--brand-blue);
  background: var(--brand-blue-bg);
}
.assessment-option input[type="radio"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.assessment-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}
.assessment-result-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}
.assessment-result-stage {
  margin-bottom: var(--space-md);
}
.assessment-result-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}
.assessment-result-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.assessment-breakdown {
  margin-bottom: var(--space-xl);
}
.assessment-breakdown h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.assessment-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.assessment-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.assessment-bar-label {
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 100px;
}
.assessment-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.assessment-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-slow);
}
.assessment-bar-pct {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 35px;
  text-align: right;
}
.assessment-actions {
  margin-bottom: var(--space-xl);
}
.assessment-actions h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.assessment-action-list {
  padding-left: var(--space-xl);
}
.assessment-action-list li {
  margin-bottom: var(--space-md);
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.assessment-action-list a {
  color: var(--color-text-link);
  text-decoration: none;
}
.assessment-action-list a:hover {
  text-decoration: underline;
}
