/* ═══════════════════════════════════════════════════════════════
   GRC READY — Site stylesheet
   Linked from index.html. Edit styles here (not inline).
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green: #16a34a; --green-light: #dcfce7;
  --yellow: #d97706; --yellow-light: #fef9c3;
  --red: #dc2626; --red-light: #fee2e2;
  --blue: #1d4ed8; --blue-light: #dbeafe;
  --teal: #0d9488; --teal-dark: #0f766e;
  --navy: #0f172a;
  --gray: #6b7280; --gray-light: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827; --text-muted: #6b7280;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #fff; color: var(--text); }
.page { display: none; }
.page.active { display: block; }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 34px; height: 34px; background: var(--teal);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px;
}
.nav-logo-text { font-size: 18px; font-weight: 700; color: var(--navy); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-signin {
  font-size: 14px; font-weight: 600; color: var(--navy); background: none;
  border: none; cursor: pointer; padding: 8px 12px;
}
.nav-signin:hover { color: var(--teal); }
.nav-cta {
  padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--teal); color: white; border: none; cursor: pointer; transition: all 0.15s;
}
.nav-cta:hover { background: var(--teal-dark); }
#nav-user { font-size: 13px; color: var(--text-muted); display: none; }
.nav-plan { display: none; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px; }
.nav-plan.free { background: var(--gray-light); color: var(--text-muted); }
.nav-plan.paid { background: #f0fdfa; color: var(--teal); }
#nav-logout {
  font-size: 13px; background: var(--gray-light); border: 1px solid var(--border);
  color: var(--text); padding: 6px 14px; border-radius: 6px; cursor: pointer; display: none;
}
#nav-logout:hover { background: var(--border); }

/* ═══════════════════════════════════════
   LANDING — HERO
═══════════════════════════════════════ */
.hero {
  padding: 60px 40px 80px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-block; background: #e0f2fe; color: #0369a1;
  font-size: 11px; font-weight: 700; padding: 5px 14px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 20px;
}
.hero h1 {
  font-size: 46px; font-weight: 800; line-height: 1.15; color: var(--navy);
  margin-bottom: 18px;
}
.hero h1 span { color: var(--teal); }
.hero-desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.btn-hero-primary {
  padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: var(--teal); color: white; border: none; cursor: pointer; transition: all 0.15s;
}
.btn-hero-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,148,136,0.3); }
.btn-hero-secondary {
  padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
  background: white; color: var(--navy); border: 2px solid var(--border); cursor: pointer; transition: all 0.15s;
}
.btn-hero-secondary:hover { border-color: var(--navy); }
.hero-features { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-feat { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.feat-check { color: var(--teal); font-weight: 700; font-size: 16px; }

/* Hero dashboard preview */
.hero-preview {
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.p-stat {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; text-align: center;
}
.p-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.p-stat-value { font-size: 28px; font-weight: 800; }
.p-stat-sub { font-size: 11px; font-weight: 600; margin-top: 2px; }
.preview-section { margin-bottom: 18px; }
.preview-section:last-child { margin-bottom: 0; }
.preview-section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.risk-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.risk-bar-label { font-size: 12px; font-weight: 600; width: 110px; flex-shrink: 0; }
.risk-bar-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.risk-bar-fill { height: 100%; border-radius: 4px; }

/* ═══════════════════════════════════════
   LANDING — HOW IT WORKS
═══════════════════════════════════════ */
.how-section { background: #f8fafc; padding: 80px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-badge {
  display: inline-block; background: #e0f2fe; color: #0369a1;
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px;
}
.section-title { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--text-muted); max-width: 560px; margin-bottom: 48px; line-height: 1.6; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════
   LANDING — PRICING
═══════════════════════════════════════ */
.pricing-section { padding: 80px 40px; background: white; }
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-header .section-desc { margin-left: auto; margin-right: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.price-card {
  border: 1.5px solid var(--border); border-radius: 16px;
  padding: 32px; position: relative; background: white;
  transition: box-shadow 0.2s;
}
.price-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.price-card.featured { border-color: var(--teal); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 20px; letter-spacing: 0.5px;
}
.price-tier { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.price-name { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.price-amount { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.price-amount span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  padding: 7px 0; font-size: 14px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.price-features li::before { content: '•'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.price-btn {
  width: 100%; padding: 13px; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; text-align: center;
}
.price-btn-outline {
  background: white; color: var(--navy); border: 2px solid var(--border);
}
.price-btn-outline:hover { border-color: var(--navy); }
.price-btn-fill {
  background: var(--teal); color: white; border: 2px solid var(--teal);
}
.price-btn-fill:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.contact-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

.contact-section p {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
}
	
/* ═══════════════════════════════════════
   LANDING — PLAN COMPARISON TABLE
═══════════════════════════════════════ */
.compare-wrap { max-width: 1100px; margin: 64px auto 0; }
.compare-title { font-size: 22px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 24px; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 820px; background: white; table-layout: fixed; }
/* first column (plan names) wider; the 6 feature columns share the rest equally */
.compare-table th:first-child, .compare-table td:first-child { width: 240px; text-align: left; }
.compare-table th, .compare-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); font-size: 12px; vertical-align: middle; }
.compare-table th:first-child, .compare-table td:first-child { border-left: none; }
.compare-table thead th { background: var(--navy); color: white; font-weight: 700; line-height: 1.35; }
.compare-table thead th:first-child { border-top-left-radius: 14px; }
.compare-table thead th:last-child { border-top-right-radius: 14px; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: #f8fafc; }
.compare-table td.plan { font-weight: 700; color: var(--navy); }
.compare-table td.plan .plan-price { display: block; font-weight: 700; color: var(--teal); font-size: 12px; margin-top: 3px; }
.compare-table td.yes { color: var(--teal); font-weight: 800; font-size: 17px; }

/* ═══════════════════════════════════════
   LANDING — FAQ
═══════════════════════════════════════ */
.faq-section { background: #f8fafc; padding: 80px 40px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 18px 24px; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; width: 100%; text-align: left; color: var(--navy);
}
.faq-q:hover { background: var(--gray-light); }
.faq-q .arrow { transition: transform 0.2s; font-size: 18px; color: var(--text-muted); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* ═══════════════════════════════════════
   LANDING — FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 40px; text-align: center; font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer a:hover { color: white; }

/* ═══════════════════════════════════════
   AUTH SCREEN
═══════════════════════════════════════ */
#auth-screen { max-width: 420px; margin: 56px auto; padding: 0 20px; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.card {
  background: white; border: 1px solid var(--border);
  border-radius: 14px; padding: 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.tab-row {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--gray-light); border-radius: 10px; padding: 4px; margin-bottom: 24px;
}
.tab-btn {
  padding: 9px; border-radius: 8px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--text-muted); transition: all 0.15s;
}
.tab-btn.active { background: white; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 14px; outline: none; transition: border-color 0.15s;
  font-family: inherit; background: white;
}
.form-group input:focus, .form-group select:focus { border-color: var(--teal); }
.auth-error {
  background: var(--red-light); color: var(--red);
  border: 1px solid #fca5a5; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none;
}
.auth-success {
  background: var(--green-light); color: var(--green);
  border: 1px solid #86efac; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none;
}
.btn-full {
  width: 100%; padding: 13px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  background: var(--teal); color: white; transition: all 0.15s; font-family: inherit;
}
.btn-full:hover { background: var(--teal-dark); }
.btn-full:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-back {
  display: block; text-align: center; margin-top: 16px;
  font-size: 13px; color: var(--text-muted); cursor: pointer; background: none; border: none;
}
.auth-back:hover { color: var(--navy); }

/* ═══════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════ */
#dashboard-screen .dash-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px; }
.dash-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d9488 100%);
  color: white; border-radius: 14px; padding: 32px;
  margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.dash-hero h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.dash-hero p { opacity: 0.8; font-size: 15px; }
.dash-hero-meta { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; min-width: 220px; }
.dash-hero-meta .meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 8px; }
.dash-hero-meta .meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-hero-meta .meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.65; font-weight: 600; }
.dash-hero-meta .meta-value { font-size: 14px; font-weight: 700; text-align: right; }
.btn-start {
  padding: 13px 28px; border-radius: 10px; font-size: 15px;
  font-weight: 700; background: white; color: var(--navy);
  border: none; cursor: pointer; white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
}
.btn-start:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.stat-card .s-val { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.stat-card .s-lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.history-panel { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.history-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.framework-panel { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.framework-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.framework-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.framework-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fw-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 20px; cursor: pointer; transition: all 0.15s; background: white; text-align: left; }
.fw-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(13,148,136,0.12); transform: translateY(-1px); }
.fw-card .fw-code { display: inline-block; font-size: 10px; font-weight: 700; color: var(--teal); background: #f0fdfa; padding: 3px 9px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.fw-card .fw-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.fw-card .fw-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.fw-card .fw-go { font-size: 13px; font-weight: 700; color: var(--teal); }
.fw-locked { border-style: dashed; opacity: 0.65; cursor: not-allowed; }
.fw-locked:hover { border-color: var(--border); box-shadow: none; transform: none; }
.fw-locked .fw-go { color: var(--text-muted); }
.history-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.history-empty .empty-icon { font-size: 40px; margin-bottom: 12px; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; padding: 8px 12px; border-bottom: 2px solid var(--border); }
.history-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--gray-light); }
.rating-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.rating-pill.green { background: var(--green-light); color: var(--green); }
.rating-pill.yellow { background: var(--yellow-light); color: var(--yellow); }
.rating-pill.red { background: var(--red-light); color: var(--red); }
.loading-row { text-align: center; padding: 30px; color: var(--text-muted); font-size: 14px; }

/* ═══════════════════════════════════════
   QUIZ
═══════════════════════════════════════ */
#quiz-screen .quiz-wrap { max-width: 800px; margin: 0 auto; padding: 32px 20px; }
.progress-bar-wrap { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.progress-meta .section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
.progress-meta .counter { font-size: 14px; font-weight: 600; color: var(--teal); }
.bar { height: 8px; background: var(--gray-light); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #0d9488, #0f766e); border-radius: 4px; transition: width 0.4s ease; }
.category-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-tab { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); background: white; color: var(--text-muted); cursor: default; transition: all 0.2s; }
.cat-tab.active { background: var(--navy); color: white; border-color: var(--navy); }
.cat-tab.done { background: var(--green-light); color: var(--green); border-color: var(--green); }
.question-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 32px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.q-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.q-number { background: var(--navy); color: white; min-width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.q-category { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.q-text { font-size: 17px; font-weight: 500; line-height: 1.5; }
.answer-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.answer-btn { padding: 14px; border: 2px solid var(--border); border-radius: 10px; background: white; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; text-align: center; font-family: inherit; }
.answer-btn:hover { border-color: #5eead4; background: #f0fdfa; }
.answer-btn.selected-yes { border-color: var(--green); background: var(--green-light); color: var(--green); }
.answer-btn.selected-no  { border-color: var(--red);   background: var(--red-light);   color: var(--red); }
.answer-btn.selected-na  { border-color: var(--gray);  background: var(--gray-light);  color: var(--gray); }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn-outline { padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 2px solid var(--border); background: white; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-nav { padding: 12px 32px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s; color: white; font-family: inherit; }
.btn-nav.next { background: var(--navy); }
.btn-nav.next:hover { background: #1e293b; }
.btn-nav.submit { background: var(--teal); }
.btn-nav.submit:hover { background: var(--teal-dark); }
.btn-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.skip-note { font-size: 13px; color: var(--text-muted); }

/* ═══════════════════════════════════════
   RESULTS
═══════════════════════════════════════ */
#results-screen .results-wrap { max-width: 900px; margin: 0 auto; padding: 32px 20px; }
.results-header { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 36px; margin-bottom: 24px; text-align: center; }
.result-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; border-radius: 30px; font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.result-badge.green { background: var(--green-light); color: var(--green); }
.result-badge.yellow { background: var(--yellow-light); color: var(--yellow); }
.result-badge.red { background: var(--red-light); color: var(--red); }
.result-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.score-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.score-box { background: var(--gray-light); border-radius: 12px; padding: 20px; text-align: center; }
.score-box .s-value { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.score-box .s-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.score-box.s-green .s-value { color: var(--green); }
.score-box.s-yellow .s-value { color: var(--yellow); }
.score-box.s-red .s-value { color: var(--red); }
.score-box.s-blue .s-value { color: var(--teal); }
.results-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.panel { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.cat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-name { font-size: 13px; font-weight: 600; width: 120px; flex-shrink: 0; }
.cat-bar-wrap { flex: 1; height: 10px; background: var(--gray-light); border-radius: 5px; overflow: hidden; }
.cat-bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.cat-pct { font-size: 12px; font-weight: 700; width: 36px; text-align: right; }
.q-list { max-height: 320px; overflow-y: auto; }
.q-list-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.q-list-item:last-child { border-bottom: none; }
.q-indicator { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 700; color: white; }
.q-indicator.yes { background: var(--green); }
.q-indicator.no  { background: var(--red); }
.q-indicator.na  { background: var(--gray); }
.q-list-text { flex: 1; line-height: 1.4; }
.full-panel { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.full-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.action-items { list-style: none; }
.action-items li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.4; }
.action-items li:last-child { border-bottom: none; }
.action-num { background: var(--red-light); color: var(--red); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.save-notice { background: var(--green-light); color: var(--green); border: 1px solid #86efac; border-radius: 10px; padding: 12px 18px; font-size: 14px; font-weight: 600; margin-bottom: 20px; display: none; text-align: center; }
.results-footer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-secondary { padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 2px solid var(--border); background: white; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-primary-sm { padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--teal); color: white; border: none; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.btn-primary-sm:hover { background: var(--teal-dark); }

/* CONFIG BANNER */
#config-banner { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 14px 20px; font-size: 13px; text-align: center; line-height: 1.6; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 20px 60px; }
  .hero-preview { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .dash-stats { grid-template-columns: 1fr; }
  .answer-options { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: repeat(2, 1fr); }
  .results-body { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; text-align: center; }
  .preview-stats { grid-template-columns: 1fr; }
}
