:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --success: #059669;
  --error: #dc2626;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}
nav a { margin-left: 1.5rem; text-decoration: none; color: var(--text-light); transition: color 0.2s; }
nav a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--primary-light), var(--bg));
}
.hero h1 { font-size: 2.75rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero p { font-size: 1.125rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Features */
.features { padding: 4rem 0; }
.features h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.feature {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.feature:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-light); font-size: 0.95rem; }

/* How it Works */
.how-it-works {
  padding: 4rem 0;
  background: var(--bg-alt);
}
.how-it-works h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 1rem; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.95rem; }

/* CTA */
.cta {
  padding: 4rem 0;
  text-align: center;
}
.cta h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta p { color: var(--text-light); font-size: 1.125rem; margin-bottom: 1.5rem; }

/* Pricing */
.pricing { padding: 4rem 0; text-align: center; }
.pricing h1 { margin-bottom: 0.5rem; }
.pricing-card {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2.5rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}
.price { font-size: 2.5rem; font-weight: 700; margin: 1rem 0; color: var(--primary); }
.price span { font-size: 1rem; color: var(--text-light); }
.pricing-card ul { list-style: none; margin: 1.5rem 0; text-align: left; }
.pricing-card li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Signup */
.signup { padding: 4rem 0; }
.signup h1 { text-align: center; margin-bottom: 0.5rem; }
.signup-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2rem; }
.signup-form { max-width: 500px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-hint { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--text-light); }
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Result Pages (success/cancel) */
.result-page { padding: 5rem 0; text-align: center; }
.result-card { max-width: 600px; margin: 0 auto; }
.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #d1fae5;
  color: var(--success);
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.cancel-icon { background: #fef2f2; color: var(--error); }
.result-card h1 { margin-bottom: 1rem; }
.result-card .lead { font-size: 1.125rem; color: var(--text-light); margin-bottom: 2rem; }
.next-steps {
  text-align: left;
  background: var(--bg-alt);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.next-steps h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.next-steps ol { padding-left: 1.25rem; }
.next-steps li { padding: 0.35rem 0; color: var(--text-light); }
.next-steps a { color: var(--primary); }
.result-card .btn { margin: 0.5rem; }

/* Content */
.content { padding: 3rem 0; max-width: 800px; margin: 0 auto; }
.content h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.35rem; }
.content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.1rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content li { margin-bottom: 0.35rem; }
.content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.95rem; }
.content th, .content td { padding: 0.5rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.content th { background: var(--bg-alt); font-weight: 600; }
.content a { color: var(--primary); }
.content a:hover { text-decoration: underline; }
.content strong { font-weight: 600; }

/* Footer */
.site-footer { padding: 2rem 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-light); font-size: 0.9rem; }
.footer-links { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-light); text-decoration: none; margin: 0 0.75rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 1.75rem; }
  .features h2,
  .how-it-works h2,
  .cta h2 { font-size: 1.5rem; }
  .features,
  .how-it-works,
  .cta { padding: 3rem 0; }

  .nav-toggle { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .site-header.nav-open nav { display: flex; flex-direction: column; gap: 0.75rem; }
  .site-header.nav-open nav a { margin-left: 0; padding: 0.5rem 0; }
  .site-header { position: relative; }

  .steps { grid-template-columns: 1fr 1fr; }
  .result-page { padding: 3rem 0; }
  .next-steps { padding: 1rem 1.5rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
