/* Design System & Base Reset */
:root {
  --bg-primary: #060813;
  --bg-secondary: #0b0f24;
  --bg-panel: rgba(13, 17, 35, 0.7);
  --border-glow: rgba(99, 102, 241, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);
  
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-header: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.35);
  --glow-rose: 0 0 20px rgba(244, 63, 94, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Scroll Progress Bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
}

/* Header & Logo */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 900;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  background: rgba(6, 8, 19, 0.7);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-family: var(--font-header);
  font-weight: 700;
}

.logo-symbol {
  color: var(--accent-indigo);
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--accent-indigo);
}

/* Glassmorphism Styles */
.glass {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  padding: 120px 8% 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--border-light);
}

.hero-content {
  max-width: 720px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--accent-indigo);
  border-radius: 50px;
  color: var(--accent-indigo);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-header);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  color: white;
  box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.hero-visual {
  height: 400px;
  position: relative;
}

/* Split Interactive Layout */
.portal-container {
  padding: 0 5%;
}

.split-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 50px;
  position: relative;
  align-items: start;
}

/* Sticky Showcase Pane */
.showcase-pane {
  position: sticky;
  top: 100px;
  height: calc(100vh - 140px);
  z-index: 10;
  display: flex;
  align-items: stretch;
}

.showcase-card {
  width: 100%;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.widget-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.widget-category {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-indigo);
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.widget-title {
  font-size: 1.4rem;
  color: var(--text-main);
}

.widget-body {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Hide inactive widgets by default */
.widget-content {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.4s ease-out forwards;
}

.widget-content.active {
  display: flex;
}

.widget-instructions {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Scrollable Reading Narrative Pane */
.reading-pane {
  padding-bottom: 200px;
}

.narrative-section {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--border-light);
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.narrative-section.active {
  opacity: 1;
}

.section-indicator {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent-indigo);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.narrative-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.narrative-section h3 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-main);
}

.narrative-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.narrative-section.active .narrative-content p {
  color: var(--text-main);
}

/* Embedded Custom Quote blocks */
.accent-quote {
  font-family: var(--font-header);
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 500;
  border-left: 4px solid var(--accent-indigo);
  padding: 10px 0 10px 20px;
  margin: 2rem 0;
  color: var(--text-main);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), transparent);
}

.accent-quote.warning {
  border-left-color: var(--accent-rose);
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.05), transparent);
}

.accent-quote.info {
  border-left-color: var(--accent-cyan);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent);
}

.accent-quote.success {
  border-left-color: var(--accent-emerald);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), transparent);
}

/* WIDGET 1: Scarcity Timeline styles */
.timeline-slider-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  height: 100%;
}

.timeline-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-indigo);
  font-family: var(--font-header);
}

.era-details-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent-indigo);
  padding: 15px;
  border-radius: 0 8px 8px 0;
  min-height: 120px;
}

.era-label {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.era-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.slider-control {
  margin-top: 10px;
}

.slider-control input[type="range"] {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 10px var(--accent-indigo);
  transition: transform 0.1s;
}

.slider-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-code);
  margin-top: 8px;
}

/* WIDGET 2: Scarcity Analyzer styles */
.scarcity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.scarcity-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scarcity-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.scarcity-item.active-physical {
  border-color: var(--accent-rose);
  box-shadow: inset 0 0 10px rgba(244, 63, 94, 0.15), var(--glow-rose);
  background: rgba(244, 63, 94, 0.05);
}

.scarcity-item.active-coordination {
  border-color: var(--accent-emerald);
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.15), var(--glow-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.analyzer-feedback-box {
  border-radius: 8px;
  padding: 16px;
  min-height: 100px;
  border-left: 3px solid transparent;
  animation: slideUp 0.3s ease-out;
}

.analyzer-feedback-box.physical {
  border-left-color: var(--accent-rose);
}

.analyzer-feedback-box.coordination {
  border-left-color: var(--accent-emerald);
}

.feedback-type {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.analyzer-feedback-box.physical .feedback-type {
  color: var(--accent-rose);
}

.analyzer-feedback-box.coordination .feedback-type {
  color: var(--accent-emerald);
}

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

/* WIDGET 3: Problem Atlas Graph styles */
.graph-container {
  height: 200px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#atlas-svg {
  width: 100%;
  height: 100%;
}

.graph-links line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.graph-links line.highlight {
  stroke: var(--accent-indigo);
  stroke-width: 2.5;
}

.node {
  cursor: pointer;
}

.node circle {
  fill: #151a30;
  stroke: var(--text-dim);
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.node text {
  fill: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-code);
  text-anchor: middle;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-smooth);
}

/* Show labels on hover */
.node:hover text, .node.active text {
  opacity: 1;
  fill: #fff;
}

.node.root circle {
  fill: rgba(244, 63, 94, 0.1);
  stroke: var(--accent-rose);
}

.node.cause circle {
  fill: rgba(99, 102, 241, 0.1);
  stroke: var(--accent-indigo);
}

.node.subcause circle {
  fill: rgba(139, 92, 246, 0.1);
  stroke: var(--accent-purple);
}

.node.intervention circle {
  fill: rgba(16, 185, 129, 0.1);
  stroke: var(--accent-emerald);
}

.node:hover circle, .node.active circle {
  stroke-width: 3;
}

.node.root:hover circle, .node.root.active circle {
  box-shadow: var(--glow-rose);
  stroke: var(--accent-rose);
  fill: var(--accent-rose);
}

.node.cause:hover circle, .node.cause.active circle {
  stroke: var(--accent-indigo);
  fill: var(--accent-indigo);
}

.node.subcause:hover circle, .node.subcause.active circle {
  stroke: var(--accent-purple);
  fill: var(--accent-purple);
}

.node.intervention:hover circle, .node.intervention.active circle {
  stroke: var(--accent-emerald);
  fill: var(--accent-emerald);
}

.atlas-info-box {
  padding: 16px;
  border-radius: 8px;
}

.atlas-info-box h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-header);
}

.atlas-metadata {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.atlas-metadata div {
  margin-bottom: 6px;
}

.atlas-metadata strong {
  color: var(--text-main);
}

/* WIDGET 4: Learning Simulator styles */
.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.sim-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--accent-indigo);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}

input:disabled + .switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.simulator-results {
  padding: 18px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gauge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.gauge-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 10px;
}

.gauge-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-header);
  color: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.gauge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.marginal-cost-readout {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}

/* WIDGET 5: Coordination Engine styles */
.task-backlog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.task-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.task-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.task-card.selected {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.05);
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.task-id {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.task-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.type-lang {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}

.type-code {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
}

.type-ops {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

.task-name {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Terminal Box */
.terminal-box {
  border-radius: 8px;
  font-family: var(--font-code);
  background: #04060d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: 15px;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  color: var(--text-dim);
  font-size: 0.7rem;
  margin-left: 6px;
}

.terminal-body {
  padding: 12px;
  min-height: 110px;
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-line {
  color: var(--accent-cyan);
}

.term-line.output {
  color: var(--text-muted);
}

.term-line.success {
  color: var(--accent-emerald);
}

.term-line.select-prompt {
  color: var(--text-dim);
  text-align: center;
  padding-top: 30px;
}

/* WIDGET 6: Local Scaling (India) styles */
.map-layout {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#india-svg {
  width: 100%;
  max-height: 200px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 10px;
}

.india-border {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.map-pin {
  cursor: pointer;
}

.pin-core {
  fill: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.pin-glow {
  fill: var(--accent-cyan);
  opacity: 0.2;
  transform-origin: center;
  animation: ringPulse 2s infinite ease-out;
}

.map-pin:hover .pin-core, .map-pin.active .pin-core {
  fill: #fff;
  r: 5px;
}

.map-pin:hover .pin-glow, .map-pin.active .pin-glow {
  fill: var(--accent-cyan);
  opacity: 0.4;
}

.map-details {
  padding: 14px;
  border-radius: 8px;
  min-height: 120px;
}

.map-details h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 4px;
}

.label-heading {
  font-family: var(--font-code);
  font-size: 0.65rem;
  color: var(--accent-indigo);
  display: block;
  margin-bottom: 2px;
}

.map-place-scenario p, .map-place-resolution p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* WIDGET 7: Dissolving Paywalls styles */
.liberation-stats {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.lib-gauge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-emerald) 0%, rgba(255, 255, 255, 0.05) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-smooth);
}

.lib-dial-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.lib-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-header);
  color: var(--accent-emerald);
}

.lib-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  margin-top: 2px;
}

.paywall-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paywall-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 12px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.paywall-info h5 {
  font-size: 0.85rem;
  color: #fff;
}

.orig-price {
  font-size: 0.75rem;
  color: var(--accent-rose);
  display: block;
  margin-top: 2px;
}

.paywall-card.dissolved {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.02);
}

.paywall-card.dissolved .orig-price {
  color: var(--text-dim);
  text-decoration: line-through;
}

.paywall-card.dissolved .paywall-info h5::after {
  content: " (Public Good)";
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-action {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid var(--accent-rose);
  padding: 6px 12px;
}

.btn-action:hover {
  background: var(--accent-rose);
  color: white;
}

.paywall-card.dissolved .btn-action {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  pointer-events: none;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

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

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

@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.mt-xs { margin-top: 8px; }
.hidden { display: none !important; }

/* Responsive Media Queries (Mobile Fallback) */
@media (max-width: 1024px) {
  .site-header {
    padding: 1rem 3%;
  }
  
  .header-nav {
    display: none; /* Hide header nav links on mobile for simplicity, or stack them */
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 100px 5% 40px;
    text-align: center;
    min-height: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 250px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Left Panel is no longer sticky, we treat it differently */
  .showcase-pane {
    position: static;
    height: auto;
    display: none; /* We will use JS to move widgets inline on mobile! */
  }

  .reading-pane {
    padding-bottom: 60px;
  }

  .narrative-section {
    opacity: 1; /* Keep text fully visible on mobile */
    padding: 40px 0;
  }

  /* Inline mobile widget styling container */
  .mobile-widget-container {
    margin: 20px 0;
    width: 100%;
    animation: fadeIn 0.4s ease-out forwards;
  }

  .mobile-widget-container .showcase-card {
    height: auto;
    max-height: none;
    border-radius: 12px;
    padding: 20px;
  }
}
