/* ══════════════════════════════════════════════════════════
   NETWORKING ROI AUDIT — quiz.css
   The Hickory Algorithm · Design System Match
══════════════════════════════════════════════════════════ */

/* ── Fonts (match main site) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --void:       #0a0e14;
  --midnight:   #131b26;
  --deep:       #1a2330;
  --surface:    #1f2d3d;
  --border:     rgba(165, 184, 207, 0.14);
  --border-hi:  rgba(165, 184, 207, 0.28);
  --accent:     #EADE1C;
  --accent-dim: rgba(234, 222, 28, 0.12);
  --accent-mid: rgba(234, 222, 28, 0.25);
  --fog:        #A5B8CF;
  --text-hi:    #e8edf3;
  --text-lo:    #5a6b7d;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-ui:    'Montserrat', Arial, sans-serif;

  /* Archetype colors */
  --ghost-color:      #7a8a9a;
  --ghost-bg:         rgba(122, 138, 154, 0.1);
  --ghost-border:     rgba(122, 138, 154, 0.3);
  --broadcaster-color: #d4a017;
  --broadcaster-bg:   rgba(212, 160, 23, 0.1);
  --broadcaster-border: rgba(212, 160, 23, 0.3);
  --connector-color:  #3a8fd4;
  --connector-bg:     rgba(58, 143, 212, 0.1);
  --connector-border: rgba(58, 143, 212, 0.3);
  --cultivator-color: #2db88a;
  --cultivator-bg:    rgba(45, 184, 138, 0.1);
  --cultivator-border: rgba(45, 184, 138, 0.3);

  /* Dimension colors */
  --dim-followup:     #8b6fd4;
  --dim-referral:     #3a8fd4;
  --dim-strategy:     #2db88a;
  --dim-relationship: #d4a017;
}

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

.ha-quiz-section {
  background: var(--void);
  color: var(--text-hi);
  font-family: var(--font-ui);
  padding: 5rem 1.5rem 6rem;
  min-height: 100vh;
}

.ha-quiz-container {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Section Header ── */
.ha-quiz-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ha-quiz-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.ha-quiz-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text-hi);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ha-quiz-header h2 em {
  font-style: italic;
  color: var(--accent);
}

.ha-quiz-header p {
  color: var(--fog);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 50ch;
  margin: 0 auto;
}

/* ── Progress ── */
.ha-quiz-progress {
  margin-bottom: 2.5rem;
}

.ha-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.ha-progress-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}

.ha-progress-count {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-lo);
}

.ha-progress-track {
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.ha-progress-fill {
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Question Card ── */
.ha-question-card {
  background: var(--midnight);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem 1.75rem;
  animation: ha-fade-up 0.35s ease forwards;
}

@keyframes ha-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ha-question-dim-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 1.25rem;
}

.ha-question-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-hi);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* ── Options ── */
.ha-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.ha-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
  font-family: var(--font-ui);
}

.ha-option:hover {
  background: var(--surface);
  border-color: var(--border-hi);
}

.ha-option.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.ha-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.ha-option.selected .ha-option-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.ha-option.selected .ha-option-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--void);
  border-radius: 50%;
}

.ha-option-text {
  font-size: 0.88rem;
  color: var(--fog);
  line-height: 1.6;
  transition: color 0.2s;
}

.ha-option.selected .ha-option-text {
  color: var(--text-hi);
}

/* ── Nav Row ── */
.ha-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.ha-btn-back {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lo);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.ha-btn-back:hover { color: var(--fog); }
.ha-btn-back:disabled { opacity: 0.3; cursor: not-allowed; }

.ha-btn-next {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.ha-btn-next:hover { opacity: 0.88; transform: translateY(-1px); }
.ha-btn-next:disabled { opacity: 0.25; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════════════
   RESULTS
══════════════════════════════════════════════════════════ */

.ha-result {
  animation: ha-fade-up 0.4s ease forwards;
}

/* Score ring header */
.ha-result-hero {
  background: var(--midnight);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.ha-result-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.04;
  background: var(--accent);
  pointer-events: none;
}

.ha-score-ring-wrap {
  margin-bottom: 1.5rem;
}

.ha-score-ring-wrap svg {
  overflow: visible;
}

.ha-archetype-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 0.75rem;
}

.ha-archetype-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--text-hi);
  margin-bottom: 0.25rem;
}

.ha-archetype-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
}

/* Summary */
.ha-result-section {
  background: var(--midnight);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.ha-section-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: block;
}

.ha-summary-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--fog);
  line-height: 1.85;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 0;
}

/* Dimension scores */
.ha-dims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ha-dim-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.ha-dim-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-bottom: 0.4rem;
}

.ha-dim-score {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.ha-dim-bar-track {
  height: 2px;
  background: var(--border);
  border-radius: 99px;
}

.ha-dim-bar-fill {
  height: 2px;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Opportunity box */
.ha-opportunity-box {
  border-radius: 10px;
  border: 1px solid;
  padding: 1.25rem 1.4rem;
}

.ha-opp-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ha-opp-label::before {
  content: '✦';
  font-size: 0.55rem;
}

.ha-opp-text {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Actions */
.ha-actions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ha-action-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.ha-action-item:last-child { border-bottom: none; }

.ha-action-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ha-action-body {}

.ha-action-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.ha-action-detail {
  font-size: 0.82rem;
  color: var(--fog);
  line-height: 1.7;
}

/* CTA */
.ha-cta-box {
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.ha-cta-box p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--fog);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.ha-btn-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.ha-btn-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.ha-retake-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.ha-retake-btn:hover { color: var(--fog); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .ha-quiz-section { padding: 3.5rem 1rem 4rem; }
  .ha-question-card { padding: 1.5rem 1.25rem 1.25rem; }
  .ha-result-hero { padding: 2rem 1.25rem; }
  .ha-result-section { padding: 1.4rem 1.25rem; }
  .ha-dims-grid { grid-template-columns: 1fr; }
  .ha-cta-box { padding: 1.5rem 1.25rem; }
}
