:root {
  --brand: #1F5F46;
  --brand-strong: #18493585;
  --income: #2E8B62;
  --expense: #B85C3E;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-variant: #F2F2F0;
  --outline: #E2E2DF;
  --text: #111213;
  --muted: #6B6E72;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--outline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--outline); }
.btn-ghost:hover { background: var(--surface-variant); }

/* Hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(31,95,70,.10), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 540px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--income); }
.hero h1 {
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.04;
  margin: 0 0 20px;
}
.hero p.lead {
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--muted);
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px 11px 16px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}
.store-badge:hover { text-decoration: none; opacity: .9; }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.store-badge small { font-size: 10px; font-weight: 600; opacity: .8; letter-spacing: .2px; }
.cta-band .store-badge.dark { background: #fff; color: var(--text); border-color: #fff; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px;
  background: #0C0D0E;
  border-radius: 40px;
  padding: 9px;
  box-shadow: 0 30px 60px -24px rgba(17,18,19,.45), 0 0 0 1px rgba(17,18,19,.06);
}
.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
}

/* Trust strip */
.trust { border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); background: var(--surface); }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  padding: 18px 20px;
  justify-content: center;
}
.trust-row span {
  position: relative;
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding-left: 22px;
}
.trust-row span::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--income);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}

/* Sections */
.section { padding: 64px 0; }
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}
.kicker.center { display: block; text-align: center; }
.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.6px;
  text-align: center;
  margin: 0 0 12px;
}
.section .section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: 17px;
}

/* Split / differentiator */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy h2 { text-align: left; margin: 0 0 14px; }
.split-copy > p { color: var(--muted); font-size: 17px; margin: 0 0 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-weight: 500; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: var(--income);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}
.split-visual { display: flex; justify-content: center; }
.split-visual .phone { width: 270px; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #cfd3cf; transform: translateY(-2px); }
.card .ico {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(31,95,70,.08);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl, 28px);
  padding: 56px 32px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(127,203,160,.25), transparent 55%);
  pointer-events: none;
}
.cta-band h2 { position: relative; color: #fff; margin: 0 0 10px; }
.cta-band p { position: relative; color: rgba(255,255,255,.85); margin: 0 0 28px; font-size: 17px; }
.cta-band .hero-actions { position: relative; justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--outline);
  padding: 40px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* Legal pages */
.legal { padding: 56px 0 40px; }
.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
}
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 40px 0 12px;
  scroll-margin-top: 80px;
}
.legal h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; color: #2a2c2e; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 0 0 8px;
}
.legal .toc strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc li { margin-bottom: 6px; }
.legal .note {
  background: var(--surface-variant);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--muted);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--outline);
  vertical-align: top;
}
.legal th { font-weight: 700; color: var(--text); }
.legal td { color: #2a2c2e; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 28px;
}

/* 404 */
.center-screen {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.center-screen h1 { font-size: 64px; margin: 0; letter-spacing: -2px; }
.center-screen p { color: var(--muted); font-size: 18px; margin: 0 0 12px; }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .hero-copy { max-width: 600px; }
  .hero-actions { justify-content: center; }
  .hero::before { display: none; }
  .split-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-copy { text-align: center; }
  .split-copy h2 { text-align: center; }
  .checks { display: inline-grid; text-align: left; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 46px 0; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .trust-row { gap: 10px 24px; }
  .cta-band { padding: 44px 22px; }
  .features { grid-template-columns: 1fr; }
}
