/* PesaQ website. Colours mirror the app's theme (src/theme/theme.ts).

   Contents
     1. Tokens (light, dark)        9. Financial intelligence
     2. Base and shared pieces     10. Dashboard showcase
     3. Buttons                    11. Insights
     4. Nav                        12. Split sections, statements, banks
     5. Hero                       13. Privacy
     6. Phone mock-ups             14. FAQ
     7. Trust strip, sections      15. Call to action, footer, download bar
     8. Problem, solution, steps   16. Privacy & Security page
                                   17. Scroll reveal, 18. Responsive */

:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-muted: #EEF2F8;
  --border: #E6EAF2;
  --text: #0B1B3A;
  --text-2: #55617A;
  --text-3: #97A1B5;
  --primary: #1E6BF1;
  --primary-soft: #E8F1FF;
  --navy: #0F1F3D;
  --positive: #16A35A;
  --negative: #EF4444;
  --hero-glow: #DCE9FF;
  --shadow: 0 4px 14px rgba(11, 27, 58, .06);
  --shadow-lg: 0 24px 60px rgba(11, 27, 58, .14);
  --tint: 12%;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1220;
  --surface: #141E30;
  --surface-muted: #1D2940;
  --border: #27344D;
  --text: #F1F5FB;
  --text-2: #A9B4C8;
  --text-3: #6F7C94;
  --primary: #4C8DF6;
  --primary-soft: #16294A;
  --navy: #2563EB;
  --positive: #34C77B;
  --negative: #F87171;
  --hero-glow: #13254A;
  --shadow: 0 4px 14px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --tint: 18%;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1220;
    --surface: #141E30;
    --surface-muted: #1D2940;
    --border: #27344D;
    --text: #F1F5FB;
    --text-2: #A9B4C8;
    --text-3: #6F7C94;
    --primary: #4C8DF6;
    --primary-soft: #16294A;
    --navy: #2563EB;
    --positive: #34C77B;
    --negative: #F87171;
    --hero-glow: #13254A;
    --shadow: 0 4px 14px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    --tint: 18%;

    color-scheme: dark;
  }
}

/* ---------- Fonts ----------
   Served from this site, so no page waits on another domain. Each family is
   one variable file per script; latin-ext is only fetched for the characters
   it covers (the rupee sign is one of them). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/roboto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/roboto-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Material Symbols, cut down to the icons the phone mock-ups use. */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(assets/fonts/material-symbols.woff2) format('woff2');
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 700; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--text-2); }
.accent { color: var(--primary); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
}
.skip:focus { top: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(30, 107, 241, .3); }
.btn--ghost { border-color: var(--primary); color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--light { background: #fff; color: #0F1F3D; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.icon-btn:hover { color: var(--text); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-stuck { border-bottom-color: var(--border); }

.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.brand b { color: var(--primary); font-weight: 800; }

.nav__links { display: flex; gap: 28px; margin-inline: auto; font-size: .9rem; font-weight: 500; color: var(--text-2); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current] { font-weight: 700; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__menu { display: none; }

.icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow-x: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -120px 0 auto 35%;
  height: 720px;
  background: radial-gradient(closest-side, var(--hero-glow), transparent);
  z-index: -1;
  pointer-events: none;
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.hero__copy h1 { margin: 20px 0 18px; }
.lead { max-width: 30em; font-size: 1.1rem; color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 38px; }

.trust { display: flex; flex-wrap: wrap; gap: 14px 20px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.trust li { display: flex; align-items: center; gap: 10px; max-width: 12em; line-height: 1.3; }
.trust__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--primary);
}

/* ---------- Phone mockups ----------
   Each screen is laid out at the app's own size (390 x 844) with the
   values from the React Native styles, then scaled down to fit the
   frame, so the mockups match the app rather than approximate it. */

.phones { position: relative; height: 560px; }

.phone {
  /* The app's light palette; .phones--dark swaps in the dark one. */
  --p-bg: #F5F7FB;
  --p-surface: #FFFFFF;
  --p-muted: #EEF2F8;
  --p-border: #E6EAF2;
  --p-text: #0B1B3A;
  --p-text-2: #55617A;
  --p-text-3: #97A1B5;
  --p-primary: #1E6BF1;
  --p-navy: #0F1F3D;
  --p-pos: #16A35A;
  --p-pos-soft: #E5F7EC;
  --p-neg: #EF4444;
  --p-inv: #2F7BF6;
  --p-warn-soft: #FDF4E3;
  --p-lift: 0 4px 14px rgba(11, 27, 58, .06);

  position: absolute;
  left: 50%;
  top: 0;
  width: 258px;
  height: 537px;
  padding: 9px;
  border-radius: 42px;
  background: #0B0F18;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2A3142;
  transform: translateX(-50%);
}
.phone--center { z-index: 3; }
.phone--left { z-index: 1; transform: translateX(-50%) translate(-182px, 34px) scale(.87); }
.phone--right { z-index: 1; transform: translateX(-50%) translate(182px, 34px) scale(.87); }

.phones--dark .phone {
  --p-bg: #0A1220;
  --p-surface: #141E30;
  --p-muted: #1D2940;
  --p-border: #27344D;
  --p-text: #F1F5FB;
  --p-text-2: #A9B4C8;
  --p-text-3: #6F7C94;
  --p-primary: #4C8DF6;
  --p-navy: #2563EB;
  --p-pos: #34C77B;
  --p-pos-soft: #12301F;
  --p-neg: #F87171;
  --p-inv: #5B9BFA;
  --p-warn-soft: #33270F;
  --p-lift: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 1.5px #3A4560;
}

.viewport { width: 240px; height: 519px; border-radius: 34px; overflow: hidden; }

.app {
  position: relative;
  width: 390px;
  height: 844px;
  transform: scale(.6154);
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
}
.app b, .app em, .app small, .app i { font-style: normal; font-weight: inherit; font-size: inherit; }
.app p { margin: 0; }
.app .pos { color: var(--p-pos); }
.app .neg { color: var(--p-neg); }
.app .inv { color: var(--p-inv); }
.app .pos-bg { background: var(--p-pos); }
.app .neg-bg { background: var(--p-neg); }

/* Material Symbols, as expo-symbols renders them on Android. */
.ms {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  overflow: hidden;
  font-family: 'Material Symbols Outlined';
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}

.a-status { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 6px 26px 0; font-size: 14px; font-weight: 600; }
.a-sys { display: flex; gap: 4px; }
.a-sys .ms { font-size: 17px; }

.a-pad { padding: 52px 20px 0; }

.a-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.a-wordmark { display: flex; align-items: center; gap: 8px; font-size: 25.5px; font-weight: 800; }
.a-wordmark b { color: var(--p-primary); }
.a-title { font-size: 26px; font-weight: 800; }
.a-period { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--p-surface); border: 1px solid var(--p-border); }
.a-period b { font-size: 15px; font-weight: 700; }
.a-period .ms { font-size: 18px; color: var(--p-primary); }
.a-period .ms:last-child { font-size: 20px; color: var(--p-text-2); }

.a-card { padding: 18px; border-radius: 20px; background: var(--p-surface); }
.a-lift { box-shadow: var(--p-lift); }
.a-line { border: 1px solid var(--p-border); }

.a-head { display: flex; align-items: center; gap: 12px; }
.a-head > div:first-child { flex: 1; }
.a-label { display: block; font-size: 13px; color: var(--p-text-2); }
.a-hero { display: block; margin-top: 4px; font-size: 32px; font-weight: 800; }
.a-end { display: flex; flex-direction: column; align-items: flex-end; }
.a-end small { margin-top: 4px; font-size: 11px; color: var(--p-text-3); }
.a-pill { display: flex; align-items: center; gap: 3px; padding: 5px 10px; border-radius: 999px; background: var(--p-pos-soft); font-size: 13px; font-weight: 700; }
.a-pill .ms { font-size: 14px; }
.a-note { margin-top: 10px !important; font-size: 12px; color: var(--p-text-3); }

.a-stats { display: flex; gap: 10px; margin-top: 12px; }
.a-stats > div { flex: 1; min-width: 0; padding: 14px 12px; border-radius: 14px; background: var(--p-surface); }
.a-stats span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.a-stats .ms { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, currentColor 13%, transparent); font-size: 14px; }
.a-stats b { display: block; margin-top: 8px; font-size: 16px; font-weight: 800; }

.a-cardlabel { display: block; font-size: 14px; font-weight: 700; }
.a-amount { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; }
.a-cardtitle { display: block; font-size: 16px; font-weight: 700; }
.a-cardtitle--lg { font-size: 17px; }
.a-hint { margin-top: 4px !important; font-size: 13px; line-height: 19px; color: var(--p-text-2); }

.a-donut { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.a-donut ul { flex: 1; display: grid; gap: 9px; }
.a-donut li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.a-donut li::before { content: ''; width: 9px; height: 9px; border-radius: 5px; background: var(--c); }
.a-donut li span { flex: 1; color: var(--p-text-2); }
.a-donut li b { font-weight: 700; }

.a-insight { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--p-border); }
.a-insight > span { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--p-warn-soft); color: #E59A0B; }
.a-insight .ms { font-size: 22px; }
.a-insight b { display: block; font-size: 15px; font-weight: 700; }
.a-insight small { display: block; margin-top: 3px; font-size: 13px; line-height: 19px; color: var(--p-text-2); }

.a-split { display: flex; height: 12px; margin-top: 14px; border-radius: 6px; overflow: hidden; }

/* Transactions */
.a-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.a-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--p-surface); border: 1px solid var(--p-border); font-size: 15px; color: var(--p-text-3); white-space: nowrap; overflow: hidden; }
.a-search .ms { font-size: 20px; }
.a-filter { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--p-surface); border: 1px solid var(--p-border); color: var(--p-primary); }
.a-filter .ms { font-size: 20px; }
.a-types { display: flex; gap: 8px; margin-top: 12px; }
.a-types span { display: flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--p-surface); border: 1px solid var(--p-border); font-size: 13px; font-weight: 600; color: var(--p-text-2); }
.a-types .on { background: var(--p-navy); border-color: var(--p-navy); color: #fff; }
.a-totals { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--p-text-2); }
.a-totals b { font-weight: 700; }
.a-day { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--p-text-2); }
.a-day b { color: var(--p-text); }
.a-daycard { border-radius: 20px; background: var(--p-surface); border: 1px solid var(--p-border); overflow: hidden; }
.a-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; }
.a-row > div { flex: 1; min-width: 0; }
.a-row b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-row small { display: block; margin-top: 3px; font-size: 12px; color: var(--p-text-3); }
.a-row em { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-cat { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--soft); color: var(--c); }
.a-cat .ms { font-size: 21px; }
.phones--dark .a-cat { background: color-mix(in srgb, var(--c) 18%, transparent); }

/* Analytics */
.a-tiles { display: flex; gap: 12px; margin-top: 12px; }
.a-tiles > div { flex: 1; padding: 16px; border-radius: 20px; background: var(--p-surface); border: 1px solid var(--p-border); }
.a-tiles small { display: block; font-size: 13px; color: var(--p-text-2); }
.a-tiles b { display: block; margin-top: 6px; font-size: 24px; font-weight: 800; }
.a-tiles em { display: block; margin-top: 4px; font-size: 12px; color: var(--p-text-3); }
.a-bars { display: flex; align-items: flex-end; margin-top: 18px; }
.a-bars > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.a-bars > div > span { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: var(--h); padding: 0 1px; }
.a-bars > div > span i { flex: 1; max-width: 14px; border-radius: 4px 4px 0 0; }
.a-bars small { height: 16px; margin-top: 6px; font-size: 11px; color: var(--p-text-3); }
.a-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--p-text-2); }
.a-legend span { display: flex; align-items: center; gap: 6px; }
.a-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Bottom nav */
.a-nav { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; padding: 0 4px 16px; }
.a-nav__bar { position: absolute; inset: 18px 0 0; background: var(--p-surface); border-top: 1px solid var(--p-border); box-shadow: 0 -4px 12px rgba(11, 27, 58, .06); }
.a-tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; font-size: 11px; font-weight: 600; color: var(--p-text-3); }
.a-tab.on { color: var(--p-primary); }
.a-tab .ms { font-size: 24px; }
.a-add { position: relative; display: flex; justify-content: center; width: 72px; height: 82px; }
.a-add b { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--p-primary); border: 4px solid var(--p-surface); color: #fff; box-shadow: 0 5px 10px color-mix(in srgb, var(--p-primary) 35%, transparent); }
.a-add .ms { font-size: 30px; }

/* The app's donut: 60 rotated bars (components/Ring.tsx), built in script.js. */
.ring { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__spoke { position: absolute; inset: 0; display: flex; justify-content: center; }
.ring__spoke i { display: block; border-radius: 99px; background: var(--p-muted, var(--surface-muted)); }
.ring > b { font-size: 24px; font-weight: 800; line-height: 1.2; }
.ring > small { font-size: 11px; color: var(--p-text-3, var(--text-3)); }

.minirows i {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--c) var(--tint), transparent);
  color: var(--c);
  font-style: normal;
  font-weight: 800;
}

/* ---------- Privacy strip ---------- */

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 26px 30px;
  border-radius: var(--r-xl);
  background: var(--primary-soft);
}
.strip__main { display: flex; align-items: center; gap: 16px; }
.strip__icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--primary); color: #fff; font-size: 1.4rem; }
.strip h2 { font-size: 1.25rem; margin-bottom: 4px; }
.strip p { color: var(--text-2); font-size: .92rem; }
.strip ul { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: .88rem; font-weight: 600; }
.strip li { display: flex; align-items: center; gap: 8px; }
.strip li .icon { color: var(--primary); }

/* ---------- Sections ---------- */

.section { padding-block: 88px 0; }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head p { margin-top: 10px; color: var(--text-2); font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { display: flex; flex-direction: column; padding: 26px; }
.step__num { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary); font-weight: 800; font-size: .95rem; }
.step p { margin: 8px 0 22px; color: var(--text-2); font-size: .93rem; }
.step > :last-child { margin-top: auto; }

.formats { display: flex; gap: 12px; }
.fmt {
  display: grid;
  place-items: center;
  width: 62px;
  height: 74px;
  border-radius: 12px 22px 12px 12px;
  background: color-mix(in srgb, var(--c) var(--tint), transparent);
  border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent);
  color: var(--c);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.fmt--pdf { --c: #EF4444; }
.fmt--xlsx { --c: #16A35A; }
.fmt--csv { --c: #F59E0B; }

.minirows { display: grid; gap: 8px; }
.minirows div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-muted); font-size: .86rem; font-weight: 600; }
.minirows i { width: 26px; height: 26px; font-size: .75rem; }
.minirows span { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) var(--tint), transparent); color: var(--c); font-size: .72rem; }

.minibars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.minibars i { flex: 1; max-width: 34px; border-radius: 8px 8px 0 0; background: linear-gradient(var(--primary), color-mix(in srgb, var(--primary) 45%, transparent)); }

.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: color-mix(in srgb, var(--c) var(--tint), transparent); color: var(--c); font-size: 1.15rem; }

/* ---------- Showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-top: 88px;
  padding: 48px 48px 0;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #0F1F3D, #0A1220 70%);
  color: #F1F5FB;
  overflow: hidden;
}
.showcase__copy { padding-bottom: 48px; }
.showcase h2 { margin: 18px 0 12px; }
.showcase p { color: #A9B4C8; max-width: 26em; }
.pill--dark { background: rgba(76, 141, 246, .18); color: #8DB6FA; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platforms li { padding: 10px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); line-height: 1.3; }
.platforms a { display: block; margin: -10px -16px; padding: 10px 16px; border-radius: inherit; }
.platforms a:hover { background: rgba(255, 255, 255, .08); }
.platforms a span { color: #8DB6FA; }
.platforms b { display: block; font-size: .92rem; }
.platforms span { font-size: .76rem; color: #A9B4C8; }
.showcase .phones { height: 500px; margin-bottom: -40px; }

/* ---------- Split sections ---------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.split h2 { margin-bottom: 12px; }

.notes, .checks { display: grid; gap: 12px; font-size: .95rem; }
.notes li, .checks li { display: flex; gap: 12px; align-items: flex-start; }
.notes { color: var(--text-2); font-size: .9rem; }
.notes .icon, .checks .icon { margin-top: 3px; color: var(--positive); }
.checks { margin-top: 24px; font-weight: 600; }
.checks .icon { padding: 3px; width: 1.5em; height: 1.5em; margin-top: 1px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }

.banks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.banks li { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 8px 12px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; line-height: 1.3; transition: transform .2s ease, border-color .2s ease; }
.banks li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
/* The logo sits straight on the card. Each bank has a second file for the
   dark theme, with its dark inks lifted so they read on navy. */
.banks__logo { display: grid; place-items: center; width: 100%; height: 68px; }
.banks__logo img { width: auto; height: auto; max-width: 100%; max-height: 30px; }
.banks b { font-size: .88rem; font-weight: 700; }
.banks small { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--text-3); }
.banks .banks__soon { background: transparent; border-style: dashed; box-shadow: none; }
.banks__soon .banks__logo .icon { box-sizing: content-box; padding: 9px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.banks__soon b { color: var(--text-2); }

.on-dark { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }
:root[data-theme="dark"] .on-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-dark { display: block; }
  :root:not([data-theme="light"]) .on-light { display: none; }
}
.banks__legal { margin-top: 12px; font-size: .78rem; color: var(--text-3); }
.banks__more { display: flex; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px dashed var(--border); color: var(--text-2); font-size: .88rem; }
.banks__more .icon { margin-top: 2px; color: var(--primary); }

/* ---------- Privacy ---------- */

.privacy {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 88px;
  padding: 48px;
  border-radius: var(--r-xl);
  background: var(--primary-soft);
}
.privacy h2 { margin: 16px 0 12px; }
.privacy__art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 28%, transparent), transparent); }
.privacy__art span { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 34px; background: linear-gradient(140deg, var(--primary), #37C8A6); color: #fff; font-size: 3rem; box-shadow: 0 20px 40px rgba(30, 107, 241, .35); transform: rotate(-6deg); }
.privacy__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 26px; font-size: .92rem; font-weight: 600; }
.privacy__grid li { display: flex; align-items: flex-start; gap: 10px; }
.privacy__grid .icon { margin-top: 2px; color: var(--primary); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq p { padding: 0 22px 20px; color: var(--text-2); font-size: .95rem; }

/* ---------- CTA + footer ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 88px;
  padding: 40px 48px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, #0F1F3D, #1E4FB8);
  color: #fff;
}
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta p { margin-top: 8px; color: #C4D2EC; }

.footer { margin-top: 72px; padding: 48px 0 28px; border-top: 1px solid var(--border); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer__grid p { margin-top: 10px; }
.footer nav { display: grid; gap: 10px; align-content: start; color: var(--text-2); }
.footer nav h3 { font-size: .9rem; color: var(--text); }
.footer nav a:hover { color: var(--primary); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .82rem; }

/* ---------- Shared: links, inline code, section pills ---------- */

.link { color: var(--primary); font-weight: 700; white-space: nowrap; }
.link:hover { text-decoration: underline; }
code { padding: 2px 6px; border-radius: 6px; background: var(--surface-muted); font-size: .85em; overflow-wrap: anywhere; }
.section__head .pill, .split .pill { margin-bottom: 14px; }

/* ---------- Trust strip marks ---------- */

.strip li .icon { color: var(--negative); }
.strip li.yes .icon { color: var(--positive); }

/* ---------- Problem ---------- */

.statement { margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--primary); font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.scatter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.scatter li { display: grid; justify-items: center; gap: 10px; padding: 22px 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .88rem; font-weight: 700; text-align: center; }
.scatter li:nth-child(odd) { transform: translateY(10px) rotate(-1.5deg); }
.scatter li:nth-child(even) { transform: translateY(-6px) rotate(1.5deg); }
.scatter .icon { width: 1.6em; height: 1.6em; color: var(--primary); }

/* ---------- Solution ---------- */

.compare { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; }
.compare .card { padding: 28px; }
.compare small { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.compare__line { margin: 10px 0 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.compare__pesaq { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: linear-gradient(160deg, var(--primary-soft), var(--surface) 60%); }
.compare__pesaq small { color: var(--primary); }
.compare ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: .95rem; font-weight: 600; }
.compare li { display: flex; gap: 10px; align-items: flex-start; }
.compare li .icon { margin-top: 3px; color: var(--primary); }

.layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.layers li { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--border); font-size: .9rem; line-height: 1.4; color: var(--text-2); }
.layers b { display: block; color: var(--text); font-size: .95rem; }
.layers .is-us { background: var(--navy); border-color: var(--navy); color: #C4D2EC; }
.layers .is-us b { color: #fff; }

/* ---------- How it works: fourth step, control flow ---------- */

.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--4 .fmt { width: 52px; height: 62px; font-size: .7rem; }
.steps--4 .formats { gap: 8px; }
.budget { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; }
.budget div { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); }
.budget div:not(:first-child) { margin-top: 8px; }
.budget b { color: var(--text); font-weight: 700; }
.budget b.over { color: var(--negative); }
.budget i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--primary) var(--w), var(--surface-muted) var(--w)); }
.budget i.over { background: var(--negative); }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 40px; align-items: center; margin-top: 22px; padding: 26px 30px; border-radius: var(--r-xl); background: var(--primary-soft); }
.flow h3 { margin-bottom: 6px; font-size: 1.2rem; }
.flow p { font-size: .93rem; }
.flow ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; }
.flow li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.flow li:not(:last-child)::after { content: '→'; margin-right: -30px; padding-left: 10px; color: var(--primary); }
.flow li:not(:last-child) { margin-right: 18px; }

/* ---------- Financial intelligence ---------- */

.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 26px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); counter-reset: rung; }
.ladder li { counter-increment: rung; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 18px; font-size: .9rem; }
.ladder li + li { border-left: 1px solid var(--border); }
.ladder li::before { content: counter(rung); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .75rem; font-weight: 800; }
.ladder b { font-weight: 700; }
.ladder em, .note em { padding: 2px 8px; border-radius: 999px; background: var(--surface-muted); color: var(--text-2); font-style: normal; font-size: .68rem; font-weight: 700; white-space: nowrap; }

.intel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.intel__card { position: relative; display: flex; flex-direction: column; padding: 26px; }
.intel__card h3 { font-size: 1.12rem; line-height: 1.25; }
.intel__card > p { margin: 8px 0 20px; color: var(--text-2); font-size: .92rem; }
.intel__card.is-soon { background: transparent; border-style: dashed; box-shadow: none; }
.soon { position: absolute; top: 26px; right: 26px; padding: 4px 10px; border-radius: 999px; background: var(--surface-muted); color: var(--text-2); font-size: .72rem; font-weight: 700; }
.demo { display: grid; gap: 0; margin-top: auto; padding: 4px 14px; border-radius: var(--r-md); background: var(--surface-muted); font-size: .86rem; }
.demo li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; color: var(--text-2); }
.demo li + li { border-top: 1px solid var(--border); }
.demo b { color: var(--text); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo i { margin-left: 4px; font-style: normal; font-size: .78rem; }
.demo .good { color: var(--positive); }
.demo .bad { color: var(--negative); }
.demo__note { font-size: .78rem; color: var(--text-3) !important; }
.demo__total span { font-weight: 700; color: var(--text); }
.demo__total b { color: var(--primary); }

/* ---------- Insights ---------- */

.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.story__col { display: grid; gap: 12px; }
.story__col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.story__col h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); }
.note b { display: block; font-size: .95rem; line-height: 1.35; }
.note p { margin-top: 3px; color: var(--text-2); font-size: .86rem; line-height: 1.45; }
.note__icon { --c: var(--primary); display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--c) var(--tint), transparent); color: var(--c); }
.note__icon.good { --c: var(--positive); }
.note__icon.bad { --c: var(--negative); }
.note__icon.warn { --c: #E59A0B; }
.note--soon { background: transparent; border-style: dashed; box-shadow: none; }
.note--soon .note__icon { --c: var(--text-3); }

.questions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.questions li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.questions .questions__end { background: none; border-color: transparent; padding-inline: 4px; color: var(--primary); font-weight: 700; }

/* ---------- Transactions and analytics phones ---------- */

.phones--single { height: 540px; }

/* ---------- Privacy extras ---------- */

.privacy__grid--no .icon { color: var(--negative); }
.privacy__grid + .privacy__grid { padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.privacy__more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 26px; font-size: .86rem; color: var(--text-2); }
.privacy__more .link { font-size: .95rem; }

/* ---------- Supported statements ---------- */

.formatlist { display: grid; gap: 14px; }
.formatlist li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.formatlist .fmt { flex: none; width: 54px; height: 64px; font-size: .72rem; }
.formatlist p { color: var(--text-2); font-size: .9rem; }
.split .notes { margin-top: 22px; color: var(--text); font-size: .95rem; font-weight: 600; }


/* ---------- Privacy & Security page ---------- */

.doc { max-width: 860px; padding-top: 56px; }
.doc h1 { margin: 18px 0 16px; }
.doc > h2 { margin: 44px 0 12px; font-size: 1.4rem; }
.doc > p { margin-top: 12px; color: var(--text-2); }
.doc > p.lead { max-width: none; }
.doc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.doc__card { padding: 26px; }
.doc__card h2 { margin-bottom: 18px; font-size: 1.15rem; }
.doc__card .muted { margin-top: 18px; font-size: .88rem; }
.doc__list { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.doc__steps { display: grid; gap: 14px; counter-reset: s; font-size: .92rem; color: var(--text-2); }
.doc__steps li { counter-increment: s; position: relative; padding-left: 38px; }
.doc__steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 800; }
.doc__steps b { color: var(--text); }
.doc__back { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px !important; }

/* ---------- Download bar (phone widths, see Responsive) ---------- */

.dock { display: none; }

/* ---------- Scroll reveal (only when JS runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .dock, .banks li { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero { padding-top: 36px; }
  .hero__grid, .showcase, .split { grid-template-columns: minmax(0, 1fr); }
  .hero::before { inset: 30% 0 auto 0; }
  .steps, .intel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare, .flow, .story { grid-template-columns: minmax(0, 1fr); }
  .layers, .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder li:nth-child(3) { border-left: 0; }
  .ladder li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .banks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split--flip .phones { order: 2; }
  .showcase { padding: 40px 28px 0; }
  .showcase__copy { padding-bottom: 8px; }
  .privacy { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; }
  .privacy__art { width: 200px; margin-inline: auto; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid > div { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__menu { display: inline-grid; }
  .nav__inner { gap: 12px; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    display: none;
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; }
}

@media (max-width: 640px) {
  .section { padding-top: 64px; }
  .steps, .intel, .doc__grid { grid-template-columns: minmax(0, 1fr); }
  .banks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare ul { grid-template-columns: minmax(0, 1fr); }
  .scatter li, .scatter li:nth-child(odd), .scatter li:nth-child(even) { transform: none; }
  .scatter { gap: 10px; }
  .scatter li { padding: 16px 4px; font-size: .8rem; }
  .flow { padding: 24px 22px; }
  .showcase, .privacy, .cta { margin-top: 64px; }
  .phones { height: 430px; }
  .phone { transform-origin: top center; transform: translateX(-50%) scale(.76); }
  .phone--left { transform: translateX(-50%) translate(-122px, 26px) scale(.66); }
  .phone--right { transform: translateX(-50%) translate(122px, 26px) scale(.66); }
  .showcase { padding: 32px 20px 0; }
  .showcase .phones { height: 380px; }
  .strip, .cta { padding: 26px 22px; }
  .privacy__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .nav .btn--sm { display: none; }
  .js .dock {
    position: fixed;
    inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: .84rem;
    color: var(--text-2);
    transform: translateY(160%);
    transition: transform .25s ease;
  }
  .js .dock.is-shown:not(.is-hidden) { transform: none; }
  .dock b { color: var(--text); }
  .footer { padding-bottom: 96px; }
}
