/* =============================================================
   AFOMO — Financial Identity page  |  financial-identity.css
   Loaded AFTER home-v2.css (shares its tokens, header, buttons).
   Everything here is scoped with the `fi-` prefix so it cannot
   change the approved homepage.
   Reference: 1440px viewport, 1200px container.
   ============================================================= */

.fi-narrow { max-width: 1048px; margin: 0 auto; padding: 0 24px; }

/* two-tone icons: accent parts use --ic2 when set */
.fi-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* =============================================================
   INTRO + SCORE OVERVIEW
   ============================================================= */
.fi-hero {
  background: linear-gradient(125deg, #efe6ff 0%, #f8f3ff 38%, #fff9ef 78%, #fff3d9 100%);
  padding: 82px 0 80px;
}
.fi-back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--af-purple); transition: gap .18s ease; }
.fi-back .fi-ico { width: 15px; height: 15px; stroke-width: 2.2; }
.fi-back:hover { gap: 11px; }

.fi-hero h1 { margin-top: 22px; font-size: 62px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; color: var(--af-ink); }
.fi-hero h1 em { font-style: normal; background: linear-gradient(90deg, #6d28d9 0%, #9333ea 55%, #c026d3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--af-purple); }
.fi-hero .fi-lead { margin-top: 12px; max-width: 790px; font-size: 18px; line-height: 1.65; color: var(--af-ink-soft); }

.fi-score {
  position: relative; margin-top: 36px; min-height: 304px; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid #ece4fb; border-radius: 30px; box-shadow: 0 26px 54px -30px rgba(80, 40, 160, .3);
}

/* credit score gauge */
.fi-credit { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 54px 24px 30px; text-align: center; }
.fi-gauge { position: relative; width: 270px; height: 135px; }
.fi-gauge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fi-gauge-num { position: absolute; left: 0; right: 0; top: 56px; font-size: 64px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; color: var(--af-ink); }
.fi-range { margin-top: -9px; font-size: 18px; line-height: 1.2; font-weight: 500; color: #5b5b76; font-variant-numeric: tabular-nums; }
.fi-credit-label { margin-top: 12px; font-size: 20.5px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; color: var(--af-ink); }
.fi-chip { margin-top: 7px; display: inline-flex; align-items: center; height: 28px; padding: 0 17px; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #a22bd6); color: #fff; font-size: 14px; font-weight: 700; }

/* TrustScore */
.fi-trust { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 30px 37px 30px 34px; }
.fi-trust::before { content: ''; position: absolute; left: 0; top: 42px; bottom: 42px; width: 1px; background: #ece4fb; }
.fi-trust-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fi-trust-title { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--af-ink); }
.fi-eg { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; background: var(--af-lav-2); color: var(--af-purple); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fi-trust-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--af-purple); }
.fi-trust-val small { margin-left: 3px; font-size: 14px; font-weight: 500; color: #6b6b80; letter-spacing: 0; }
.fi-meter { margin-top: 5px; height: 10px; border-radius: 999px; background: #ece6fb; overflow: hidden; }
.fi-meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6d28d9, #a22bd6); }
.fi-trust-desc { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #5b5b76; }
.fi-perks { margin-top: 18px; display: grid; gap: 16px; }
.fi-perks li { display: flex; align-items: center; gap: 12px; min-height: 22px; line-height: 22px; font-size: 16.4px; font-weight: 500; color: var(--af-ink); }
.fi-tick { width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fi-tick .fi-ico { width: 13px; height: 13px; stroke-width: 3; }

/* =============================================================
   COMPLETE THESE STEPS
   ============================================================= */
.fi-steps-sec { padding: 84px 0 0; }
.fi-steps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fi-steps-head h2 { font-size: 41px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--af-ink); }
.fi-steps-sub { margin-top: 8px; font-size: 16px; color: #5b5b76; }
.fi-progress { width: 260px; padding-bottom: 2px; }
.fi-progress-bar { height: 11px; border-radius: 999px; background: #ece6fb; overflow: hidden; }
.fi-progress-bar span { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, #ffc22e, #f59e0b); }
.fi-progress p { margin-top: 8px; text-align: right; font-size: 13px; font-weight: 800; color: var(--af-ink); }

.fi-steps { margin-top: 36px; display: grid; gap: 16px; }
.fi-step {
  display: flex; align-items: center; gap: 17px; padding: 21px 24px 21px 23px;
  background: #fff; border: 1px solid #ece5f8; border-radius: 20px; box-shadow: 0 10px 24px -18px rgba(80, 40, 160, .3);
}
.fi-step.is-current { border: 1.5px solid #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, .08), 0 16px 30px -16px rgba(109, 40, 217, .4); }
.fi-n { width: 35px; height: 35px; border-radius: 50%; background: #ece6fb; color: var(--af-purple); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.fi-step.is-current .fi-n { background: var(--af-purple); color: #fff; box-shadow: 0 6px 14px -4px rgba(109, 40, 217, .6); }
.fi-tile { width: 59px; height: 59px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 27px; flex-shrink: 0; color: var(--af-purple); --ic2: #f59e0b; background: linear-gradient(145deg, #f3ecff, #e3d8fb); }
.fi-step-body { flex: 1; min-width: 0; }
.fi-step-body h3 { font-size: 19.5px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; color: var(--af-ink); }
.fi-step-body p { margin-top: 2px; max-width: 640px; font-size: 14.5px; line-height: 1.65; color: #55536b; }
.fi-state { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: 15px; font-weight: 800; color: #16a34a; white-space: nowrap; }
.fi-state .fi-tick { width: 25px; height: 25px; }
.fi-state .fi-tick .fi-ico { width: 14px; height: 14px; }
.fi-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; height: 45px; padding: 0 23px;
  border: 1.5px solid var(--af-purple); border-radius: 999px; background: #fff; color: var(--af-purple);
  font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background .18s, color .18s, transform .18s;
}
.fi-act .fi-ico { width: 15px; height: 15px; stroke-width: 2.4; }
.fi-act:hover { background: var(--af-purple); color: #fff; transform: translateY(-1px); }

/* =============================================================
   UNLOCKS
   ============================================================= */
.fi-unlock {
  margin-top: 27px; padding: 36px 32px 32px; border-radius: 31px;
  background: linear-gradient(95deg, #f4eafb 0%, #fbeee9 48%, #fff0cb 100%);
}
.fi-unlock h2 { display: flex; align-items: center; gap: 12px; font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--af-ink); }
.fi-unlock h2 .fi-ico { width: 28px; height: 28px; --ic2: #f59e0b; color: var(--af-purple); }
.fi-unlock-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fi-ucard { min-height: 113px; padding: 20px 12px; border-radius: 18px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; box-shadow: 0 10px 22px -18px rgba(80, 40, 160, .35); }
.fi-ucard .fi-ico { width: 37px; height: 37px; color: var(--af-purple); --ic2: var(--af-purple); stroke-width: 1.7; }
.fi-ucard.gold .fi-ico { color: #f59e0b; --ic2: #f59e0b; }
.fi-ucard b { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--af-ink); }

/* =============================================================
   VERIFICATION LEVELS + SCORE BANDS
   ============================================================= */
.fi-band { margin-top: 96px; padding: 97px 0; background: linear-gradient(180deg, #f8f4ff 0%, #efe8ff 100%); }
.fi-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.fi-card { padding: 30px; border-radius: 25px; background: #fff; box-shadow: 0 20px 44px -30px rgba(80, 40, 160, .3); }
.fi-card h2 { font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--af-ink); }

.fi-levels { margin-top: 22px; display: grid; gap: 19px; }
.fi-level { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.fi-lv { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.fi-lv.l1 { background: #c4b0f5; color: #4c1d95; }
.fi-lv.l2 { background: #8b5cf6; }
.fi-lv.l3 { background: #5b21b6; }
.fi-level b { display: block; font-size: 16.4px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--af-ink); }
.fi-level div span { display: block; margin-top: 1px; font-size: 15px; line-height: 1.4; color: #5b5b76; }

.fi-bands { margin-top: 22px; display: grid; gap: 9px; }
.fi-bandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 45px; padding: 0 16px 0 15px; border-radius: 11px; border-left: 4px solid var(--c); background: var(--bg); font-size: 16.2px; font-weight: 700; color: var(--af-ink); }
.fi-bandrow span { font-size: 16.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.fi-bandrow.b1 { --c: #9ca3af; --bg: #f2f0f7; }
.fi-bandrow.b2 { --c: #f5b301; --bg: #fff4d3; }
.fi-bandrow.b3 { --c: #f97316; --bg: #fdeadb; }
.fi-bandrow.b4 { --c: #6d28d9; --bg: linear-gradient(90deg, #7c3aed 0%, #a22bd6 100%); color: #fff; }
.fi-bandrow.b5 { --c: #4c1d95; --bg: #ece6fb; }

/* =============================================================
   CTA + DISCLAIMER
   ============================================================= */
.fi-cta-sec { padding: 96px 0 0; }
.fi-cta { min-height: 212px; padding: 36px 64px; border-radius: 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff; background: linear-gradient(110deg, #7c3aed 0%, #6a2ed2 42%, #4f1fa0 100%); box-shadow: 0 34px 60px -32px rgba(76, 29, 149, .6); }
.fi-cta h2 { font-size: 41px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.fi-cta h2 em { font-style: normal; color: var(--af-yellow); }
.fi-cta p.sub { margin-top: 10px; font-size: 16.5px; color: rgba(255, 255, 255, .84); }
.fi-cta p.note { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #ffd873; }
.fi-cta p.note .fi-ico { width: 15px; height: 15px; }
.fi-cta .af-btn { height: 52px; padding: 0 30px; font-size: 15px; }
.fi-disclaimer { margin-top: 22px; font-size: 13px; line-height: 1.65; color: #6b6b80; max-width: 1200px; }

/* =============================================================
   COMPACT FOOTER (variant — the homepage footer is untouched)
   ============================================================= */

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1180px) {
  .fi-hero h1 { font-size: 54px; }
  .fi-unlock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fi-cta h2 { font-size: 38px; }
}

@media (max-width: 960px) {
  .fi-hero { padding: 56px 0 64px; }
  .fi-hero h1 { font-size: 46px; }
  .fi-score { grid-template-columns: 1fr; }
  .fi-trust { padding: 34px 28px 36px; }
  .fi-trust::before { left: 28px; right: 28px; top: 0; bottom: auto; width: auto; height: 1px; }
  .fi-steps-sec { padding-top: 64px; }
  .fi-steps-head h2 { font-size: 36px; }
  .fi-band { margin-top: 72px; padding: 64px 0; }
  .fi-band-grid { grid-template-columns: 1fr; }
  .fi-cta { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
  .fi-cta-sec { padding-top: 72px; }
}

@media (max-width: 760px) {
  .fi-back { min-height: 44px; }
  /* step cards: badge + icon + text on top, status / action underneath */
  .fi-step { flex-wrap: wrap; row-gap: 14px; padding: 18px; }
  .fi-step-body { flex: 1 1 calc(100% - 120px); }
  .fi-state, .fi-act { margin-left: 52px; }
  .fi-progress { width: 100%; }
}

@media (max-width: 640px) {
  .fi-narrow { padding: 0 20px; }
  .fi-hero h1 { font-size: 36px; margin-top: 22px; }
  .fi-hero .fi-lead { font-size: 16px; }
  .fi-score { border-radius: 24px; }
  .fi-gauge { width: 240px; height: 120px; }
  .fi-gauge-num { top: 50px; font-size: 56px; }
  .fi-trust-title { flex-wrap: wrap; }
  .fi-steps-head h2 { font-size: 30px; }
  .fi-tile { width: 48px; height: 48px; border-radius: 13px; font-size: 22px; }
  .fi-n { width: 30px; height: 30px; }
  .fi-step { gap: 12px; }
  .fi-step-body { flex-basis: calc(100% - 100px); }
  .fi-state, .fi-act { margin-left: 0; }
  .fi-act { width: 100%; }
  .fi-unlock { padding: 28px 18px 22px; border-radius: 24px; }
  .fi-unlock h2 { font-size: 19px; }
  .fi-unlock-grid { gap: 10px; }
  .fi-ucard { min-height: 104px; padding: 16px 8px; }
  .fi-card { padding: 24px 20px; border-radius: 22px; }
  .fi-bandrow { height: 44px; font-size: 14.5px; }
  .fi-cta { padding: 36px 24px; border-radius: 28px; }
  .fi-cta h2 { font-size: 31px; }
  .fi-cta .af-btn { width: 100%; }
}
