:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #F5F3FF;
  --accent: #8B5CF6;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); line-height: 1.6; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
h3 { font-size: 1.25rem; font-weight: 600; }

.btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius); background: var(--primary); color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9rem; border: 2px solid var(--primary); cursor: pointer; transition: all 0.15s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-full { width: 100%; text-align: center; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--text); }
.accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--text-light); font-size: 0.9rem; font-weight: 500; }

.hero { padding: 140px 0 80px; text-align: center; background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%); }
.badge { display: inline-block; padding: 6px 16px; background: var(--danger); color: #fff; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 24px; }
.hero-sub { max-width: 600px; margin: 16px auto 0; font-size: 1.15rem; color: var(--text-light); }
.hero-cta { margin-top: 32px; }
.hero-note { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--text-light); }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 48px; }
.stat { font-size: 0.9rem; color: var(--text-light); }
.stat strong { display: block; font-size: 1.5rem; color: var(--text); }

.section-sub { text-align: center; color: var(--text-light); max-width: 520px; margin: 0 auto 40px; }

.urgency-bar { background: #FEF3C7; border-top: 2px solid var(--warning); border-bottom: 2px solid var(--warning); padding: 16px 0; text-align: center; }
.urgency-bar p { font-size: 0.9rem; color: #92400E; }

/* Scan/Quiz */
.demo-section { padding: 80px 0; background: var(--bg); }
.scan-app { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: var(--shadow-lg); }
.scan-progress { margin-bottom: 24px; }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); transition: width 0.3s; }
.progress-text { display: block; text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }

.scan-question { margin-bottom: 20px; }
.scan-question h3 { margin-bottom: 12px; font-size: 1.1rem; }
.scan-options { display: flex; flex-direction: column; gap: 8px; }
.scan-option { display: block; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 0.9rem; transition: all 0.15s; }
.scan-option:hover { border-color: var(--accent); background: var(--primary-light); }
.scan-option.selected { border-color: var(--primary); background: var(--primary-light); }

/* Risk colors */
.risk-high { background: #FEE2E2; border-left: 4px solid var(--danger); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 8px 0; }
.risk-medium { background: #FEF3C7; border-left: 4px solid var(--warning); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 8px 0; }
.risk-low { background: #D1FAE5; border-left: 4px solid var(--success); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 8px 0; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.steps-grid.four-col { grid-template-columns: repeat(4, 1fr); }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; margin: 0 auto 16px; }
.step p { margin-top: 8px; color: var(--text-light); font-size: 0.9rem; }

/* Features */
.features-section { padding: 80px 0; background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature p { margin-top: 8px; font-size: 0.9rem; color: var(--text-light); }

.who-section { padding: 80px 0; }

/* Pricing */
.pricing-section { padding: 80px 0; background: var(--bg-alt); }
.pricing-grid { display: grid; gap: 20px; margin-top: 40px; }
.pricing-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center; position: relative; }
.price-card.popular { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.price { font-size: 2.5rem; font-weight: 700; margin: 16px 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.price-card ul { list-style: none; margin: 20px 0; text-align: left; }
.price-card li { padding: 6px 0; font-size: 0.85rem; color: var(--text-light); border-bottom: 1px solid var(--border); }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: '\2713 '; color: var(--success); font-weight: 600; }
.price-card .btn { margin-top: 8px; width: 100%; }

.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: #fff; }
.cta-section h2, .cta-section .section-sub { color: #fff; }
.cta-section .section-sub { opacity: 0.9; }
.cta-section .btn { background: #fff; color: var(--primary); border-color: #fff; }

.footer { padding: 48px 0; background: var(--text); color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer .logo { color: #fff; }
.footer-brand p { font-size: 0.85rem; color: #9CA3AF; margin-top: 4px; }
.disclaimer { font-size: 0.75rem !important; font-style: italic; margin-top: 8px !important; }
.footer-copy { font-size: 0.8rem; color: #6B7280; }

.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.6s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .steps-grid, .steps-grid.four-col { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid.three-col { grid-template-columns: 1fr; }
  .nav-links a:not(:last-child) { display: none; }
}

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 480px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal h2 { text-align: left; margin-bottom: 20px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); padding: 4px 8px; }
.modal-close:hover { color: var(--text); }
.plan-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.plan-tab { flex: 1; padding: 8px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; font-size: 0.8rem; font-weight: 500; }
.plan-tab.active, .plan-tab:hover { border-color: var(--accent); color: var(--primary); }
.checkout-summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--primary-light); border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.checkout-summary strong { font-size: 1.1rem; color: var(--primary); }
.modal .form-group { margin-bottom: 16px; }
.modal .form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.modal .form-group input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; outline: none; transition: border-color 0.15s; }
.modal .form-group input:focus { border-color: var(--accent); }
