/* ==========================================================================
   CredPulse - Full-Length, Professional FinTech Design System
   Modern Slate Dark Theme • 100% Responsive for Windows, Mac, Tablet & Mobile
   ========================================================================== */

:root {
  --bg-deep: #070a12;
  --bg-surface: #0e1422;
  --bg-elevated: #131b2e;
  --bg-input: #0a0f1c;

  --border-subtle: #1e293b;
  --border-hover: #334155;
  --border-active: #38bdf8;

  --text-white: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.12);

  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.12);

  --blue: #3b82f6;
  --blue-light: #60a5fa;

  --amber: #f59e0b;
  --rose: #f43f5e;
  --rose-dim: rgba(244, 63, 94, 0.12);
  --purple: #a855f7;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Helpers */
.text-green { color: var(--emerald-light); }
.text-blue { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-rose { color: var(--rose); }
.text-purple { color: var(--purple); }
.text-center { text-align: center; }

/* ==========================================================================
   LAYER 1: NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  display: block;
  line-height: 1.2;
}

.logo-badge {
  font-size: 11px;
  color: var(--emerald-light);
  font-weight: 600;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-primary {
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.btn-nav-primary:hover {
  background: #1d4ed8;
}

.btn-nav-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nav-outline:hover {
  color: #ffffff;
  border-color: var(--border-hover);
}

/* ==========================================================================
   LAYER 2: HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 72px 24px 80px;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-light);
  margin-bottom: 24px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-hero-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.hero-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.metric-block {
  text-align: center;
  flex: 1;
}

.m-number {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  margin-bottom: 2px;
}

.m-desc {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================= */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 24px;
  scroll-margin-top: 70px;
}

.bg-elevated {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  max-width: 100%;
}

.bg-elevated > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 6px;
}

.section-heading {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 10px;
}

.section-subheading {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

.section-header.text-center .section-subheading {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   LAYER 3: COMPARISON GRID
   ========================================================================= */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.comp-card.legacy-card {
  border-left: 4px solid var(--rose);
}

.comp-card.credpulse-card {
  border-left: 4px solid var(--emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-surface) 100%);
}

.comp-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.comp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.red-icon {
  background: var(--rose-dim);
  color: var(--rose);
}

.green-icon {
  background: var(--emerald-dim);
  color: var(--emerald-light);
}

.comp-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.comp-subtitle {
  font-size: 12px;
  color: var(--text-dim);
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-list li {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.comp-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 18px;
  top: -2px;
}

.credpulse-card .comp-list li::before {
  color: var(--emerald);
}

/* ==========================================================================
   LAYER 4 & 5: TOOL LAYOUTS & PANELS
   ========================================================================= */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.panel-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.panel-heading {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.pill-info {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.pill-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Form Blocks */
.field-block {
  margin-bottom: 22px;
}

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

.field-meta label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.numeric-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-tag {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.numeric-input-wrap input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px 6px 24px;
  border-radius: var(--radius-sm);
  width: 125px;
  text-align: right;
  transition: border-color 0.15s ease;
}

.numeric-input-wrap input:focus {
  outline: none;
  border-color: var(--border-active);
}

.custom-slider {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin-bottom: 4px;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  border: 2px solid #0f172a;
  transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.field-annotation {
  font-size: 11px;
  color: var(--text-dim);
}

/* Presets Container */
.presets-container {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.presets-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.presets-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-hover);
}

/* Score Hero Display */
.score-card-hero {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin-bottom: 22px;
}

.badge-tier {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--emerald-dim);
  color: var(--emerald-light);
}

.score-big-group {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.score-digit {
  font-size: 52px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1;
}

.score-denominator {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
}

.score-meter-bg {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.score-meter-fill {
  height: 100%;
  background: var(--emerald);
  transition: width 0.35s ease;
}

.score-tier-explanation {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.telemetry-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.t-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.t-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.t-hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Rationale Audit Box */
.underwriter-rationale {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
}

.rationale-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rationale-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
}

/* ==========================================================================
   DEBT OPTIMIZER SECTION
   ========================================================================= */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.styled-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  text-transform: uppercase;
}

.styled-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.btn-delete-row {
  background: transparent;
  color: #ef4444;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.btn-delete-row:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* In-Page Add Form */
.inpage-add-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.inpage-title {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.inpage-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: flex-end;
}

.input-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-col label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.text-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
}

.text-input:focus {
  border-color: var(--border-active);
}

.btn-add-debt {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-add-debt:hover {
  background: #1d4ed8;
}

/* Stacked Debt Optimizer Layout */
.panel-subcaption {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.sync-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sync-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sync-action:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.capacity-feedback-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

.capacity-feedback-card .feedback-icon {
  font-size: 18px;
  line-height: 1;
}

.capacity-feedback-card strong {
  color: var(--emerald);
}

.stacked-debt-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.optimizer-horizontal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.optimizer-controls-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

/* Strategy Radios */
.strategy-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.strat-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 14px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.strat-choice.active {
  border-color: var(--border-active);
  background: rgba(56, 189, 248, 0.08);
}

.strat-choice strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.strat-choice span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Accelerator Box */
.accelerator-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.acc-meta label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.acc-display {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}

.acc-subtext {
  font-size: 11px;
  color: var(--text-dim);
}

/* Payoff KPIs (Horizontal 4-column layout) */
.payoff-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.p-kpi {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.pk-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.pk-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

/* Roadmap List */
.roadmap-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.roadmap-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.roadmap-list {
  padding-left: 20px;
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   LAYER 6: UNDERWRITING METHODOLOGY
   ========================================================================= */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.method-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.method-num {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
}

.method-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.method-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.method-formula {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
}

/* ==========================================================================
   LAYER 7: COMMERCIAL PRICING GRID
   ========================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}

.price-card.featured-price {
  border-color: #2563eb;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, var(--bg-surface) 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.price-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.price-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1;
  margin-bottom: 14px;
}

.price-amount span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.price-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: #cbd5e1;
}

.price-features li::before {
  content: "✓ ";
  color: var(--emerald-light);
  font-weight: 700;
}

/* ==========================================================================
   LAYER 8: FAQ SECTION
   ========================================================================= */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   LAYER 9: FOOTER
   ========================================================================= */
.app-footer {
  background: #05070d;
  border-top: 1px solid var(--border-subtle);
  padding-top: 60px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 12px;
}

.small-icon {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 380px;
  line-height: 1.5;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links li {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 48px;
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-dim);
}

.bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVENESS BREAKPOINTS (MOBILE, TABLET, DESKTOP)
   ========================================================================= */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 38px;
  }
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .optimizer-controls-row {
    grid-template-columns: 1fr;
  }
  .payoff-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 48px 16px 60px;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-metrics-strip {
    flex-direction: column;
    gap: 16px;
  }
  .metric-divider {
    width: 100%;
    height: 1px;
  }
  .section-container {
    padding: 56px 16px;
  }
  .inpage-inputs-grid {
    grid-template-columns: 1fr;
  }
  .strategy-cards-row {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
