:root {
  --bg: #F8F5F0;
  --fg: #1A1614;
  --accent: #D4613A;
  --accent-light: #F0D9CF;
  --muted: #7A7067;
  --border: #E2D9CE;
  --surface: #FFFFFF;
  --widget-bg: #1A1614;
  --widget-fg: #F8F5F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  padding: 80px 24px 80px;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-text h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.8; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  padding: 12px 24px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--fg); }
.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* Invoice Widget */
.hero-preview {
  display: flex;
  justify-content: center;
}
.invoice-widget {
  background: var(--widget-bg);
  color: var(--widget-fg);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 64px rgba(26,22,20,0.18);
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(248,245,240,0.15);
  padding-bottom: 16px;
}
.widget-brand { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 500; }
.widget-label { font-size: 10px; letter-spacing: 0.15em; color: var(--accent); font-weight: 600; }
.widget-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.meta-row { display: flex; justify-content: space-between; font-size: 12px; }
.meta-key { color: rgba(248,245,240,0.5); }
.meta-val { color: rgba(248,245,240,0.85); }
.widget-table { border-top: 1px solid rgba(248,245,240,0.1); border-bottom: 1px solid rgba(248,245,240,0.1); padding: 12px 0; margin-bottom: 16px; }
.table-head { display: grid; grid-template-columns: 2fr 0.5fr 0.8fr; font-size: 10px; color: rgba(248,245,240,0.4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; padding: 0 4px; }
.table-row { display: grid; grid-template-columns: 2fr 0.5fr 0.8fr; font-size: 12px; padding: 4px 4px; }
.table-row span:last-child { text-align: right; }
.widget-total { display: flex; justify-content: space-between; padding-top: 4px; font-size: 14px; font-weight: 600; }

/* Features */
.features {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { max-width: 560px; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 17px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* How It Works */
.howitworks { padding: 80px 24px; background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: var(--border);
}
.step { position: relative; }
.step-number {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.step-body h3 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Pro / Pricing */
.prose-section { padding: 80px 24px; background: var(--surface); border-top: 1px solid var(--border); }
.prose-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.prose-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.prose-left h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.prose-left p { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.pro-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pro-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.pro-list svg { color: var(--accent); flex-shrink: 0; }

/* Closing */
.closing { padding: 100px 24px; background: var(--fg); color: var(--bg); }
.closing-inner { max-width: 640px; }
.closing h2 { font-size: clamp(32px, 5vw, 56px); color: var(--bg); margin-bottom: 20px; }
.closing p { font-size: 18px; color: rgba(248,245,240,0.65); }

/* Footer */
.footer { padding: 48px 24px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: start; }
.footer-logo { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; display: block; margin-bottom: 8px; }
.footer-brand p { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { grid-column: 1 / -1; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-preview { order: -1; }
  .invoice-widget { max-width: 300px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .prose-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 24px; }
  .nav-links { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
}