/* ==========================================================================
   Safai Setu (सफाई सेतु) — Case Study Stylesheet
   Crafted with an editorial aesthetic, bespoke Indian civic palette & micro-interactions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Civic Palette */
  --color-forest-dark: #06261d;
  --color-forest-deep: #0a4a37;
  --color-primary: #0f6b4f;
  --color-primary-light: #188a66;
  --color-primary-soft: #e7f1ec;
  --color-accent-emerald: #10b981;
  --color-worker: #e8752a;
  --color-worker-soft: #fef1e6;
  --color-reopen: #d03b3b;
  --color-reopen-soft: #fde8e8;
  --color-amber: #f59e0b;
  --color-amber-soft: #fef3c7;

  /* Neutral Surface & Text */
  --bg-page: #f8faf9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f3;
  --bg-dark-card: #0b221a;

  --text-main: #14211d;
  --text-secondary: #4b6359;
  --text-muted: #789086;
  --text-on-dark: #f0fdf4;
  --text-on-dark-muted: #a7c5ba;

  --border-subtle: #e2ebe6;
  --border-strong: #c2d6ce;
  --border-dark: #1b4234;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 74, 55, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(10, 74, 55, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(10, 74, 55, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(10, 74, 55, 0.18), 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-phone: 0 20px 40px -10px rgba(6, 38, 29, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);

  /* Fonts & Sizing */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-phone: 36px;
  --radius-pill: 9999px;

  --container-max: 1200px;
  --container-reading: 820px;
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--color-accent-emerald), var(--color-worker));
  z-index: 1000;
  width: 0%;
  transition: width 80ms ease-out;
}

/* Navigation Header */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 900;
  padding: 0.75rem 1.5rem;
  transition: var(--transition-normal);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-forest-deep);
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-forest-deep);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-hindi);
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-pill:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.btn-pill.primary {
  background: var(--color-forest-deep);
  color: #ffffff;
  border-color: var(--color-forest-deep);
}

.btn-pill.primary:hover {
  background: var(--color-primary);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(232, 117, 42, 0.08) 0%, transparent 40%),
              linear-gradient(175deg, #05231a 0%, #0a4a37 55%, #0d553f 100%);
  color: #ffffff;
  padding: 5.5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-accent-emerald);
  margin-bottom: 1.5rem;
}

.hero-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-hindi-title {
  font-family: var(--font-hindi);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  max-width: 820px;
  color: var(--text-on-dark-muted);
  line-height: 1.45;
  margin-bottom: 3rem;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.meta-item .meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.meta-item .meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.meta-item .meta-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Callout Box / Alert */
.callout-box {
  background: var(--bg-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.callout-box.accent-orange {
  border-left-color: var(--color-worker);
  background: #fffbf7;
}

.callout-box.dark {
  background: var(--bg-dark-card);
  color: var(--text-on-dark);
  border-left-color: var(--color-accent-emerald);
}

.callout-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.callout-box p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.callout-box.dark p {
  color: var(--text-on-dark-muted);
}

/* Layout Containers & Sections */
.section {
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section.alt-bg {
  background: #ffffff;
}

.section.dark-bg {
  background: var(--color-forest-dark);
  color: #ffffff;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.container-reading {
  max-width: var(--container-reading);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-num {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.dark-bg .section-num {
  color: var(--color-accent-emerald);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-main);
}

.dark-bg .section-title {
  color: #ffffff;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 780px;
  line-height: 1.55;
}

.dark-bg .section-lead {
  color: var(--text-on-dark-muted);
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (min-width: 650px) and (max-width: 900px) {
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Stat Big Numbers Cards */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-forest-deep);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stat-number .unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-number.warning {
  color: var(--color-worker);
}

.stat-number.danger {
  color: var(--color-reopen);
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.stat-source {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Data Insight Visual Cards */
.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.insight-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.insight-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.insight-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* Progress / Bar Comparison Visual */
.chart-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.bar-row {
  margin-bottom: 1.5rem;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.bar-track {
  height: 28px;
  background: #edf2f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
}

.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: width 1s ease;
}

.bar-fill.total { background: #374151; }
.bar-fill.installed { background: #9ca3af; }
.bar-fill.processed { background: var(--color-primary); }
.bar-fill.untreated { background: var(--color-reopen); }
.bar-fill.deployed { background: var(--color-worker); }
.bar-fill.required { background: #6b7280; }

/* Service Blueprint / Broken Cycle Visualization */
.flow-diagram-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.diagram-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  position: relative;
  padding: 2rem 0;
}

.diagram-step {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.diagram-step.highlight-fail {
  border-color: #fca5a5;
  background: #fff5f5;
}

.diagram-step.highlight-start {
  border-color: #93c5fd;
  background: #eff6ff;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.step-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-reopen);
  background: #fee2e2;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .diagram-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .diagram-step {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
  }
  .step-number { margin: 0; }
}

/* Persona Cards */
.persona-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.persona-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.persona-avatar.worker {
  background: var(--color-worker-soft);
  color: var(--color-worker);
}

.persona-avatar.inspector {
  background: #ede9fe;
  color: #7c3aed;
}

.persona-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.persona-info .persona-role {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.persona-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.persona-body strong {
  color: var(--text-main);
}

.persona-need-box {
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest-deep);
  border-left: 3px solid var(--color-primary);
}

.persona-need-box.worker {
  background: var(--color-worker-soft);
  color: #9a3412;
  border-left-color: var(--color-worker);
}

.persona-need-box.inspector {
  background: #f5f3ff;
  color: #5b21b6;
  border-left-color: #7c3aed;
}

/* System Architecture Diagram */
.arch-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.arch-node {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.arch-node.citizen {
  border-top: 4px solid var(--color-primary);
}

.arch-node.worker {
  border-top: 4px solid var(--color-worker);
}

.arch-node.supervisor {
  border-top: 4px solid #6366f1;
}

.arch-node.center-hub {
  background: var(--color-forest-deep);
  color: #ffffff;
  border: 2px solid var(--color-accent-emerald);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.center-hub h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.center-hub ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.arch-node h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-node ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   PAPER WIREFRAMES, SITE MAP, JOURNEY MAP & HEAT MAP STYLES
   ========================================================================== */

/* Paper Wireframe Sketches */
.paper-sketch-card {
  background-color: #fffdfa;
  background-image: radial-gradient(#e5e0d8 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1.5px solid #dcd5ca;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.05), -1px -1px 2px rgba(0, 0, 0, 0.02);
  position: relative;
  font-family: var(--font-sans);
}

.paper-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: rgba(254, 240, 138, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 2px dashed rgba(202, 138, 4, 0.4);
  border-right: 2px dashed rgba(202, 138, 4, 0.4);
}

.sketch-box {
  border: 2px solid #57534e;
  border-radius: 4px;
  padding: 0.75rem;
  margin: 0.75rem 0;
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #44403c;
}

.sketch-handwriting {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Caveat', cursive, sans-serif;
  color: #1e3a8a;
  font-size: 0.85rem;
  line-height: 1.3;
}

.sketch-sticky-note {
  background: #fef08a;
  border: 1px solid #fde047;
  padding: 0.6rem 0.8rem;
  border-radius: 2px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
  transform: rotate(-1.5deg);
  font-family: 'Comic Sans MS', 'Caveat', cursive, sans-serif;
  font-size: 0.78rem;
  color: #713f12;
  margin: 0.5rem 0;
}

/* Site Map / Information Architecture Tree */
.sitemap-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.sitemap-root {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.sitemap-node {
  background: var(--color-forest-deep);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-accent-emerald);
}

.sitemap-branch-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

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

.sitemap-column {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sitemap-column.citizen { border-top: 4px solid var(--color-primary); }
.sitemap-column.worker { border-top: 4px solid var(--color-worker); }
.sitemap-column.supervisor { border-top: 4px solid #7c3aed; }

.sitemap-header-pill {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  text-align: center;
}

.sitemap-subitems {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sitemap-item-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.sitemap-item-box strong {
  display: block;
  color: var(--text-main);
  font-size: 0.88rem;
}

.sitemap-item-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* User Journey Map Matrix */
.journey-matrix-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  margin: 2rem 0;
}

.journey-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.journey-table th {
  background: var(--color-forest-deep);
  color: #ffffff;
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
}

.journey-table td {
  padding: 1.15rem 1rem;
  border: 1px solid var(--border-subtle);
  vertical-align: top;
  font-size: 0.825rem;
  line-height: 1.45;
}

.journey-row-title {
  font-weight: 800;
  background: var(--bg-surface-subtle);
  color: var(--color-forest-deep);
  font-size: 0.85rem;
  width: 140px;
}

.emotion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.emotion-badge.sad { background: #fee2e2; color: #b91c1c; }
.emotion-badge.neutral { background: #fef3c7; color: #b45309; }
.emotion-badge.happy { background: #dcfce7; color: #15803d; }

/* Heat Maps: Mobile Thumb Zone & Ward Density */
.heat-map-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

@media (max-width: 950px) {
  .heat-map-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Reachability Thumb Zone Heat Map */
.thumb-zone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 580px;
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  background: #ffffff;
}

.thumb-zone-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 90%, rgba(34, 197, 94, 0.45) 0%, rgba(34, 197, 94, 0.35) 40%, rgba(234, 179, 8, 0.4) 65%, rgba(239, 68, 68, 0.55) 90%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-weight: 800;
  font-size: 0.75rem;
}

.thumb-label {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.6);
  width: fit-content;
}

.thumb-label.hard { align-self: center; background: rgba(185, 28, 28, 0.8); }
.thumb-label.stretch { align-self: center; background: rgba(180, 83, 9, 0.8); }
.thumb-label.easy { align-self: center; background: rgba(21, 128, 61, 0.85); }

/* Civic Ward Density Heat Map Grid */
.ward-heatmap-container {
  background: #0b1f18;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid #1b4b39;
}

.ward-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin: 1.25rem 0;
}

@media (max-width: 600px) {
  .ward-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ward-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.ward-cell:hover {
  transform: scale(1.15);
  z-index: 10;
  outline: 2px solid #ffffff;
}

.ward-cell.critical { background: #dc2626; color: #fff; }
.ward-cell.high { background: #ea580c; color: #fff; }
.ward-cell.moderate { background: #ca8a04; color: #fff; }
.ward-cell.optimal { background: #16a34a; color: #fff; }

.heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #1b4b39;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* ==========================================================================
   INTERACTIVE MOBILE SCREENS & PROTOTYPE SIMULATOR
   ========================================================================== */
.flow-showcase {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
}

.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.flow-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.flow-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.flow-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-top: 0.35rem;
}

.flow-screens-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  perspective: 1000px;
}

@media (max-width: 950px) {
  .flow-screens-row {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

.screen-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  text-align: center;
}

.screen-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.25rem;
  min-height: 38px;
}

/* Realistic Smartphone Frame */
.phone-mockup {
  width: 100%;
  max-width: 310px;
  background: #ffffff;
  border-radius: 36px;
  box-shadow: 0 16px 36px -8px rgba(6, 38, 29, 0.2), 0 0 0 8px #182320, 0 0 0 10px #2f3e39;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  font-family: var(--font-sans);
}

.phone-mockup.worker-theme {
  box-shadow: 0 16px 36px -8px rgba(232, 117, 42, 0.25), 0 0 0 8px #261b14, 0 0 0 10px #423024;
}

/* Status Bar */
.phone-status-bar {
  background: #ffffff;
  padding: 0.55rem 1rem 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.worker-status-bar {
  background: var(--color-worker);
  color: #ffffff;
}

.status-time {
  font-family: var(--font-mono);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
}

/* Phone Screen Content Areas */
.phone-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
  background: #fbfdfc;
}

/* UI Elements inside mockups */
.phone-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-user-greet {
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-forest-deep);
}

.phone-user-loc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-report-giant {
  background: linear-gradient(135deg, var(--color-forest-deep), var(--color-primary));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 18px rgba(15, 107, 79, 0.35);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.btn-report-giant:hover {
  transform: scale(1.02);
}

.btn-report-giant .icon {
  font-size: 1.6rem;
}

.btn-report-giant .hindi-cta {
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-report-giant .sub-cta {
  font-size: 0.72rem;
  opacity: 0.85;
}

.phone-card-mini {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.phone-card-mini .title-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.grade-badge.warning {
  background: var(--color-amber-soft);
  color: #b45309;
}

.grade-badge.danger {
  background: var(--color-reopen-soft);
  color: var(--color-reopen);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.ui-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #edf3f0;
  color: var(--color-forest-deep);
  border: 1px solid #d4e3dc;
}

.ui-chip.editable {
  border-style: dashed;
  background: #f0fdf4;
}

.voice-note-bar {
  background: #f1f5f3;
  border: 1px solid #d8e4de;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-hindi);
}

.phone-bottom-nav {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-hindi);
  font-weight: 600;
}

.phone-bottom-nav .nav-item.active {
  color: var(--color-primary);
}

/* Worker App Specific UI */
.worker-lane-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.worker-lane-card.done {
  border-color: var(--color-accent-emerald);
  background: #f0fdf4;
}

.tap-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: transparent;
}

.worker-lane-card.done .tap-check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* 56dp Exception Grid */
.exception-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.btn-exception {
  min-height: 64px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
}

.btn-exception .icon {
  font-size: 1.25rem;
}

.btn-exception .hindi {
  font-family: var(--font-hindi);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-exception .eng {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.btn-exception:hover, .btn-exception.active {
  border-color: var(--color-worker);
  background: var(--color-worker-soft);
}

/* ==========================================================================
   INTERACTIVE BEFORE / AFTER SLIDER
   ========================================================================== */
.before-after-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 340px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-img.before {
  background-color: #7f1d1d;
  background-image: radial-gradient(#991b1b 20%, #450a0a 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fecaca;
  font-weight: 700;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-img.after {
  background-color: #064e3b;
  background-image: radial-gradient(#047857 20%, #022c22 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a7f3d0;
  font-weight: 700;
  flex-direction: column;
  gap: 0.5rem;
  width: 50%;
  border-right: 3px solid #ffffff;
  z-index: 2;
  overflow: hidden;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  margin-left: -18px;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.handle-knob {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--color-forest-deep);
}

.slider-badge {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}

.slider-badge.left {
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
}

.slider-badge.right {
  right: 1rem;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

/* ==========================================================================
   LOW-FIDELITY WIREFRAMES & PROTOTYPE SHOWCASE STYLES
   ========================================================================== */

.phone-mockup.lofi-wireframe {
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1), 0 0 0 6px #cbd5e1;
}

.phone-mockup.lofi-wireframe .phone-status-bar {
  background: #e2e8f0;
  color: #64748b;
  border-bottom: 1.5px dashed #cbd5e1;
}

.wireframe-box {
  border: 1.5px dashed #94a3b8;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: #475569;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.wireframe-box.placeholder-img {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-style: solid;
  border-color: #cbd5e1;
  position: relative;
}

.wireframe-btn {
  border: 2px solid #64748b;
  background: #e2e8f0;
  color: #1e293b;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.6rem;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.wireframe-annotation {
  font-size: 0.7rem;
  color: #0284c7;
  background: #e0f2fe;
  border-left: 2px solid #0284c7;
  padding: 0.35rem 0.6rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-mono);
}

.wireframe-grid-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 1050px) {
  .wireframe-grid-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .wireframe-grid-showcase {
    grid-template-columns: 1fr;
  }
}

.wireframe-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wireframe-meta {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.wireframe-meta h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.wireframe-meta p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ==========================================================================
   DESIGN SYSTEM SPECIMEN SECTION
   ========================================================================== */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.token-swatch {
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 120px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
}

.token-swatch:hover {
  transform: translateY(-2px);
}

.token-swatch .hex {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.9;
}

.token-swatch.light-text {
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* Validation Protocol Table */
.data-table-container {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.5;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td strong {
  color: var(--text-main);
}

.metric-target {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}

/* Ward Board Leaderboard */
.leaderboard-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  transition: background var(--transition-fast);
}

.leader-item:hover {
  background: var(--bg-surface-subtle);
}

.leader-rank {
  font-family: var(--font-mono);
  font-weight: 800;
  width: 24px;
  color: var(--color-primary);
}

.leader-ward {
  font-weight: 700;
  color: var(--text-main);
}

.leader-zone {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.leader-time {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-secondary);
}

.leader-stat {
  font-size: 0.75rem;
  color: var(--color-accent-emerald);
  font-weight: 600;
}

/* Designer Bio & Footer */
.footer-author-box {
  background: var(--color-forest-deep);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin: 4rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.author-details h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.author-details p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

.author-links {
  display: flex;
  gap: 0.75rem;
}

.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* Toast Notifications */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-forest-deep);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-normal);
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}
