/* Trackspend — marketing site styles. Mirrors the iOS app's emerald theme. */
:root {
  --navy: #1e293b;
  --navy-2: #334155;
  --sage: #059669;
  --sage-bright: #10b981;
  --sage-400: #34d399;
  --accent: #3b82f6;
  --amber: #f59e0b;
  --danger: #ef4444;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --bg-2: #eff6ff;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --container: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-bright); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin: 0 0 .6em; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; padding: .85rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn-primary { background: var(--sage); color: #fff; box-shadow: 0 10px 24px rgba(5,150,105,.35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(5,150,105,.45); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 10px rgba(5,150,105,.3); }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--sage); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(5,150,105,.1); color: var(--sage);
  font-weight: 700; font-size: .82rem; padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 30rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.gradient-text { background: linear-gradient(120deg, var(--sage-bright), var(--sage)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Phone mockup */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto;
  background: #0b1220; border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
}
.phone-screen {
  border-radius: 34px; overflow: hidden; background: linear-gradient(160deg, #f8fafc, #eff6ff);
  padding: 18px 14px; min-height: 560px;
}
.phone-notch { width: 110px; height: 26px; background: #0b1220; border-radius: 0 0 16px 16px; margin: -12px auto 8px; }
.p-title { font-weight: 800; color: var(--navy); font-size: 1.3rem; margin: 6px 4px 12px; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-card { background: rgba(255,255,255,.85); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.p-card .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.p-amt { font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-top: 8px; }
.p-lab { font-size: .7rem; color: var(--muted); }
.p-alert { margin-top: 10px; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; border-radius: 14px; padding: 12px; font-size: .78rem; box-shadow: 0 10px 20px rgba(239,68,68,.3); }
.p-alert b { display: block; font-size: .9rem; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 40rem; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ficon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; color: #fff; margin-bottom: 14px;
}
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Stat band */
.band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 28px; padding: 40px; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.band .num { font-size: 2.2rem; font-weight: 800; background: linear-gradient(120deg, var(--sage-400), var(--sage-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band .lab { color: #cbd5e1; font-size: .9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; }
.step .circle { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: rgba(5,150,105,.12); color: var(--sage); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--sage-bright), var(--sage)); color: #fff;
  border-radius: 28px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 34rem; margin: 0 auto 1.6rem; }
.cta .btn-primary { background: #fff; color: var(--sage); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cta .btn-primary:hover { color: var(--sage); }

/* Footer */
.footer { background: var(--navy); color: #cbd5e1; padding: 56px 0 28px; margin-top: 40px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer a { color: #cbd5e1; display: block; margin-bottom: .55rem; font-size: .92rem; }
.footer a:hover { color: var(--sage-400); }
.footer .brand { color: #fff; }
.footer .brand small { color: #94a3b8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #94a3b8; }

/* Legal / content pages */
.page-hero { padding: 56px 0 20px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); max-width: 860px; margin: 0 auto 40px; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.card-soft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 1rem; background: var(--bg); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(5,150,105,.12); color: var(--sage); display: grid; place-items: center; flex: none; font-size: 18px; }
.contact-item b { color: var(--navy); display: block; }

/* Utilities */
.bg-sage { background: linear-gradient(135deg, var(--sage), var(--sage-bright)); }
.bg-blue { background: linear-gradient(135deg, var(--accent), #6366f1); }
.bg-amber { background: linear-gradient(135deg, var(--amber), #ea580c); }
.bg-green { background: linear-gradient(135deg, var(--sage-bright), #047857); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.bg-navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(248,250,252,.98); padding: 18px 24px; gap: 1rem; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
  .features, .steps, .band-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
}
