@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --green:        #2E7D32;
  --green-mid:    #388E3C;
  --green-light:  #43A047;
  --green-bg:     #E8F5E9;
  --green-bg-mid: #C8E6C9;
  --blue:         #1565C0;
  --blue-bg:      #E3F2FD;
  --red:          #C62828;
  --red-bg:       #FFEBEE;
  --text:         #111827;
  --text-mid:     #374151;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;
  --bg:           #F8FAF8;
  --white:        #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.12);

  --r:    12px;
  --r-lg: 20px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a     { color: inherit; text-decoration: none; }
img   { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem);  font-weight: 700; line-height: 1.2;  letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--text-mid); line-height: 1.7; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--green);
}
.nav-logo-mark {
  width: 34px; height: 34px; background: var(--green); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; font-weight: 800; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: .95rem; color: var(--text-mid);
  transition: background .15s, color .15s;
}
.nav-link:hover        { background: var(--bg); color: var(--text); }
.nav-link.active       { color: var(--green); font-weight: 600; }
.nav-link.active:hover { background: var(--green-bg); }
.nav-cta { margin-left: 8px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none;
  transition: all .15s; text-decoration: none;
}
.btn-primary        { background: var(--green); color: white; }
.btn-primary:hover  { background: var(--green-mid); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,125,50,.35); }
.btn-ghost          { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover    { background: var(--green-bg); }
.btn-white          { background: white; color: var(--green); font-weight: 700; }
.btn-white:hover    { background: var(--green-bg); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px;  font-size: .875rem; border-radius: 8px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-label {
  display: inline-block; background: var(--green-bg); color: var(--green);
  padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 16px; }
.section-sub   { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; }
.section-center              { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(155deg, #EEF7EE 0%, #FAFFFE 55%, #FFFFFF 100%);
  padding: 80px 0 104px; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-bg); color: var(--green);
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.hero-title      { margin-bottom: 20px; }
.hero-title em   { color: var(--green); font-style: normal; }
.hero-sub        { font-size: 1.1rem; max-width: 480px; margin-bottom: 36px; line-height: 1.65; }
.hero-actions    { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--green); color: white; padding: 22px 0; }
.stats-inner {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.stat         { text-align: center; flex: 1; min-width: 120px; }
.stat-num     { display: block; font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.stat-label   { font-size: .75rem; opacity: .8; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* ============================================================
   FEATURE CARDS GRID
   ============================================================ */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-bg-mid);
  transform: translateY(-3px);
}
.feature-icon {
  width: 50px; height: 50px;
  background: var(--green-bg); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }

/* ============================================================
   FEATURE SPLIT SECTIONS
   ============================================================ */
.feature-section { padding: 88px 0; }
.feature-section.alt { background: var(--bg); }
.feature-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.feature-content .section-label { margin-bottom: 12px; }
.feature-content h2  { margin-bottom: 16px; }
.feature-content > p { margin-bottom: 24px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-mid); font-size: .95rem;
}
.feature-list li::before {
  content: '✓'; color: var(--green); font-weight: 800;
  flex-shrink: 0; margin-top: 2px;
}

/* ============================================================
   HOW IT WORKS (STEPS)
   ============================================================ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 48px; position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 24px; left: calc(16.67% + 24px); right: calc(16.67% + 24px);
  height: 2px; background: var(--green-bg-mid);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 48px; height: 48px; background: var(--green); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 5px white, 0 0 0 7px var(--green-bg);
}
.step h3 { margin-bottom: 8px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, #1B5E20 100%);
  color: white; padding: 88px 0; text-align: center;
}
.cta-band h2   { color: white; margin-bottom: 16px; }
.cta-band p    { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 480px; margin: 0 auto 36px; }
.cta-pair      { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-outline-white {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,.6);
  padding: 16px 32px; font-size: 1.05rem; border-radius: 12px;
  font-weight: 600; cursor: pointer; transition: all .15s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #111827; color: rgba(255,255,255,.65); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo  { color: white; font-weight: 700; font-size: 1.05rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-copy  { font-size: .85rem; }

/* ============================================================
   APP PREVIEW MOCKUP (hero + feature sections)
   ============================================================ */
.app-preview {
  background: white; border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px 22px 18px;
  border: 1px solid var(--border);
}
.preview-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.preview-month  { font-weight: 700; font-size: .9rem; color: var(--text); }
.preview-net    { font-weight: 700; font-size: .85rem; }
.preview-net.positive { color: var(--green); }
.preview-net.negative { color: var(--red); }

.preview-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.preview-stat-box { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.preview-stat-lbl { font-size: .68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.preview-stat-val { font-size: .95rem; font-weight: 700; color: var(--text); }
.preview-stat-val.green { color: var(--green); }
.preview-stat-val.blue  { color: var(--blue); }
.preview-stat-val.red   { color: var(--red); }

.preview-divider { height: 1px; background: var(--border); margin: 0 0 14px; }

.preview-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.preview-cat { width: 78px; font-size: .78rem; font-weight: 500; color: var(--text); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-bar { flex: 1; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.preview-bar > div { height: 100%; border-radius: 999px; }
.preview-amt { width: 88px; text-align: right; font-size: .72rem; color: var(--text-muted); flex-shrink: 0; }
.preview-amt.over { color: var(--red); font-weight: 700; }

.preview-footer {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--text-muted); text-align: center;
}

/* Floating debt card (hero) */
.hero-visual { position: relative; padding-bottom: 52px; padding-right: 24px; }
.preview-float {
  position: absolute; bottom: 0; right: 0;
  background: white; border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 16px 20px;
  width: 220px; border: 1px solid var(--border);
}
.float-lbl   { font-size: .68rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.float-val   { font-size: 1.3rem; font-weight: 800; color: var(--green); margin-bottom: 2px; }
.float-sub   { font-size: .7rem; color: var(--text-muted); margin-bottom: 10px; }
.float-bar   { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.float-bar > div { height: 100%; background: var(--green); border-radius: 999px; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 760px; margin: 48px auto 0;
}
.pricing-card {
  border-radius: var(--r-lg); padding: 36px 32px;
  border: 2px solid var(--border); background: white;
  display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.pricing-badge {
  background: var(--green); color: white;
  font-size: .72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; display: inline-block; margin-bottom: 14px; width: fit-content;
}
.pricing-name   { font-size: .9rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.pricing-price  { font-size: 3rem; font-weight: 800; line-height: 1; margin: 4px 0; }
.pricing-price sup { font-size: 1.3rem; vertical-align: super; font-weight: 700; }
.pricing-period { font-size: .9rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-desc   { font-size: .95rem; color: var(--text-mid); margin-bottom: 24px; line-height: 1.55; }
.pricing-feats  { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; flex: 1; }
.pricing-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--text-mid);
}
.pricing-feats li .ck { color: var(--green); font-weight: 800; flex-shrink: 0; }
.pricing-feats li .na { color: var(--text-muted); flex-shrink: 0; }

.pricing-compare {
  max-width: 760px; margin: 64px auto 0;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.compare-head {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 14px 24px; font-weight: 700; font-size: .85rem;
}
.compare-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  font-size: .9rem; align-items: center;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:nth-child(even) { background: var(--bg); }
.compare-feat { color: var(--text-mid); }
.compare-val  { text-align: center; color: var(--green); font-weight: 700; font-size: 1.1rem; }
.compare-val.no { color: var(--text-muted); font-size: .85rem; font-weight: 400; }

/* FAQ */
.faq { max-width: 680px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 14px; }
details.faq-item {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px 24px; transition: border-color .15s, background .15s;
}
details.faq-item[open] { border-color: var(--green-bg-mid); background: var(--green-bg); }
summary.faq-q {
  font-weight: 600; font-size: .95rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--green); flex-shrink: 0; }
details[open] summary.faq-q::after { content: '−'; }
.faq-a { margin-top: 12px; font-size: .9rem; color: var(--text-mid); line-height: 1.65; }

/* ============================================================
   FEATURES PAGE — INTEGRATION CARDS
   ============================================================ */
.integration-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 48px;
}
.integration-card { border-radius: var(--r-lg); padding: 28px 32px; }
.integration-card h3 { margin: 10px 0 8px; }
.integration-card p  { font-size: .9rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-visual     { display: none; }
  .feature-split   { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid    { grid-template-columns: 1fr 1fr; }
  .steps           { grid-template-columns: 1fr; }
  .steps::before   { display: none; }
  .pricing-grid    { grid-template-columns: 1fr; max-width: 440px; }
  .compare-head,
  .compare-row     { grid-template-columns: 2fr 1fr 1fr; font-size: .82rem; }
  .integration-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .feature-grid    { grid-template-columns: 1fr; }
  .nav-links       { display: none; }
  .footer-inner    { flex-direction: column; text-align: center; }
  .stats-inner     { justify-content: center; gap: 24px; }
  .compare-head,
  .compare-row     { grid-template-columns: 1.5fr 1fr 1fr; }
  h1               { font-size: 2.1rem; }
  .hero-sub        { font-size: 1rem; }
}
