/* ---------- Products: financing leads, the platform tools follow ---------- */
/* The whole section (heading, financing card, three product cards) fits one screen on a laptop. */
.products { padding: clamp(80px, 10vh, 100px) 0 clamp(24px, 4vh, 48px); }
.products .section-head { margin-bottom: clamp(22px, 3.5vh, 36px); }
.products .section-head h2 { max-width: none; font-size: clamp(28px, 2.9vw, 42px); }
.prod-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.prod { border-radius: 24px; padding: 28px; background: #fff; color: var(--ink); border: 1px solid rgba(20,36,61,.1); }

/* Financing: the emphasised, full-width card */
.prod-feature { grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px);
  align-items: center; padding: clamp(30px, 3.2vw, 48px) clamp(26px, 3.4vw, 48px); border: 0; color: #fff;
  background: radial-gradient(80% 90% at 88% 15%, rgba(108,137,183,.55), transparent 60%),
    linear-gradient(150deg, #243C66, var(--night) 82%); }
.prod-feature h3 { margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.04; font-weight: 400; letter-spacing: -.025em; }
.prod-text { color: #C9D6EE; max-width: 50ch; font-size: 15.5px; }
.prod-points { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.prod-points li { display: flex; align-items: center; gap: 12px; }
.prod-points li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(194,218,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23CFE0FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.prod-feature .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.prod-feature .btn-ghost:hover { border-color: #fff; }

.prod-visual { display: grid; place-items: center; }
.fund-wrap { position: relative; width: min(100%, 380px); padding: 0 0 14px 0; }
.fund-card { display: grid; gap: 13px; padding: 20px 22px 24px; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(3,10,24,.85), 0 0 0 1px rgba(255,255,255,.2); }
.fund-top { display: flex; justify-content: space-between; align-items: center; }
.fund-org { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.fund-org i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--signal)); }
.fund-amt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fund-amt { font-size: 32px; font-weight: 400; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.fund-sub { font-size: 12px; color: var(--slate); }

/* Horizontal stepper: the line fills and each dot lights in turn */
.fund-stepper { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.fund-stepper::before, .fund-line { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 7px; height: 2px; border-radius: 2px; background: #E3E9F2; }
.fund-line { background: linear-gradient(90deg, var(--signal), var(--ok)); transform: scaleX(0); transform-origin: left; }
.fund-stepper li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--slate); }
.fund-stepper i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #D5DCE6; background: #fff; }
.fund-stepper span { max-width: 9ch; line-height: 1.25; }

/* Remittance progress */
.fund-pay { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #F4F7FB; }
.fund-pay-top, .fund-next { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); }
.fund-pay-top b, .fund-next b { color: var(--ink); font-weight: 600; }
.fund-meter { height: 8px; border-radius: 99px; background: #E3E9F2; overflow: hidden; }
.fund-meter b { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), var(--signal));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) .6s; }
.fund-weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-items: end; height: 22px; }
.fund-weeks b { height: calc(var(--h) * 100%); border-radius: 3px; background: var(--ok); opacity: .75; }
.fund-weeks b.is-next { background: var(--signal); opacity: 1; }
.fund-weeks b.is-due { background: #D5DCE6; opacity: 1; }

/* "Wire sent" notification over the card corner */
.fund-toast { position: absolute; left: -28px; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 18px 40px -16px rgba(3,10,24,.7); opacity: 0; transform: translateY(10px) scale(.96); }
.fund-toast i { width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: #E9F7F0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.4L12 5.2' fill='none' stroke='%231F9D6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat; }
.fund-toast div { display: grid; font-size: 12px; }
.fund-toast b { font-size: 13px; }
.fund-toast span { color: var(--slate); }

/* The sequence runs on ONE 8s timeline (no per-step delays, so nothing drifts out of sync):
   0.4s step 1 lights, line runs to step 2, 1.6s step 2 lights, line runs on, 2.8s step 3 lights,
   3.2s the wire notification lands, everything holds, then fades and the cycle restarts. */
.prod-feature.is-in .fund-line { animation: fund-line 8s linear infinite; }
.prod-feature.is-in .fund-stepper li:nth-child(1) i { animation: fund-dot-1 8s var(--ease-out) infinite; }
.prod-feature.is-in .fund-stepper li:nth-child(2) i { animation: fund-dot-2 8s var(--ease-out) infinite; }
.prod-feature.is-in .fund-stepper li:nth-child(3) i { animation: fund-dot-3 8s var(--ease-out) infinite; }
.prod-feature.is-in .fund-stepper li:nth-child(1) span { animation: fund-label-1 8s linear infinite; }
.prod-feature.is-in .fund-stepper li:nth-child(2) span { animation: fund-label-2 8s linear infinite; }
.prod-feature.is-in .fund-stepper li:nth-child(3) span { animation: fund-label-3 8s linear infinite; }
.prod-feature.is-in .fund-toast { animation: fund-toast 8s var(--ease-out) infinite; }
.prod-feature.is-in .fund-meter b { transform: none; }
.prod-feature:hover .fund-wrap *, .prod-feature:hover .fund-wrap *::before { animation-play-state: paused; }
@keyframes fund-line { 0%, 5% { transform: scaleX(0); } 20% { transform: scaleX(.5); } 35%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes fund-dot-1 { 0%, 4% { background: #fff; border-color: #D5DCE6; box-shadow: none; } 7%, 88% { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px rgba(108,137,183,.18); } 96%, 100% { background: #fff; border-color: #D5DCE6; box-shadow: none; } }
@keyframes fund-dot-2 { 0%, 19% { background: #fff; border-color: #D5DCE6; box-shadow: none; } 22%, 88% { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px rgba(108,137,183,.18); } 96%, 100% { background: #fff; border-color: #D5DCE6; box-shadow: none; } }
@keyframes fund-dot-3 { 0%, 34% { background: #fff; border-color: #D5DCE6; box-shadow: none; } 37%, 88% { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px rgba(31,157,107,.2); } 96%, 100% { background: #fff; border-color: #D5DCE6; box-shadow: none; } }
@keyframes fund-label-1 { 0%, 5% { color: var(--slate); } 7%, 88% { color: var(--ink); } 96%, 100% { color: var(--slate); } }
@keyframes fund-label-2 { 0%, 20% { color: var(--slate); } 22%, 88% { color: var(--ink); } 96%, 100% { color: var(--slate); } }
@keyframes fund-label-3 { 0%, 35% { color: var(--slate); } 37%, 88% { color: var(--ink); } 96%, 100% { color: var(--slate); } }
@keyframes fund-toast { 0%, 38% { opacity: 0; transform: translateY(10px) scale(.96); } 44%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(6px) scale(.98); } }

/* Products after financing: three compact cards in a row */
.prod-tool { grid-column: span 2; display: grid; gap: 6px; align-content: start; padding: 22px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; }
.prod-tool:hover { transform: translateY(-2px); border-color: rgba(108,137,183,.35); box-shadow: 0 20px 44px -26px rgba(20,36,61,.35); }
.prod-tool h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.prod-tool p:last-child { color: var(--slate); font-size: 15px; max-width: 44ch; }
.prod-tool:nth-child(3) { --d: .08s; } .prod-tool:nth-child(4) { --d: .16s; }
.mini { position: relative; height: 128px; margin-bottom: 10px; padding: 18px; border-radius: 14px; background: #F2F5F9; overflow: hidden; }

/* Business banking: account balance and quick actions */
.mini-bank { display: grid; align-content: center; gap: 4px; padding: 16px 20px; }
.mb-label { font-size: 12px; color: var(--slate); }
.mb-bal { font-size: 27px; font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.mb-actions { display: flex; gap: 6px; margin-top: 8px; }
.mb-actions i { font-style: normal; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(20,36,61,.08); }
.mb-actions i:first-child { background: var(--ink); color: #fff; }

/* Business cards: one card face and its limit */
.mini-card { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pay-card { position: relative; width: 140px; height: 90px; flex: none; border-radius: 12px; padding: 12px;
  background: radial-gradient(90% 120% at 90% 0%, rgba(108,137,183,.85), transparent 60%), linear-gradient(140deg, #243C66, var(--night) 80%);
  box-shadow: 0 14px 28px -14px rgba(14,27,46,.7); transition: transform .5s var(--ease-out); }
.prod-tool:hover .pay-card { transform: translateY(-3px); }
.pay-card img { position: absolute; top: 12px; right: 12px; }
.pc-chip { position: absolute; left: 12px; top: 32px; width: 22px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #F3D9A8, var(--dawn)); }
.pc-num { position: absolute; left: 12px; bottom: 10px; font-size: 12px; letter-spacing: .08em; color: #D4E5FF; font-variant-numeric: tabular-nums; }

/* Intelligence: plain-language insights that rotate */
.mini-intel { display: grid; align-content: start; gap: 10px; padding: 16px 18px; }
.in-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--signal-ink); }
.in-spark { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(108,137,183,.2); }
.in-feed { position: relative; height: 80px; }
.in-feed p { position: absolute; inset: 0; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(20,36,61,.08);
  font-size: 13.5px; line-height: 1.4; color: var(--slate); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.in-feed p b { color: var(--ink); font-weight: 600; }
.in-feed p.is-on { opacity: 1; transform: none; }

/* Banking: a deposit lands and the balance counts up */
.mb-toast { position: absolute; right: 14px; top: 12px; display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 10px; border-radius: 999px;
  background: #E9F7F0; color: #17724F; font-size: 11.5px; font-weight: 500; opacity: 0; transform: translateY(-6px); pointer-events: none; }
.mb-toast b { font-weight: 600; }
.mb-toast.is-on { animation: toast-in 3s var(--ease-out) forwards; }
@keyframes toast-in { 0% { opacity: 0; transform: translateY(-6px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }

/* Cards: purchases post against the limit */
.pay-card { overflow: hidden; }
.pc-side { display: grid; gap: 8px; min-width: 0; flex: 1; max-width: 170px; }
.pc-txn { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 9px; background: #fff; font-size: 12px;
  box-shadow: 0 1px 2px rgba(20,36,61,.08); white-space: nowrap; overflow: hidden; }
.pc-txn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pc-txn b { font-weight: 600; flex: none; }
.pc-txn.is-on { animation: txn-in .6s var(--ease-out); }
@keyframes txn-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pc-meter { height: 6px; border-radius: 99px; background: #E3E9F2; overflow: hidden; }
.pc-meter b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-800), var(--primary-500)); transform: scaleX(.38); transform-origin: left; transition: transform .9s var(--ease-out); }
.pc-cap { font-size: 11px; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  .fund-line { transform: none; }
  .fund-stepper i { background: var(--signal); border-color: var(--signal); }
  .fund-stepper span { color: var(--ink); }
  .fund-toast { opacity: 1; transform: none; }
}
@media (max-width: 1100px) {
  .pay-card { width: 118px; height: 76px; padding: 10px; }
  .pay-card img { top: 10px; right: 10px; width: 16px; height: 16px; }
  .pc-chip { top: 26px; left: 10px; width: 18px; height: 13px; }
  .pc-num { left: 10px; bottom: 8px; font-size: 11px; }
  .mini-card { gap: 10px; padding-inline: 14px; }
  /* The side column is narrow here: name above amount, so both read in full */
  .pc-txn { flex-direction: column; gap: 0; padding: 5px 9px; line-height: 1.3; }
  .pc-txn span { font-size: 11px; color: var(--slate); }
  .pc-cap { line-height: 1.3; }
}
@media (max-width: 900px) {
  .prod-feature { grid-template-columns: 1fr; }
  .fund-toast { left: 12px; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-tool { grid-column: auto; }
}
@media (max-width: 760px) {
  .prod-feature .cta-row { flex-direction: column; }
  .prod-feature .btn { width: 100%; }
}

/* Short laptop screens: tighten the spacing so the section still fits one screen. */
@media (min-width: 901px) and (max-height: 820px) {
  .products { padding: 86px 0 12px; }
  .products .section-head { margin-bottom: 18px; }
  .prod-feature { padding-top: 18px; padding-bottom: 18px; }
  .prod-points { margin: 8px 0 14px; gap: 3px; }
  .fund-card { gap: 6px; padding: 14px 16px 14px; }
  .fund-weeks { height: 16px; }
  .prod-tool { padding: 14px; }
  .mini { height: 92px; margin-bottom: 4px; }
  .mini-bank { padding: 8px 16px; gap: 0; }
  .mb-bal { font-size: 21px; }
  .mb-actions { margin-top: 5px; }
  .prod-tool p:last-child { font-size: 14px; line-height: 1.45; max-width: none; }
  .prod-feature { padding-top: 14px; padding-bottom: 14px; }
}
