/* ============================================================
   Digital DNA — Calculator Page Styles
   ============================================================ */

/* ── Page hero variant ──────────────────────────────────── */
.page-hero--calc {
  padding-bottom: var(--space-16);
}

.page-hero--calc .page-hero__heading em {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* Trust bar under hero heading */
.calc-trust-bar {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.calc-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.calc-trust-item svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

/* ── Calculator layout ──────────────────────────────────── */
.calc-section {
  padding-top: var(--space-8);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

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

/* ── Panel base ─────────────────────────────────────────── */
.calc-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.calc-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.6;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.calc-panel--results {
  min-height: 480px;
}

/* Panel header */
.calc-panel__header {
  margin-bottom: var(--space-8);
}

.calc-panel__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal);
  display: block;
  margin-bottom: var(--space-2);
}

.calc-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

/* ── Form fields ────────────────────────────────────────── */
.calc-field {
  margin-bottom: var(--space-6);
}

.calc-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

/* Number input row */
.calc-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.calc-input-row:focus-within {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 188, 0.12);
}

.calc-input-prefix {
  padding: 0 var(--space-3);
  color: var(--text-light);
  font-size: var(--text-base);
  font-family: var(--font-mono);
  background: var(--bg-surface-3);
  border-right: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
}

.calc-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 var(--space-4);
  font-size: var(--text-lg);
  font-family: var(--font-mono);
  color: var(--text-primary);
  height: 44px;
  width: 100%;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input[type=number] {
  -moz-appearance: textfield;
}

/* Slider */
.calc-slider-wrap {
  margin-top: var(--space-3);
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-3);
  outline: none;
  cursor: pointer;
  position: relative;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-teal);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(20, 184, 188, 0.18);
  transition: box-shadow var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(20, 184, 188, 0.28);
}

.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-teal);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px rgba(20, 184, 188, 0.18);
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-light);
  font-family: var(--font-mono);
}

.calc-hint {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin: var(--space-2) 0 0;
  line-height: 1.5;
}

/* ── Vertical toggle ─────────────────────────────────────── */
.calc-toggle {
  display: flex;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.calc-toggle__btn {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.calc-toggle__btn.active {
  background: var(--accent-teal);
  color: var(--bg-base);
}

/* ── Radio select ───────────────────────────────────────── */
.calc-select-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.calc-radio:hover {
  border-color: var(--border-hover);
  background: var(--glass-bg-hover);
}

.calc-radio input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.calc-radio input[type=radio]:checked ~ .calc-radio__box {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
}

.calc-radio input[type=radio]:checked ~ .calc-radio__box::after {
  opacity: 1;
}

.calc-radio input[type=radio]:checked ~ .calc-radio__label strong {
  color: var(--accent-teal);
}

.calc-radio:has(input:checked) {
  border-color: var(--border-teal);
  background: rgba(20, 184, 188, 0.04);
}

.calc-radio__box {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: transparent;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.calc-radio__box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-base);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.calc-radio__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-radio__label strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.calc-radio__label span {
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* ── Submit button ──────────────────────────────────────── */
.calc-btn {
  width: 100%;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.calc-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-align: center;
  margin: var(--space-3) 0 0;
  line-height: 1.5;
}

/* ── Placeholder state ──────────────────────────────────── */
.calc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-8);
  height: 100%;
  min-height: 360px;
}

.calc-placeholder__icon {
  color: var(--accent-teal);
  opacity: 0.5;
  margin-bottom: var(--space-6);
}

.calc-placeholder__text {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.calc-placeholder__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  justify-content: center;
}

.calc-placeholder__chips span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-full);
  color: var(--accent-teal);
  background: var(--accent-teal-dim);
}

/* ── Results state ──────────────────────────────────────── */
.calc-results__header {
  margin-bottom: var(--space-6);
}

.calc-results__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-2) 0 var(--space-1);
  line-height: 1.2;
}

.calc-results__scenario {
  font-size: var(--text-sm);
  color: var(--text-light);
  font-family: var(--font-mono);
}

/* Results grid */
.calc-results__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 480px) {
  .calc-results__grid {
    grid-template-columns: 1fr;
  }
}

/* Result cards */
.calc-result-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  position: relative;
  overflow: hidden;
}

.calc-result-card--primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(20, 184, 188, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: var(--border-teal);
}

.calc-result-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.calc-result-card__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-1);
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-result-card--primary .calc-result-card__value {
  font-size: var(--text-5xl);
}

.calc-result-card__unit {
  font-size: var(--text-xl);
  font-weight: 600;
}

.calc-result-card__sub {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.4;
}

/* Trust signal */
.calc-trust-signal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--accent-teal-dim);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}

.calc-trust-signal svg {
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Range bar */
.calc-range-bar {
  margin-bottom: var(--space-6);
}

.calc-range-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-bottom: var(--space-2);
}

.calc-range-bar__track {
  position: relative;
  height: 6px;
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
  overflow: visible;
}

.calc-range-bar__fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calc-range-bar__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--accent-teal);
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(20, 184, 188, 0.5);
}

/* CTA box */
.calc-cta-box {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.calc-cta-box__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  min-width: 200px;
}

.calc-cta-box__text strong {
  color: var(--text-primary);
  font-size: var(--text-base);
}

.calc-cta-box__text span {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.4;
}

/* ── Methodology section ────────────────────────────────── */
.calc-methodology .section-subheading em {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.calc-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .calc-method-grid {
    grid-template-columns: 1fr;
  }
}

.calc-method-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.calc-method-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-teal);
}

.calc-method-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  opacity: 0.7;
}

.calc-method-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.calc-method-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Caveats */
.calc-caveats {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
}

.calc-caveats h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

.calc-caveats ul {
  margin: 0;
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.calc-caveats li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Counter animation ──────────────────────────────────── */
.calc-counter {
  display: inline;
}

/* ── Results reveal animation ───────────────────────────── */
@keyframes resultReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.calc-results {
  animation: resultReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.calc-result-card {
  animation: resultReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.calc-result-card:nth-child(1) { animation-delay: 0.05s; }
.calc-result-card:nth-child(2) { animation-delay: 0.10s; }
.calc-result-card:nth-child(3) { animation-delay: 0.15s; }
.calc-result-card:nth-child(4) { animation-delay: 0.20s; }

/* ── Input suffix (e.g. "x", "%") ──────────────────────── */
.calc-input-suffix {
  padding: 0 var(--space-3);
  color: var(--text-light);
  font-size: var(--text-base);
  font-family: var(--font-mono);
  background: var(--bg-surface-3);
  border-left: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ROAS ATTRIBUTION GAP ANALYZER
   ══════════════════════════════════════════════════════════ */

.roas-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,0.03) 50%, transparent 100%);
}

.roas-section .section-subheading em {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* ── ROAS Layout ─────────────────────────────────────────── */
.roas-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-10);
}

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

/* ── ROAS Panel ──────────────────────────────────────────── */
.roas-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.roas-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6 0%, #c084fc 100%);
  opacity: 0.7;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.roas-panel--results {
  min-height: 480px;
}

.roas-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-2) 0 0;
  line-height: 1.2;
}

/* ── 3-button window toggle ──────────────────────────────── */
.roas-toggle-3 .calc-toggle__btn {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-2);
}

.roas-toggle-3 .calc-toggle__btn.active {
  background: #8b5cf6;
  color: #fff;
}

/* ── Placeholder chips variant ───────────────────────────── */
.roas-chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-full);
  color: #a78bfa;
  background: rgba(139,92,246,0.08);
}

/* ── Risk gauge ──────────────────────────────────────────── */
.roas-risk-gauge {
  margin-bottom: var(--space-6);
}

.roas-risk-gauge__track {
  position: relative;
  height: 8px;
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
  overflow: visible;
  margin-bottom: var(--space-2);
}

.roas-risk-gauge__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, #22c55e 0%, #f59e0b 38%, #ef4444 70%, #dc2626 100%);
  transition: width 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0;
}

.roas-risk-gauge__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid #8b5cf6;
  transition: left 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(139,92,246,0.5);
  left: 0;
}

.roas-risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-light);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
}

.roas-risk-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.roas-risk-badge--low      { background: rgba(34,197,94,0.14);  color: #22c55e; border: 1px solid rgba(34,197,94,0.28);  }
.roas-risk-badge--medium   { background: rgba(245,158,11,0.14); color: #f59e0b; border: 1px solid rgba(245,158,11,0.28); }
.roas-risk-badge--high     { background: rgba(239,68,68,0.14);  color: #ef4444; border: 1px solid rgba(239,68,68,0.28);  }
.roas-risk-badge--critical { background: rgba(220,38,38,0.18);  color: #dc2626; border: 1px solid rgba(220,38,38,0.4);  box-shadow: 0 0 12px rgba(220,38,38,0.2); }

/* ── Reported → True ROAS comparison ────────────────────── */
.roas-numbers {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.roas-number-card {
  flex: 1;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.roas-number-card--arrow {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--text-light);
  padding: 0;
  text-align: center;
}

.roas-number-card__label {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.roas-number-card__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
}

.roas-number-card__value--muted {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.45);
}

.roas-number-card__value--accent {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Ghost revenue card ──────────────────────────────────── */
.roas-ghost-card {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}

.roas-ghost-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ef4444;
  margin-bottom: var(--space-2);
}

.roas-ghost-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #ef4444;
  margin-bottom: var(--space-1);
}

.roas-ghost-card__sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Blind spots list ────────────────────────────────────── */
.roas-blindspots {
  margin-bottom: var(--space-5);
}

.roas-blindspots__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.roas-blindspot-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  border-left: 3px solid transparent;
}

.roas-blindspot-item--low      { background: rgba(34,197,94,0.05);  border-left-color: #22c55e; }
.roas-blindspot-item--medium   { background: rgba(245,158,11,0.05); border-left-color: #f59e0b; }
.roas-blindspot-item--high     { background: rgba(239,68,68,0.05);  border-left-color: #ef4444; }
.roas-blindspot-item--critical { background: rgba(220,38,38,0.07);  border-left-color: #dc2626; }

.roas-blindspot-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.roas-blindspot-item--low      .roas-blindspot-item__dot { background: #22c55e; }
.roas-blindspot-item--medium   .roas-blindspot-item__dot { background: #f59e0b; }
.roas-blindspot-item--high     .roas-blindspot-item__dot { background: #ef4444; }
.roas-blindspot-item--critical .roas-blindspot-item__dot { background: #dc2626; }

.roas-blindspot-item strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.roas-blindspot-item p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Narrative summary ───────────────────────────────────── */
.roas-narrative {
  background: var(--glass-bg);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
}

.roas-narrative p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ── Results animation ───────────────────────────────────── */
@keyframes roasReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.roas-output {
  animation: roasReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
