/* ─── SMB Security Checklist Page Styles ─────────────────────────────────── */

:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --accent: #10b981;
  --accent-dim: #059669;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--text-primary); }

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 80px 24px 96px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ─── Email Gate ──────────────────────────────────────────────────────────── */

.checklist-gate {
  max-width: 520px;
  margin: 0 auto;
}

.checklist-gate-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(16,185,129,0.15);
  text-align: center;
}

.checklist-gate-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}

.checklist-gate-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.checklist-gate-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.checklist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 12px;
}

.checklist-input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.checklist-input:focus { border-color: var(--accent); }
.checklist-input::placeholder { color: var(--text-muted); }

.checklist-btn {
  background: var(--accent);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.checklist-btn:hover:not(:disabled) { background: var(--accent-dim); }
.checklist-btn:active:not(:disabled) { transform: scale(0.98); }
.checklist-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.checklist-msg {
  min-height: 18px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.checklist-msg.error { color: var(--danger); }
.checklist-msg.success { color: var(--success); font-weight: 600; }

.checklist-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Checklist Content ───────────────────────────────────────────────────── */

.checklist-locked {
  display: none;
}

.checklist-content.unlocked {
  display: block;
}

/* ─── Stats Row ───────────────────────────────────────────────────────────── */

.section-intro {
  padding: 64px 0 48px;
  background: var(--bg);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Assessment ──────────────────────────────────────────────────────────── */

.section-assessment {
  padding: 0 0 64px;
}

.assessment-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-subheading {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.assessment-questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.assessment-q {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.q-num {
  width: 28px;
  height: 28px;
  background: var(--text-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.q-content { flex: 1; }

.q-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.45;
}

.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.q-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s;
  background: var(--bg);
}

.q-opt:has(input:checked) {
  border-color: var(--accent);
  background: rgba(16,185,129,0.08);
}

.q-opt input { display: none; }
.q-opt-label { }
.q-opt-label.q-yes { color: var(--success); }
.q-opt-label.q-partial { color: var(--warning); }
.q-opt-label.q-no { color: var(--danger); }

.assessment-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: center;
}

.assessment-result-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.assessment-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.assessment-cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid var(--border-dark);
  transition: all 0.15s;
}

.btn-secondary:hover { border-color: var(--text-secondary); }

/* ─── Checklist Section ───────────────────────────────────────────────────── */

.section-checklist {
  padding: 0 0 80px;
  background: var(--bg);
}

.checklist-header {
  text-align: center;
  margin-bottom: 40px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.checklist-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}

.checklist-category:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.category-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex: 1;
}

.category-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checklist-item {
  border-radius: 8px;
  transition: background 0.1s;
}

.checklist-item:hover { background: var(--bg); }

.item-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  cursor: pointer;
}

.item-check {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.item-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.15s;
}

.checklist-item.done .item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.category-progress {
  margin-top: 16px;
  height: 4px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.category-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ─── Overall Progress ────────────────────────────────────────────────────── */

.overall-progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
  text-align: center;
}

.overall-progress-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.overall-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.overall-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.overall-progress-bar {
  max-width: 600px;
  height: 12px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto 14px;
}

.overall-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #34d399 100%);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.overall-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── CTA Section ─────────────────────────────────────────────────────────── */

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

.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}

.cta-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-subheading {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cta-buttons .btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #ffffff;
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-text a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-text a:hover { color: var(--text-secondary); }

/* ─── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .checklist-form { flex-direction: column; }
  .checklist-btn { width: 100%; }
  .assessment-q { flex-direction: column; gap: 10px; }
  .q-options { flex-direction: column; }
  .cta-box { padding: 36px 24px; }
  .assessment-box { padding: 28px 20px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}