/* Conversion-focused landing and one-question quiz flow. */
.hero-topline,
.quiz-header,
.about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-controls,
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switch {
  padding: 3px;
  border: 1px solid rgba(99, 121, 138, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.language-switch button {
  min-width: 44px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.language-switch button[aria-pressed="true"] {
  background: var(--strong);
  color: #fff;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(99, 121, 138, 0.22);
  border-radius: 999px;
  background: rgba(99, 121, 138, 0.08);
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trust-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(41, 70, 91, 0.12);
  border-radius: 999px;
  background: rgba(41, 70, 91, 0.05);
  color: var(--strong);
  font-size: 13px;
  font-weight: 700;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.value-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(41, 70, 91, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.value-card strong,
.value-card span {
  display: block;
}

.value-card strong {
  font-size: 16px;
}

.value-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--strong);
  font-weight: 700;
  text-underline-offset: 4px;
}

.micro-disclaimer,
.privacy-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.identity-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.identity-preview article {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(250, 250, 247, 0.78);
  box-shadow: 0 10px 24px rgba(31, 44, 56, 0.06);
}

.identity-preview article::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  right: -24px;
  bottom: -34px;
  border-radius: 50%;
  background: rgba(99, 121, 138, 0.1);
}

.identity-preview article:nth-child(2)::after {
  background: rgba(111, 127, 140, 0.12);
}

.identity-preview article:nth-child(3)::after {
  background: rgba(41, 70, 91, 0.1);
}

.identity-preview strong,
.identity-preview span {
  position: relative;
  z-index: 1;
  display: block;
}

.identity-preview strong {
  font-size: 20px;
}

.identity-preview span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.quiz-shell {
  min-height: 520px;
  margin-bottom: 20px;
  scroll-margin-top: 18px;
}

.quiz-header h2,
.completion-panel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.quiz-header > strong {
  color: var(--strong);
  font-size: 20px;
}

.progress-track {
  height: 8px;
  margin: 20px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 42, 33, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8497a5, var(--strong));
  transition: width 220ms ease;
}

.question-step {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(30, 43, 54, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(99, 121, 138, 0.04) 31px 32px);
}

.question-kicker {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
}

.question-step-title {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(25px, 4.5vw, 38px);
  line-height: 1.25;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.answer-option {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 14px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.answer-option span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(41, 70, 91, 0.08);
  color: var(--strong);
  font-size: 13px;
}

.answer-option strong {
  font-size: 14px;
  line-height: 1.35;
}

.answer-option:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 70, 91, 0.32);
}

.answer-option.selected {
  border-color: var(--strong);
  background: var(--strong);
  color: #fffdf8;
}

.answer-option.selected span {
  background: rgba(255, 255, 255, 0.16);
  color: #fffdf8;
}

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

.quiz-nav span {
  color: var(--muted);
  font-size: 13px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(99, 121, 138, 0.35);
  outline-offset: 3px;
}

.completion-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 28px) 0;
}

.biomarker-details {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.biomarker-details summary {
  padding: 18px 20px;
  cursor: pointer;
  color: var(--strong);
  font-weight: 800;
}

.biomarker-details .field-grid {
  padding: 0 20px 20px;
  margin-top: 0;
}

.completion-actions {
  align-items: center;
}

.result-button {
  min-width: 250px;
}

.showcase {
  scroll-margin-top: 18px;
}

.about-head {
  align-items: flex-end;
}

.about-head h2 {
  max-width: 38rem;
}

.info-number {
  display: block;
  margin-bottom: 18px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

@media (max-width: 720px) {
  .hero-topline,
  .quiz-header,
  .about-head,
  .quiz-nav {
    align-items: flex-start;
  }

  .identity-preview,
  .value-strip,
  .answer-list,
  .goal-options {
    grid-template-columns: 1fr;
  }

  .identity-preview article {
    min-height: 0;
  }

  .quiz-shell {
    min-height: 600px;
  }

  .question-step {
    padding: 22px 16px;
  }

  .answer-list {
    gap: 8px;
    margin-top: 22px;
  }

  .answer-option {
    min-height: 58px;
    padding: 10px 14px;
    flex-direction: row;
    justify-content: flex-start;
  }

  .answer-option strong {
    text-align: left;
  }

  .quiz-nav,
  .about-head {
    flex-direction: column;
  }

  .quiz-nav .secondary {
    width: auto;
  }

  .result-button {
    min-width: 0;
  }
}

/* Keep the first meaningful paint fully legible and prevent narrow-screen clipping. */
html,
body {
  overflow-x: hidden;
}

h1,
.lede,
.question-step-title {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .hero-topline {
    flex-wrap: wrap;
  }

  .hero-controls {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .lede {
    font-size: 16px;
  }

  .trust-strip span {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 20px);
    max-width: 960px;
  }

  .hero,
  .card,
  .identity-preview {
    width: 100%;
    min-width: 0;
  }
}
