/* ===================================
   tqdiagnostic.com — Main Stylesheet
   Leads-dark register (tqbooks/ti family)
   =================================== */

:root {
  --blue:       #00567e;
  --gold:       #af9335;
  --black:      #2D2926;
  --dark-grey:  #4b4b4b;
  --light-grey: #97999b;
  --off-white:  #e9eaee;
  --white:      #ffffff;
  --error-red:  #e8867a;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-quote:   'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--off-white);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@supports (-moz-appearance: none) {
  body { -moz-osx-font-smoothing: auto; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 10;
}

.site-header img {
  height: 22px;
  width: auto;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background-color: var(--black);
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.supratitle {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: reveal 400ms ease-out both;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 40px;
  animation: reveal 500ms ease-out 80ms both;
}

.symptoms {
  list-style: none;
  margin-bottom: 32px;
  animation: reveal 500ms ease-out 160ms both;
}

.symptoms li {
  padding: 8px 0;
  font-size: 1.05rem;
  color: var(--off-white);
  font-weight: 300;
}

.anchor-line {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  margin: 32px 0 12px;
  animation: reveal 500ms ease-out 220ms both;
}

.meta-line {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: 40px;
  animation: reveal 500ms ease-out 260ms both;
}

.btn-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--black);
  background-color: var(--gold);
  padding: 16px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 200ms ease;
  animation: reveal 500ms ease-out 300ms both;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background-color: #c7a83f;
}

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

@media (prefers-reduced-motion: reduce) {
  .supratitle, .hero h1, .symptoms, .anchor-line, .meta-line, .btn-gold,
  .quiz-question {
    animation: none;
  }
}

/* --- Trust strip --- */
.trust-strip {
  border-top: 1px solid rgba(233, 234, 238, 0.1);
  padding: 40px 0;
  background-color: var(--black);
}

.trust-strip__label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: 20px;
}

.trust-strip__names {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--off-white);
  letter-spacing: 0.02em;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(233, 234, 238, 0.15);
  padding: 32px 0;
  background-color: var(--black);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--light-grey);
}

.site-footer a {
  color: var(--light-grey);
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--off-white);
  border-bottom-color: var(--light-grey);
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* --- Quiz --- */
.quiz-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background-color: var(--black);
}

.quiz-progress {
  margin-bottom: 32px;
}

.quiz-progress__track {
  height: 4px;
  border-radius: 2px;
  background-color: rgba(233, 234, 238, 0.15);
  overflow: hidden;
  margin-bottom: 10px;
}

.quiz-progress__fill {
  height: 100%;
  background-color: var(--off-white);
  transition: width 250ms ease;
}

.quiz-progress__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-grey);
  font-weight: 500;
}

.quiz-loading {
  color: var(--off-white);
  font-weight: 400;
  font-size: 1.05rem;
  padding: 40px 0;
}

.quiz-error {
  border-left: 3px solid var(--error-red);
  background-color: rgba(233, 234, 238, 0.05);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.quiz-error p {
  color: var(--off-white);
  font-weight: 400;
  margin-bottom: 12px;
}

.quiz-error__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quiz-question {
  border: none;
  animation: reveal 350ms ease-out both;
}

.quiz-question legend {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 24px;
}

.quiz-question legend:focus {
  outline: 2px solid var(--off-white);
  outline-offset: 4px;
}

.quiz-options {
  list-style: none;
}

.quiz-option {
  margin-bottom: 12px;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.quiz-option.is-checked {
  border-color: var(--off-white);
  background-color: rgba(0, 87, 126, 0.1);
}

.quiz-option label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  min-height: 24px;
}

.quiz-option input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.quiz-option label:focus-within {
  outline: 2px solid var(--off-white);
  outline-offset: 2px;
}

.quiz-option span {
  color: var(--off-white);
  font-weight: 400;
  font-size: 1rem;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--off-white);
  background-color: transparent;
  border: 1px solid var(--light-grey);
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--off-white);
}

.btn-ghost[hidden] {
  display: none;
}

.btn-gold:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .quiz-main { padding: 90px 0 40px; }
  .quiz-nav { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
  .quiz-nav .btn-gold,
  .quiz-nav .btn-ghost { text-align: center; }
}

/* --- Results --- */
.results-main {
  min-height: 100vh;
  padding: 140px 0 100px;
  background-color: var(--black);
}

.result-type__declaration {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--white);
}

.result-section {
  margin-top: 80px;
}

.result-section__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-grey);
  font-weight: 500;
  margin-bottom: 10px;
}

.result-section__heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 16px;
}

.result-section__copy {
  color: var(--off-white);
  font-weight: 400;
  line-height: 1.6;
  max-width: 56ch;
}

/* Mix graph: SVG shape with HTML labels at the four clock positions
   (HTML labels keep readable sizes at every breakpoint, unlike SVG text). */
.mix-graph {
  position: relative;
  max-width: 460px;
  margin: 40px auto 0;
  padding: 56px 92px;
}

.mix-graph svg {
  display: block;
  width: 100%;
  height: auto;
}

.mix-graph__label {
  position: absolute;
  line-height: 1.3;
}

.mix-graph__label--inventor {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mix-graph__label--producer {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mix-graph__label--performer {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
}

.mix-graph__label--judge {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.mix-graph__name {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-grey);
  font-weight: 500;
}

.mix-graph__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--off-white);
}

/* Spectrum */
.spectrum {
  margin-top: 40px;
}

.spectrum svg {
  display: block;
  width: 100%;
  height: auto;
}

.spectrum__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-grey);
  font-weight: 500;
}

.spectrum__declaration {
  margin-top: 24px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

/* Result copy block */
.result-copy p {
  color: var(--off-white);
  font-weight: 400;
  line-height: 1.6;
  max-width: 56ch;
  margin-bottom: 16px;
}

.result-copy__recognize {
  list-style: none;
  margin: 8px 0 24px;
}

.result-copy__recognize li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--off-white);
  font-weight: 400;
  line-height: 1.6;
}

.result-copy__recognize li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--light-grey);
}

.result-copy__cta {
  margin-top: 28px;
}

/* A note on this result */
.result-note__body p {
  color: var(--off-white);
  font-weight: 400;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 14px;
}

/* The ways in */
.result-path {
  margin-top: 32px;
  max-width: 56ch;
}

.result-path__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
}

.result-path p {
  color: var(--off-white);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 10px;
}

.result-path__link {
  color: var(--off-white);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-path__link:hover,
.result-path__link:focus-visible {
  color: var(--white);
}

/* Deeper-report offer */
.result-offer {
  border-top: 1px solid rgba(233, 234, 238, 0.15);
  padding-top: 48px;
}

/* --- Opt-in form --- */
.offer-form {
  margin-top: 28px;
  max-width: 480px;
}

.offer-form__field {
  margin-bottom: 18px;
}

.offer-form__field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--off-white);
  margin-bottom: 8px;
}

.offer-form__optional {
  font-weight: 400;
  color: var(--light-grey);
}

.offer-form__field input {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--off-white);
  background-color: rgba(233, 234, 238, 0.05);
  /* light-grey border = 5.0:1 on black, clears the 3:1 non-text UI floor */
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  padding: 13px 14px;
  min-height: 24px;
}

.offer-form__field input:focus-visible {
  outline: 2px solid var(--off-white);
  outline-offset: 2px;
  border-color: var(--off-white);
}

.offer-form__field input[aria-invalid="true"] {
  border-color: var(--error-red);
}

/* Honeypot: removed from the layout, the a11y tree, and the tab order.
   Not display:none — some bots skip those; off-screen is the reliable form. */
.offer-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.offer-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}

.offer-form__consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--blue);
}

.offer-form__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--off-white);
  outline-offset: 2px;
}

.offer-form__consent label {
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--off-white);
  cursor: pointer;
}

.offer-form__privacy {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin: 12px 0 0 34px;
}

.offer-form__privacy a {
  color: var(--off-white);
  text-decoration: underline;
}

.offer-form__privacy a:focus-visible {
  outline: 2px solid var(--off-white);
  outline-offset: 2px;
}

.offer-form__error {
  color: var(--error-red);
  font-weight: 500;
  font-size: 0.92rem;
  margin: 18px 0 0;
}

.offer-form .btn-gold {
  margin-top: 24px;
}

.offer-success {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--white);
}

@media (max-width: 640px) {
  .results-main { padding: 110px 0 70px; }
  .result-section { margin-top: 60px; }
  .mix-graph { padding: 50px 74px; }
  .mix-graph__value { font-size: 0.95rem; }
}

/* --- Legal (privacy / terms) --- */
.legal-main {
  min-height: 100vh;
  padding: 140px 0 100px;
  background-color: var(--black);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}

.legal__updated {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-grey);
  font-weight: 500;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  margin: 40px 0 14px;
}

.legal p,
.legal li {
  color: var(--off-white);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal ul {
  list-style: none;
  margin-bottom: 14px;
}

.legal li {
  position: relative;
  padding-left: 20px;
}

.legal li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--light-grey);
}

.legal a {
  color: var(--off-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--white);
}

.legal__intro {
  font-size: 1.1rem;
  line-height: 1.7;
}
