/*
  Expenditi — marketing site design system
  Inter typography · Phosphor icons · finance palette
  Shared across index.html, privacy.html, terms.html
*/
:root {
  --bg: #EFEAE0;
  --bg-warm: #F7F3EA;
  --surface: #FFFFFF;
  --surface-2: #F2EDE2;
  --ink: #14241D;
  --ink-2: #3A4A42;
  --muted: #7A857F;
  --muted-2: #C1C8C3;
  --line: #E5DFD1;
  --line-strong: #D4CDB9;
  --primary: #0F3D2E;
  --primary-2: #1B5A45;
  --primary-soft: #DCE7E0;
  --accent: #7FB69A;
  --amber: #D4A574;
  --amber-soft: #F4E6D0;
  --danger: #B85450;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; }
i { font-style: normal; line-height: 1; }
img { max-width: 100%; display: block; }

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

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 234, 224, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.brand .by { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.cta {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--primary-2); }
@media (max-width: 640px) {
  .nav-links a.plain { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn i { font-size: 18px; }

/* ============ HERO ============ */
.hero { padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 40px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow i { font-size: 15px; }
.hero h1 {
  font-size: 54px;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 34ch;
}
@media (max-width: 860px) { .hero h1 { font-size: 42px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-note i { color: var(--primary); font-size: 15px; }

/* Phone mock in hero */
.phone-hero {
  justify-self: center;
  width: 300px;
  height: 616px;
  background: #18221E;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 40px 80px -28px rgba(20,36,29,.5), 0 16px 32px -14px rgba(20,36,29,.25);
  position: relative;
}
.phone-hero .island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 21px; background: #18221E; border-radius: 14px; z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--bg-warm);
  border-radius: 32px; overflow: hidden; padding: 44px 16px 16px;
}
.mini-balance {
  background: var(--primary); border-radius: 20px; padding: 18px 20px; color: #fff;
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.mini-balance::after {
  content:''; position:absolute; right:-40px; top:-40px; width:130px; height:130px;
  border-radius:50%; background: rgba(127,182,154,.14);
}
.mini-balance .l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 600; margin-bottom: 6px; }
.mini-balance .amt { font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1; margin-bottom: 12px; }
.mini-balance .r { display: flex; justify-content: space-between; font-size: 11px; opacity: .85; }
.mini-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px; margin-bottom: 8px; display: flex; align-items: center; gap: 11px;
}
.mini-row .ic {
  width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 16px;
}
.mini-row .ic.a { background: #EDE0D0; color: #6B4F2E; }
.mini-row .ic.b { background: #DCE7E0; color: #0F3D2E; }
.mini-row .ic.c { background: #E2E4F0; color: #3D4F8B; }
.mini-row .info { flex: 1; min-width: 0; }
.mini-row .m { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.mini-row .s { font-size: 10px; color: var(--muted); }
.mini-row .v { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }

/* ============ TRUST STRIP ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}
.strip .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
  padding: 22px 24px; font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.strip .item { display: inline-flex; align-items: center; gap: 8px; }
.strip .item i { color: var(--primary); font-size: 17px; }

/* ============ SECTIONS ============ */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin: 0 0 12px;
}
.section-head h2 { font-size: 38px; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.section-head p { font-size: 17px; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .section-head h2 { font-size: 30px; } section { padding: 60px 0; } }

/* Feature cards */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
}
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 23px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 700; }
.card p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.02em; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* Privacy banner block */
.privacy-block {
  background: var(--primary);
  color: #fff;
  border-radius: 26px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.privacy-block::after {
  content:''; position:absolute; right:-80px; top:-80px; width:280px; height:280px;
  border-radius:50%; background: rgba(127,182,154,.12);
}
.privacy-block .inner { position: relative; max-width: 620px; }
.privacy-block .ic {
  width: 52px; height: 52px; border-radius: 15px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px;
}
.privacy-block h2 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; line-height: 1.1; }
.privacy-block p { font-size: 17px; opacity: .9; margin: 0 0 10px; }
.privacy-block a.link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(127,182,154,.4); }
@media (max-width: 640px) { .privacy-block { padding: 40px 28px; } .privacy-block h2 { font-size: 27px; } }

/* CTA */
.cta-final { text-align: center; }
.cta-final h2 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 800; }
.cta-final p { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; }
.cta-final .stores { justify-content: center; }
@media (max-width: 640px) { .cta-final h2 { font-size: 30px; } }

/* Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 18px;
  text-decoration: none; transition: opacity .12s ease;
}
.store-badge:hover { opacity: .88; }
.store-badge i { font-size: 26px; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .txt .s { font-size: 10px; opacity: .75; }
.store-badge .txt .b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer .about { max-width: 320px; }
.footer .about p { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  font-weight: 700; margin: 0 0 14px;
}
.footer .col a {
  display: block; text-decoration: none; color: var(--ink-2); font-size: 14px;
  margin-bottom: 10px;
}
.footer .col a:hover { color: var(--ink); }
.footer .bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer .bottom a { color: var(--muted); text-decoration: none; }
.footer .bottom a:hover { color: var(--ink-2); }

/* ============ LEGAL / DOC PAGES ============ */
.doc { padding: 56px 0 40px; }
.doc-head { max-width: 760px; margin: 0 auto 40px; }
.doc-head .kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin: 0 0 12px;
}
.doc-head h1 { font-size: 42px; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.doc-head .updated { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .doc-head h1 { font-size: 32px; } }

.doc-body {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 44px 48px;
}
@media (max-width: 640px) { .doc-body { padding: 28px 24px; } }
.doc-body .intro { font-size: 16px; color: var(--ink-2); }
.doc-body h2 {
  font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 12px; font-weight: 700;
  padding-top: 8px;
}
.doc-body h2:first-of-type { margin-top: 8px; }
.doc-body h3 { font-size: 16px; margin: 22px 0 8px; font-weight: 700; }
.doc-body p { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.doc-body ul { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.doc-body a { color: var(--primary); font-weight: 500; }
.doc-body strong { color: var(--ink); }
.doc-body .callout {
  background: var(--primary-soft); border: 1px solid var(--accent);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 24px;
  display: flex; gap: 12px; align-items: flex-start;
}
.doc-body .callout i { color: var(--primary); font-size: 22px; flex-shrink: 0; }
.doc-body .callout p { margin: 0; font-size: 14px; color: var(--ink-2); }
.doc-body .callout p strong { color: var(--primary); }
.toc {
  max-width: 760px; margin: 0 auto 24px;
  font-size: 13px; color: var(--muted);
}
