/* ============================================================
   THE GROWTH POINT — Scorecard styles (matches main site tokens)
   ============================================================ */
:root {
  --accent: #1f9d5f;
  --accent-bright: #26b56e;
  --accent-deep: #0f5c37;
  --accent-tint: rgba(31, 157, 95, 0.10);
  --dark-bg: #0a0f0c;
  --dark-bg-2: #0d1410;
  --dark-surface: #101812;
  --dark-border: #1f2c25;
  --dark-text: #f4f6f4;
  --dark-text-muted: #a7b3ac;
  --dark-text-faint: #6c7871;
  --light-bg: #f6f7f4;
  --light-bg-2: #eef1eb;
  --light-surface: #ffffff;
  --light-border: #e0e4db;
  --text: #101812;
  --text-muted: #55605a;
  --text-faint: #8b968f;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(16, 24, 18, 0.06);
  --shadow-lg: 0 12px 48px rgba(16, 24, 18, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.q-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--light-border);
  background: var(--light-surface);
  position: sticky; top: 0; z-index: 20;
}
.q-brand img { height: 30px; width: auto; max-width: 62vw; display: block; }
.q-back__short { display: none; }
.q-back { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.q-back:hover { color: var(--accent); }

/* ---------- Layout ---------- */
.q-main {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.1rem, 4vw, 1.5rem) 5rem;
}
.q-result { max-width: 720px; margin: 0 auto; }

/* ---------- Progress ---------- */
.q-progresswrap { margin-bottom: 1.75rem; }
.q-progress {
  height: 6px; border-radius: var(--radius-pill);
  background: var(--light-bg-2); overflow: hidden;
  border: 1px solid var(--light-border);
}
.q-progress__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.q-progress__label {
  display: block; margin-top: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
}

/* ---------- Card ---------- */
.q-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.q-card + .q-card { margin-top: 1.25rem; }

/* ---------- Typography ---------- */
.q-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.85rem;
}
.q-intro h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem);
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 1rem;
}
.q-lead { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.75rem; }

/* ---------- Form ---------- */
.q-form { display: grid; gap: 1.1rem; }
.q-field { display: grid; gap: 0.4rem; }
.q-field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.req { color: var(--accent); margin-left: 2px; }
.opt { color: var(--text-faint); font-weight: 400; }
.q-field input, .q-field select {
  font-family: inherit; font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--light-border); border-radius: var(--radius);
  background: var(--light-bg); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.q-field input:focus, .q-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.q-error { color: #b3261e; font-size: 0.85rem; font-weight: 500; }
.q-micro { font-size: 0.8rem; color: var(--text-faint); text-align: center; margin-top: 0.25rem; }

/* ---------- Buttons ---------- */
.q-btn {
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.06s;
  text-decoration: none;
}
.q-btn:active { transform: translateY(1px); }
.q-btn--lg { padding: 0.95rem 1.75rem; font-size: 1rem; width: 100%; }
.q-btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.q-btn--primary:hover:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); }
.q-btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }
.q-btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--light-border); }
.q-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.q-arrow { transition: transform 0.18s; }
.q-btn--primary:hover:not(:disabled) .q-arrow { transform: translateX(3px); }

/* ---------- Questions ---------- */
.q-cat-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 0.85rem;
}
.q-qtext {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1.5rem;
}
.q-options { display: grid; gap: 0.7rem; margin-bottom: 1.75rem; }
.q-option {
  font-family: inherit; text-align: left;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: var(--light-bg); color: var(--text);
  border: 1.5px solid var(--light-border); border-radius: var(--radius);
  cursor: pointer; font-size: 0.95rem; line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}
.q-option:hover { border-color: var(--accent); background: var(--light-surface); }
.q-option__mark {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--light-border); position: relative;
  transition: border-color 0.15s;
}
.q-option.is-selected { border-color: var(--accent); background: var(--accent-tint); }
.q-option.is-selected .q-option__mark { border-color: var(--accent); }
.q-option.is-selected .q-option__mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
.q-nav { display: flex; justify-content: space-between; gap: 1rem; }
.q-nav .q-btn { flex: 0 0 auto; min-width: 120px; }

/* ---------- Calculating ---------- */
.q-calc { text-align: center; color: var(--text-muted); }
.q-spinner {
  width: 44px; height: 44px; margin: 0 auto 1.25rem;
  border: 3px solid var(--light-border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Results ---------- */
.q-result__head { text-align: center; }
.q-scorebig {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.5rem, 2.5rem + 5vw, 5.5rem); line-height: 1;
  color: var(--accent-deep); margin: 0.25rem 0 0.75rem;
}
.q-scoreof { font-size: 0.35em; color: var(--text-faint); font-weight: 500; }
.q-tierbadge {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--accent-tint); color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.q-result__headline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 1rem;
}
.q-result__body { color: var(--text-muted); font-size: 1rem; text-align: left; }

.q-breakdown-title, .q-cta-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.25rem; margin-bottom: 1.25rem;
}
.q-bars { display: grid; gap: 1.1rem; margin-bottom: 1.25rem; }
.q-bar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.q-bar__name { font-weight: 600; font-size: 0.9rem; }
.q-bar__pct { font-weight: 700; font-size: 0.9rem; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.q-bar__pct::after { content: "/5"; font-size: 0.72em; color: var(--text-faint); font-weight: 500; }
.q-bar__track {
  height: 9px; border-radius: var(--radius-pill);
  background: var(--light-bg-2); overflow: hidden; border: 1px solid var(--light-border);
}
.q-bar__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  border-radius: var(--radius-pill);
  transition: width 0.9s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.q-focus {
  font-size: 0.95rem; color: var(--text-muted);
  padding-top: 1.1rem; border-top: 1px solid var(--light-border);
}
.q-focus strong { color: var(--text); }

/* CTA card */
.q-cta-card { text-align: center; }
.q-cta-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.q-calendly { margin-bottom: 1rem; }
.q-result__foot { text-align: center; margin-top: 1.5rem; }
.q-result__foot a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.q-result__foot a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .q-nav { flex-direction: column-reverse; }
  .q-nav .q-btn { width: 100%; }
  .q-header { padding: 0.9rem 1.1rem; }
  .q-brand img { height: 24px; }
  .q-back { font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
  .q-back__full { display: none; }
  .q-back__short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Gate alert (Domain 4 & 5 diagnostic) ---------- */
.q-gate-alert {
  background: #FEF0EF;
  border-left: 3px solid #8B2F28;
  color: #8B2F28;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
