:root {
  --green: #1c794c;
  --green-dark: #145a38;
  --green-light: #2e8b5e;
  --accent: #9eddbf;
  --cream: #ffeedc;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5f6b66;
  --income: #10b981;
  --expense: #ef4444;
  --shadow: 0 18px 50px rgba(28, 121, 76, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 246, 0.88);
  border-bottom: 1px solid rgba(28, 121, 76, 0.08);
}

.site-header--compact { position: relative; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Shrikhand", cursive;
  font-size: 1.45rem;
  color: var(--green);
}

.brand img { border-radius: 10px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover { color: var(--green); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(28, 121, 76, 0.08);
  border: 1px solid rgba(28, 121, 76, 0.12);
}

.lang-switch-label {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-left: 0.45rem;
}

.lang-option {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lang-option:hover { color: var(--green); }

.lang-option.is-active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(28, 121, 76, 0.25);
}

.premium-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 121, 76, 0.28);
}

.btn-primary:hover { background: var(--green-light); }

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(28, 121, 76, 0.25);
}

.play-badge {
  height: 52px;
  width: auto;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(158, 221, 191, 0.35);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

.hero h1 span { color: var(--green); }

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Moldura + preview = onboarding OnboardingMockMainDashboard */
.phone-frame {
  width: min(100%, 320px);
  padding: 10px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
}

.phone-frame-screen {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
}

.app-dashboard-preview {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.dash-header {
  padding: 12px 16px 18px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 0 0 24px 24px;
}

.dash-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dash-icon {
  width: 26px;
  height: 26px;
  color: #fff;
}

.dash-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.dash-avatar svg {
  width: 26px;
  height: 26px;
}

.dash-greeting {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.dash-date {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.dash-balance-card {
  margin: -8px 16px 8px;
  padding: 16px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dash-balance-label {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.dash-balance-value {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--income);
}

.dash-trend {
  width: 28px;
  height: 28px;
  color: var(--income);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 8px 6px;
}

.dash-tile {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 8px;
}

.dash-tile svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.dash-tile span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.dash-chart-card {
  margin: 0 8px 10px;
  padding: 8px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dash-chart-legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.dash-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.income { background: var(--income); }
.legend-dot.expense { background: var(--expense); }

.dash-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-axis {
  font-size: 8px;
  fill: #6b7280;
}

.chart-month {
  font-size: 9px;
  fill: #6b7280;
  font-weight: 700;
  text-anchor: middle;
}

/* Sections */
section { padding: 4.5rem 0; }

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid rgba(28, 121, 76, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(158, 221, 191, 0.35);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.audience {
  background: linear-gradient(180deg, rgba(158,221,191,0.18) 0%, transparent 100%);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.audience-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(28, 121, 76, 0.08);
}

.audience-card h3 {
  margin-top: 0;
  color: var(--green);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(28, 121, 76, 0.08);
}

.step-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.08em;
}

.step h3 { margin: 0.5rem 0; font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.trust-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  border-left: 4px solid var(--green);
}

.trust-card h3 { margin-top: 0; }
.trust-card p { margin-bottom: 0; color: var(--text-muted); }

.pricing-wrap {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(28, 121, 76, 0.08);
}

.pricing-table th {
  background: rgba(28, 121, 76, 0.08);
  color: var(--green-dark);
}

.pricing-table tr:last-child td { border-bottom: none; }

.check { color: var(--green); font-weight: 800; }

.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-band h2 { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0 auto 1.5rem; max-width: 36rem; opacity: 0.92; }

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(28, 121, 76, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--green); }

/* Legal page */
.page-legal { background: var(--bg); }

.legal-wrap { padding: 2rem 0 3rem; }

.legal-card {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.legal-card h1 {
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1.3;
  margin-top: 0;
}

.legal-card h2 {
  color: var(--green);
  font-size: 1.1rem;
  margin-top: 1.75rem;
}

.legal-updated {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.legal-card a { color: var(--green); }

@media (max-width: 960px) {
  .hero-grid,
  .features-grid,
  .audience-grid,
  .steps,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
  }

  .lang-option {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }

  .nav .btn-primary {
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
  }

  .lang-option {
    font-size: 0.72rem;
    padding: 0.35rem 0.45rem;
  }

  .features-grid,
  .audience-grid,
  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 2.5rem; }
}
