/* ==========================================================================
   CloudSpend Styles — AWS Cost Optimization Funnel, Calculator, & Snapshot
   Adheres to Serif Editorial (Warm Monochrome + Gold) design system
   ========================================================================== */

/* ── Top Notice / Snapshot Callout Banner ────────────────────────────────── */
.snapshot-banner {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.snapshot-banner__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.snapshot-banner__title {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: var(--space-2);
}

/* ── Interactive ROI Calculator ─────────────────────────────────────────── */
.roi-calculator {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin: var(--space-8) 0;
}

@media (max-width: 640px) {
  .roi-calculator {
    padding: var(--space-6);
  }
}

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

@media (max-width: 860px) {
  .roi-calculator__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.roi-calculator__field {
  margin-bottom: var(--space-6);
}

.roi-calculator__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.roi-calculator__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.roi-calculator__currency {
  position: absolute;
  left: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-tertiary);
  pointer-events: none;
}

.roi-calculator__input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 48px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.roi-calculator__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.roi-calculator__rate-pills {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
}

@media (max-width: 480px) {
  .roi-calculator__rate-pills {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roi-calculator__rate-btn {
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.roi-calculator__rate-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.roi-calculator__rate-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.roi-calculator__results {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.roi-calculator__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.roi-calculator__result-row:last-child {
  border-bottom: none;
}

.roi-calculator__result-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.roi-calculator__result-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--cat-operate);
}

.roi-calculator__result-value--annual {
  color: var(--accent);
}

.roi-calculator__disclaimer {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ── Funnel Visualization ────────────────────────────────────────────────── */
.funnel-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin: var(--space-8) 0;
  position: relative;
}

@media (max-width: 992px) {
  .funnel-flow {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.funnel-flow__step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast), border-color var(--duration-fast);
}

.funnel-flow__step:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
}

.funnel-flow__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.funnel-flow__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.funnel-flow__desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.funnel-flow__arrow {
  display: none;
}

@media (min-width: 993px) {
  .funnel-flow__step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-lg);
    color: var(--text-tertiary);
    z-index: 2;
  }
}

@media (max-width: 992px) {
  .funnel-flow__step:not(:last-child)::after {
    content: "↓";
    display: block;
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
  }
}

/* ── Badges: Confidence & Complexity ─────────────────────────────────────── */
.badge-confidence {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-confidence--high {
  background: var(--success-muted);
  color: var(--success);
  border: 1px solid rgba(45, 106, 79, 0.25);
}

.badge-confidence--medium {
  background: var(--warning-muted);
  color: var(--accent-active);
  border: 1px solid rgba(184, 134, 11, 0.25);
}

.badge-confidence--low {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.badge-complexity {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-complexity--low {
  background: var(--success-muted);
  color: var(--success);
}

.badge-complexity--medium {
  background: var(--warning-muted);
  color: var(--accent-active);
}

.badge-complexity--high {
  background: var(--cat-assess-muted);
  color: var(--cat-assess);
}

/* ── Trust Statements Bar ────────────────────────────────────────────────── */
.trust-statements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.trust-statement {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.trust-statement__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.trust-statement__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.trust-statement__text strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

/* ── CloudSpend Snapshot Form ────────────────────────────────────────────── */
.snapshot-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .snapshot-form-card {
    padding: var(--space-6);
  }
}

.snapshot-form__notice {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-4);
  text-align: center;
  line-height: var(--leading-normal);
}

/* ── Inclusions vs Exclusions Grid ───────────────────────────────────────── */
.inclusions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

@media (max-width: 768px) {
  .inclusions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.inclusions-col {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.inclusions-col--included {
  border-top: 3px solid var(--cat-operate);
}

.inclusions-col--excluded {
  border-top: 3px solid var(--text-tertiary);
}

.inclusions-col__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.inclusions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inclusions-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  line-height: var(--leading-normal);
}

.inclusions-list__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.inclusions-list__icon--check {
  color: var(--cat-operate);
}

.inclusions-list__icon--cross {
  color: var(--text-tertiary);
}

/* ── Breadcrumb Navigation for SEO Pages ─────────────────────────────────── */
.breadcrumb-nav {
  padding: var(--space-3) 0;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumb-nav a:hover {
  color: var(--accent);
}

.breadcrumb-nav__sep {
  color: var(--border-strong);
}

/* ── Contextual Article CTA Box ──────────────────────────────────────────── */
.article-cta {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.article-cta__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.article-cta__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--leading-normal);
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ── 4-Column Pricing Grid for CloudSpend Packages ───────────────────────── */
.pricing-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1120px) {
  .pricing-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .pricing-grid--4 {
    grid-template-columns: 1fr;
  }
}
