/* ==========================================================================
   FINTRA THEME — Fintech & Digital Banking
   Design language: trustworthy navy + emerald, lime highlight marker,
   soft elevated surfaces and HTML-built cards, charts and app screens.
   ========================================================================== */
:root {
  --bg: #f7faf8; --bg-2: #eef4f0; --surface: #ffffff; --surface-2: #f1f5f3;
  --text: #0b1f3a; --muted: #56657a; --line: rgba(11, 31, 58, .1);
  --primary: #0fa36b; --primary-2: #0b1f3a; --accent: #c8f169; --on-primary: #fff;
  --font-head: "Bricolage Grotesque", sans-serif; --font-body: "Figtree", sans-serif;
  --font-logo: "Righteous", sans-serif; --logo-weight: 400; --logo-size: 1.45rem; --logo-tracking: 0;
  --head-weight: 700; --head-tracking: -0.035em;
  --radius-sm: 12px; --radius: 22px; --radius-lg: 32px; --radius-btn: 999px;
  --gradient: linear-gradient(135deg, #0fa36b, #0b7a8a);
  --shadow: 0 18px 40px -18px rgba(11, 31, 58, .22);
  --shadow-lg: 0 40px 80px -30px rgba(11, 31, 58, .35);
}
[data-theme="dark"] {
  --bg: #06121f; --bg-2: #0a1a2c; --surface: #0e2135; --surface-2: #132a42;
  --text: #eaf2fb; --muted: #93a4ba; --line: rgba(234, 242, 251, .1);
  --primary: #22c98a;
}
.btn { --btn-bg: var(--text); --btn-fg: var(--bg); }
.btn--gradient { background: var(--primary); color: #fff; }
.btn::after { background: var(--primary); }
.btn:hover { color: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); }
.btn--ghost::after { background: var(--surface-2); }
.btn--ghost:hover { color: var(--text); }
.btn--light { --btn-bg: var(--accent); --btn-fg: #0b1f3a; }
.btn--light::after { background: #fff; }
.btn--light:hover { color: #0b1f3a; }
.logo__mark { background: var(--accent); color: #0b1f3a; border-radius: 12px; }
.eyebrow { color: var(--primary); }
.badge b { background: var(--accent); color: #0b1f3a; }
.icon-box { background: var(--accent); color: #0b1f3a; border-radius: 18px; }
[data-theme="dark"] .icon-box { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.card { box-shadow: var(--shadow-sm); border-color: transparent; }
.card:hover { border-color: var(--line); }
.f-hl { font-style: normal; background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); padding: 0 .08em; }
[data-theme="dark"] .f-hl, .section--dark .f-hl { color: var(--accent); background: none; }
.cta-box { background: #0b1f3a; }
.cta-box::before { background: color-mix(in srgb, var(--primary) 40%, transparent); }
.cta-box::after { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.plan--featured { background: #0b1f3a; }
.plan--featured::before { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.plan--featured .btn--gradient { background: var(--accent); color: #0b1f3a; }
.step__num { background: var(--accent); color: #0b1f3a; }
.f-stats { background: #0b1f3a; color: #fff; --text: #fff; --muted: #a8b6c8; --line: rgba(255,255,255,.14); }
.f-stats .stat__num { color: var(--accent); }
.site-footer { background: #0b1f3a; color: #eaf2fb; --text: #eaf2fb; --muted: #93a4ba; --line: rgba(255,255,255,.12); --surface: #0e2135; }
.footer-mega { color: var(--accent); opacity: .12; }
.pos { color: #0fa36b; } .neg { color: #e5484d; }
.chip.pos { background: color-mix(in srgb, #0fa36b 14%, transparent); }
.f-grid { position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); }

/* Hero: bank ------------------------------------------------------------ */
.f-signup { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 500px; }
.f-signup .input { flex: 1 1 200px; border: 0; background: transparent; box-shadow: none; min-height: 54px; }
.f-signup .btn { flex: none; }
.f-signup .form-success { flex-basis: 100%; }
@media (max-width: 480px) { .f-signup { border-radius: 24px; } .f-signup .btn { width: 100%; } }
.f-stage { position: relative; min-height: 560px; }
.f-stage--sm { min-height: 380px; }
.f-ring { position: absolute; inset: 8% 4% 8% 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 65%); }
.fcard { position: relative; width: 340px; max-width: 86vw; aspect-ratio: 1.586; padding: 22px 24px; border-radius: 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 120% at 0% 0%, #1c4a7a 0%, #0b1f3a 55%, #061426 100%); box-shadow: 0 30px 60px -20px rgba(11,31,58,.55), inset 0 1px 0 rgba(255,255,255,.15); overflow: hidden; }
.fcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%); }
.fcard__top, .fcard__bottom { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.fcard__logo { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-logo); font-size: 1.1rem; }
.fcard__logo .ti { color: var(--accent); }
.fcard__nfc { transform: rotate(90deg); opacity: .7; }
.fcard__chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f3dc8f, #b8923c); position: relative; z-index: 1; }
.fcard__num { font-family: ui-monospace, monospace; font-size: 1.1rem; letter-spacing: .12em; position: relative; z-index: 1; }
.fcard__bottom small { display: block; font-size: .62rem; opacity: .6; text-transform: uppercase; letter-spacing: .1em; }
.fcard__bottom b { font-size: .88rem; font-weight: 600; }
.fcard__brand { font-size: 2.2rem; }
.fcard--back { position: absolute; top: 4%; right: 2%; transform: rotate(10deg); background: radial-gradient(120% 120% at 0% 0%, #d6f78d 0%, #0fa36b 70%); color: #0b1f3a; }
.fcard--front { position: absolute; top: 34%; right: 0; transform: rotate(-6deg); z-index: 2; }
.f-stage--sm .fcard--back { top: 0; } .f-stage--sm .fcard--front { top: 22%; right: 20%; }
.fapp { position: absolute; left: 0; bottom: 0; z-index: 3; width: 290px; padding: 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.fapp__head { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.fapp__bal { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 14px; }
.fapp__bal small { font-size: 1.1rem; color: var(--muted); }
.fapp__actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.fapp__actions span { display: grid; justify-items: center; gap: 4px; padding: 10px 0; border-radius: 14px; background: var(--surface-2); font-size: 1.15rem; }
.fapp__actions span:first-child { background: var(--primary); color: #fff; }
.fapp__actions small { font-size: .68rem; }
.fapp__title { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.fapp__title small { color: var(--primary); font-weight: 600; }
.tx { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.tx + .tx { border-top: 1px solid var(--line); }
.tx b { display: block; font-size: .86rem; font-weight: 600; }
.tx small { color: var(--muted); font-size: .74rem; }
.tx em { font-style: normal; font-weight: 700; font-size: .88rem; text-align: right; }
.tx em small { display: block; font-weight: 500; }
.tx__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); font-size: 1.1rem; }
@media (max-width: 767px) {
  .f-stage { min-height: 520px; }
  .fcard--back { right: -6%; } .fcard--front { right: 4%; top: 6%; }
  .fapp { left: 0; right: 0; margin-inline: auto; width: min(300px, 100%); }
  .f-stage .float-card { display: none; }
}

/* Pots, panels, charts -------------------------------------------------- */
.fvis { position: relative; }
.pots { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.pot { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface-2); }
.pot__body { flex: 1; }
.pot__row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
.pot__row small { color: var(--muted); }
.bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; }
.pot--apy { justify-content: center; background: var(--accent); color: #0b1f3a; font-size: .92rem; }
.fpanel { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fpanel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.fpanel__big { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.fchart { width: 100%; height: 170px; display: block; }
.fchart__line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fpanel__tabs { display: flex; gap: 6px; margin-top: 12px; }
.fpanel__tabs span { padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.fpanel__tabs .is-on { background: var(--text); color: var(--bg); }

/* Crypto hero ----------------------------------------------------------- */
.f-crypto .hero__title { max-width: 15ch; }
.f-tilt { perspective: 1200px; display: grid; place-items: center; }
.fcard--hero { width: min(520px, 90vw); padding: 32px; border-radius: 28px; transform: rotateX(18deg) rotateY(-14deg) rotateZ(4deg); transition: transform .8s var(--ease);
  background: radial-gradient(120% 140% at 0% 0%, #2ee6a6 0%, #0b7a8a 35%, #0b1f3a 75%); box-shadow: 0 60px 100px -30px rgba(15, 163, 107, .5); }
.fcard--hero:hover { transform: rotateX(0) rotateY(0) rotateZ(0); }
.fcard--hero .fcard__num { font-size: clamp(1rem, 2.6vw, 1.5rem); }
.ticker { border-block: 1px solid var(--line); background: var(--surface); padding-block: 16px; }
.tick { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: .95rem; }
.tick .ti { font-size: 1.4rem; color: var(--primary); }
.tick em { font-style: normal; font-weight: 600; font-size: .85rem; }

/* Investing hero -------------------------------------------------------- */
.f-invest .hero__title { font-size: clamp(3rem, 8vw, 7.6rem); max-width: 14ch; }
.f-invest .fapp__list { margin-top: 10px; }

/* Business dashboard ---------------------------------------------------- */
.f-biz .hero__title { max-width: 18ch; }
.bizdash { display: grid; gap: 16px; padding: 16px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: left; backdrop-filter: blur(10px); }
.bizdash__kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1024px) { .bizdash__kpi { grid-template-columns: repeat(4, 1fr); } }
.bizdash__kpi > div { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.bizdash__kpi small { color: var(--muted); font-size: .8rem; }
.bizdash__kpi b { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: -0.03em; }
.bizdash__kpi em { font-style: normal; font-size: .8rem; font-weight: 600; }
.bizdash__row { display: grid; gap: 16px; }
@media (min-width: 1024px) { .bizdash__row { grid-template-columns: 1.7fr 1fr; } }
.donut { width: 150px; aspect-ratio: 1; border-radius: 50%; margin: 6px auto 18px; display: grid; place-items: center; position: relative; }
.donut::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); }
.donut span { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.legend { display: grid; gap: 8px; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { margin-left: auto; }
