/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #555;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-danger: #dc2626;
  --color-warning: #f59e0b;
  --color-success: #16a34a;
  --color-border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
}

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

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

a { color: var(--color-primary); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Nav ── */
nav[aria-label="Primary"] {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
  background: #151528;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
nav[aria-label="Primary"] a {
  color: #c5cdd8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
nav[aria-label="Primary"] a:hover { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-border); }

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
  width: 100%;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #1a1a2e 100%);
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.highlight { color: var(--color-accent); }

.hero-sub {
  font-size: 1.15rem;
  color: #c5cdd8;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ── Trust Bar ── */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Sections ── */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* ── Problem Grid ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.problem-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-danger);
}

.problem-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ── Scorecard ── */
.scorecard {
  max-width: 640px;
  margin: 0 auto;
}

.question {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.question h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}

.options label:hover {
  border-color: var(--color-primary);
  background: #f0f4ff;
}

.options input[type="radio"] {
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.question.answered {
  border-color: var(--color-primary);
  background: #f8faff;
}

.question.unanswered {
  border-color: var(--color-danger);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Results ── */
.results {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.score-display {
  margin-bottom: 40px;
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 6px solid var(--color-border);
  transition: border-color 0.5s;
}

.score-circle.critical { border-color: var(--color-danger); }
.score-circle.needs-work { border-color: var(--color-warning); }
.score-circle.at-risk { border-color: var(--color-accent); }
.score-circle.healthy { border-color: var(--color-success); }

.score-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

#score-grade {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

#score-summary {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Breakdown ── */
.breakdown {
  text-align: left;
  margin-bottom: 40px;
}

.breakdown-category {
  margin-bottom: 20px;
}

.breakdown-category h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.breakdown-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.breakdown-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.breakdown-fill.low { background: var(--color-danger); }
.breakdown-fill.mid { background: var(--color-warning); }
.breakdown-fill.high { background: var(--color-success); }

.breakdown-score {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── CTA Blocks ── */
.cta-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  text-align: left;
}

.cta-block h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.cta-block p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cta-secondary {
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: center;
}

/* ── Process Steps ── */
.process-steps {
  max-width: 600px;
  margin: 32px auto 0;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.step-num {
  min-width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.price {
  color: var(--color-primary);
  font-weight: 400;
  font-size: 0.9rem;
}

/* ── About ── */
.about-text {
  max-width: 600px;
  margin: 0 auto 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  .section { padding: 48px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 12px; }
}
