/* ============================================================
   pages.css — Page-Specific Styles
   CityForge SEO — "The Observatory"
   Bloomberg Terminal meets modern SaaS
   ============================================================ */

/* ============================================================
   GLOBAL PAGE SPACING
   ============================================================ */
#app {
  padding-top: 72px;
  min-height: 100vh;
}

.initial-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--space-lg);
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   LANDING — Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-4xl) var(--space-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Animated grid pattern */
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-base), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--weight-bold);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xl);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-primary), #38bdf8, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero-ctas .btn-primary {
  padding: 14px 32px;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.2);
  animation: cta-pulse 3s ease-in-out infinite;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-stats span {
  white-space: nowrap;
}

.stat-divider {
  color: var(--border-default);
  user-select: none;
}

/* Animated counter numbers */
.counter-value {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   LANDING — How It Works
   ============================================================ */
.how-it-works {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2xl);
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.step-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Connector lines between steps */
@media (min-width: 769px) {
  .steps-grid {
    position: relative;
  }

  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(-1 * var(--space-xl) / 2 - 8px);
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    transform: translateY(-50%);
    pointer-events: none;
  }
}

/* ============================================================
   LANDING — City Preview
   ============================================================ */
.city-preview {
  padding: var(--space-4xl) var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.city-preview h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2xl);
}

.preview-cta {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* City card lock icon */
.city-lock {
  font-size: var(--text-sm);
  line-height: 1;
}

/* City card freshness row */
.city-card-freshness {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
}

.updated-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* City card teaser text */
.city-card-teaser {
  flex: 1;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  overflow: hidden;
  min-height: 72px;
  position: relative;
}

.city-card-teaser.blur-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-card) 30%, transparent);
  pointer-events: none;
}

/* Free badge on city cards */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  background: var(--accent-secondary-muted);
  color: var(--accent-secondary);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
}

.free-counter {
  text-align: center;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-secondary);
  background: var(--accent-secondary-muted);
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ============================================================
   LANDING — Freshness Section
   ============================================================ */
.freshness-section {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.freshness-section h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.freshness-demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.freshness-badge-demo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.freshness-badge-demo:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

/* ============================================================
   LANDING — What's Inside
   ============================================================ */
.whats-inside {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.whats-inside h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.whats-inside .sections-grid {
  margin-top: var(--space-2xl);
  text-align: left;
}

.section-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.section-item:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  border: 1px solid rgba(14, 165, 233, 0.1);
}

/* ============================================================
   LANDING — Pricing Section (on landing page)
   ============================================================ */
.pricing-section {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}

.pricing-section h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.pricing-section .pricing-grid {
  margin-top: var(--space-2xl);
}

.pricing-free {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-success);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-free p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

/* Pricing card inner elements (matches JS output) */
.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.pricing-card .token-count {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.pricing-card .per-token {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.token-uses {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.token-uses li {
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.token-uses li::before {
  content: '\2713';
  color: var(--accent-secondary);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.token-uses li:last-child {
  border-bottom: none;
}

/* ============================================================
   LANDING — Proof / Stats Strip
   ============================================================ */
.proof-section {
  padding: var(--space-3xl) var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.proof-item {
  text-align: center;
  padding: var(--space-lg);
}

.proof-num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  background: linear-gradient(135deg, var(--accent-primary), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
}

.proof-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: var(--weight-medium);
}

/* ============================================================
   CITY EXPLORER — Page Enhancements
   ============================================================ */
.cities-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.result-count {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cities-sidebar h3 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-sm);
}

/* ============================================================
   CITY DETAIL — Header
   ============================================================ */
.page-city-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.city-header {
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.city-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.back-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-primary);
}

.city-header h1 {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  margin-bottom: var(--space-sm);
}

.city-header-region {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.city-header-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.city-header-stats .stat {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.updated-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* City Detail — Body Grid Layout */
.city-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.city-body-main {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.research-content,
.teaser-visible {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.research-content p,
.teaser-visible p {
  margin-bottom: var(--space-md);
  white-space: normal;
  word-wrap: break-word;
}

.research-content h2,
.research-content h3 {
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-weight: var(--weight-semibold);
}

.research-content h2 {
  font-size: var(--text-2xl);
}

.research-content h3 {
  font-size: var(--text-xl);
}

.research-content li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
  list-style: none;
}

.research-content li::before {
  content: '\2022';
  color: var(--accent-primary);
  position: absolute;
  left: 0;
}

/* ============================================================
   CITY DETAIL — Table of Contents
   ============================================================ */
.city-toc {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: sticky;
  top: 88px;
}

.city-toc h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toc-list li::before {
  content: counter(toc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-bold);
}

@media (max-width: 768px) {
  .city-body {
    grid-template-columns: 1fr;
  }
  .city-toc {
    order: -1;
    position: static;
  }
}

/* ============================================================
   CITY DETAIL — Content / Teaser / Lock
   ============================================================ */
.city-content {
  margin-bottom: var(--space-xl);
  position: relative;
}

.teaser-visible {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.teaser-visible p {
  margin-bottom: var(--space-md);
}

.locked-content {
  position: relative;
}

.blur-placeholder {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

.blur-placeholder p {
  margin-bottom: var(--space-md);
}

.unlock-overlay {
  position: relative;
  margin-top: calc(-1 * var(--space-3xl));
  padding-top: var(--space-3xl);
  background: linear-gradient(to bottom, transparent, var(--bg-base) 30%);
  text-align: center;
}

.unlock-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.unlock-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.unlock-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.unlock-sub {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   CITY DETAIL — CTA & Related
   ============================================================ */
.city-cta {
  margin-bottom: var(--space-xl);
}

.cta-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.city-related {
  margin-bottom: var(--space-xl);
}

.city-related h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

.not-found {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.not-found h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.not-found p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ============================================================
   MAP — SVG-based US map with Albers projection
   ============================================================ */

/* SVG fills container */
.map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* US outline shape */
.us-outline {
  fill: url(#us-fill);
  stroke: rgba(14, 165, 233, 0.28);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* City dots in SVG */
.map-city {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.map-city:hover {
  transform: scale(2.5);
  filter: drop-shadow(0 0 8px currentColor) brightness(1.3);
}

.map-city.dot-fresh {
  fill: var(--accent-secondary);
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
}

.map-city.dot-recent {
  fill: var(--accent-warning);
  opacity: 0.8;
  filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.35));
}

.map-city.dot-aging {
  fill: var(--text-muted);
  opacity: 0.5;
}

/* Tier 1 cities get extra emphasis */
.map-city.dot-t1 {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

/* Header & legend */
.map-header h1 {
  font-size: var(--text-2xl);
}

.map-header .section-sub {
  font-size: var(--text-sm);
}

.map-legend {
  padding: var(--space-md) var(--space-lg);
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Tooltip (HTML overlay positioned over SVG) */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-tooltip);
  white-space: nowrap;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: var(--z-tooltip);
  transform: translate(-50%, -100%);
}

.map-tooltip strong {
  color: var(--text-heading);
  font-family: var(--font-heading);
}

/* ============================================================
   PRICING PAGE — Full Page
   ============================================================ */
.page-pricing .pricing-cards {
  margin-bottom: var(--space-3xl);
}

/* Token actions table section */
.token-actions {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.token-actions h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xl);
}

/* Free tier CTA section */
.free-tier {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.free-tier-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-success);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow-green);
}

.free-tier-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--accent-secondary), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.free-tier-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}

.free-tier-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.free-tier-card ul li {
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.free-tier-card ul li::before {
  content: '\2713';
  color: var(--accent-secondary);
  font-weight: var(--weight-bold);
}

/* FAQ section on pricing page */
.faq-section {
  padding: var(--space-3xl) 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

/* FAQ toggle icon handled by .faq-q::after in components.css */

/* ============================================================
   MOBILE NAV / MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  z-index: calc(var(--z-nav) - 1);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--text-heading);
}

.mobile-cta {
  margin-top: var(--space-sm);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.open {
    display: flex;
  }
}

/* ============================================================
   NAV SCROLL STATE
   ============================================================ */
.main-nav.scrolled {
  background: rgba(11, 15, 26, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   LOGO
   ============================================================ */
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.15);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  letter-spacing: var(--tracking-wide);
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-primary), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   FOOTER ENHANCEMENTS
   ============================================================ */
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: 3px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-primary);
}

.footer-bottom a:hover {
  color: var(--accent-primary-hover);
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — Page-specific overrides
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-3xl) var(--space-md);
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .stat-divider {
    display: none;
  }

  .how-it-works,
  .city-preview,
  .freshness-section,
  .whats-inside,
  .pricing-section,
  .proof-section {
    padding: var(--space-2xl) var(--space-md);
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-num {
    font-size: var(--text-2xl);
  }

  .page-city-detail {
    padding: var(--space-md);
  }

  .city-header-stats {
    gap: var(--space-sm);
  }

  .city-header-stats .stat {
    font-size: var(--text-xs);
    padding: 3px 8px;
  }
}

/* ============================================================
   CITY CONTENT IMAGES
   ============================================================ */
.cityforge-content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  object-fit: cover;
  max-height: 400px;
}
