/* ================================================================
   FIREPLUS — Page-specific styles
   Accent colour: #f59e0b (var(--fireplus-color))
   ================================================================ */

/* ── Depth page intro ──────────────────────────────────────── */
.fp-depth-intro {
  padding-top: 80px;
  padding-bottom: 40px;
  text-align: center;
}

/* ── Depth page link bar (enable in index.html when ready) ─── */
.fp-depth-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
  text-align: center;
}
.fp-depth-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.fp-depth-bar-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ── Platform + Capabilities (combined section) ────────────── */
.fp-platform-caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.fp-platform-cap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fp-platform-cap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--fireplus-color), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fp-platform-cap:hover {
  transform: translateY(-4px);
  border-color: rgba(245,158,11,0.35);
  box-shadow: 0 16px 48px rgba(245,158,11,0.1);
}

.fp-platform-cap:hover::before {
  opacity: 1;
}

.fp-platform-cap-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,158,11,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--fireplus-color);
  margin-bottom: 20px;
}

.fp-platform-cap-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.fp-platform-cap-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .fp-platform-caps {
    grid-template-columns: 1fr;
  }
}

/* ── Decision Domain cards v2 ───────────────────────────────── */
.fp-domain-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.fp-domain-card-v2 {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fp-domain-card-v2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--fireplus-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fp-domain-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(245,158,11,0.35);
  box-shadow: 0 16px 48px rgba(245,158,11,0.1);
}

.fp-domain-card-v2:hover::after {
  opacity: 1;
}

.fp-domain-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(245,158,11,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--fireplus-color);
  margin-bottom: 16px;
}

.fp-domain-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fireplus-color);
  margin-bottom: 10px;
}

.fp-domain-problem {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.fp-domain-body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .fp-domain-grid-v2 {
    grid-template-columns: 1fr;
  }
}

/* ── Hero ──────────────────────────────────────────────────── */
.fp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: var(--bg-base);
}

.fp-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(245,158,11,0.2), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(245,158,11,0.06) 1px, transparent 0);
  background-size: 100%, 36px 36px;
  pointer-events: none;
}

.fp-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
  pointer-events: none;
}

/* Status badge */
.fp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fireplus-color);
  margin-bottom: 16px;
}

.fp-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fireplus-color);
  animation: fpPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes fpPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

/* Override primary button for FirePlus amber */
.btn-fp-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--fireplus-color);
  color: #0a0d14;
  border: 1px solid var(--fireplus-color);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  font-family: inherit;
}
.btn-fp-primary:hover {
  background: #d97706;
  border-color: #d97706;
  color: #0a0d14;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}

/* ── Section base variants ─────────────────────────────────── */
.fp-section {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}
.fp-section-surface { background: var(--bg-surface); }
.fp-section-dark    { background: var(--bg-base); }

/* ── Hero headline accent ──────────────────────────────────── */
.fp-headline-accent {
  color: var(--fireplus-color);
}

/* ── Hero stat strip ───────────────────────────────────────── */
.fp-stat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  padding: 20px 32px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
  gap: 0;
}

.fp-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.fp-stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fireplus-color);
  line-height: 1;
  margin-bottom: 5px;
}

.fp-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  max-width: 160px;
  line-height: 1.4;
}

.fp-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

/* ── Two-column layout (Sections 2 & 8) ─────────────────────── */
.fp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Cost section redesign (Section 2) ──────────────────────── */
.fp-cost-wrapper {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.fp-cost-accent {
  display: block;
  color: var(--fireplus-color);
  margin-top: 6px;
}

.fp-cost-br { display: none; }

.fp-cost-divider {
  width: 48px;
  height: 3px;
  background: var(--fireplus-color);
  border-radius: 2px;
  margin: 36px auto 28px;
  opacity: 0.7;
}

.fp-cost-body {
  max-width: 580px;
  margin: 0 auto;
}

.fp-cost-statement {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--r-lg);
  padding: 28px 40px;
  margin: 32px auto 0;
  max-width: 640px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

.fp-cost-closer {
  margin-top: 28px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fireplus-color);
  letter-spacing: -0.01em;
}

/* ── Contrast panel (Section 2) ─────────────────────────────── */
.fp-contrast-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.fp-contrast-side { padding: 24px 20px; }
.fp-contrast-today { background: rgba(239, 68, 68, 0.04); border-right: 1px solid var(--border); }
.fp-contrast-with  { background: rgba(245, 158, 11, 0.04); }

.fp-contrast-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.fp-contrast-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fp-contrast-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.fp-contrast-today .fp-contrast-list li i { color: #f87171; font-size: 0.8rem; flex-shrink: 0; }
.fp-contrast-with  .fp-contrast-list li i { color: var(--fireplus-color); font-size: 0.8rem; flex-shrink: 0; }

/* ── Pillar cards (Section 3) ────────────────────────────────── */
.fp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fp-pillar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px 28px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.fp-pillar-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-3px);
}

.fp-pillar-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--fireplus-color);
  margin-bottom: 16px;
}

.fp-pillar-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.fp-pillar-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Pipeline label fix (add label wrapper) ─────────────────── */
.fp-pipe-label {
  text-align: center;
  padding: 0 4px;
}
.fp-pipe-label strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.fp-pipe-label span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Pipeline note (Section 4) ──────────────────────────────── */
.fp-pipeline-note {
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 40px auto 0;
  padding: 24px 32px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--r-lg);
}

/* ── Cap card lead accent (Section 5 card 1) ────────────────── */
.fp-cap-lead {
  border-color: rgba(245, 158, 11, 0.2);
}

/* ── Trust badges (Section 6) ───────────────────────────────── */
.fp-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fp-trust-badge {
  padding: 10px 20px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fireplus-color);
  letter-spacing: 0.03em;
}

/* ── Domain cards (Section 7) ───────────────────────────────── */
.fp-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.fp-domain-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  position: relative;
}
.fp-domain-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.08);
}

.fp-domain-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(245, 158, 11, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.fp-domain-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.fp-domain-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Invariant callout */
.fp-invariant {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.fp-inv-col {
  flex: 1;
  padding: 24px 28px;
}

.fp-inv-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.fp-inv-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.fp-inv-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-inv-items span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
}
.light .fp-inv-items span { background: rgba(0, 0, 0, 0.03); }

/* ── Deploy card (Section 8) ────────────────────────────────── */
.fp-deploy-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}

.fp-deploy-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.fp-deploy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fp-deploy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.fp-deploy-list li i {
  color: var(--fireplus-color);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Principles (Section 9) ─────────────────────────────────── */
.fp-principles {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fp-principle {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.fp-principle:first-child { border-top: 1px solid var(--border); }
.fp-principle strong { color: var(--text-primary); font-weight: 700; }

.fp-prin-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fireplus-color);
  letter-spacing: 0.08em;
  min-width: 28px;
  padding-top: 4px;
  flex-shrink: 0;
}

/* ── Capabilities grid ─────────────────────────────────────── */
.fp-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fp-cap-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px 32px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.fp-cap-card:hover {
  border-color: rgba(245,158,11,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245,158,11,0.1);
}

.fp-cap-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,158,11,0.1);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--fireplus-color);
  margin-bottom: 16px;
}

.fp-cap-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.fp-cap-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── Decision pipeline ─────────────────────────────────────── */
.fp-pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 0;
}

.fp-pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
}

.fp-pipe-step::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(to right, var(--fireplus-color), rgba(245,158,11,0.2));
}
.fp-pipe-step:last-child::after { display: none; }

.fp-pipe-node {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,158,11,0.1);
  border: 1.5px solid var(--fireplus-color);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--fireplus-color);
  z-index: 1;
  position: relative;
  transition: background var(--t-base), box-shadow var(--t-base);
  margin-bottom: 16px;
}
.fp-pipe-step:hover .fp-pipe-node {
  background: rgba(245,158,11,0.2);
  box-shadow: 0 0 20px rgba(245,158,11,0.35);
}
.fp-pipe-last { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,0.08); }

.fp-pipe-step strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.fp-pipe-step span {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── CTA section ───────────────────────────────────────────── */
.fp-cta-section {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.fp-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.fp-cta-inner .section-headline { margin-bottom: 16px; }

/* Active in nav */
.active-product .dropdown-name { color: var(--fireplus-color); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fp-pipeline      { grid-template-columns: repeat(3, 1fr); gap: 24px 0; }
  .fp-pipe-step::after { display: none; }
  .fp-cap-grid      { grid-template-columns: 1fr 1fr; }
  .fp-pillars-grid  { grid-template-columns: repeat(2, 1fr); }
  .fp-domain-grid   { grid-template-columns: 1fr 1fr; }
  .fp-domain-card:last-child { grid-column: span 2; max-width: 480px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  /* Two-column sections stack */
  .fp-two-col       { grid-template-columns: 1fr; gap: 40px; }

  /* Contrast panel stacks */
  .fp-contrast-panel { grid-template-columns: 1fr; }
  .fp-contrast-today { border-right: none; border-bottom: 1px solid var(--border); }

  /* Cost section */
  .fp-cost-statement { padding: 22px 24px; }
  .fp-cost-br        { display: inline; }

  /* Grids */
  .fp-pipeline      { grid-template-columns: 1fr; gap: 24px; }
  .fp-cap-grid      { grid-template-columns: 1fr; }
  .fp-pillars-grid  { grid-template-columns: 1fr 1fr; }
  .fp-domain-grid   { grid-template-columns: 1fr; }
  .fp-domain-card:last-child { grid-column: auto; max-width: 100%; margin: 0; }

  /* Invariant */
  .fp-invariant     { flex-direction: column; }
  .fp-inv-divider   { width: auto; height: 1px; }

  /* Stat strip */
  .fp-stat-divider  { display: none; }
  .fp-stat-item     { padding: 8px 16px; }
  .fp-stat-strip    { gap: 4px; padding: 16px; }

  /* Pipeline note */
  .fp-pipeline-note { padding: 20px; }
}

@media (max-width: 480px) {
  .fp-pillars-grid  { grid-template-columns: 1fr; }
  .fp-deploy-card   { padding: 24px 20px; }
  .fp-domain-card   { padding: 24px 20px; }
}
