:root {
  --navy: #0d2b57;
  --navy-dark: #081c3b;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e2e6ef;
  --text: #11223b;
  --muted: #6e7a8d;
  --current: #1fa66d;
  --pending: #f5a623;
  --overdue: #d64545;
  --paid: #2dce89;
  --paywall: #111111;
  --paywall-accent: #00c896;
  --radius-card: 16px;
  --radius-control: 12px;
  --shadow: 0 10px 30px rgba(13, 43, 87, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Inter, sans-serif;
  --space: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1c1c1c;
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.65);
    --navy: #2f6fed;
    --navy-dark: #081c3b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-footer { border-bottom: 0; border-top: 1px solid var(--border); margin-top: 48px; }
.bar, .footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-control);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.hero { display: grid; gap: 28px; padding: 36px 0 12px; }
.kicker { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.03em; }
h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
h3 { font-size: 16px; margin: 0 0 6px; }
.lede { font-size: 17px; color: var(--text); margin: 0 0 16px; }
.fine { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.store-badge { display: inline-block; }
.store-badge img { width: 160px; height: auto; }
.section { padding: 36px 0; }
.grid { display: grid; gap: 12px; }
.cards-3, .cards-2, .feature-grid, .price-grid { display: grid; gap: 12px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.step-no {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.price { font-size: 30px; font-weight: 700; margin: 8px 0; }
.badge {
  display: inline-block; background: var(--paywall-accent); color: #0c6b52;
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 8px;
}
.price-card.featured { border: 2.5px solid var(--paywall-accent); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
}
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); font-size: 14px; }
.cta-band { text-align: center; padding: 28px 16px; }
.legal { max-width: 760px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal p, .legal li { font-size: 15px; }
.footer-bar { min-height: 88px; align-items: flex-start; padding: 20px 0; flex-wrap: wrap; }
.footer-bar p { color: var(--muted); font-size: 13px; margin: 0; }

.phone {
  width: min(280px, 100%);
  margin: 0 auto;
  background: #0b0b0b;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone-screen {
  position: relative;
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  min-height: 520px;
  padding: 16px;
  color: var(--text);
}
.phone-screen.app-ui {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e2e6ef;
  --text: #11223b;
  --muted: #6e7a8d;
  --navy: #0d2b57;
  --navy-dark: #081c3b;
  background: #f6f7fb;
  color: #11223b;
}
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.balance {
  background: var(--navy-dark);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
}
.balance small { color: rgba(255,255,255,.7); }
.balance strong { display: block; font-size: 28px; margin-top: 6px; }
.buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bucket { border-radius: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; }
.bucket b { display: block; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; margin-right: 4px; }
.field { height: 42px; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 8px; padding: 10px 12px; color: var(--muted); font-size: 13px; }
.paywall-screen { background: var(--paywall); color: #fff; }
.paywall-screen .plan { border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 12px; margin-top: 10px; }
.paywall-screen .plan.on { border: 2.5px solid var(--paywall-accent); }

@media (min-width: 800px) {
  h1 { font-size: 52px; }
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 64px; }
  .cards-3, .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 799px) {
  .nav a:not(.btn) { display: none; }
  .phones { display: grid; gap: 20px; }
}
