/* SpeedyTech HIPAA Risk Assessment Portal */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #4338ca;
  --primary-2: #6366f1;
  --primary-ink: #312e81;
  --pass: #16a34a;
  --partial: #ca8a04;
  --fail: #dc2626;
  --na: #64748b;
  --shadow: 0 4px 16px rgba(15,23,42,0.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.10);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 36px; width: auto; }
.brand-text { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { color: var(--muted); font-weight: 500; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 14px; }

/* Footer */
.site-footer {
  margin-top: 60px; padding: 28px; background: #0f172a; color: #cbd5e1;
  font-size: 13px; display: grid; gap: 18px; grid-template-columns: 1fr 2fr;
}
.site-footer strong { color: white; }
.footer-fine { color: #94a3b8; line-height: 1.6; }
@media (max-width: 720px) { .site-footer { grid-template-columns: 1fr; } }

/* Hero */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  padding: 60px 28px; border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.hero-eyebrow { display: inline-block; padding: 4px 10px; background: white; border: 1px solid var(--line); border-radius: 999px; color: var(--primary-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-family: 'Source Serif Pro', Georgia, serif; font-size: 48px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.02em; color: #1e1b4b; }
.hero-lede { font-size: 18px; color: var(--muted); max-width: 700px; margin: 0 0 8px; }
.hero-lede.small { font-size: 16px; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-meta { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .hero h1 { font-size: 34px; } .hero { padding: 40px 22px; } }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; border: 0; text-decoration: none; transition: all .15s ease; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 6px 16px rgba(67,56,202,.25); }
.btn-primary:hover { background: var(--primary-ink); text-decoration: none; box-shadow: 0 8px 24px rgba(67,56,202,.35); }
.btn-ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* Container */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 760px; }

/* Cards / sections */
.how-it-works, .sections-preview, .cta-final { padding: 56px 0; }
.how-it-works h2, .sections-preview h2, .cta-final h2 { font-family: 'Source Serif Pro', Georgia, serif; font-size: 30px; margin: 0 0 28px; letter-spacing: -0.01em; }
.cta-final h2 { margin-bottom: 20px; }
.muted { color: var(--muted); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { margin: 6px 0; }
.card-icon { font-size: 32px; }
.section-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.section-pill { background: white; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.section-pill span { color: var(--muted); margin-right: 6px; }

/* Forms */
.form-page { padding: 50px 0; }
.form-page h1 { font-family: 'Source Serif Pro', Georgia, serif; font-size: 36px; margin: 0 0 8px; }
form.stacked { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
form.stacked label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: #1e293b; }
form.stacked input, form.stacked select, form.stacked textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit; background: white;
}
form.stacked input:focus, form.stacked select:focus, form.stacked textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.req { color: var(--fail); font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; font-size: 13px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 6px; }
.alert { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 8px; margin: 14px 0; }

/* Wizard */
.wizard { padding: 32px 0; }
.progress-block { margin-bottom: 28px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .3s ease; }
.wizard h1 { font-family: 'Source Serif Pro', Georgia, serif; font-size: 32px; margin: 0 0 8px; }
.legend { display: flex; gap: 12px; margin: 16px 0 20px; font-size: 13px; }
.legend span { padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.lg-pass { background: #dcfce7; color: #166534; }
.lg-partial { background: #fef3c7; color: #92400e; }
.lg-fail { background: #fee2e2; color: #991b1b; }
.lg-na { background: #e2e8f0; color: #334155; }
.qcard { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.qtext { font-weight: 500; margin-bottom: 12px; }
.qid { display: inline-block; min-width: 30px; color: var(--muted); font-weight: 700; }
.qopts { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 540px) { .qopts { grid-template-columns: repeat(2, 1fr); } }
.opt { position: relative; cursor: pointer; padding: 10px 8px; text-align: center; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14px; user-select: none; transition: all .12s ease; background: white; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--primary); }
.opt-pass.selected { background: #dcfce7; border-color: var(--pass); color: #166534; }
.opt-partial.selected { background: #fef3c7; border-color: var(--partial); color: #92400e; }
.opt-fail.selected { background: #fee2e2; border-color: var(--fail); color: #991b1b; }
.opt-na.selected { background: #e2e8f0; border-color: var(--na); color: #334155; }
.notes-label { margin-top: 8px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }

/* Result */
.result { padding: 40px 0; }
.score-card {
  background: white; border-radius: 18px; padding: 32px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--tier-color, var(--primary));
}
.score-eyebrow { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.score-big { font-size: 92px; font-weight: 800; color: var(--tier-color, var(--primary)); line-height: 1; margin: 8px 0; }
.score-of { font-size: 32px; color: var(--muted); }
.score-tier { font-size: 24px; font-weight: 700; color: var(--tier-color, var(--primary)); }
.score-blurb { color: var(--muted); margin-top: 6px; font-size: 16px; }
.score-counts { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.count { padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.count-pass { background: #dcfce7; color: #166534; }
.count-partial { background: #fef3c7; color: #92400e; }
.count-fail { background: #fee2e2; color: #991b1b; }
.count-na { background: #e2e8f0; color: #334155; }
.score-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.result h2 { font-family: 'Source Serif Pro', Georgia, serif; font-size: 26px; margin: 36px 0 8px; }
.gap-list { display: grid; gap: 14px; margin-top: 14px; }
.gap-card { background: white; border: 1px solid var(--line); border-left: 4px solid var(--fail); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.gap-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gap-num { width: 30px; height: 30px; border-radius: 50%; background: var(--fail); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.gap-head h3 { margin: 0; flex: 1; font-size: 18px; }
.gap-stat { color: var(--muted); font-size: 13px; }
.gap-body { margin-top: 10px; font-size: 14px; }
.gap-impact { color: #475569; }
.gap-fix { color: var(--primary-ink); margin-top: 6px; }

.section-grid { display: grid; gap: 6px; margin-top: 12px; }
.section-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 10px 14px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.section-row.has-gap { border-left: 3px solid var(--fail); }
.sr-id { color: var(--muted); margin-right: 6px; }
.sr-counts { display: flex; gap: 6px; }
.dot { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dot-pass { background: #dcfce7; color: #166534; }
.dot-partial { background: #fef3c7; color: #92400e; }
.dot-fail { background: #fee2e2; color: #991b1b; }
.sr-score { font-weight: 700; font-size: 15px; min-width: 50px; text-align: right; }

.cta-card { margin-top: 36px; padding: 28px 32px; background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%); border-radius: var(--radius); border: 1px solid #c7d2fe; }
.cta-card h2 { margin-top: 0; }
.cta-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.cta-final { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); color: white; padding: 60px 0; text-align: center; }
.cta-final h2 { color: white; }

/* intake alignment (2026-09-23): label text on one line, inputs line up across a row */
form.stacked .lbl { display: block; }
.form-row > label { justify-content: flex-end; }

/* ===== MSP theme (2026-09-24) — matches speedytechmsp.com (style.css tokens). Remove this block to roll back. ===== */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #15203f;
  --muted: #384668;
  --line: #e5e8f0;
  --primary: #2674d8;
  --primary-2: #4d97e8;
  --primary-ink: #15203f;
  --shadow: 0 4px 14px rgba(21,32,63,.06);
  --shadow-lg: 0 14px 36px rgba(21,32,63,.1);
}
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.hero h1, .how-it-works h2, .sections-preview h2, .cta-final h2, .form-page h1, .wizard h1, .result h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em;
}
.hero h1 { color: var(--navy, #15203f); }
.hero, .cta-card { background: linear-gradient(135deg, #eef1f8 0%, #f6f8fc 100%); }
.cta-card { border-color: #d8dde9; }
.cta-final { background: linear-gradient(135deg, #15203f 0%, #283460 100%); }
.btn-primary { box-shadow: 0 6px 16px rgba(38,116,216,.25); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(38,116,216,.45); }
.site-footer { background: #0a0d18; }
form.stacked label { color: #15203f; }
