/* ==========================================================================
   CloudBizStack.com - Production Live Theme
   Optimized for High AdSense CPC, 100/100 PageSpeed & EEAT Trust
   ========================================================================== */

:root {
  /* Core Tech Palette */
  --primary-hue: 238;
  --primary: hsl(var(--primary-hue), 85%, 60%);
  --primary-hover: hsl(var(--primary-hue), 85%, 50%);
  --primary-light: hsl(var(--primary-hue), 100%, 96%);
  --primary-glow: rgba(79, 70, 229, 0.25);

  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --secondary-light: #e0f2fe;

  --accent-amber: #f59e0b;
  --accent-blue: #0284c7;

  /* Neutrals (Light Mode) */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);

  /* Typography & Layout */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #090d16;
  --bg-card: #111827;
  --bg-surface: #1f2937;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --border-color: #1f2937;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(37, 99, 235, 0.35);
}

.logo-icon img,
.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo img,
.brand-logo-img {
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.logo-text {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.8px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.logo-accent {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

[data-theme="dark"] .logo-accent {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tld {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  letter-spacing: -0.2px;
  margin-left: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

@media (max-width: 1140px) {
  .nav-menu {
    gap: 1.1rem;
  }
  .nav-link {
    font-size: 0.86rem;
  }
}

@media (max-width: 880px) {
  .header-inner {
    height: auto !important;
    padding: 0.75rem 0;
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }
  .nav-menu {
    gap: 1.1rem;
    width: max-content;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  transform: scale(1.05);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* AdSense Manual Containers - Suppressed until site approval */
.ad-slot-container,
.sticky-sidebar-ad,
ins.adsbygoogle {
  display: none !important;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
}

.hero-text {
  max-width: 860px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

[data-theme="dark"] .hero-badge {
  background: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -1px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 620px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Search Bar Section */
.search-container {
  margin: 1.5rem 0 2.5rem;
  position: relative;
}

.search-input-wrap {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}

.search-input-wrap input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
  outline: none;
  transition: var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Live Autocomplete Search Dropdown Overlay */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 440px;
  overflow-y: auto;
  margin-top: 0.6rem;
  display: none;
}

.search-dropdown-header {
  padding: 0.6rem 1.2rem;
  background: var(--bg-surface);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  transition: background var(--transition-fast);
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: var(--bg-surface);
}

.search-item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-info {
  flex-grow: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.search-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.2rem;
}

/* Calculator Card */
.calc-card {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.calc-header {
  margin-bottom: 1.2rem;
}

.calc-title {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.select-input, .range-input, .form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.select-input, .range-input {
  cursor: pointer;
}

.form-input:focus, .form-textarea:focus, .select-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.calc-module-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.calc-module-chip input {
  display: none;
}

.calc-module-chip.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
  color: var(--text-main);
  font-weight: 700;
}

[data-theme="dark"] .calc-module-chip.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: #818cf8;
}

.calc-module-chip:hover {
  border-color: var(--primary);
}

.calc-cycle-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
  margin: 1rem 0 0.8rem;
}

.cycle-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cycle-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.discount-badge {
  background: #10b981;
  color: white;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.calc-results {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.8rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  border: 1px solid var(--border-color);
}

.res-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

.res-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.res-val.highlight {
  color: var(--primary);
}

.res-val.savings {
  color: #10b981;
}

.res-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.res-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.res-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.15rem;
  white-space: nowrap;
}

.calc-progress-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--border-color);
  gap: 2px;
}

.progress-seg {
  height: 100%;
  transition: width var(--transition-normal);
}

/* Interactive Matrix Comparison Tool */
.matrix-section {
  padding: 2.5rem 0;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.matrix-filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.matrix-filter-pill:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.matrix-filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.matrix-table th, .matrix-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.matrix-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-main);
}

/* Topic Clusters Grid */
.categories-section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 0.3rem;
  letter-spacing: -0.5px;
}

/* Sleek Horizontal Category Filter Pills (Stripe/GitHub Style) */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.1rem;
  transition: var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--primary);
}

.cat-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.cat-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: inherit;
  margin-bottom: 0;
}

.cat-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0;
  white-space: nowrap;
}

.cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0;
  margin-left: 0.2rem;
  transition: var(--transition-fast);
}

.cat-card.active .cat-count {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff !important;
  font-weight: 800;
}

/* Articles Section */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.4);
}

.article-img-wrap {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--bg-surface);
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.06);
}

.badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.article-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.intent-tag {
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Sidebar & Sticky Elements */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--bg-surface);
  padding-bottom: 0.5rem;
}

.sticky-sidebar-ad {
  position: sticky;
  top: 90px;
}

/* Article Reader Modal & Typography */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.article-full-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 1.8rem 0 0.8rem;
  color: var(--text-main);
}

.article-full-content p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.article-full-content ul, .article-full-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.article-full-content li {
  margin-bottom: 0.5rem;
}

/* Footer & Legal Trust Links (WCAG AAA High Contrast) */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  flex: 1 1 280px;
  max-width: 360px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.footer-brand .logo-text {
  color: #ffffff;
  font-weight: 800;
}

.footer-brand .logo-accent {
  color: #60a5fa;
  -webkit-text-fill-color: #60a5fa;
}

.footer-brand .logo-tld {
  color: #94a3b8;
  -webkit-text-fill-color: #94a3b8;
}

.footer-brand p {
  color: #cbd5e1 !important;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.8rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 2.5rem;
  flex: 2 1 540px;
}

.footer-links-grid h4 {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.footer-links-grid a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.footer-links-grid a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 992px) {
  .hero-grid, .content-layout, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    width: 100%;
    gap: 2rem;
  }
}

/* Cookie & Privacy Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: slideUp 0.4s ease-out;
}

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

.cookie-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.cookie-btn-accept {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cookie-btn-accept:hover {
  opacity: 0.9;
}

.cookie-btn-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: underline;
}

/* ==========================================================================
   E-E-A-T Human Author Bios, Badges & In-Article Visuals
   ========================================================================== */

/* Article Hero Figure */
.article-hero-figure {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-hero-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-weight: 500;
}

/* Article Author Byline Header */
.author-byline-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.byline-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.byline-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.byline-meta-row {
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.fact-checked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tested-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Hands-On Testing Callout Box */
.hands-on-note {
  background: var(--bg-surface);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin: 1.8rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hands-on-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Business Growth Stages Tabs & Advisory Card
   ========================================================================== */
.stage-tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stage-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  gap: 0.2rem;
  user-select: none;
}

.stage-tab-btn:hover {
  border-color: var(--primary);
  background: var(--bg-hover, rgba(37, 99, 235, 0.04));
  transform: translateY(-1px);
}

.stage-tab-btn.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.stage-tab-btn[data-stage="solo"].active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.stage-tab-btn[data-stage="solo"].active i,
.stage-tab-btn[data-stage="solo"].active .stage-btn-sub {
  color: #10b981 !important;
}

[data-theme="dark"] .stage-tab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #818cf8;
  color: #a5b4fc;
}

[data-theme="dark"] .stage-tab-btn[data-stage="solo"].active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
  color: #6ee7b7;
}

[data-theme="dark"] .stage-tab-btn[data-stage="solo"].active i,
[data-theme="dark"] .stage-tab-btn[data-stage="solo"].active .stage-btn-sub {
  color: #6ee7b7 !important;
}

.stage-tab-btn i {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.stage-tab-btn.active i {
  color: var(--primary);
}

[data-theme="dark"] .stage-tab-btn.active i {
  color: #818cf8;
}

.stage-btn-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.stage-btn-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stage-tab-btn.active .stage-btn-sub {
  color: var(--primary);
}

[data-theme="dark"] .stage-tab-btn.active .stage-btn-sub {
  color: #a5b4fc;
}

#stageAdvisoryCard {
  transition: all var(--transition-fast);
}

@media (max-width: 640px) {
  .stage-tabs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Real SaaS FAQs Accordion Section
   ========================================================================== */
.faq-section {
  position: relative;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--primary);
}

.faq-chevron {
  color: var(--primary);
  font-size: 0.9rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-question-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer-panel {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
  animation: faqFadeIn 0.25s ease;
}

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

.faq-answer-panel strong {
  color: var(--text-main);
}

/* ==========================================================================
   Featured Free Stack & High-Visibility Elements
   ========================================================================== */
.hero-featured-pill a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  color: #10b981;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}

.hero-featured-pill a:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
  color: #059669;
}

[data-theme="dark"] .hero-featured-pill a:hover {
  color: #34d399;
}

.article-card.featured-free-stack {
  border: 2px solid #10b981 !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.14) !important;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card.featured-free-stack:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25) !important;
}

.nav-link-highlight {
  color: #10b981 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link-highlight:hover {
  color: #059669 !important;
}

[data-theme="dark"] .nav-link-highlight {
  color: #34d399 !important;
}

/* ==========================================================================
   Calculator Collapsible Accordions (Advisory & Methodology)
   ========================================================================== */
.calc-accordion-wrap {
  margin-top: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color var(--transition-fast);
}

.calc-accordion-wrap:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.calc-accordion-btn {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.15rem;
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.calc-accordion-btn:hover {
  color: var(--primary);
}

.calc-accordion-chevron {
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.calc-accordion-btn[aria-expanded="true"] .calc-accordion-chevron {
  transform: rotate(180deg);
}

.calc-accordion-panel {
  display: none;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  animation: faqFadeIn 0.25s ease;
}


