/* ═══════════════════════════════════════════════════════
   FinBox Path Cards — shared styles for all path templates
   Loaded globally via default.hbs
═══════════════════════════════════════════════════════ */

/* ── Page chrome ── */
.is-path .fb-footer { display: none; }
.is-path .fb-content { background: #eceef4; }

/* ════════════════════════════════════════════════════
   PATH DECK SHELL
════════════════════════════════════════════════════ */
.fb-path-deck {
  height: calc(100dvh - var(--fb-nav-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* ── Top bar ── */
.fb-path-topbar {
  flex-shrink: 0;
  padding: 14px clamp(20px, 5vw, 60px) 12px;
  background: #eceef4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-path-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fb-path-back-link {
  font-size: 13px; font-weight: 500; color: var(--fb-dim);
  text-decoration: none; display: flex; align-items: center;
  gap: 5px; transition: color .15s;
}
.fb-path-back-link:hover { color: var(--fb-ink); }
.fb-path-title-small {
  font-size: 13px; font-weight: 600; color: var(--fb-dim);
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-path-counter {
  font-size: 13px; font-weight: 600; color: var(--fb-dim);
  font-variant-numeric: tabular-nums;
  background: white; padding: 4px 12px;
  border-radius: 100px; border: 1px solid var(--fb-border);
}

/* ── Progress bar ── */
.fb-path-prog {
  height: 3px; background: rgba(0,0,0,0.08);
  border-radius: 3px; overflow: hidden;
}
#fb-path-prog-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--fb-blue) 0%, #4d78ff 100%);
  border-radius: 3px;
  transition: width .45s cubic-bezier(.4,0,.2,1);
}

/* ── Card stage ── */
#fb-path-stage {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px,3vh,28px) clamp(16px,5vw,60px);
  overflow: hidden;
}

/* ── Individual cards ── */
.fpc-card {
  position: absolute;
  width: 100%; max-width: 548px;
  max-height: calc(100% - 8px);
  overflow-y: auto; overscroll-behavior: contain;
  border-radius: 22px;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.1) transparent;
  box-shadow: 0 8px 40px rgba(14,14,12,0.12), 0 2px 8px rgba(14,14,12,0.06);
}
.fpc-card::-webkit-scrollbar { width: 3px; }
.fpc-card::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.fpc-card::-webkit-scrollbar-track { background: transparent; }
.fpc-card-inner { padding: 44px 44px 40px; }

/* ── Controls ── */
.fb-path-controls {
  flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
  gap: 20px;
  padding: 14px clamp(20px,5vw,60px) 18px;
  background: #eceef4;
}
.fpc-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(14,14,12,0.1);
  background: white; color: var(--fb-ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  box-shadow: 0 1px 4px rgba(14,14,12,0.06);
}
.fpc-nav-btn:hover:not(:disabled) {
  background: var(--fb-blue); color: white;
  border-color: var(--fb-blue); transform: scale(1.06);
}
.fpc-nav-btn:disabled { opacity: .28; cursor: not-allowed; }

/* ── Dot trail ── */
#fb-path-dots {
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap; justify-content: center; max-width: 280px;
}
.fpc-dot {
  width: 7px; height: 7px; border-radius: 4px;
  background: rgba(14,14,12,0.15);
  border: none; padding: 0; cursor: pointer;
  transition: background .2s, width .25s cubic-bezier(.4,0,.2,1);
}
.fpc-dot--active { background: var(--fb-blue); width: 22px; }
.fpc-dot--past   { background: rgba(25,76,255,.35); }

/* ══════════════════════════════════════════════
   SHARED CARD ATOMS
══════════════════════════════════════════════ */
.fpc-eyebrow {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--fb-blue); margin-bottom: 18px;
}
.fpc-eyebrow-white { color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════════
   CARD TYPE: INTRO
══════════════════════════════════════════════ */
.fpc-card--intro {
  background: linear-gradient(148deg, #081426 0%, #0d2448 55%, #102952 100%);
}
.fpc-card--intro .fpc-card-inner {
  padding: 52px 48px 48px;
  min-height: 400px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.fpc-card--intro .fpc-card-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(25,76,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.fpc-intro-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 8px; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.fpc-intro-eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--fb-blue); border-radius: 2px;
}
.fpc-intro-title {
  font-size: clamp(26px,4vw,38px); font-weight: 800;
  line-height: 1.12; letter-spacing: -1.5px; color: white;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.fpc-intro-subtitle {
  font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.55);
  margin-bottom: 36px; max-width: 360px; position: relative; z-index: 1;
}
.fpc-intro-meta {
  display: flex; gap: 10px; margin-bottom: 36px; position: relative; z-index: 1;
}
.fpc-intro-pill {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 5px 14px; border-radius: 100px;
}
.fpc-intro-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fb-blue); color: white;
  font-size: 15px; font-weight: 700; letter-spacing: -.2px;
  padding: 14px 28px; border-radius: 14px;
  cursor: pointer; border: none;
  transition: opacity .15s, transform .18s;
  align-self: flex-start; position: relative; z-index: 1;
  font-family: var(--fb-font);
}
.fpc-intro-btn span { font-size: 18px; }
.fpc-intro-btn:hover { opacity: .88; transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   CARD TYPE: STAT
══════════════════════════════════════════════ */
.fpc-card--stat { background: var(--fb-navy); }
.fpc-card--stat .fpc-card-inner {
  padding: 52px 48px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.fpc-stat-bg-num {
  position: absolute; top: -10px; right: -10px;
  font-size: 180px; font-weight: 900; letter-spacing: -8px;
  color: rgba(25,76,255,.07); line-height: 1;
  pointer-events: none; user-select: none;
}
.fpc-stat .fpc-eyebrow { color: #5c82ff; }
.fpc-stat-number {
  font-size: clamp(68px,11vw,88px); font-weight: 900;
  line-height: .92; letter-spacing: -4px; color: white;
  margin-bottom: 18px; position: relative; z-index: 1;
}
.fpc-stat-headline {
  font-size: 18px; font-weight: 700; color: rgba(255,255,255,.85);
  line-height: 1.4; letter-spacing: -.3px; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.fpc-stat-body {
  font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.45);
  max-width: 380px; position: relative; z-index: 1;
}
.fpc-stat-source {
  font-size: 12px; color: rgba(255,255,255,.25);
  margin-top: 20px; position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════
   CARD TYPE: INSIGHT
══════════════════════════════════════════════ */
.fpc-card--insight { background: white; }
.fpc-card--insight .fpc-card-inner {
  padding: 48px 48px 44px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: center;
}
.fpc-insight-headline {
  font-size: clamp(22px,3.5vw,30px); font-weight: 800;
  line-height: 1.18; letter-spacing: -.8px; color: var(--fb-ink); margin-bottom: 18px;
}
.fpc-insight-body { font-size: 15px; line-height: 1.7; color: var(--fb-dim); }
.fpc-insight-list {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.fpc-insight-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--fb-ink); line-height: 1.5;
}
.fpc-insight-list li svg { margin-top: 2px; flex-shrink: 0; color: var(--fb-blue); width: 14px; height: 14px; }
.fpc-insight-list li span { flex: 1; }

/* ══════════════════════════════════════════════
   CARD TYPE: QUOTE
══════════════════════════════════════════════ */
.fpc-card--quote {
  background: linear-gradient(148deg, #1540e8 0%, #0d38d4 60%, #0b2fa0 100%);
}
.fpc-card--quote .fpc-card-inner {
  padding: 52px 48px 48px; min-height: 360px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.fpc-quote-mark {
  position: absolute; top: 12px; left: 36px;
  font-size: 130px; line-height: 1; color: rgba(255,255,255,.1);
  font-family: Georgia, serif; pointer-events: none;
}
.fpc-quote-text {
  font-size: clamp(18px,3vw,24px); font-weight: 600;
  line-height: 1.45; color: white; letter-spacing: -.2px;
  position: relative; z-index: 1; margin: 0 0 28px; font-style: normal;
}
.fpc-quote-attr {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5);
  font-style: normal; position: relative; z-index: 1;
}
.fpc-quote-attr::before { content: '— '; }

/* ══════════════════════════════════════════════
   CARD TYPE: CASE STUDY
══════════════════════════════════════════════ */
.fpc-card--case-study { background: white; }
.fpc-card--case-study .fpc-card-inner { padding: 44px 48px 40px; min-height: 380px; }
.fpc-cs-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px;
  text-transform: uppercase; color: #d97706; margin-bottom: 10px;
}
.fpc-cs-company {
  font-size: 23px; font-weight: 800; letter-spacing: -.6px;
  color: var(--fb-ink); margin-bottom: 20px;
}
.fpc-cs-headline {
  font-size: 16px; font-weight: 700; color: var(--fb-ink);
  line-height: 1.45; margin-bottom: 14px; letter-spacing: -.2px;
}
.fpc-cs-body { font-size: 14px; line-height: 1.72; color: var(--fb-dim); margin-bottom: 28px; }
.fpc-cs-metric-row {
  display: flex; align-items: flex-end; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--fb-border);
}
.fpc-cs-metric {
  font-size: 36px; font-weight: 900; letter-spacing: -1.5px;
  color: var(--fb-blue); line-height: 1;
}
.fpc-cs-metric-label { font-size: 13px; color: var(--fb-dim); line-height: 1.4; max-width: 220px; }

/* ══════════════════════════════════════════════
   CARD TYPE: ARTICLE
══════════════════════════════════════════════ */
.fpc-card--article {
  background: white; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fpc-card--article:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 48px rgba(14,14,12,0.14), 0 3px 10px rgba(14,14,12,0.07) !important;
}
.fpc-article { display: block; text-decoration: none; color: inherit; }
.fpc-card--article .fpc-card-inner { padding: 44px 48px 40px; }
.fpc-article-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--fb-blue); margin-bottom: 18px; display: block;
}
.fpc-article-title {
  font-size: clamp(20px,3.2vw,27px); font-weight: 800; color: var(--fb-ink);
  line-height: 1.22; letter-spacing: -.6px; margin-bottom: 14px;
}
.fpc-article-excerpt { font-size: 14px; line-height: 1.72; color: var(--fb-dim); margin-bottom: 28px; }
.fpc-article-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--fb-border);
}
.fpc-article-time { font-size: 12px; color: var(--fb-dim2); font-weight: 500; }
.fpc-article-cta { font-size: 14px; font-weight: 700; color: var(--fb-blue); display: flex; align-items: center; gap: 4px; }

/* ══════════════════════════════════════════════
   CARD TYPE: CTA
══════════════════════════════════════════════ */
.fpc-card--cta {
  background: linear-gradient(148deg, #1945f5 0%, #1438d4 100%);
}
.fpc-card--cta .fpc-card-inner {
  padding: 52px 48px 48px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.fpc-card--cta .fpc-card-inner::after {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  bottom: -80px; right: -80px; pointer-events: none;
}
.fpc-cta-headline {
  font-size: clamp(24px,4vw,34px); font-weight: 800; color: white;
  line-height: 1.14; letter-spacing: -1.2px; margin-bottom: 16px;
}
.fpc-cta-body { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.65); margin-bottom: 36px; max-width: 380px; }
.fpc-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--fb-blue);
  font-size: 15px; font-weight: 700; letter-spacing: -.2px;
  padding: 14px 28px; border-radius: 14px; text-decoration: none;
  transition: opacity .15s, transform .18s; align-self: flex-start;
  font-family: var(--fb-font); position: relative; z-index: 1;
}
.fpc-cta-btn:hover { opacity: .9; transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   CARD TYPE: SUMMARY
══════════════════════════════════════════════ */
.fpc-card--summary { background: white; }
.fpc-card--summary .fpc-card-inner { padding: 44px 48px 40px; min-height: 420px; }
.fpc-summary-done {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #059669;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 22px;
}
.fpc-summary-headline {
  font-size: clamp(24px,4vw,32px); font-weight: 800; color: var(--fb-ink);
  letter-spacing: -1.1px; line-height: 1.15; margin-bottom: 28px;
}
.fpc-summary-list {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.fpc-summary-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--fb-ink); line-height: 1.55;
}
.fpc-summary-check {
  width: 20px; height: 20px; min-width: 20px; border-radius: 50%;
  background: #059669; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.fpc-summary-check svg { color: white; }
.fpc-next-path {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--fb-bg); border: 1.5px solid var(--fb-border);
  border-radius: 14px; padding: 18px 20px; text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
}
.fpc-next-path:hover {
  background: var(--fb-blue-pale); border-color: rgba(25,76,255,.25);
  transform: translateY(-2px);
}
.fpc-next-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--fb-dim2); margin-bottom: 5px;
}
.fpc-next-title { font-size: 15px; font-weight: 700; color: var(--fb-ink); }
.fpc-next-arrow { font-size: 20px; color: var(--fb-blue); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .fpc-card-inner { padding: 32px 28px 28px !important; }
  .fpc-card { border-radius: 18px; }
  .fb-path-title-small { display: none; }
  .fpc-stat-number { font-size: 64px; letter-spacing: -3px; }
  .fb-path-topbar { padding: 12px 16px 10px; }
  #fb-path-stage { padding: 10px 12px; }
  .fb-path-controls { padding: 10px 16px 14px; }
}
