:root {
  --bg: #FEFCE8;
  --surface: #FFFFFF;
  --fg: #1E2A4A;
  --fg-muted: #5A6A8A;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-light: #FEF3C7;
  --border: #E8E0CC;
  --shadow: 0 4px 24px rgba(30, 42, 74, 0.08);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

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

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

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 232, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: #92400E;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.headline-accent {
  color: var(--accent);
  font-style: italic;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--fg); background: rgba(30,42,74,0.05); }

/* HERO VISUAL — invoice card */
.hero-visual { position: relative; }
.invoice-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
}
.invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.invoice-logo {
  width: 44px;
  height: 44px;
  background: var(--fg);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.invoice-to {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.invoice-num {
  font-family: 'DM Sans', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.invoice-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}
.invoice-meta .label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 4px;
}
.invoice-meta span:not(.label) {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.due-soon { color: var(--accent) !important; }
.invoice-lines {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 20px;
}
.line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  color: var(--fg);
}
.line span:last-child {
  font-weight: 600;
  font-family: 'DM Sans', monospace;
}
.invoice-total {
  margin-bottom: 20px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--fg-muted);
}
.total-row.vat { color: var(--fg-muted); }
.total-row.grand {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  padding-top: 8px;
  border-top: 2px solid var(--fg);
  margin-top: 4px;
}
.invoice-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
}
.status-badge.sent {
  background: rgba(245, 158, 11, 0.12);
  color: #92400E;
}
.reminder {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}
.reminder-toast {
  position: absolute;
  bottom: -40px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* STATS */
.stats {
  background: var(--fg);
  color: #fff;
  padding: 48px 32px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* FEATURES */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(245, 158, 11, 0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* PROCESS */
.process {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}
.process-steps {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.step {
  flex: 1;
  max-width: 280px;
}
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.2);
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-arrow {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: -28px;
}

/* PRICING */
.pricing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}
.pricing-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.plan {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.plan-pro {
  border-color: var(--accent);
  background: var(--accent-light);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 100px;
}
.plan-name {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.plan-price .price {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.plan-price .currency {
  font-size: 16px;
  color: var(--fg-muted);
}
.plan-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan-pro .plan-desc { border-color: rgba(245, 158, 11, 0.2); }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}

/* CLOSING */
.closing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 24px;
}
.closing-accent {
  color: var(--accent);
  font-style: italic;
}
.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.footer-legal {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 48px;
  }
  .hero-lede { max-width: 100%; }
  .stats-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .stat-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .process-steps {
    flex-direction: column;
    gap: 40px;
  }
  .step-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .invoice-meta { grid-template-columns: 1fr; gap: 8px; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { gap: 20px; }
  .reminder-toast { display: none; }
}