:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}
.logo svg { color: var(--blue); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--gray-600); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--blue); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero p {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

/* AdSense Placeholder */
.adsense-placeholder {
  margin: 40px auto;
  text-align: center;
}
.ad-label {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.ad-container {
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wizard */
.generator-section {
  padding: 60px 0 80px;
}
.wizard-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Progress Bar */
.wizard-progress {
  display: flex;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}
.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 8px;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.progress-step.active { opacity: 1; }
.progress-step.completed { opacity: 0.7; }
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.progress-step.active .step-circle {
  background: var(--blue);
  color: var(--white);
}
.progress-step.completed .step-circle {
  background: var(--green);
  color: var(--white);
}
.progress-step span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
}

/* Wizard Steps */
.wizard-step {
  display: none;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}
.wizard-step.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-step h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.step-desc {
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* Template Cards */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
}
.template-card input { display: none; }
.template-card:hover { border-color: var(--blue-light); background: var(--blue-50); }
.template-card.selected {
  border-color: var(--blue);
  background: var(--blue-50);
}
.template-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--blue);
}
.template-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.template-card p {
  font-size: 13px;
  color: var(--gray-500);
}

/* Form Elements */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.checkbox-item:hover {
  border-color: var(--blue-light);
  background: var(--blue-50);
}
.checkbox-item input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

/* Compliance Cards */
.compliance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.compliance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
}
.compliance-card input { display: none; }
.compliance-card:hover { border-color: var(--blue-light); }
.compliance-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-50);
}
.compliance-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  margin-bottom: 16px;
  color: var(--blue);
}
.compliance-card h3 { font-size: 18px; margin-bottom: 8px; }
.compliance-card p { font-size: 13px; color: var(--gray-500); }
.check-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.compliance-card:has(input:checked) .check-indicator {
  opacity: 1;
}
.check-indicator::after {
  content: '✓';
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

/* Navigation */
.wizard-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-50); }
.btn-full { width: 100%; justify-content: center; }

/* Policy Output */
.policy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.policy-output {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  max-height: 600px;
  overflow-y: auto;
  line-height: 1.8;
}
.policy-output h1 {
  font-size: 28px;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.policy-output .last-updated {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 24px;
}
.policy-output h2 {
  font-size: 20px;
  color: var(--gray-800);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.policy-output p, .policy-output li {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.policy-output ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* Embed Code */
.embed-code-container {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.embed-code-container h3 {
  margin-bottom: 8px;
}
.embed-code-container p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.embed-code-container pre {
  background: var(--gray-800);
  color: var(--green);
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Pricing */
.pricing-section {
  padding: 80px 0;
  background: var(--gray-50);
  text-align: center;
}
.pricing-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.pricing-section > .container > p {
  color: var(--gray-500);
  font-size: 18px;
  margin-bottom: 40px;
}
.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.price {
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
}
.price-desc {
  color: var(--gray-500);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.footer-brand .logo {
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand .logo svg { color: var(--blue); }
.footer-brand p { font-size: 14px; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--gray-400);
  font-size: 14px;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-800);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .wizard-step { padding: 24px; }
  .wizard-progress { overflow-x: auto; }
  .progress-step span { display: none; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { flex-direction: column; gap: 24px; }
}
