/* ============================================
   All Bank Balance Passbook — site styles
   Brand palette derived from app logo & screenshots:
   royal blue, azure blue, white cards, dark navy text.
   ============================================ */

:root {
  /* Brand blues — matched to app screenshots */
  --brand-900: #0a3d91;   /* deepest blue (logo edges) */
  --brand-800: #0d47a1;   /* navy blue */
  --brand-700: #1565c0;   /* primary deep */
  --brand-600: #1976d2;   /* primary */
  --brand-500: #2196f3;   /* bright azure (app accent) */
  --brand-400: #42a5f5;   /* light azure */
  --brand-300: #64b5f6;   /* soft sky */
  --brand-100: #e3f2fd;   /* tint */
  --brand-50:  #f4f9ff;   /* faintest */

  --primary: var(--brand-600);
  --primary-dark: var(--brand-800);
  --primary-light: var(--brand-400);

  --accent: #ffc107;       /* warm CTA accent (used sparingly) */
  --success: #00b894;

  /* Surfaces */
  --bg: #f6f9ff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f9ff;
  --surface-dark: #0a3d91;

  /* Text */
  --text: #0d1b2a;
  --text-strong: #0a1a30;
  --text-dim: #4a5b73;
  --muted: #7a8aa1;
  --on-blue: #ffffff;
  --on-blue-dim: rgba(255,255,255,.82);

  /* Borders */
  --border: #d9e6f7;
  --border-strong: #b6cdec;

  /* Gradients */
  --gradient: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
  --gradient-deep: linear-gradient(135deg, #0a3d91 0%, #1976d2 60%, #2196f3 100%);
  --gradient-soft: linear-gradient(135deg, rgba(33,150,243,.12), rgba(21,101,192,.08));

  --shadow-sm: 0 2px 8px rgba(13,71,161,.06);
  --shadow-md: 0 12px 30px -10px rgba(13,71,161,.18);
  --shadow-lg: 0 30px 60px -20px rgba(13,71,161,.28);
  --shadow-blue: 0 14px 34px -10px rgba(25,118,210,.45);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--text-strong);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-dim); margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Decorations ----- */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.bg-orb.one  { width: 540px; height: 540px; background: var(--brand-400); top: -160px; left: -180px; opacity: .25; }
.bg-orb.two  { width: 480px; height: 480px; background: var(--brand-500); top: 180px; right: -140px; opacity: .18; }
.bg-orb.three{ width: 400px; height: 400px; background: var(--brand-300); bottom: -120px; left: 30%; opacity: .15; }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-strong); text-decoration: none; font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-name span { color: var(--primary); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; padding: 8px 14px;
  border-radius: 8px; font-size: .92rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--brand-100); }
.nav-links a.active { color: var(--primary); background: var(--brand-100); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; color: var(--text-strong);
  padding: 8px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: .25s; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 38px -10px rgba(25,118,210,.55); }
.btn-ghost {
  background: #fff; color: var(--primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--brand-100); border-color: var(--primary); color: var(--primary-dark); }
.btn-light {
  background: #fff; color: var(--primary-dark); border-color: transparent;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.18);
}
.btn-light:hover { color: var(--primary-dark); background: #f7fbff; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0d1b2a; color: #fff; padding: 10px 18px;
  border-radius: 12px; border: 1px solid #0d1b2a;
  transition: transform .15s, background .2s;
}
.btn-store:hover { background: #0a1a30; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-store svg { width: 26px; height: 26px; }
.btn-store .ts { font-size: .7rem; opacity: .75; line-height: 1; }
.btn-store .tb { font-size: 1.05rem; font-weight: 600; line-height: 1.1; font-family: 'Plus Jakarta Sans', sans-serif; }
.btn-store-light { background: #fff; color: #0d1b2a; border-color: #fff; }
.btn-store-light:hover { background: #f5f8ff; color: #0d1b2a; }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  padding: 70px 0 90px;
  background: var(--gradient-deep);
  color: var(--on-blue);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(33,150,243,.4), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero p, .hero .lead { color: var(--on-blue-dim); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .82rem; font-weight: 500; color: #fff;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffe082;
  box-shadow: 0 0 12px #ffe082;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #fff 0%, #bbdefb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap;
}
.hero-stats .stat .n {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1;
}
.hero-stats .stat .l { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 4px; }

.phone-frame {
  position: relative; max-width: 320px; margin: 0 auto;
  padding: 12px;
  background: linear-gradient(160deg, #0d1b2a, #0a3d91);
  border-radius: 42px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 50px 90px -20px rgba(0,0,0,.45);
  transform: rotate(-3deg);
  transition: transform .4s;
}
.phone-frame:hover { transform: rotate(0deg); }
.phone-frame img { border-radius: 30px; }
.phone-frame::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0d1b2a; border-radius: 12px; z-index: 2;
}

/* ----- Section ----- */
section { position: relative; padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .kicker {
  color: var(--primary); font-weight: 700; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head p { font-size: 1.08rem; }

.section-alt { background: var(--surface-2); }

/* ----- Feature cards ----- */
.feature-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--brand-100);
  color: var(--primary);
  margin-bottom: 18px; font-size: 1.6rem;
  border: 1px solid var(--border);
}
.feature-card h3 { color: var(--text-strong); margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: .95rem; }

/* ----- Banks grid ----- */
.banks-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.bank-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  font-weight: 500; font-size: .92rem;
  color: var(--text-strong);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bank-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.bank-chip .b-icon {
  font-size: 1.5rem; display: block; margin-bottom: 8px; color: var(--primary);
}
.bank-chip .b-name { font-size: .88rem; color: var(--text-dim); }

/* ----- Screenshots ----- */
.shots {
  display: flex; gap: 28px; overflow-x: auto; padding: 12px 4px 30px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.shots .phone-frame {
  flex: 0 0 280px; scroll-snap-align: center; transform: none;
  box-shadow: var(--shadow-lg);
}
.shots .phone-frame:nth-child(odd) { transform: translateY(-10px); }

/* ----- How it works ----- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  position: relative; padding: 36px 26px 26px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step .num {
  position: absolute; top: -18px; left: 24px;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: var(--shadow-blue);
}
.step h3 { margin-top: 14px; color: var(--text-strong); }

/* ----- FAQ ----- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: var(--brand-300); }
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 600; color: var(--text-strong);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--primary);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .a { padding: 0 24px 22px; color: var(--text-dim); }

/* ----- CTA banner ----- */
.cta-banner {
  background: var(--gradient-deep);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative; overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 50%),
    radial-gradient(circle at bottom right, rgba(33,150,243,.45), transparent 55%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.88); }

/* ----- Footer ----- */
.site-footer {
  background: #0a1f4a;
  color: #cdd9eb;
  padding: 70px 0 30px;
  margin-top: 60px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--brand-300); }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 50px;
}
.footer-brand p { font-size: .92rem; max-width: 320px; color: #aab7d0; }
.footer-col h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: #8ea3c8; margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #cdd9eb; font-size: .93rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: .85rem; color: #8ea3c8;
}
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal-links a { color: #8ea3c8; }
.footer-bottom .legal-links a:hover { color: #fff; }

/* ----- Page hero (interior pages) ----- */
.page-hero {
  position: relative; padding: 80px 0 60px; text-align: center;
  background: var(--gradient-deep);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(33,150,243,.3), transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.page-hero .grad {
  background: linear-gradient(135deg, #fff 0%, #bbdefb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- Legal pages ----- */
.legal-content {
  max-width: 880px; margin: 0 auto; padding: 60px 24px;
  background: #fff;
}
.legal-content h2 { margin-top: 40px; color: var(--text-strong); }
.legal-content h3 { margin-top: 28px; color: var(--text-strong); }
.legal-content ul, .legal-content ol { color: var(--text-dim); padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content p, .legal-content li { color: var(--text-dim); }
.legal-content .meta {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-100); border: 1px solid var(--border);
  font-size: .85rem; color: var(--primary-dark); margin-bottom: 30px; font-weight: 500;
}
.legal-content strong { color: var(--text-strong); }
.legal-content a { color: var(--primary); }
.legal-content code {
  background: var(--brand-100); color: var(--primary-dark);
  padding: 2px 8px; border-radius: 6px; font-size: .9em;
}

.toc {
  background: var(--brand-50);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 20px 0 40px;
}
.toc h3 {
  margin: 0 0 14px; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--primary);
}
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--text-strong); font-size: .93rem; font-weight: 500; }
.toc a:hover { color: var(--primary); }

/* ----- About page specifics ----- */
.about-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 30px;
}
.value-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.value-card .v-icon {
  font-size: 1.6rem; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-100); color: var(--primary);
}
.value-card h3 { color: var(--text-strong); }

/* ----- Contact page ----- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start;
}
.contact-info .info-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.contact-info h3 { color: var(--text-strong); font-size: 1rem; margin-bottom: 6px; }
.contact-info p { font-size: .95rem; margin: 0; }

.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-form label { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--text-strong); font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
  color: var(--text-strong); font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25,118,210,.18);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* ----- Trust strip ----- */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; padding: 40px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ic {
  font-size: 1.4rem; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-100); color: var(--primary);
}
.trust-item h4 { margin: 0 0 4px; color: var(--text-strong); font-size: 1rem; }
.trust-item p { margin: 0; font-size: .9rem; color: var(--text-dim); }

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: none; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; min-width: 240px; color: var(--text-strong); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }

/* ----- Helpers ----- */
.text-grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero { padding: 50px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .toc ol { columns: 1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 14px; background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .menu-toggle { display: block; }
  section { padding: 60px 0; }
  .cta-banner { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
