.diagnostico-page {
  --diag-gold: #d4af37;
  --diag-ink: #111418;
  --diag-panel: #171c24;
  --diag-line: rgba(226, 232, 239, 0.12);
  --diag-muted: #a8b2c1;
  background:
    radial-gradient(ellipse at 82% 10%, rgba(212, 175, 55, 0.075), transparent 34rem),
    var(--diag-ink);
  color: #e2e8ef;
  min-height: 100vh;
}

.diagnostico-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.diagnostico-header,
.diagnostico-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.diagnostico-header {
  min-height: 78px;
  border-bottom: 1px solid var(--diag-line);
}

.diagnostico-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.diagnostico-brand img {
  width: 38px;
  height: 38px;
}

.diagnostico-brand > span > span {
  color: var(--diag-gold);
}

.diagnostico-header > p,
.diagnostico-footer {
  color: var(--diag-muted);
  font-size: 0.78rem;
}

.diagnostico-header > p {
  margin: 0;
  letter-spacing: 0.04em;
}

#main-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.diagnostico-screen {
  width: 100%;
  padding-block: 72px;
  animation: screen-enter 220ms ease-out both;
}

.diagnostico-screen[hidden] {
  display: none;
}

.diagnostico-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: center;
  gap: clamp(36px, 8vw, 110px);
}

.eyebrow,
.question-dimension {
  margin: 0 0 16px;
  color: var(--diag-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 5.2vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.intro-subtitle {
  max-width: 620px;
  margin: 22px 0 24px;
  color: #d4dbe4;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.intro-description {
  max-width: 640px;
  margin: 0 0 14px;
  color: #aeb8c6;
  line-height: 1.75;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:focus-visible,
.answer-option:focus-within {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.button-primary {
  background: var(--diag-gold);
  color: #111418;
}

.button-primary:hover {
  background: #e4c04a;
  transform: translateY(-1px);
}

.privacy-note {
  margin: 14px 0 0;
  color: #8894a3;
  font-size: 0.78rem;
}

.intro-aside {
  padding: 30px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23, 28, 36, 0.95), rgba(17, 20, 24, 0.72));
}

.aside-mark,
.result-index {
  color: var(--diag-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.intro-aside h2 {
  margin: 28px 0 12px;
  color: #f5f7fa;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.intro-aside p {
  margin: 0;
  color: #aeb8c6;
  font-size: 0.9rem;
  line-height: 1.7;
}

.aside-rule {
  width: 42px;
  height: 1px;
  margin: 26px 0 18px;
  background: var(--diag-gold);
}

.intro-aside .aside-note {
  color: #e2e8ef;
  font-size: 0.82rem;
  font-weight: 600;
}

.question-screen {
  max-width: 800px;
  margin-inline: auto;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #aeb8c6;
  font-size: 0.78rem;
}

.progress-row span:first-child {
  color: #fff;
  font-weight: 700;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(226, 232, 239, 0.13);
}

.progress-track > span {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: var(--diag-gold);
  transition: width 220ms ease;
}

.question-fieldset {
  min-width: 0;
  margin: 52px 0 0;
  padding: 0;
  border: 0;
}

.question-fieldset .question-dimension {
  display: block;
  padding: 0;
}

.question-title {
  max-width: 720px;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 64px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 232, 239, 0.13);
  border-radius: 12px;
  background: rgba(23, 28, 36, 0.72);
  color: #d8dee7;
  cursor: pointer;
  line-height: 1.55;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.answer-option:hover {
  border-color: rgba(212, 175, 55, 0.62);
}

.answer-option:has(input:checked) {
  border-color: var(--diag-gold);
  background: rgba(212, 175, 55, 0.09);
  color: #fff;
}

.answer-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--diag-gold);
}

.answer-score {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(226, 232, 239, 0.09);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
}

.answer-option:has(input:checked) .answer-score {
  background: var(--diag-gold);
  color: #111418;
}

.answer-text {
  flex: 1;
}

.validation-message {
  margin: 14px 0 0;
  color: #ffb4a9;
  font-size: 0.88rem;
}

.question-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.button-quiet {
  border-color: rgba(226, 232, 239, 0.2);
  background: transparent;
  color: #d8dee7;
}

.button-quiet:hover {
  border-color: rgba(226, 232, 239, 0.55);
  background: rgba(226, 232, 239, 0.06);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.result-screen {
  max-width: 900px;
  margin-inline: auto;
}

.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--diag-line);
}

.result-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.result-score {
  margin: 12px 0 0;
  color: var(--diag-gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.result-index {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.7;
}

.result-message {
  max-width: 790px;
  margin: 24px 0 30px;
  color: #d2d9e2;
  font-size: 1.08rem;
  line-height: 1.75;
}

.result-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-card,
.recommendation-card,
.contact-card {
  border: 1px solid var(--diag-line);
  border-radius: 14px;
  background: rgba(23, 28, 36, 0.76);
}

.result-card {
  padding: 22px;
}

.result-card h2,
.recommendation-card h2,
.contact-card h2 {
  margin: 0;
  color: #f5f7fa;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.result-card p,
.recommendation-card > p:not(.eyebrow),
.contact-card > div > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #aeb8c6;
  font-size: 0.9rem;
  line-height: 1.7;
}

.result-card-muted {
  border-color: rgba(212, 175, 55, 0.2);
}

.recommendation-card {
  margin-top: 14px;
  padding: 24px;
  border-color: rgba(212, 175, 55, 0.28);
}

.recommendation-card .eyebrow,
.contact-card .eyebrow {
  margin-bottom: 10px;
}

.focus-note {
  padding-top: 12px;
  border-top: 1px solid var(--diag-line);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 14px;
  padding: 24px;
}

.contact-card > div {
  max-width: 540px;
}

.contact-card .button {
  flex: 0 0 auto;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.result-footer > p {
  margin: 0;
  color: #8995a4;
  font-size: 0.76rem;
}

.result-footer .button {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.8rem;
}

.diagnostico-footer {
  min-height: 64px;
  gap: 20px;
  border-top: 1px solid var(--diag-line);
}

.diagnostico-footer span:first-child {
  color: #e2e8ef;
  font-weight: 800;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .diagnostico-shell {
    width: min(100% - 36px, 560px);
  }

  .diagnostico-header {
    min-height: 66px;
  }

  .diagnostico-screen {
    padding-block: 40px;
  }

  .diagnostico-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-copy h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.4rem);
  }

  .intro-aside {
    padding: 22px;
  }

  .intro-aside h2 {
    margin-top: 16px;
  }

  .question-fieldset {
    margin-top: 36px;
  }

  .answer-option {
    min-height: 62px;
    padding: 14px;
  }

  .result-columns {
    grid-template-columns: 1fr;
  }

  .contact-card {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .contact-card .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .diagnostico-shell {
    width: calc(100% - 28px);
  }

  .diagnostico-header > p {
    font-size: 0.7rem;
  }

  .progress-row {
    font-size: 0.72rem;
  }

  .question-title {
    font-size: 1.72rem;
  }

  .result-heading {
    gap: 12px;
  }

  .result-index {
    font-size: 0.62rem;
  }

  .result-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnostico-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-block: 12px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
