/* NeuralFlow-inspired Design for AI Contract Review */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --primary-gradient: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%);
  --accent: #667eea;
  --accent-light: #7c93f5;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --darker: #020617;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 8px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1), 0 8px 16px -4px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADERS ===== */
.site-header {
  background: var(--primary-gradient);
  color: white;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102,126,234,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(118,75,162,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.site-header .container { position: relative; z-index: 1; }
.site-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.site-header .subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  font-weight: 400;
  max-width: 640px;
  line-height: 1.5;
}
.header-nav { display: flex; gap: 20px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.header-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.header-nav a:hover { color: white; }
.site-header .top-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px; flex-wrap: wrap; gap: 15px;
}
.header-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: white; text-decoration: none; }
.header-logo span { color: var(--accent-light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-outline-dark { background: transparent; color: var(--gray-600); border: 1.5px solid var(--gray-300); padding: 6px 16px; border-radius: 6px; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; display: inline-block; }
.btn-outline-dark:hover { background: var(--gray-100); border-color: var(--gray-400); color: var(--gray-800); }
.btn-ghost { background: transparent; color: var(--gray-600); padding: 8px 16px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: white; }
.section-light { background: white; }
.section-gradient { background: var(--accent-gradient); color: white; }
.section-label {
  display: inline-block; background: rgba(102,126,234,0.1); color: var(--accent);
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}
.section-label.white { background: rgba(255,255,255,0.15); color: white; }
.section-title {
  font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 16px; color: var(--gray-900);
}
.section-title.white { color: white; }
.section-subtitle {
  font-size: 1.1rem; color: var(--gray-500); max-width: 680px;
  line-height: 1.6; margin-bottom: 40px;
}
.section-subtitle.white { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== HERO ===== */
.hero { padding: 30px 0 20px; }
.hero-title {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 20px;
}
.hero-title .highlight { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text { font-size: 1.2rem; opacity: 0.85; max-width: 600px; line-height: 1.6; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(102,126,234,0.15); border: 1px solid rgba(102,126,234,0.25);
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; color: var(--accent-light); margin-bottom: 24px;
}

/* ===== FEATURE GRID ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card {
  background: white; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-md); transition: all 0.25s;
  border: 1px solid var(--gray-100);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }
.feature-card .tag {
  display: inline-block; background: rgba(16,185,129,0.1); color: var(--success);
  padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; margin-top: 12px;
}

/* ===== CARDS ===== */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); }
.card-header { padding: 24px 28px; border-bottom: 1px solid var(--gray-100); }
.card-body { padding: 28px; }
.card-
/* ===== FOOTER ===== */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; text-align: left; margin-bottom: 30px; }
.footer-brand strong { color: rgba(255,255,255,0.9); }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; color: rgba(255,255,255,0.6); }
.footer-col strong { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col p { margin-top: 6px; }
.footer-col a { display: block; padding: 3px 0; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-admin { color: rgba(255,255,255,0.4); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; color: rgba(255,255,255,0.5); }

footer { padding: 20px 28px; border-top: 1px solid var(--gray-100); }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
  background: white; border-radius: var(--radius-lg); padding: 0;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-200);
  transition: all 0.25s; overflow: hidden;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card.featured {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-header {
  padding: 32px 28px 24px; text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-header .plan-name { font-size: 1.1rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-header .price { font-size: 3rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; }
.pricing-header .price span { font-size: 1.2rem; font-weight: 400; color: var(--gray-400); }
.pricing-header .desc { color: var(--gray-500); font-size: 0.95rem; margin-top: 8px; }
.pricing-body { padding: 24px 28px; }
.pricing-features { list-style: none; padding: 0; }
.pricing-features li {
  padding: 10px 0; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--gray-50); font-size: 0.95rem; color: var(--gray-700);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 1.1rem; }
.pricing-
/* ===== FOOTER ===== */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; text-align: left; margin-bottom: 30px; }
.footer-brand strong { color: rgba(255,255,255,0.9); }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; color: rgba(255,255,255,0.6); }
.footer-col strong { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col p { margin-top: 6px; }
.footer-col a { display: block; padding: 3px 0; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-admin { color: rgba(255,255,255,0.4); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; color: rgba(255,255,255,0.5); }

footer { padding: 20px 28px 28px; text-align: center; }
.pricing-badge {
  display: inline-block; background: var(--accent); color: white;
  padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step {
  text-align: center; padding: 32px 20px; position: relative;
  background: rgba(255,255,255,0.05); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.step .step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(102,126,234,0.2); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; margin: 0 auto 16px;
}
.step h3 { color: white; margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.5; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 30px 0; }
.stat-card {
  background: white; padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; border: 1px solid var(--gray-100);
}
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; margin: 8px 0; }
.stat-number.accent { color: var(--accent); }
.stat-number.danger { color: var(--danger); }
.stat-number.success { color: var(--success); }
.stat-label { color: var(--gray-500); font-size: 0.9rem; }

/* ===== ALERTS ===== */
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-size: 0.95rem; max-width: 700px; margin-left: auto; margin-right: auto;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== FORMS ===== */
.form-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; max-width: 720px; margin: 0 auto; border: 1px solid var(--gray-100); }
.form-card h2 { color: var(--gray-900); margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--gray-700); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.95rem; transition: all 0.2s; font-family: inherit; background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102,126,234,0.1); outline: none;
}
.form-group textarea { min-height: 140px; resize: vertical; font-family: 'Courier New', monospace; font-size: 0.85rem; }
.help-text { font-size: 0.85rem; color: var(--gray-400); margin-top: 4px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
table { width: 100%; border-collapse: collapse; background: white; }
table th { background: var(--gray-900); color: white; padding: 14px 16px; text-align: left; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.95rem; }
table tr:hover { background: var(--gray-50); }
table tr.suspended { background: #fef2f2; }
table tr.suspended td { color: var(--gray-400); }

/* ===== RISK CARDS ===== */
.risk-card {
  background: white; margin: 16px 0; padding: 24px; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-md); border-left: 4px solid var(--gray-300);
}
.risk-card.risk-high { border-left-color: var(--danger); }
.risk-card.risk-medium { border-left-color: var(--warning); }
.risk-card.risk-low { border-left-color: var(--success); }
.risk-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.risk-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }
.risk-type { padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.risk-type.high { background: #fef2f2; color: #dc2626; }
.risk-type.medium { background: #fffbeb; color: #d97706; }
.risk-type.low { background: #f0fdf4; color: #16a34a; }
.risk-meta { display: flex; gap: 20px; font-size: 0.9rem; color: var(--gray-500); margin-bottom: 8px; flex-wrap: wrap; }

/* ===== BADGES ===== */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}
.badge.active, .badge-active { background: #f0fdf4; color: #16a34a; }
.badge.suspended, .badge-suspended { background: #fef2f2; color: #dc2626; }
.badge-pending, .status-pending { background: #fffbeb; color: #d97706; }
.badge-analyzed, .status-analyzed { background: #f0fdf4; color: #16a34a; }
.badge-signed, .status-signed { background: #eff6ff; color: #2563eb; }

/* ===== RISK METER ===== */
.risk-meter { background: var(--gray-200); border-radius: 10px; height: 10px; margin: 10px 0; overflow: hidden; }
.risk-meter-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }
.risk-meter-fill.high { background: var(--danger); }
.risk-meter-fill.medium { background: var(--warning); }
.risk-meter-fill.low { background: var(--success); }

/* ===== MISC ===== */
.nlp-badge { display: inline-block; background: rgba(102,126,234,0.1); color: var(--accent); padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.contract-preview { background: var(--gray-50); border-radius: var(--radius-sm); padding: 20px; margin: 20px 0; max-height: 300px; overflow-y: auto; font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.5; border: 1px solid var(--gray-200); }
.action-bar { display: flex; gap: 12px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.back-link { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 0.9rem; display: inline-block; }
.back-link:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; text-align: left; margin-bottom: 30px; }
.footer-brand strong { color: rgba(255,255,255,0.9); }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; color: rgba(255,255,255,0.6); }
.footer-col strong { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col p { margin-top: 6px; }
.footer-col a { display: block; padding: 3px 0; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-admin { color: rgba(255,255,255,0.4); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; color: rgba(255,255,255,0.5); }

footer { text-align: center; padding: 32px 20px; color: rgba(255,255,255,0.6); font-size: 0.9rem; background: var(--primary-gradient); margin-top: 60px; }
footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

/* ===== SIGNATURE PAD ===== */
.signature-pad { border: 2px dashed var(--gray-300); border-radius: var(--radius-sm); width: 100%; max-width: 500px; height: 180px; cursor: crosshair; display: block; margin: 10px auto; touch-action: none; }
.signature-pad.drawing { border-color: var(--accent); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-box { background: white; padding: 32px; border-radius: var(--radius-lg); max-width: 460px; width: 90%; box-shadow: var(--shadow-xl); }
.modal-box h3 { margin-bottom: 12px; }
.modal-box p { color: var(--gray-500); margin-bottom: 20px; line-height: 1.5; }

/* ===== NAV TABS ===== */
.nav-tabs { display: flex; gap: 0; margin: 20px 0; border-bottom: 2px solid var(--gray-200); }
.nav-tabs a { padding: 12px 24px; text-decoration: none; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; font-weight: 500; }
.nav-tabs a:hover { color: var(--gray-800); }
.nav-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== USER DETAIL ===== */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.detail-grid .item .label { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.3px; }
.detail-grid .item .value { font-size: 1.05rem; font-weight: 600; color: var(--gray-800); }

/* ===== QUICK STATS ===== */
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 20px 0; }

/* ===== BACKWARD COMPATIBILITY ALIASES ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
.feature { background: white; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow-md); text-align: center; }
.feature h3 { color: var(--gray-900); margin-bottom: 15px; font-size: 1.3rem; }
.feature p { color: var(--gray-500); font-size: 0.95rem; }
.how-it-works { background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.how-it-works h2 { text-align: center; margin-bottom: 30px; color: var(--gray-900); }
.how-it-works ol { max-width: 800px; margin: 0 auto; padding-left: 20px; }
.how-it-works li { margin-bottom: 15px; font-size: 1.1rem; line-height: 1.8; }
.upload-form { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; max-width: 720px; margin: 0 auto; border: 1px solid var(--gray-100); }
.upload-form h2 { color: var(--gray-900); margin-bottom: 15px; }
.btn-back { display: inline-block; background: rgba(255,255,255,0.15); color: white; padding: 8px 18px; text-decoration: none; border-radius: 5px; font-size: 0.9rem; transition: background 0.2s; margin-top: 8px; }
.btn-back:hover { background: rgba(255,255,255,0.25); }
.btn-secondary { display: inline-block; background: var(--gray-400); color: white; padding: 12px 25px; text-decoration: none; border-radius: var(--radius-sm); font-weight: 500; transition: background 0.2s; border: none; cursor: pointer; font-size: 0.95rem; }
.btn-secondary:hover { background: var(--gray-500); }
/* ===== TEMPLATES PAGE ===== */
.jurisdiction-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.jurisdiction-tabs a {
  display: inline-block; padding: 10px 24px; border-radius: 8px;
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  border: 2px solid var(--accent); color: var(--accent);
  transition: all 0.2s;
}
.jurisdiction-tabs a:hover { background: rgba(102,126,234,0.08); }
.jurisdiction-tabs a.active { background: var(--accent); color: white; }

.category-filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.category-filters a {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  border: 2px solid var(--gray-200); color: var(--gray-600);
  transition: all 0.2s;
}
.category-filters a:hover { border-color: var(--accent); color: var(--accent); background: rgba(102,126,234,0.05); }
.category-filters a.active { background: var(--accent); color: white; border-color: var(--accent); }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-top: 20px; }
.template-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.template-card-header { padding: 20px 24px 12px; border-bottom: 1px solid var(--gray-100); }
.template-card-header h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--gray-900); }
.template-card-body { padding: 16px 24px; flex: 1; }
.template-card-body p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 12px; }
.template-preview { font-family: 'Courier New', monospace; font-size: 0.8rem; color: var(--gray-400); background: var(--gray-50); padding: 12px; border-radius: 4px; max-height: 80px; overflow: hidden; white-space: pre-wrap; }
.template-card-footer { padding: 12px 24px 20px; display: flex; gap: 10px; }
.btn-template { display: inline-block; padding: 8px 20px; border-radius: 6px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; }
.btn-preview { background: var(--gray-100); color: var(--gray-700); }
.btn-preview:hover { background: var(--gray-200); }
.btn-use { background: var(--accent); color: white; }
.btn-use:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.category-badge { display: inline-block; background: #e3f2fd; color: #1565c0; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; text-transform: uppercase; margin-right: 6px; }
.jurisdiction-badge { display: inline-block; background: #f3e5f5; color: #7b1fa2; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; text-transform: uppercase; }

.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 30px 0; }
.notes { margin: 30px auto; max-width: 700px; }
.notes h3 { color: var(--gray-900); margin-bottom: 15px; }
.notes ul { padding-left: 20px; }
.notes li { margin-bottom: 8px; color: var(--gray-600); }
.action-btns { display: flex; gap: 15px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header h1 { font-size: 2rem; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  .section { padding: 50px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .site-header .top-bar { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .header-nav { justify-content: flex-start; }
}
