/* Spendwe — spendwe.com marketing site
   Design system: indigo brand (#5C52DB) from the app accent color, soft lavender
   surfaces, rounded cards, the receipt motif from the app icon. Light + dark. */

:root {
  --brand: #5C52DB;
  --brand-600: #4d43c9;
  --brand-700: #4038ad;
  --brand-400: #7b72e8;
  --brand-200: #cbc7f4;
  --brand-050: #f1effc;
  --grad: linear-gradient(135deg, #6E62E6 0%, #5C52DB 55%, #4f46c9 100%);
  --grad-soft: linear-gradient(135deg, #f4f2fe 0%, #eceafb 100%);

  --green: #33B373;
  --amber: #F5A623;
  --pink: #EC6A9C;
  --blue: #339EDB;

  --ink: #191830;
  --ink-2: #4a4a63;
  --muted: #71718d;
  --line: #e9e7f3;

  --bg: #ffffff;
  --bg-soft: #f7f6fd;
  --bg-card: #ffffff;
  --footer-bg: #14132a;

  --shadow-sm: 0 1px 2px rgba(25, 24, 48, .06), 0 1px 3px rgba(25, 24, 48, .06);
  --shadow: 0 8px 24px rgba(58, 50, 130, .10), 0 2px 6px rgba(58, 50, 130, .06);
  --shadow-lg: 0 30px 60px rgba(58, 50, 130, .18), 0 12px 24px rgba(58, 50, 130, .10);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f2fb;
    --ink-2: #cfcee4;
    --muted: #9d9cbb;
    --line: #2a2947;
    --bg: #100f22;
    --bg-soft: #15142b;
    --bg-card: #1a1937;
    --brand-050: #201d43;
    --grad-soft: linear-gradient(135deg, #1b1940 0%, #171533 100%);
    --footer-bg: #0b0a1c;
    --shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, .5), 0 12px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-2); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 40ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 650; font-size: 1rem; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(92, 82, 219, .35); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 10px 26px rgba(92, 82, 219, .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px;
  background: #111; color: #fff; border-radius: 14px; min-width: 178px;
  border: 1px solid #111; transition: transform .12s ease, box-shadow .2s ease; position: relative;
}
.badge:hover { transform: translateY(-2px); color: #fff; box-shadow: var(--shadow); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge .b-txt { display: flex; flex-direction: column; line-height: 1.15; }
.badge .b-small { font-size: .66rem; opacity: .85; letter-spacing: .02em; }
.badge .b-big { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
.badge .soon {
  position: absolute; top: -9px; right: -8px; background: var(--green); color: #04351f;
  font-size: .6rem; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
  .badge { background: #f3f2fb; color: #111; border-color: #f3f2fb; }
  .badge:hover { color: #111; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--ink-2); font-weight: 550; font-size: .96rem; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 4px;
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(123, 114, 232, .22), transparent 70%),
    radial-gradient(50% 40% at 5% 20%, rgba(51, 179, 115, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: 1.24rem; max-width: 46ch; margin-top: 6px; }
.hero-cta { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--muted); font-size: .92rem; font-weight: 550; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--green); }

/* Phone mockups */
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.phone {
  border-radius: 40px; background: #0c0b1e; padding: 10px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.06);
}
.phone img { border-radius: 30px; display: block; width: 240px; }
.phone.p-back { position: absolute; transform: rotate(-8deg) translate(-72px, 14px) scale(.92); opacity: .96; z-index: 1; }
.phone.p-front { position: relative; transform: rotate(3deg) translateX(46px); z-index: 2; }
.blob {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: var(--grad); filter: blur(60px); opacity: .3; z-index: 0;
}

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; }
.bg-soft { background: var(--bg-soft); }

/* Feature grid (icon cards) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 16px; background: var(--brand-050); color: var(--brand);
}
.fic svg { width: 26px; height: 26px; }
.fcard h3 { margin-bottom: 6px; }
.fcard p { margin: 0; font-size: .97rem; }

/* Alternating showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.rev .sc-media { order: 2; }
.sc-media { display: flex; justify-content: center; }
.sc-media .phone img { width: 260px; }
.sc-list { list-style: none; padding: 0; margin: 18px 0 0; }
.sc-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--ink-2); }
.sc-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }

/* Couple/highlight band */
.band { background: var(--grad); color: #fff; border-radius: 32px; padding: 60px; position: relative; overflow: hidden; }
.band h2, .band p { color: #fff; }
.band p { opacity: .92; }
.band .band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.band .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.band .chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-weight: 550; font-size: .95rem; }

/* Privacy list */
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pitem { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pitem .fic { margin: 0; flex: none; width: 44px; height: 44px; }
.pitem h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pitem p { margin: 0; font-size: .94rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 14px; background: var(--bg-card); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.06rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .band { padding: 72px 40px; }
.cta-final .badges { justify-content: center; margin-top: 26px; }
.cta-final .badge { background: #fff; color: #111; border-color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: #b9b8d4; padding: 64px 0 32px; }
.footer a { color: #b9b8d4; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: #8a89a8; }

/* ---------- Legal / content pages ---------- */
.page-hero { padding: 56px 0 20px; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc { max-width: 820px; margin: 0 auto; padding: 56px 0 80px; }
.doc h2 { font-size: 1.5rem; margin-top: 40px; }
.doc h3 { font-size: 1.15rem; margin-top: 26px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.doc .toc ul { margin: 0; }
.callout { background: var(--brand-050); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.updated { color: var(--muted); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .phones { min-height: 460px; margin-top: 10px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase, .band .band-grid { grid-template-columns: 1fr; gap: 32px; }
  .showcase.rev .sc-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .band { padding: 44px 28px; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone.p-back { transform: rotate(-6deg) translate(-40px, 10px) scale(.86); }
  .phone.p-front { transform: rotate(2deg) translateX(24px); }
  .phone img, .sc-media .phone img { width: 210px; }
  .hero-cta .badges { flex-direction: column; }
  .badge { width: 100%; }
}
