/**
 * Pricing Page Specific Styles
 * Pricing tables, ROI visualization, value calculators
 */

/* Page-specific custom properties */
:root {
  --ring: rgba(0, 198, 255, 0.35);
  --chart-grid: rgba(127, 127, 127, 0.15);
  --ok: #2e7d32;
  --warn: #ef6c00;
  --bad: #d32f2f;
  --ink-subtle: #607d8b;
}

html[data-theme="dark"] {
  --ring: rgba(100, 181, 246, 0.4);
  --chart-grid: rgba(200, 200, 200, 0.1);
  --ink-subtle: #9aa6b2;
}

/* Hero section */
.hero {
  padding: 80px 0;
}

.hero-content {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Section headers */
.section-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--ink-subtle);
}

/* Gradient button */
.btn-accent {
  background: linear-gradient(135deg, #00c2ff, #0066ff);
}

/* Neon card */
.neon-card {
  border: 1px solid var(--ring);
  box-shadow: var(--shadow-lg);
}

/* Grid background effect */
.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 198, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 98, 255, 0.18), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(0, 255, 170, 0.14), transparent 35%);
  filter: blur(20px);
}

.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8), transparent 70%);
}

html[data-theme="dark"] .grid-bg::before {
  opacity: 0.4;
}

/* Visualization wrapper */
.viz-wrap {
  position: relative;
  height: 340px;
}

/* KPI chips */
.chip.kpi {
  background: #e3f2fd;
  color: #0d47a1;
  font-weight: 600;
}

html[data-theme="dark"] .chip.kpi {
  background: rgba(100, 181, 246, 0.2);
  color: #90caf9;
}

/* Back to top */
.page-footer #back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--color-primary);
}

/* Heat map legend */
.heat-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.heat-bar {
  height: 10px;
  flex: 1;
  background: linear-gradient(90deg, #073b4c, #118ab2, #06d6a0, #ffd166, #ef476f);
  border-radius: 6px;
}

.heat-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Scenario hub */
.scenario-hub {
  margin-top: 8px;
}

.scenario-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.scenario-tabs .btn-flat {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill, 999px);
}

.scenario-tabs .is-active {
  background: var(--bg-elevated);
}

/* Trend cards */
.trend-card .chart-wrapper {
  position: relative;
  height: 260px;
}

/* Stat numbers */
.stat-number {
  margin: 0;
}

/* Pricing controls */
.pricing-controls .input-field {
  margin-top: 0.75rem;
}

/* Notes */
.note {
  color: var(--ink-subtle);
  font-size: 0.9rem;
}

/* Chart rendering */
canvas {
  image-rendering: crisp-edges;
}
