:root {
  --bg: #f8f9fb;
  --surface: #fff;
  --text: #1a1f36;
  --muted: #5c6370;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 31, 54, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.site-header nav a { margin-left: 1rem; color: var(--muted); text-decoration: none; }

.hero { padding: 3rem 0 2rem; text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; line-height: 1.2; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.5rem; }
.search-box input {
  width: min(100%, 480px);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}
.hero-trust { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; padding: 2rem 0 3rem; }
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.doc-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.doc-icon { font-size: 1.75rem; }
.doc-card h2 { font-size: 1rem; margin: 0.5rem 0; }
.doc-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.doc-cat { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; color: var(--primary); font-weight: 600; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.how-it-works { padding: 2rem 0 4rem; }
.steps-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
.steps-list li {
  flex: 1; min-width: 180px; background: var(--surface); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border);
}

.wizard-wrap { padding: 2rem 0 4rem; max-width: 640px; }
.progress-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin: 1rem 0; }
.progress-fill { height: 100%; background: var(--primary); width: 0; transition: width 0.2s; }
.progress-text { color: var(--muted); font-size: 0.9rem; }
.wizard-step label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.wizard-step input, .wizard-step select, .wizard-step textarea {
  width: 100%; padding: 0.65rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1rem; font: inherit;
}
.wizard-nav { display: flex; gap: 0.75rem; margin-top: 1rem; }

.preview-wrap { padding: 2rem 0 4rem; }
.preview-doc-wrap { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.preview-doc { padding: 2rem; max-height: 520px; overflow: hidden; }
.preview-doc h1 { font-size: 1.25rem; }
.preview-lock {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(transparent, rgba(248,249,251,0.95) 20%, rgba(248,249,251,1));
  display: flex; align-items: flex-end; justify-content: center; padding: 1.5rem;
}
.preview-lock-inner { text-align: center; width: min(100%, 420px); }
.lead-form input { width: 100%; margin-bottom: 0.75rem; padding: 0.65rem; border: 1px solid var(--border); border-radius: 8px; }

.checkout-wrap { max-width: 480px; padding: 2rem 0 4rem; }
.pricing-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.price-main { font-size: 1.25rem; font-weight: 700; margin: 0; }
.price-sub { color: var(--muted); margin: 0.25rem 0 0; }
#payment-element { margin: 1rem 0; min-height: 44px; }
.error { color: #b91c1c; font-size: 0.9rem; }
.legal-note { color: var(--muted); font-size: 0.85rem; }

.success-wrap, .dashboard-wrap { padding: 2rem 0 4rem; }
.download-buttons { display: flex; gap: 0.75rem; margin: 1.5rem 0; }
.doc-history { list-style: none; padding: 0; }
.doc-history li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.alert-warning { background: #fef3c7; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

.doc-hero { padding: 2rem 0; }
.doc-icon-lg { font-size: 2.5rem; }
.doc-features { padding-left: 1.2rem; color: var(--muted); }

@media (max-width: 640px) {
  .wizard-nav { flex-direction: column; }
  .wizard-nav .btn { width: 100%; text-align: center; }
}
