/* ============================================================
   CashTrail — marketing site
   Palette drawn from the app icon: indigo, pink, orange, green,
   slate, on white. Fonts mirror the app (Mulish).
   ============================================================ */

:root {
  --c-indigo: #4f46e5;
  --c-indigo-d: #3f37c9;
  --c-pink: #e8506b;
  --c-orange: #f2a33c;
  --c-green: #2ecc9b;
  --c-slate: #3c4257;
  --c-ink: #1c2030;
  --c-body: #4a5069;
  --c-line: #e7e8f0;
  --c-bg: #ffffff;
  --c-tint: #f6f7fb;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(28, 32, 48, .06);
  --shadow-md: 0 18px 44px -18px rgba(40, 44, 90, .28);
  --shadow-lg: 0 40px 90px -30px rgba(40, 44, 90, .38);
  --maxw: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.18rem; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
strong { color: var(--c-ink); font-weight: 800; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--c-body); font-weight: 800; }
.grad {
  background: linear-gradient(100deg, var(--c-indigo), var(--c-pink) 55%, var(--c-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-weight: 800; font-size: .98rem; font-family: inherit;
  background: var(--c-indigo); color: #fff; border: 2px solid var(--c-indigo);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(79, 70, 229, .7); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--ghost {
  background: transparent; color: var(--c-indigo); border-color: var(--c-line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--c-indigo); background: rgba(79, 70, 229, .05); box-shadow: none; }

/* -------- google play badge -------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--c-ink); color: #fff; padding: 12px 22px; border-radius: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-md);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 1.15rem; }
.store-badge small { font-size: .62rem; letter-spacing: .16em; font-weight: 700; opacity: .8; }
.store-badge--lg { padding: 16px 30px; }
.store-badge--lg span { font-size: 1.35rem; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-stuck { border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--c-ink); font-size: 1.15rem; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-weight: 700; font-size: .95rem; color: var(--c-body); transition: color .18s; }
.nav__links a:hover { color: var(--c-indigo); }

/* ============ HERO ============ */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0;
  background:
    radial-gradient(600px 340px at 18% 20%, rgba(79, 70, 229, .18), transparent 70%),
    radial-gradient(560px 320px at 82% 8%, rgba(232, 80, 107, .16), transparent 70%),
    radial-gradient(520px 320px at 60% 60%, rgba(242, 163, 60, .12), transparent 70%);
  filter: blur(6px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-indigo);
  background: rgba(79, 70, 229, .09); padding: 7px 14px; border-radius: 999px;
}
.hero__copy h1 { margin: 20px 0 22px; }
.hero__lead { font-size: 1.16rem; max-width: 33ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 32px 0 22px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.hero__trust li { position: relative; padding-left: 20px; font-weight: 700; font-size: .9rem; color: var(--c-slate); }
.hero__trust li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-green); box-shadow: 0 0 0 3px rgba(46, 204, 155, .18);
}

/* ---- phone ---- */
.hero__art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; aspect-ratio: 290 / 600;
  background: #0e1020; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
  z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: #0e1020; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; background: var(--c-tint); border-radius: 32px; overflow: hidden;
}
.phone--back {
  position: absolute; top: 46px; right: -6px; width: 244px; transform: rotate(7deg);
  z-index: 1; opacity: .96; animation: floaty 6s ease-in-out infinite reverse;
  filter: saturate(.96);
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone--back { animation-name: floaty2; }
@keyframes floaty2 { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(12px); } }

/* ---- app mock ---- */
.app { padding: 44px 16px 16px; font-size: 12px; color: var(--c-slate); height: 100%; }
.app__top { display: flex; align-items: center; justify-content: space-between; font-weight: 900; color: var(--c-ink); font-size: 15px; margin-bottom: 14px; }
.app__dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--c-indigo), var(--c-pink)); }
.app__sec { font-weight: 800; color: var(--c-ink); margin: 16px 4px 8px; font-size: 12px; }

.balcard {
  background: linear-gradient(150deg, var(--c-indigo), var(--c-indigo-d));
  color: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow-md);
}
.balcard__label { font-size: 11px; opacity: .8; font-weight: 700; }
.balcard__value { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 2px 0 12px; }
.balcard__value span { font-size: 15px; opacity: .7; }
.balcard__split { display: flex; gap: 10px; }
.balcard__split div { flex: 1; background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 7px 9px; font-size: 10px; font-weight: 700; }
.balcard__split b { display: block; font-size: 12px; margin-top: 2px; }
.balcard__split i { display: inline-block; width: 0; height: 0; }
.balcard__split i.up { border: 4px solid transparent; border-bottom-color: #8affce; }
.balcard__split i.down { border: 4px solid transparent; border-top-color: #ffb3c1; }

.txns { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.txns li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 10px; box-shadow: var(--shadow-sm); }
.ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; color: #fff; flex-shrink: 0; }
.ic--g { background: var(--c-green); }
.ic--r { background: var(--c-pink); }
.ic--b { background: var(--c-indigo); }
.txn__t { display: flex; flex-direction: column; font-weight: 800; color: var(--c-ink); font-size: 11.5px; flex: 1; min-width: 0; }
.txn__t small { font-weight: 600; color: var(--c-body); font-size: 9.5px; }
.txn__a { font-weight: 900; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--c-slate); }
.txn__a.pos { color: var(--c-green); }

/* ---- donut (insights mock + hero back phone) ---- */
.app--ins { padding-top: 30px; }
.donut {
  --gap: .8deg;
  width: 150px; height: 150px; border-radius: 50%; margin: 18px auto 16px;
  background: conic-gradient(
    var(--c-indigo) 0 calc(var(--a) * 1%),
    var(--c-pink) 0 calc((var(--a) + var(--b)) * 1%),
    var(--c-orange) 0 calc((var(--a) + var(--b) + var(--c)) * 1%),
    var(--c-green) 0 calc((var(--a) + var(--b) + var(--c) + var(--d)) * 1%),
    #c7cbe6 0 100%
  );
  -webkit-mask: radial-gradient(circle 44px at center, transparent 98%, #000 100%);
  mask: radial-gradient(circle 44px at center, transparent 98%, #000 100%);
}
.legend { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0 10px; }
.legend li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 11px; color: var(--c-slate); }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend b { margin-left: auto; color: var(--c-ink); font-family: "JetBrains Mono", monospace; font-size: 10px; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section, .get, #reconcile, #hooks { scroll-margin-top: 84px; }
.section--tint { background: var(--c-tint); }
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { font-size: 1.08rem; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 720px; margin: 0 auto; }
.chips span {
  font-weight: 800; font-size: .92rem; color: var(--c-slate);
  background: #fff; border: 1px solid var(--c-line); padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chips span:last-child { background: var(--c-ink); color: #fff; border-color: var(--c-ink); font-family: "JetBrains Mono", monospace; }

/* ---- feature split ---- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-split--rev .feature-split__art { order: 2; }
.feature-split__copy .eyebrow { margin-bottom: 18px; }
.feature-split__copy h2 { margin-bottom: 18px; }
.feature-split__copy > p { margin-bottom: 22px; }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--c-slate); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(46, 204, 155, .16); color: var(--c-green); font-weight: 900; font-size: .72rem;
}

/* ---- reconcile art ---- */
.recon { position: relative; display: grid; gap: 16px; }
.recon__src {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-md);
}
.recon__src h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.recon__src--a h4 { color: var(--c-indigo); }
.recon__src--b h4 { color: var(--c-pink); }
.recon__src p { font-family: "JetBrains Mono", monospace; font-size: .82rem; color: var(--c-slate); }
.recon__merge {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--c-ink), #2b3350); color: #fff;
  border-radius: var(--radius); padding: 16px 20px; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow-lg);
}
.recon__merge svg { color: var(--c-green); flex-shrink: 0; }

/* ---- hooks art ---- */
.hookcard { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md); }
.hookcard__row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; }
.hookcard__row b { color: var(--c-ink); font-size: .98rem; }
.hookcard__row small { display: block; color: var(--c-body); font-size: .8rem; font-weight: 600; }
.hookcard__row--trigger { background: rgba(232, 80, 107, .08); }
.hookcard__row--action { background: rgba(79, 70, 229, .08); }
.hookcard__arrow { text-align: center; font-weight: 800; font-size: .8rem; color: var(--c-body); letter-spacing: .04em; padding: 8px 0; }
.hookcard__net { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-line); font-weight: 700; font-size: .9rem; }
.hookcard__net b { color: var(--c-green); font-family: "JetBrains Mono", monospace; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.3rem; color: #fff; margin-bottom: 16px; font-weight: 700;
  background: var(--i, var(--c-indigo));
  box-shadow: 0 10px 20px -8px var(--i, var(--c-indigo));
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }

/* ---- privacy ---- */
.privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.privacy__copy .eyebrow { margin-bottom: 18px; }
.privacy__copy h2 { margin-bottom: 16px; }
.privacy__copy p { margin-bottom: 14px; }
.fineprint { font-size: .9rem; color: var(--c-body); }
.privacy__copy .btn { margin-top: 10px; }
.privacy__list { list-style: none; display: grid; gap: 14px; }
.privacy__list li {
  background: var(--c-tint); border: 1px solid var(--c-line); border-radius: 14px; padding: 16px 18px;
}
.privacy__list b { display: block; color: var(--c-ink); font-size: 1rem; margin-bottom: 3px; }
.privacy__list span { font-size: .9rem; }

/* ============ GET ============ */
.get { position: relative; padding: 110px 0; text-align: center; overflow: hidden; background: var(--c-ink); color: #cdd2e4; }
.get__glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(500px 300px at 25% 20%, rgba(79, 70, 229, .5), transparent 70%),
    radial-gradient(500px 300px at 78% 80%, rgba(232, 80, 107, .35), transparent 70%);
}
.get__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.get__mark { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.get h2 { color: #fff; margin-bottom: 14px; }
.get p { margin-bottom: 28px; font-size: 1.05rem; }
.get__pkg { margin-top: 18px; font-size: .82rem; opacity: .6; }
.get__pkg code { font-family: "JetBrains Mono", monospace; background: rgba(255, 255, 255, .1); padding: 2px 7px; border-radius: 6px; }

/* ============ FOOTER ============ */
.footer { background: #0e1020; color: #8b90a8; padding: 44px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 1.1rem; }
.footer__brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.footer__links a { font-weight: 700; font-size: .9rem; transition: color .18s; }
.footer__links a:hover { color: #fff; }
.footer__note { font-size: .84rem; opacity: .7; }

/* ============ DOC PAGE (privacy policy) ============ */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc a.doc__back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c-indigo); margin-bottom: 28px; font-size: .92rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.doc__meta { color: var(--c-body); font-weight: 700; font-size: .9rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.doc p, .doc li { font-size: 1rem; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.doc strong { color: var(--c-ink); }
.doc__callout {
  background: var(--c-tint); border: 1px solid var(--c-line); border-left: 4px solid var(--c-green);
  border-radius: 12px; padding: 16px 20px; margin: 22px 0;
}
.doc code { font-family: "JetBrains Mono", monospace; background: var(--c-tint); padding: 2px 6px; border-radius: 5px; font-size: .88em; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .phone--back { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { max-width: 46ch; }
  .hero__cta, .hero__trust { justify-content: center; }
  .feature-split, .privacy { grid-template-columns: 1fr; gap: 36px; }
  .feature-split--rev .feature-split__art { order: 0; }
  .feature-split__copy, .privacy__copy { text-align: left; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .get { padding: 84px 0; }
  .grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta .btn, .hero__cta .store-badge { width: 100%; }
  .phone { width: 260px; }
  .phone--back { display: none; }
  .chips { gap: 8px; }
  .chips span { font-size: .82rem; padding: 8px 14px; }
}
