:root {
  color-scheme: light;
  --bg: #f2f8f4;
  --surface: #ffffff;
  --surface-strong: #f8fcf9;
  --text: #16241c;
  --muted: #5b6e62;
  --line: #d6e6dc;
  --brand: #157a54;
  --brand-dark: #0d5b39;
  --brand-soft: #cdebd9;
  --income: #1e9e67;
  --expense: #c24536;
  --alert: #c9821a;
}

* { box-sizing: border-box; }

html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--brand-dark); }

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 8px 24px rgba(21, 122, 84, 0.22);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.links a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.links a:hover { color: var(--brand-dark); }

.main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 46px;
  align-items: center;
  min-height: 560px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  max-width: 720px;
}

h2 {
  margin: 48px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

h3 { margin: 0; font-size: 17px; }

.lead {
  margin: 0;
  font-size: 20px;
  color: var(--muted);
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 750;
}

.button.secondary {
  background: transparent;
  color: var(--brand-dark);
}

.product-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 22px 60px rgba(13, 91, 57, 0.13);
}

.app-preview {
  background: #0d1712;
  border-radius: 24px;
  padding: 16px;
  color: #e9f2ec;
  min-height: 460px;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.preview-title { font-weight: 800; }
.preview-month { color: #9db2a4; font-size: 13px; }

.balance {
  background: #15231a;
  border: 1px solid #254332;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.balance-label { color: #9db2a4; font-size: 13px; }
.balance-value { font-size: 34px; font-weight: 850; margin-top: 4px; }

.preview-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #24382c;
}

.preview-row:last-child { border-bottom: 0; }
.preview-row span { color: #9db2a4; font-size: 13px; display: block; }
.preview-row strong { font-size: 15px; }
.preview-row .income { color: #5fd69c; }
.preview-row .expense { color: #e5705f; }

.preview-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background: #18301f;
  color: #cdebd9;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card p { margin: 8px 0 0; color: var(--muted); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 650;
}

.pill.income { color: var(--income); border-color: #bde8d1; }
.pill.expense { color: var(--expense); border-color: #f1c8c2; }
.pill.alert { color: var(--alert); border-color: #efd8a9; }

.content {
  max-width: 800px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}

.content h1 { font-size: 46px; }
.content p, .content li { color: var(--muted); }
.content strong { color: var(--text); }

.notice {
  background: #e8f5ed;
  border: 1px solid #cdebd9;
  border-radius: 8px;
  padding: 16px;
  color: var(--brand-dark);
}

.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 20px 44px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 { font-size: 50px; }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .main { padding-top: 36px; }
  h1 { font-size: 38px; }
  .content h1 { font-size: 34px; }
  .lead { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
  .content { padding: 20px; }
  .product-panel { padding: 12px; }
  .app-preview { min-height: 0; }
}
