/* ============================================================
   Follow the Money — landing page styles
   Brand: greens from the iOS app (Theme.swift mirror)
   ============================================================ */

:root {
  --green-50: #f0f8f2;
  --green-100: #d8eddc;
  --green-300: #7cc28a;
  --green-500: #339f52;
  --green-600: #2a8a45;
  --green-700: #197533;
  --green-900: #0c3d1a;

  --paper:  #fbf8f2;
  --paper-deep: #f1ebdc;

  --ink:    #0e1a14;
  --ink-2:  #3a4a40;
  --ink-3:  #6b7a72;

  --line:   rgba(14, 26, 20, 0.10);
  --line-2: rgba(14, 26, 20, 0.06);

  --container: 1140px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(14,26,20,0.06), 0 2px 6px rgba(14,26,20,0.05);
  --shadow-md: 0 4px 14px rgba(14,26,20,0.08), 0 12px 30px rgba(14,26,20,0.06);
  --shadow-lg: 0 12px 30px rgba(14,26,20,0.12), 0 30px 70px rgba(14,26,20,0.10);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Account for the 64px sticky header so anchor links land below it */
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }

img, svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-500);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.brand-name { font-size: 17px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--green-700); }

.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-700); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 80px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
  margin: 0 0 16px;
}

h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 22px;
}
h1 .accent { color: var(--green-700); }

.lede {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: white !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--ink-2) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink) !important; }
.btn-large {
  padding: 18px 30px;
  font-size: 17px;
}

.apple-logo { display: inline-flex; }

.hero-meta {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}

/* ----------- Hero phone visual ----------- */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  width: 280px;
  height: 540px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1a1a1a, #2b2b2b);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-3deg);
}
.phone::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 16px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 50px 18px 20px;
}
.phone-status { display: flex; justify-content: space-between; padding: 0 6px 16px; }
.phone-status span {
  width: 32px; height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.phone-header {
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin-bottom: 28px;
  width: 60%;
}

.phone-bill {
  background: var(--paper-deep);
  border-radius: 10px;
  aspect-ratio: 6.14 / 2.61;
  position: relative;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  overflow: hidden;
}
.bill-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--green-700);
}
.bill-corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.bill-corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.bill-corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.bill-corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.bill-glyph {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-size: 56px;
  font-weight: 900;
  color: var(--green-700);
  font-family: Georgia, "Times New Roman", serif;
}
.bill-serial {
  position: absolute;
  bottom: 14px; right: 18px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green-900);
  opacity: 0.7;
}

.phone-card {
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-row {
  height: 8px;
  background: var(--green-100);
  border-radius: 4px;
}
.card-row-1 { width: 75%; background: var(--ink); height: 10px; }
.card-row-2 { width: 90%; }
.card-row-3 { width: 60%; }

/* ============================================================
   Stats
   ============================================================ */
.stats {
  background: var(--ink);
  color: white;
  padding: 38px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--green-300);
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ============================================================
   Section heads
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: 40px;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.1;
}

/* ============================================================
   Features
   ============================================================ */
.features { padding: 96px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* ============================================================
   How
   ============================================================ */
.how {
  padding: 96px 0;
  background: var(--paper-deep);
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.how-steps li {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--line-2);
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-500);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.how-steps h3 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.how-steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* ============================================================
   What's new
   ============================================================ */
.whats-new { padding: 96px 0; }
.whats-new-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.whats-new-list li {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 22px;
  position: relative;
  padding-left: 48px;
}
.whats-new-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,8 7,12 13,4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.whats-new-list strong { color: var(--ink); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
}
.cta-inner { text-align: center; }
.cta h2 {
  color: white;
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta p {
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  margin: 0 0 32px;
}
.cta .btn-primary {
  background: white;
  color: var(--green-700) !important;
}
.cta .btn-primary:hover { background: var(--paper); color: var(--green-900) !important; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 64px 0 28px;
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.site-footer .brand-name { color: white; }
.site-footer .brand { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { margin: 14px 0 0; max-width: 280px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav h4 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  font-weight: 700;
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.footer-nav a:hover { color: var(--green-300); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 22px;
  margin-top: 8px;
}
.footer-legal p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero { padding: 56px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 440px; }
  .phone { width: 220px; height: 420px; }
  .phone-screen { padding: 40px 14px 16px; }
  h1 { font-size: 42px; }
  .section-head h2, .cta h2 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  h1 { font-size: 36px; }
  .lede { font-size: 17px; }
  .section-head h2, .cta h2 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav a:not(.nav-cta) { display: none; }
  .features, .how, .whats-new, .cta { padding: 72px 0; }
}
