/* Base */
:root {
  --bg: #F8F6F1;
  --bg-dark: #0F1629;
  --fg: #0F1629;
  --fg-muted: #6B7280;
  --accent: #D4A843;
  --accent-dark: #B8892E;
  --surface: #FFFFFF;
  --border: #E5E0D8;
}

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

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;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  padding: 80px 32px 64px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--fg);
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}

/* Hero Visual — document stack + score */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
}
.doc-stack {
  position: relative;
  width: 240px;
  height: 300px;
}
.doc {
  position: absolute;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 22, 41, 0.08);
}
.doc-back {
  width: 200px;
  height: 260px;
  top: 16px;
  left: 8px;
  background: #EDE9E0;
  transform: rotate(3deg);
}
.doc-mid {
  width: 210px;
  height: 265px;
  top: 8px;
  left: 4px;
  background: #F4F1EA;
  transform: rotate(1.5deg);
}
.doc-front {
  width: 200px;
  height: 260px;
  top: 0;
  left: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-line {
  height: 6px;
  background: #D9D4C7;
  border-radius: 3px;
}
.doc-line--full { width: 100%; }
.doc-line--short { width: 35%; }
.doc-line--med { width: 65%; }
.flagged-clause {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF3C7;
  border: 1px solid #D4A843;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #92400E;
  font-weight: 500;
}
.flag-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #D4A843;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.score-badge {
  background: var(--bg-dark);
  color: white;
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  width: 180px;
}
.score-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.score-num {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}
.score-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* Stats */
.stats {
  background: var(--bg-dark);
  padding: 48px 32px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 36px;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* Section shared */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 56px;
  max-width: 480px;
}

/* How it works */
.how { padding: 96px 32px; }
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.step {
  flex: 1;
  display: flex;
  gap: 16px;
}
.step-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 14px;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-arrow {
  color: var(--fg-muted);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Risks */
.risks { padding: 96px 32px; background: var(--bg-dark); }
.risks-inner { max-width: 1100px; margin: 0 auto; }
.risks .section-headline { color: white; }
.risks .section-sub { color: rgba(255,255,255,0.5); }
.risks .section-eyebrow { color: var(--accent); }
.risks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.risk-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px;
  transition: background 0.2s;
}
.risk-card:hover { background: rgba(255,255,255,0.07); }
.risk-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212, 168, 67, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.risk-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}
.risk-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* Pricing */
.pricing { padding: 96px 32px; }
.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
}
.pricing-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-period {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}
.pricing-features li svg { color: var(--accent); flex-shrink: 0; }
.pricing-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 24px;
  line-height: 1.5;
}

/* Closing */
.closing {
  padding: 96px 32px;
  background: var(--bg);
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  color: var(--fg);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-inner { flex-direction: column; gap: 24px; }
  .stat-divider { width: 40px; height: 1px; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .risks-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}