/* --- VARIABLES --- */
:root {
  --bg: #F7F4EE;
  --bg-dark: #1A3A2F;
  --fg: #1A1A18;
  --fg-light: #F7F4EE;
  --accent: #E07A2F;
  --accent-dark: #C45E1A;
  --muted: #7A7268;
  --border: #E5E0D5;
  --ink: #1A3A2F;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, .display { font-family: 'Syne', system-ui, sans-serif; font-weight: 700; }

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,238,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- HERO --- */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-headline-stat {
  color: var(--accent);
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42ch;
}

/* --- INVOICE CARDS --- */
.invoice-card-stack {
  position: relative;
  height: 380px;
}
.invoice-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 40px rgba(26,58,47,0.08), 0 2px 8px rgba(26,58,47,0.04);
  width: 90%;
  transition: transform 0.4s ease;
}
.invoice-card-1 { top: 0; left: 0; z-index: 3; }
.invoice-card-2 { top: 60px; left: 20px; z-index: 2; }
.invoice-card-3 { top: 120px; left: 40px; z-index: 1; }
.invoice-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.invoice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.invoice-dot.paid { background: #22C55E; }
.invoice-dot.overdue { background: #EF4444; }
.invoice-dot.active { background: var(--accent); }
.invoice-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.invoice-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.invoice-client {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.invoice-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.invoice-bar-fill {
  height: 100%;
  background: #22C55E;
  border-radius: 2px;
  transition: width 1s ease;
}
.invoice-bar-fill.warning { background: var(--accent); }
.invoice-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

/* --- MANIFESTO --- */
.manifesto {
  background: var(--bg-dark);
  padding: 5rem 2rem;
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}
.manifesto-rule {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}
.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--fg-light);
  line-height: 1.4;
  margin-bottom: 2rem;
  font-style: normal;
}
.manifesto-body {
  font-size: 1rem;
  color: rgba(247,244,238,0.65);
  line-height: 1.8;
}

/* --- FEATURES --- */
.features {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.features-header {
  margin-bottom: 3.5rem;
}
.features-title {
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.features-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 48ch;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(26,58,47,0.08);
  transform: translateY(-2px);
}
.feature-icon {
  margin-bottom: 1rem;
}
.feature-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- HOW IT WORKS --- */
.how {
  background: #F0EDE6;
  padding: 5rem 2rem;
}
.how-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}
.how-title {
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.how-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}
.how-step-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}
.how-step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.how-step-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.how-step-divider {
  height: 1px;
  background: var(--border);
}

/* --- STATS --- */
.stats {
  background: var(--ink);
  padding: 4rem 2rem;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.stat-item {
  padding: 0 2rem;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(247,244,238,0.55);
  line-height: 1.5;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(247,244,238,0.15);
}

/* --- LEGAL --- */
.legal {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.legal-badge {
  display: inline-block;
  background: #E07A2F15;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.legal-title {
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  max-width: 20ch;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.legal-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.legal-state {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.legal-law {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.legal-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.legal-footer {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* --- CLOSING --- */
.closing {
  background: var(--bg-dark);
  padding: 5rem 2rem;
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}
.closing-rule {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}
.closing-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--fg-light);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.closing-body {
  font-size: 1.05rem;
  color: rgba(247,244,238,0.65);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.closing-body:last-child { margin-bottom: 0; }

/* --- FOOTER --- */
.footer {
  background: #0F2921;
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fg-light);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(247,244,238,0.4);
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(247,244,238,0.25);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .stat-divider { display: none; }
  .how-step { grid-template-columns: 1fr; gap: 0.5rem; }
  .how-step-num { font-size: 1.5rem; }
  .hero { padding: 3rem 1.5rem 3rem; }
  .manifesto, .closing { padding: 3rem 1.5rem; }
  .features, .legal { padding: 3rem 1.5rem; }
  .how { padding: 3rem 1.5rem; }
  .stats { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { padding: 0 0 1.5rem; }
  .stat-divider { display: none; }
}