/* Simulation Test — PROFI brand (uses public-shell.css tokens) */

.fun-gradient,
.fq-hero-gradient {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--maroon-dark) 45%, var(--maroon) 100%);
}

.fq-page {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.fq-page-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.fq-badge-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fq-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 0.75rem;
  line-height: 1.25;
}

.fq-test-id {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--mid);
}

.fq-test-id code {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon);
  background: rgba(135, 35, 50, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.fq-email-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(255, 249, 240, 0.95));
  border: 1px solid rgba(22, 163, 74, 0.2);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--charcoal);
}

.fq-email-notice--muted {
  background: rgba(135, 35, 50, 0.04);
  border-color: rgba(135, 35, 50, 0.1);
}

.fq-email-notice-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.fq-email-notice p {
  margin: 0;
}

.fq-email-notice strong {
  color: var(--maroon-dark);
  word-break: break-all;
}

/* Main result card */
.fq-result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(135, 35, 50, 0.08);
}

.fq-result-card-head {
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, #9a3a4a 100%);
  position: relative;
  overflow: hidden;
}

.fq-result-card-head::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(197, 147, 88, 0.15);
  pointer-events: none;
}

.fq-result-purpose {
  font-size: 0.8rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.fq-result-predicate {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 700;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.fq-result-confidence {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.fq-result-card-body {
  padding: 1.5rem 1.25rem;
}

/* Minat bakat — RIASEC */
.fq-riasec-wrap {
  text-align: center;
}

.fq-riasec-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border: 3px solid var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--maroon-dark);
  box-shadow: 0 8px 24px rgba(197, 147, 88, 0.25);
}

.fq-riasec-headline {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
}

.fq-riasec-archetype {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.5;
}

/* Penjurusan */
.fq-match-wrap {
  text-align: center;
}

.fq-match-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--maroon), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fq-match-track {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.fq-match-reason {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.55;
}

/* Jurusan kuliah list */
.fq-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin-bottom: 0.75rem;
}

.fq-major-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fq-major-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--light);
  border: 1px solid rgba(135, 35, 50, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fq-major-item:first-child {
  background: linear-gradient(135deg, rgba(197, 147, 88, 0.12), rgba(255, 249, 240, 0.9));
  border-color: rgba(197, 147, 88, 0.35);
  box-shadow: 0 4px 16px rgba(197, 147, 88, 0.12);
}

.fq-major-rank {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 800;
}

.fq-major-item:first-child .fq-major-rank {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
}

.fq-major-info {
  flex: 1;
  min-width: 0;
}

.fq-major-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.3;
}

.fq-major-reason {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 2px;
  line-height: 1.4;
}

.fq-major-pct {
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--maroon);
}

/* Disclaimer */
.fq-disclaimer {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid rgba(197, 147, 88, 0.25);
  font-size: 0.75rem;
  color: var(--mid);
  line-height: 1.55;
}

/* Upsell — laporan lengkap */
.fq-upsell {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(135, 35, 50, 0.1);
  box-shadow: var(--shadow);
}

.fq-upsell-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fq-upsell-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(135, 35, 50, 0.1), rgba(197, 147, 88, 0.15));
  font-size: 1.15rem;
}

.fq-upsell-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.fq-upsell-sub {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 2px;
}

.fq-upsell-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fq-upsell-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.45;
}

.fq-upsell-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 800;
}

/* Actions */
.fq-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.fq-actions .btn {
  justify-content: center;
  width: 100%;
  font-size: 0.9rem;
}

.fq-btn-pdf {
  background: linear-gradient(135deg, var(--success), #15803d);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}

.fq-btn-pdf:hover {
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}

.fq-pdf-download-btn:disabled,
.fq-pdf-download-btn.fq-pdf-download-btn--loading {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
  transform: none;
}

.fq-pdf-download-btn--loading .fq-pdf-download-label::before {
  content: '';
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.45rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: fq-pdf-spin 0.65s linear infinite;
}

@keyframes fq-pdf-spin {
  to { transform: rotate(360deg); }
}

.fq-link-muted {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--mid);
  text-decoration: none;
  padding: 0.35rem;
}

.fq-link-muted:hover {
  color: var(--maroon);
}

/* Back link */
.fq-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  margin-bottom: 1rem;
}

.fq-back-link--below {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0;
}

.fq-back-link:hover {
  text-decoration: underline;
}

/* Start / form page */
.fq-start-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(135, 35, 50, 0.08);
}

.fq-start-hero {
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, #9a3a4a 100%);
  position: relative;
  overflow: hidden;
}

.fq-start-hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -15%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(197, 147, 88, 0.12);
  pointer-events: none;
}

.fq-start-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
}

.fq-start-sub {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

.fq-start-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.fq-form {
  padding: 1.35rem 1.25rem 1.5rem;
}

/* Wizard steps */
.fq-wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 1.25rem 0.25rem;
  margin: 0;
}

.fq-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4.5rem;
}

.fq-wizard-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--mid);
  background: var(--light);
  border: 2px solid rgba(135, 35, 50, 0.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.fq-wizard-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s;
}

.fq-wizard-line {
  flex: 1;
  max-width: 3.5rem;
  height: 2px;
  margin: 0 0.35rem;
  margin-bottom: 1.1rem;
  background: rgba(135, 35, 50, 0.12);
  border-radius: 1px;
}

.fq-wizard-step.is-active .fq-wizard-dot {
  color: var(--white);
  background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
  border-color: var(--maroon);
  box-shadow: 0 2px 10px rgba(135, 35, 50, 0.25);
}

.fq-wizard-step.is-active .fq-wizard-label {
  color: var(--maroon);
  font-weight: 700;
}

.fq-wizard-step.is-done .fq-wizard-dot {
  color: var(--white);
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  border-color: var(--gold-dark);
}

.fq-wizard-step.is-done .fq-wizard-label {
  color: var(--charcoal);
}

.fq-wizard-panel {
  display: none;
}

.fq-wizard-panel.is-active {
  display: block;
  animation: fqWizardIn 0.28s ease;
}

@keyframes fqWizardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fq-step1-error {
  margin-top: -0.25rem;
  margin-bottom: 0.85rem;
}

.fq-purpose-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(197, 147, 88, 0.12), rgba(255, 249, 240, 0.95));
  border: 1px solid rgba(197, 147, 88, 0.35);
}

.fq-purpose-summary-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.fq-purpose-summary-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fq-purpose-summary-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
}

.fq-purpose-summary-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--maroon-dark);
}

.fq-purpose-summary-change {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--maroon);
  background: var(--white);
  border: 1px solid rgba(135, 35, 50, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.fq-purpose-summary-change:hover {
  background: var(--cream);
  border-color: rgba(197, 147, 88, 0.45);
}

.fq-step-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
}

.fq-step-actions .fq-submit {
  width: 100%;
  justify-content: center;
}

.fq-step-actions .btn-outline {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid);
  background: transparent;
  border: 1.5px solid rgba(135, 35, 50, 0.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fq-step-actions .btn-outline:hover {
  color: var(--maroon);
  background: rgba(135, 35, 50, 0.04);
  border-color: rgba(135, 35, 50, 0.25);
}

@media (min-width: 480px) {
  .fq-step-actions {
    flex-direction: row;
    align-items: stretch;
  }

  .fq-step-actions .btn-outline {
    flex: 0 0 auto;
    width: auto;
    min-width: 7rem;
  }

  .fq-step-actions .fq-submit {
    flex: 1;
  }
}

.fq-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.fq-legend {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mid);
  margin-bottom: 0.75rem;
  padding: 0;
}

.fq-field {
  margin-bottom: 0.85rem;
}

.fq-field:last-child {
  margin-bottom: 0;
}

.fq-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.fq-input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid rgba(135, 35, 50, 0.12);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.fq-input::placeholder {
  color: rgba(107, 90, 94, 0.55);
}

.fq-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 147, 88, 0.2);
}

/* Purpose radio cards */
.fq-fieldset-purpose {
  margin-bottom: 1.35rem;
}

.fq-purpose-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.4;
}

.fq-saved-identity-hint {
  margin: -0.15rem 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #166534;
  background: rgba(22, 101, 52, 0.08);
  border: 1px solid rgba(22, 101, 52, 0.16);
}

.fq-purpose-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fq-purpose-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fq-purpose-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid rgba(135, 35, 50, 0.1);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.fq-purpose-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fq-purpose-card:hover {
  border-color: rgba(197, 147, 88, 0.45);
  background: var(--cream);
  box-shadow: 0 2px 12px rgba(135, 35, 50, 0.06);
}

.fq-purpose-card:active {
  transform: scale(0.985);
}

.fq-purpose-card:has(.fq-purpose-input:focus-visible) {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 147, 88, 0.28);
}

.fq-purpose-card:has(.fq-purpose-input:checked) {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(197, 147, 88, 0.12) 0%, rgba(255, 249, 240, 0.98) 100%);
  box-shadow:
    0 4px 20px rgba(197, 147, 88, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.fq-purpose-card:has(.fq-purpose-input:checked) .fq-purpose-accent {
  opacity: 1;
  transform: scaleY(1);
}

.fq-purpose-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 3rem;
  min-height: 3rem;
  padding: 0.35rem 0.25rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(135, 35, 50, 0.08), rgba(135, 35, 50, 0.03));
  border: 1px solid rgba(135, 35, 50, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fq-purpose-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.fq-purpose-code-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--maroon);
}

.fq-purpose-card:has(.fq-purpose-input:checked) .fq-purpose-code {
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  border-color: rgba(197, 147, 88, 0.5);
  transform: scale(1.03);
}

.fq-purpose-card:has(.fq-purpose-input:checked) .fq-purpose-code-text {
  color: var(--charcoal);
}

.fq-purpose-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.fq-purpose-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.25;
}

.fq-purpose-card:has(.fq-purpose-input:checked) .fq-purpose-name {
  color: var(--maroon-dark);
}

.fq-purpose-desc {
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.45;
}

.fq-purpose-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.fq-purpose-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--maroon);
  background: rgba(135, 35, 50, 0.07);
  border: 1px solid rgba(135, 35, 50, 0.08);
}

.fq-purpose-card:has(.fq-purpose-input:checked) .fq-purpose-tag {
  background: rgba(197, 147, 88, 0.2);
  border-color: rgba(197, 147, 88, 0.35);
  color: var(--charcoal);
}

/* Custom radio indicator */
.fq-purpose-radio {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid rgba(135, 35, 50, 0.22);
  background: var(--white);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.fq-purpose-radio-mark {
  width: 0.45rem;
  height: 0.75rem;
  border-right: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(45deg) scale(0.4);
  transform-origin: center;
  margin-top: -0.15rem;
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.fq-purpose-card:has(.fq-purpose-input:checked) .fq-purpose-radio {
  border-color: var(--gold-dark);
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  box-shadow: 0 2px 8px rgba(197, 147, 88, 0.35);
}

.fq-purpose-card:has(.fq-purpose-input:checked) .fq-purpose-radio-mark {
  border-color: var(--charcoal);
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.fq-purpose-card--minat_bakat:has(.fq-purpose-input:checked) .fq-purpose-accent {
  background: linear-gradient(180deg, #872332, #c59358);
}

.fq-purpose-card--penjurusan:has(.fq-purpose-input:checked) .fq-purpose-accent {
  background: linear-gradient(180deg, #5c4a6e, #872332);
}

.fq-purpose-card--jurusan_kuliah:has(.fq-purpose-input:checked) .fq-purpose-accent {
  background: linear-gradient(180deg, #2d6a6a, #872332);
}

.fq-disclaimer-form {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.fq-alert {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.fq-alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.fq-submit {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .fq-page {
    padding: 2rem 1.25rem 3rem;
  }

  .fq-form {
    padding: 1.5rem 1.5rem 1.75rem;
  }

  .fq-start-hero {
    padding: 2rem 1.5rem 1.65rem;
  }
}

/* ── Index / catalog page ── */
body.fq-index-page main.public-main {
  background: var(--cream);
}

.fq-index {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.fq-index-hero {
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--maroon-dark) 48%, var(--maroon) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.fq-index-hero::after {
  content: '';
  position: absolute;
  top: -35%;
  right: -15%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(197, 147, 88, 0.14);
  pointer-events: none;
}

.fq-index-kicker {
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(197, 147, 88, 0.2);
  border: 1px solid rgba(197, 147, 88, 0.35);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fq-index-title {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.fq-index-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 249, 240, 0.88);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.fq-index-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
}

.fq-index-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fq-index-section {
  margin-bottom: 1.25rem;
}

.fq-index-section-title {
  margin: 0 0 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
}

.fq-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.fq-audience-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid rgba(135, 35, 50, 0.08);
  padding: 0.95rem 0.9rem 1rem;
  box-shadow: 0 2px 12px rgba(135, 35, 50, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.fq-audience-card.is-active {
  border-color: rgba(197, 147, 88, 0.45);
}

.fq-audience-card.is-active:hover {
  box-shadow: 0 8px 28px rgba(197, 147, 88, 0.15);
  transform: translateY(-2px);
}

.fq-audience-card.is-soon {
  opacity: 0.72;
  background: var(--light);
}

.fq-audience-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.fq-audience-badge {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--maroon-dark);
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.fq-audience-badge--soon {
  color: var(--mid);
  background: rgba(135, 35, 50, 0.06);
  border-color: rgba(135, 35, 50, 0.1);
}

.fq-audience-title {
  margin: 0 0 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.88rem, 2.8vw, 1.05rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
}

.fq-audience-desc {
  margin: 0;
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  line-height: 1.45;
  color: var(--mid);
}

.fq-audience-tests {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0 0;
  border-top: 1px solid rgba(135, 35, 50, 0.08);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fq-audience-tests li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

.fq-audience-action {
  margin-top: auto;
  padding-top: 0.85rem;
}

.fq-audience-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  text-decoration: none;
}

.fq-audience-soon-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid);
}

.fq-index-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0;
}

.fq-index-lookup {
  margin-bottom: 1.25rem;
}

.fq-index-lookup-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid rgba(135, 35, 50, 0.1);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(135, 35, 50, 0.05);
}

.fq-index-lookup-title {
  margin: 0 0 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 700;
  color: var(--charcoal);
}

.fq-index-lookup-lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--mid);
}

.fq-index-lookup-form {
  display: grid;
  gap: 0.45rem;
}

.fq-index-lookup-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--maroon-dark);
}

.fq-index-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.fq-index-lookup-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(135, 35, 50, 0.16);
  background: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.fq-index-lookup-input:focus {
  outline: none;
  border-color: rgba(197, 147, 88, 0.75);
  box-shadow: 0 0 0 3px rgba(197, 147, 88, 0.18);
}

.fq-index-lookup-btn {
  min-height: 2.75rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

.fq-index-lookup-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--mid);
}

.fq-index-lookup-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  padding: 0.08rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(135, 35, 50, 0.06);
  color: var(--maroon-dark);
}

.fq-index-lookup-error {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b42318;
  font-weight: 600;
}

@media (min-width: 640px) {
  .fq-index-lookup-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 1.15rem;
  }
}

@media (max-width: 480px) {
  .fq-index-lookup-row {
    grid-template-columns: 1fr;
  }

  .fq-index-lookup-btn {
    width: 100%;
  }
}

.fq-index-disclaimer p {
  margin: 0;
  flex: 1;
}

.fq-arrow {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -0.05rem;
}

/* ── CSS icons (no emoji / no SVG files) ── */
.fq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
  box-shadow: 0 4px 12px rgba(135, 35, 50, 0.25);
  position: relative;
  flex-shrink: 0;
}

.fq-audience-card.is-soon .fq-icon {
  background: linear-gradient(145deg, #9a8a8e, #7a6a6e);
  box-shadow: none;
}

.fq-icon--book::before {
  content: '';
  width: 13px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 1px 3px 3px 1px;
  border-left-width: 3px;
  box-shadow: inset -2px 0 0 rgba(255, 255, 255, 0.25);
}

.fq-icon--cap::before {
  content: '';
  position: absolute;
  top: 11px;
  width: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
}

.fq-icon--cap::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 7px solid rgba(255, 255, 255, 0.85);
}

.fq-icon--briefcase::before {
  content: '';
  width: 16px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  margin-top: 4px;
}

.fq-icon--briefcase::after {
  content: '';
  position: absolute;
  top: 9px;
  width: 8px;
  height: 4px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.fq-icon--building::before {
  content: '';
  width: 16px;
  height: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92) 0 0) 2px 4px / 4px 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92) 0 0) 10px 4px / 4px 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.92) 0 0) 6px 10px / 4px 4px no-repeat,
    rgba(255, 255, 255, 0.92);
  border-radius: 1px 1px 0 0;
  clip-path: polygon(0 100%, 0 0, 100% 0, 100% 100%);
}

.fq-mini-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  position: relative;
  flex-shrink: 0;
}

.fq-mini-icon--clock::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.85;
}

.fq-mini-icon--clock::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 8px;
  width: 1.5px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 3px 2px 0 currentColor;
}

.fq-mini-icon--spark::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 7px;
  width: 2px;
  height: 14px;
  background: currentColor;
  border-radius: 1px;
}

.fq-mini-icon--spark::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.fq-mini-icon--mail::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 1px;
  width: 14px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.fq-mini-icon--mail::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg) skew(8deg, 8deg);
  transform-origin: top left;
}

.fq-mini-icon--info::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1.5px solid var(--maroon);
  border-radius: 50%;
  opacity: 0.55;
}

.fq-mini-icon--info::after {
  content: 'i';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, serif;
  color: var(--maroon);
  line-height: 1;
}

.fq-mini-icon--compass::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1.5px solid var(--maroon);
  border-radius: 50%;
  opacity: 0.5;
}

.fq-mini-icon--compass::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 7px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 10px solid var(--maroon);
  opacity: 0.75;
}

.fq-mini-icon--route::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--maroon);
  border-radius: 50%;
  opacity: 0.45;
}

.fq-mini-icon--route::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--maroon);
  border-bottom: 1.5px solid var(--maroon);
  border-radius: 0 0 4px 0;
  opacity: 0.75;
}

.fq-mini-icon--mortar::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 1px;
  width: 14px;
  height: 4px;
  background: var(--maroon);
  border-radius: 1px;
  opacity: 0.65;
}

.fq-mini-icon--mortar::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 2px;
  width: 12px;
  height: 6px;
  border: 1.5px solid var(--maroon);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  opacity: 0.75;
}

.fq-mini-icon--briefcase::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 12px;
  height: 8px;
  border: 1.5px solid var(--maroon);
  border-radius: 2px;
  opacity: 0.75;
}

.fq-mini-icon--briefcase::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 3px;
  border: 1.5px solid var(--maroon);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  opacity: 0.75;
}

.fq-mini-icon--rocket::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  width: 8px;
  height: 10px;
  background: var(--maroon);
  border-radius: 2px 2px 1px 1px;
  opacity: 0.75;
}

.fq-mini-icon--rocket::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--maroon);
  opacity: 0.85;
}

.fq-mini-icon--layers::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 2px;
  width: 11px;
  height: 7px;
  border: 1.5px solid var(--maroon);
  border-radius: 2px;
  opacity: 0.45;
}

.fq-mini-icon--layers::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 11px;
  height: 7px;
  border: 1.5px solid var(--maroon);
  border-radius: 2px;
  background: var(--cream);
  opacity: 0.85;
  box-shadow: 0 1px 0 rgba(135, 35, 50, 0.08);
}

@media (min-width: 640px) {
  .fq-index {
    padding: 1.75rem 1.25rem 3rem;
  }

  .fq-index-hero {
    padding: 2rem 1.75rem 1.65rem;
  }

  .fq-audience-grid {
    gap: 1rem;
  }

  .fq-audience-card {
    padding: 1.15rem 1.15rem 1.25rem;
  }
}

/* ── Take quiz page ── */
.fq-take {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.fq-take-progress {
  margin-bottom: 1.15rem;
}

.fq-take-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mid);
}

.fq-take-segment {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fq-take-counter {
  flex-shrink: 0;
  color: var(--maroon);
}

.fq-take-bar {
  height: 6px;
  background: rgba(135, 35, 50, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fq-take-bar--seg {
  height: 4px;
  margin-top: 0.35rem;
  background: rgba(135, 35, 50, 0.05);
}

.fq-take-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-dark));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fq-take-bar-fill--seg {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.fq-take-card {
  flex: 1;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(135, 35, 50, 0.08);
  box-shadow: 0 4px 20px rgba(135, 35, 50, 0.07);
  padding: 1.35rem 1.15rem;
}

.fq-take-question {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--charcoal);
}

.fq-take-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.fq-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--charcoal);
  background: var(--light);
  border: 2px solid rgba(135, 35, 50, 0.1);
  border-radius: calc(var(--radius) + 2px);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.fq-option:hover:not(.is-selected):not(:disabled) {
  border-color: rgba(197, 147, 88, 0.45);
  background: var(--cream);
}

.fq-option:active:not(:disabled) {
  transform: scale(0.985);
}

.fq-option:disabled {
  cursor: wait;
  opacity: 1;
}

.fq-option.is-selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(197, 147, 88, 0.14), rgba(255, 249, 240, 0.98));
  box-shadow:
    0 4px 16px rgba(197, 147, 88, 0.18),
    inset 0 0 0 1px rgba(197, 147, 88, 0.12);
  color: var(--maroon-dark);
  font-weight: 600;
}

.fq-option-indicator {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 2px solid rgba(135, 35, 50, 0.2);
  background: var(--white);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.fq-option-check {
  width: 0.35rem;
  height: 0.6rem;
  border-right: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(45deg) scale(0.3);
  opacity: 0;
  margin-top: -0.1rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.fq-option.is-selected .fq-option-indicator {
  border-color: var(--gold-dark);
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  box-shadow: 0 2px 6px rgba(197, 147, 88, 0.35);
}

.fq-option.is-selected .fq-option-check {
  border-color: var(--charcoal);
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.fq-option-label {
  flex: 1;
  min-width: 0;
}

.fq-take-saving {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--mid);
}

.fq-take-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 0.25rem;
}

.fq-take-nav-back,
.fq-take-nav-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-size: 0.88rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.fq-take-nav-back {
  flex: 0 0 auto;
  min-width: 6.5rem;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  color: var(--mid);
  background: transparent;
  border: 1.5px solid rgba(135, 35, 50, 0.15);
}

.fq-take-nav-back:hover:not(:disabled) {
  color: var(--maroon);
  background: rgba(135, 35, 50, 0.04);
  border-color: rgba(135, 35, 50, 0.25);
}

.fq-take-nav-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fq-take-nav-next {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
}

.fq-take-nav-next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fq-take-break,
.fq-take-done {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.fq-take-done {
  text-align: center;
  max-width: 24rem;
}

/* Segment break — full card */
.fq-break-card {
  width: 100%;
  max-width: 26rem;
  background: var(--white);
  border-radius: calc(var(--radius-lg) + 2px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(135, 35, 50, 0.12);
  border: 1px solid rgba(135, 35, 50, 0.08);
}

.fq-break-head {
  position: relative;
  padding: 1.75rem 1.35rem 1.5rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, #9a3a4a 100%);
  overflow: hidden;
}

.fq-break-head::before {
  content: '';
  position: absolute;
  top: -45%;
  left: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(197, 147, 88, 0.12);
  pointer-events: none;
}

.fq-break-head::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.fq-break-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(197, 147, 88, 0.2);
  border: 1px solid rgba(197, 147, 88, 0.35);
}

.fq-break-check {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin: 1rem auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fq-break-check-mark {
  width: 0.65rem;
  height: 1.1rem;
  border-right: 3px solid var(--charcoal);
  border-bottom: 3px solid var(--charcoal);
  transform: rotate(45deg);
  margin-top: -0.2rem;
}

.fq-break-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.fq-break-subtitle {
  position: relative;
  z-index: 1;
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 249, 240, 0.88);
}

.fq-break-body {
  padding: 1.25rem 1.25rem 0.5rem;
}

.fq-break-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.fq-break-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.35rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid rgba(197, 147, 88, 0.2);
}

.fq-break-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--maroon);
  line-height: 1;
}

.fq-break-stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
  line-height: 1.25;
}

.fq-break-progress-wrap {
  margin-bottom: 1.15rem;
}

.fq-break-progress-bar {
  height: 8px;
  background: rgba(135, 35, 50, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fq-break-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.fq-break-progress-caption {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
}

.fq-break-steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(135, 35, 50, 0.08);
  overflow: hidden;
}

.fq-break-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border-bottom: 1px solid rgba(135, 35, 50, 0.06);
}

.fq-break-step:last-child {
  border-bottom: none;
}

.fq-break-step.is-done {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.06), rgba(255, 255, 255, 0.98));
}

.fq-break-step.is-next {
  background: linear-gradient(90deg, rgba(197, 147, 88, 0.12), rgba(255, 249, 240, 0.98));
  border-left: 3px solid var(--gold);
}

.fq-break-step.is-upcoming {
  opacity: 0.55;
}

.fq-break-step-dot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(135, 35, 50, 0.06);
}

.fq-break-step.is-done .fq-break-step-dot {
  background: linear-gradient(145deg, #16a34a, #15803d);
}

.fq-break-step-check {
  width: 0.35rem;
  height: 0.6rem;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  margin-top: -0.08rem;
}

.fq-break-step.is-next .fq-break-step-dot {
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
}

.fq-break-step.is-next .fq-mini-icon::before,
.fq-break-step.is-next .fq-mini-icon::after {
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.fq-break-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

.fq-break-step.is-done .fq-break-step-label {
  color: var(--maroon-dark);
}

.fq-break-step.is-next .fq-break-step-label {
  color: var(--maroon);
  font-weight: 700;
}

.fq-break-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(135, 35, 50, 0.04), rgba(255, 249, 240, 0.95));
  border: 1px solid rgba(135, 35, 50, 0.1);
}

.fq-break-tip-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.fq-break-tip-content {
  flex: 1;
  min-width: 0;
}

.fq-break-tip-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--maroon);
}

.fq-break-tip-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.fq-break-next-preview {
  padding: 0.85rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(197, 147, 88, 0.45);
  background: rgba(197, 147, 88, 0.06);
}

.fq-break-next-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin-bottom: 0.45rem;
}

.fq-break-next-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.fq-break-next-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--maroon-dark);
}

.fq-icon--sm {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.fq-icon--sm.fq-icon--book::before {
  width: 10px;
  height: 13px;
}

.fq-break-foot {
  padding: 0.75rem 1.25rem 1.35rem;
  text-align: center;
  background: var(--light);
  border-top: 1px solid rgba(135, 35, 50, 0.06);
}

.fq-break-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  text-decoration: none;
  font-size: 0.9rem;
}

.fq-break-foot-note {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--mid);
  line-height: 1.45;
}

.fq-take-done-text {
  margin: 0 0 1rem;
  color: var(--mid);
  font-size: 0.95rem;
}

/* Submit loading overlay */
.fq-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(197, 147, 88, 0.18), transparent 70%),
    rgba(45, 31, 35, 0.72);
  backdrop-filter: blur(6px);
}

.fq-submit-loader {
  width: min(100%, 18rem);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(165deg, rgba(255, 252, 248, 0.98), rgba(255, 249, 240, 0.94));
  border: 1px solid rgba(197, 147, 88, 0.35);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.fq-submit-orbit {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
}

.fq-submit-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(135, 35, 50, 0.12);
  border-top-color: var(--maroon);
  border-right-color: var(--gold);
  animation: fq-orbit-spin 0.9s linear infinite;
}

.fq-submit-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  margin: -0.425rem 0 0 -0.425rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--maroon));
  box-shadow: 0 0 18px rgba(197, 147, 88, 0.55);
  animation: fq-orbit-pulse 1.2s ease-in-out infinite;
}

.fq-submit-title {
  margin: 0 0 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--maroon-dark);
}

.fq-submit-sub {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid);
  min-height: 1.25rem;
  transition: opacity 0.25s ease;
}

.fq-submit-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.fq-submit-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  animation: fq-dot-bounce 1.1s ease-in-out infinite;
}

.fq-submit-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.fq-submit-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fq-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes fq-orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes fq-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* ── Report page (Simulation Test) — premium web layout ── */
body.fq-report-page-body main.public-main {
  background: linear-gradient(180deg, #fff9f0 0%, #f5ebe0 42%, #f9fafb 100%);
  padding-bottom: calc(5rem + var(--mobile-bottom-nav-h, 0px) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 960px) {
  body.fq-report-page-body main.public-main {
    padding-bottom: 2.5rem;
  }
}

.fq-page.fq-report-page {
  max-width: min(1120px, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.fq-report-page {
  min-width: 0;
}

.fq-report-hero {
  margin: 0 -1rem 1rem;
  background: linear-gradient(135deg, #3d1520 0%, #872332 52%, #9a3a4a 100%);
  color: #fff9f0;
  border-radius: 0 0 1.5rem 1.5rem;
  box-shadow: 0 16px 48px rgba(61, 21, 32, 0.22);
}

.fq-report-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
}

.fq-report-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 249, 240, 0.82);
  text-decoration: none;
  margin-bottom: 1rem;
}

.fq-report-back:hover {
  color: #fff;
}

.fq-report-hero-top {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .fq-report-hero-top {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
}

.fq-report-hero-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C59358;
  margin-bottom: 0.45rem;
}

.fq-report-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: #fff;
}

.fq-report-hero-lead {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 249, 240, 0.9);
  margin: 0 0 0.85rem;
  max-width: 38rem;
}

.fq-report-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 249, 240, 0.75);
}

.fq-report-hero-meta code {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.76rem;
}

.fq-report-hero-spotlight {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 147, 88, 0.35);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  backdrop-filter: blur(6px);
}

.fq-report-spotlight-code {
  display: block;
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #C59358;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fq-report-spotlight-score {
  display: block;
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #C59358;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.fq-report-spotlight-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: #fff;
}

.fq-report-spotlight-sub {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 249, 240, 0.82);
}

.fq-report-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  .fq-report-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fq-report-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
}

.fq-report-stat--wide {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .fq-report-stat--wide {
    grid-column: auto;
  }
}

.fq-report-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 249, 240, 0.65);
  margin-bottom: 0.2rem;
}

.fq-report-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.fq-report-stat-value--sm {
  font-size: 0.82rem;
  font-weight: 700;
}

.fq-report-nav {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin: 0 calc(-1 * max(1rem, env(safe-area-inset-left))) 1rem;
  background: rgba(255, 249, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135, 35, 50, 0.1);
}

.fq-report-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.55rem 1rem;
  scrollbar-width: none;
}

.fq-report-nav-inner::-webkit-scrollbar {
  display: none;
}

.fq-report-nav-link {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mid, #6b5a5e);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(135, 35, 50, 0.08);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fq-report-nav-link:hover {
  color: var(--maroon, #872332);
  border-color: rgba(135, 35, 50, 0.2);
  background: #fff;
}

.fq-report-shell {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .fq-report-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.fq-report-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.fq-report-panel {
  background: #fff;
  border: 1px solid rgba(135, 35, 50, 0.1);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(135, 35, 50, 0.05);
  overflow: hidden;
  scroll-margin-top: calc(72px + 3.5rem);
}

.fq-report-panel--muted {
  background: rgba(255, 255, 255, 0.72);
}

.fq-report-panel-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(135, 35, 50, 0.08);
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.65), #fff);
}

.fq-report-panel-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(135, 35, 50, 0.08);
  font-size: 1rem;
}

.fq-report-panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red-dark, #5E121D);
  margin: 0 0 0.15rem;
}

.fq-report-panel-desc {
  font-size: 0.8rem;
  color: var(--mid, #6b5a5e);
  margin: 0;
  line-height: 1.45;
}

.fq-report-panel-body {
  padding: 1rem 1.15rem 1.15rem;
}

.fq-report-callout {
  background: linear-gradient(135deg, rgba(135, 35, 50, 0.06), rgba(197, 147, 88, 0.1));
  border: 1px solid rgba(197, 147, 88, 0.25);
  border-radius: 0.85rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.85rem;
}

.fq-report-callout-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--charcoal, #2d1f23);
}

.fq-report-insight-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .fq-report-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fq-report-insight-card {
  background: var(--cream, #fff9f0);
  border: 1px solid rgba(197, 147, 88, 0.2);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
}

.fq-report-insight-card--note {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.25);
}

.fq-report-insight-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--charcoal, #2d1f23);
}

.fq-report-insight-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon, #872332);
  margin-bottom: 0.35rem;
}

.fq-report-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fq-report-bar-item {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(135, 35, 50, 0.08);
  background: #fafafa;
}

.fq-report-bar-item--top {
  border-color: rgba(135, 35, 50, 0.22);
  background: linear-gradient(135deg, rgba(135, 35, 50, 0.04), rgba(197, 147, 88, 0.08));
}

.fq-report-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.fq-report-bar-label {
  font-size: 0.88rem;
  color: var(--charcoal, #2d1f23);
}

.fq-report-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.fq-report-bar-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--maroon, #872332);
}

.fq-report-bar-track {
  height: 0.55rem;
  background: rgba(135, 35, 50, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.fq-report-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5E121D, #872332 55%, #C59358);
}

.fq-score-band {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.fq-score-band--dominant { background: #5E121D; color: #fff; }
.fq-score-band--strong { background: rgba(135, 35, 50, 0.15); color: #5E121D; }
.fq-score-band--medium { background: rgba(197, 147, 88, 0.22); color: #6b4f2a; }
.fq-score-band--low { background: rgba(107, 90, 94, 0.12); color: #6b5a5e; }
.fq-score-band--minimal { background: #f3f4f6; color: #9ca3af; }

.fq-report-top-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .fq-report-top-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fq-report-top-card {
  position: relative;
  padding: 0.95rem 0.85rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(135, 35, 50, 0.1);
  background: #fff;
}

.fq-report-top-card:first-child {
  border-color: rgba(135, 35, 50, 0.25);
  box-shadow: 0 6px 20px rgba(135, 35, 50, 0.08);
}

.fq-report-top-rank {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--maroon, #872332);
}

.fq-report-top-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  padding-right: 1.5rem;
  color: var(--charcoal, #2d1f23);
}

.fq-report-top-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--maroon, #872332);
  margin: 0 0 0.35rem;
  line-height: 1;
}

.fq-report-top-narrative {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mid, #6b5a5e);
  margin: 0;
}

.fq-report-chip-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fq-report-chip-heading {
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.fq-report-chip-heading--strength { color: #15803d; }
.fq-report-chip-heading--dev { color: #b45309; }

.fq-report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fq-report-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.fq-report-chip--strength {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.fq-report-chip--dev {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.fq-report-purpose-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(135, 35, 50, 0.05), rgba(197, 147, 88, 0.1));
  border: 1px solid rgba(135, 35, 50, 0.12);
  margin-bottom: 1rem;
}

.fq-report-purpose-hero--riasec .fq-riasec-code {
  flex-shrink: 0;
  font-size: 2rem;
}

.fq-report-purpose-score {
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--maroon, #872332);
  line-height: 1;
}

.fq-report-purpose-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon, #872332);
  margin: 0 0 0.25rem;
}

.fq-report-purpose-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--charcoal, #2d1f23);
}

.fq-report-purpose-text,
.fq-report-purpose-meta,
.fq-report-purpose-tip {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--mid, #6b5a5e);
  margin: 0;
}

.fq-report-purpose-tip {
  margin-top: 0.5rem;
}

.fq-report-purpose-cols {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .fq-report-purpose-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fq-report-purpose-block {
  margin-bottom: 0.85rem;
}

.fq-report-purpose-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red-dark, #5E121D);
  margin: 0 0 0.45rem;
}

.fq-report-purpose-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--charcoal, #2d1f23);
}

.fq-report-purpose-line {
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0 0 0.45rem;
  color: var(--charcoal, #2d1f23);
}

.fq-report-detail-grid {
  display: grid;
  gap: 0.65rem;
}

.fq-report-tree {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fq-report-tree-node {
  position: relative;
}

.fq-report-tree-root {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--maroon-dark, #5E121D);
  background: rgba(255, 249, 240, 0.85);
  border: 1px solid rgba(135, 35, 50, 0.1);
  border-left: 4px solid var(--maroon, #872332);
  border-radius: calc(var(--radius) + 1px);
}

.fq-report-tree-children {
  position: relative;
  margin: 0.45rem 0 0 0.85rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid rgba(197, 147, 88, 0.45);
}

.fq-report-tree-branch {
  position: relative;
  padding: 0.45rem 0 0.55rem 0.75rem;
}

.fq-report-tree-branch::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 1.05rem;
  width: 0.75rem;
  height: 2px;
  background: rgba(197, 147, 88, 0.55);
}

.fq-report-tree-branch:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -1rem;
  top: 1.05rem;
  bottom: -0.15rem;
  width: 2px;
  background: rgba(197, 147, 88, 0.25);
}

.fq-report-tree-branch-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--maroon, #872332);
}

.fq-report-tree-leaves {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--charcoal, #2d1f23);
}

.fq-report-tree-leaves li {
  position: relative;
  padding-left: 1.05rem;
}

.fq-report-tree-leaves li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--maroon, #872332);
  font-weight: 700;
  line-height: 1.55;
}

.fq-report-tree-leaves li + li {
  margin-top: 0.2rem;
}

.fq-report-detail-card {
  padding: 0.75rem 0.85rem;
  border-radius: calc(var(--radius) + 1px);
  border: 1px solid rgba(135, 35, 50, 0.1);
  border-left: 3px solid var(--maroon, #872332);
  background: rgba(255, 249, 240, 0.55);
}

.fq-report-detail-label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--maroon-dark, #5E121D);
}

.fq-report-detail-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--charcoal, #2d1f23);
}

.fq-report-detail-list li + li {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .fq-report-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fq-report-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fq-report-mini-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 35%) auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
}

.fq-report-mini-bar .fq-report-bar-track {
  min-width: 0;
}

.fq-report-major-list {
  margin-bottom: 1rem;
}

.fq-report-ranking {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fq-report-ranking-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: var(--cream, #fff9f0);
  border: 1px solid rgba(197, 147, 88, 0.18);
}

.fq-report-ranking-num {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(135, 35, 50, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--maroon, #872332);
  flex-shrink: 0;
}

.fq-report-ranking-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fq-report-ranking-info strong {
  font-size: 0.86rem;
  color: var(--charcoal, #2d1f23);
}

.fq-report-ranking-info span {
  font-size: 0.74rem;
  color: var(--mid, #6b5a5e);
}

.fq-report-timeline {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .fq-report-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fq-report-timeline-card {
  border: 1px solid rgba(135, 35, 50, 0.1);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: #fafafa;
}

.fq-report-timeline-head {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.fq-report-timeline-icon {
  font-size: 1.15rem;
}

.fq-report-timeline-phase {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon, #872332);
  margin: 0;
}

.fq-report-timeline-title {
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
  color: var(--charcoal, #2d1f23);
}

.fq-report-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--mid, #6b5a5e);
}

.fq-report-timeline-list li {
  position: relative;
  padding-left: 1.05rem;
}

.fq-report-timeline-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--maroon, #872332);
  font-weight: 700;
  line-height: 1.55;
}

.fq-report-timeline-list li + li {
  margin-top: 0.35rem;
}

.fq-report-muted {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mid, #6b5a5e);
  margin: 0;
}

.fq-report-disclaimer-box {
  margin-top: 0.85rem;
}

.fq-report-footer-note {
  font-size: 0.75rem;
  color: #8a7579;
  margin: 0.85rem 0 0;
}

.fq-report-sidebar {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 960px) {
  .fq-report-sidebar {
    display: flex;
  }
}

.fq-report-sidebar-card {
  background: #fff;
  border: 1px solid rgba(135, 35, 50, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(135, 35, 50, 0.05);
}

.fq-report-sidebar-card--sticky {
  position: sticky;
  top: 4.5rem;
}

.fq-report-sidebar-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon, #872332);
  margin: 0 0 0.25rem;
}

.fq-report-sidebar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--charcoal, #2d1f23);
}

.fq-report-sidebar-text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--mid, #6b5a5e);
  margin: 0 0 0.85rem;
}

.fq-report-sidebar-btn {
  width: 100%;
  margin-bottom: 0.65rem;
}

.fq-report-sidebar-link {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--maroon, #872332);
  text-decoration: none;
}

.fq-report-sidebar-heading {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--charcoal, #2d1f23);
}

.fq-report-quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fq-report-quick-list li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.8rem;
}

.fq-report-quick-rank {
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(135, 35, 50, 0.08);
  font-weight: 800;
  color: var(--maroon, #872332);
  flex-shrink: 0;
}

.fq-report-quick-list strong {
  display: block;
  color: var(--charcoal, #2d1f23);
}

.fq-report-quick-list span {
  color: var(--mid, #6b5a5e);
  font-size: 0.74rem;
}

.fq-report-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--mobile-bottom-nav-h, 62px) + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  padding: 0.65rem max(1rem, env(safe-area-inset-left)) 0.65rem max(1rem, env(safe-area-inset-right));
  background: rgba(255, 249, 240, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(135, 35, 50, 0.12);
  box-shadow: 0 -8px 24px rgba(61, 21, 32, 0.08);
}

@media (min-width: 960px) {
  .fq-report-dock {
    display: none;
  }
}

.fq-report-dock-btn {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.fq-report-mobile-quick {
  display: none;
  margin: 0 max(0.875rem, env(safe-area-inset-left)) 0.85rem max(0.875rem, env(safe-area-inset-right));
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(135, 35, 50, 0.1);
  box-shadow: 0 4px 16px rgba(135, 35, 50, 0.05);
}

@media (max-width: 959px) {
  .fq-report-mobile-quick {
    display: block;
  }
}

.fq-report-mobile-quick-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--maroon, #872332);
}

.fq-report-mobile-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 479px) {
  .fq-report-mobile-quick-grid {
    grid-template-columns: 1fr;
  }
}

.fq-report-mobile-quick-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.65rem;
  background: var(--cream, #fff9f0);
  border: 1px solid rgba(197, 147, 88, 0.2);
  min-width: 0;
}

.fq-report-mobile-quick-item span {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--maroon, #872332);
}

.fq-report-mobile-quick-item strong {
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--charcoal, #2d1f23);
  word-break: break-word;
}

.fq-report-mobile-quick-item em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--mid, #6b5a5e);
}

/* Legacy PDF/table helpers (report-body.php) */
.fq-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0.5rem 0 0.75rem;
}

.fq-report-table th,
.fq-report-table td {
  border: 1px solid rgba(135, 35, 50, 0.12);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: middle;
}

.fq-report-table th {
  background: rgba(197, 147, 88, 0.12);
  color: var(--red-dark, #5E121D);
  font-weight: 700;
}

.fq-report-disclaimer-text {
  font-size: 0.78rem;
  color: #8a7579;
  line-height: 1.55;
}

.fq-report-h2,
.fq-report-h3,
.fq-report-section,
.fq-report-card,
.fq-report-kicker,
.fq-report-title {
  /* kept for PDF partial compatibility */
}

/* ── Report page responsive ── */
@media (max-width: 767px) {
  .fq-report-hero-inner {
    padding: 1rem 1rem 1.25rem;
  }

  .fq-report-hero-title {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }

  .fq-report-hero-lead {
    font-size: 0.86rem;
  }

  .fq-report-spotlight-code {
    font-size: 2rem;
  }

  .fq-report-spotlight-score {
    font-size: 1.85rem;
  }

  .fq-report-stat-value {
    font-size: 0.92rem;
  }

  .fq-report-stat-value--sm {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .fq-report-nav-inner {
    padding: 0.5rem max(1rem, env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
  }

  .fq-report-nav-link {
    font-size: 0.72rem;
    padding: 0.38rem 0.65rem;
  }

  .fq-report-panel-head {
    padding: 0.85rem 0.95rem;
    gap: 0.55rem;
  }

  .fq-report-panel-body {
    padding: 0.85rem 0.95rem 1rem;
  }

  .fq-report-panel-title {
    font-size: 0.98rem;
  }

  .fq-report-panel-desc {
    font-size: 0.76rem;
  }

  .fq-report-callout-text {
    font-size: 0.86rem;
  }

  .fq-report-purpose-hero {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .fq-report-purpose-hero--riasec .fq-riasec-code {
    font-size: 1.75rem;
    align-self: flex-start;
  }

  .fq-report-purpose-score {
    font-size: 1.75rem;
  }

  .fq-report-mini-bar {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .fq-report-mini-bar strong {
    font-size: 0.78rem;
  }

  .fq-report-major-list .fq-major-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .fq-report-major-list .fq-major-pct {
    margin-left: auto;
  }

  .fq-report-ranking-info strong {
    word-break: break-word;
  }
}

@media (max-width: 639px) {
  .fq-page.fq-report-page {
    padding-left: 0;
    padding-right: 0;
  }

  .fq-report-hero {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 0 1rem 1rem;
  }

  .fq-report-nav {
    margin-left: 0;
    margin-right: 0;
    top: 60px;
  }

  .fq-report-shell {
    padding-left: max(0.875rem, env(safe-area-inset-left));
    padding-right: max(0.875rem, env(safe-area-inset-right));
  }

  .fq-report-stat-grid {
    grid-template-columns: 1fr;
  }

  .fq-report-stat--wide {
    grid-column: auto;
  }

  .fq-report-bar-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .fq-report-bar-meta {
    width: 100%;
    justify-content: space-between;
  }

  .fq-report-bar-label {
    font-size: 0.84rem;
    line-height: 1.35;
    padding-right: 0;
  }

  .fq-report-top-grid {
    grid-template-columns: 1fr;
  }

  .fq-report-timeline {
    grid-template-columns: 1fr;
  }

  .fq-report-chip {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }

  .fq-report-panel {
    border-radius: 0.85rem;
    scroll-margin-top: calc(60px + 3.25rem);
  }
}

@media (max-width: 379px) {
  .fq-report-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .fq-report-nav-link {
    font-size: 0.68rem;
    padding: 0.35rem 0.55rem;
  }

  .fq-report-dock-btn {
    font-size: 0.88rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

@media (min-width: 960px) {
  .fq-report-nav {
    margin-left: calc(-1 * max(1rem, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(1rem, env(safe-area-inset-right)));
  }
}
