/* Gap Finder — layered on top of the shared style.css */

.diag-body { background:
  radial-gradient(120% 70% at 90% -10%, rgba(47,111,94,.08), transparent 55%), var(--paper); }

.diag-main { padding: clamp(40px, 7vw, 80px) 28px clamp(60px, 8vw, 90px); min-height: 70vh; }
.diag-step { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.privacy-note {
  max-width: 560px; margin: 1.6rem auto; padding: 14px 20px; background: var(--accent-bg);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; color: var(--accent-dk);
}
.disclaimer-mini { margin-top: 1.4rem; max-width: 540px; margin-left: auto; margin-right: auto; }
#intro .btn-primary { margin-top: .6rem; }

/* progress */
.progress-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 2rem; }
.progress-bar { flex: 1; height: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .35s ease; }
.progress-label { font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* questions */
.q-title { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 3vw, 1.95rem); margin-bottom: .4em; color: var(--ink); }
.q-help { color: var(--muted); margin-bottom: 1.6rem; font-size: .98rem; }
.q-options { display: grid; gap: 12px; }
.q-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
  font-size: 1.02rem; color: var(--ink-soft); transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.q-option:hover { border-color: var(--accent); }
.q-option.selected { border-color: var(--accent); background: var(--accent-bg); color: var(--ink); font-weight: 500; }
.q-option .tick {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line);
  display: grid; place-items: center; color: #fff; font-size: .75rem; transition: all .15s ease;
}
.q-option.multi .tick { border-radius: 6px; }
.q-option.single .tick { border-radius: 50%; }
.q-option.selected .tick { background: var(--accent); border-color: var(--accent); }
.q-multi-hint { font-size: .82rem; color: var(--accent-dk); font-weight: 600; margin-bottom: 1rem; letter-spacing: .02em; }

.quiz-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 2.4rem; }
#back-btn[hidden] { visibility: hidden; }

/* results */
.result-score-card {
  text-align: center; padding: 36px 28px; border-radius: var(--radius-lg); margin-bottom: 2rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.result-score-card.lvl-high { background: #fbeceb; border-color: #f0c9c5; }
.result-score-card.lvl-med  { background: #fdf4e3; border-color: #ecd6a8; }
.result-score-card.lvl-low  { background: var(--accent-bg); border-color: #c2dcd2; }
.result-headline { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--ink); margin-bottom: .4em; line-height: 1.15; }
.result-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.result-counts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 1.8rem 0 0; }
.count-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.count-pill b { font-family: 'Fraunces', serif; font-weight: 600; margin-right: 4px; }
.count-pill.req b { color: #b23b30; }
.count-pill.stale b { color: var(--gold); }
.count-pill.ok b { color: var(--accent); }

.result-section-title { font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 700; color: var(--accent-dk); margin: 2.2rem 0 1rem; }

.gap-list { display: grid; gap: 10px; }
.gap-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.gap-item .badge {
  flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; margin-top: 2px; white-space: nowrap;
}
.badge.req   { background: #fbeceb; color: #b23b30; }
.badge.exp   { background: #fdf4e3; color: #94701f; }
.badge.stale { background: #f3ecd6; color: #8a6b1e; }
.badge.have  { background: var(--accent-bg); color: var(--accent-dk); }
.gap-item .gap-text strong { color: var(--ink); display: block; }
.gap-item .gap-text span { color: var(--muted); font-size: .92rem; }

.result-cta {
  margin-top: 2.6rem; padding: 32px 28px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg); text-align: center;
}
.result-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: .5em; }
.result-cta p { color: #c5d2cd; max-width: 540px; margin: 0 auto 1.6rem; }
.result-cta .price-line { font-family: 'Fraunces', serif; color: #fff; font-size: 1.1rem; margin-top: 1rem; }
.result-cta .price-line s { color: #8fa099; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result-cta .btn-ghost { color: #cfe0d9; border-color: rgba(255,255,255,.25); }
.result-cta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

.restart-row { text-align: center; margin-top: 1.8rem; }
.restart-row button { background: none; border: none; color: var(--muted); font-size: .9rem; cursor: pointer; text-decoration: underline; }

.result-disclaimer { margin-top: 2rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.4rem; }
