.diagnosis {
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 55%, #233d9c 0, transparent 52%), linear-gradient(135deg,#080e2a,#11163f);
  color: #fff;
}
.diagnosis-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 7vw, 105px); align-items: center; }
.diagnosis .eyebrow { color: #b1d9ff; }
.diagnosis-intro > p:not(.eyebrow) { margin-top: 20px; color: #d7e2ff; max-width: 35ch; }
.diagnosis-topics { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.diagnosis-topics li { border: 1px solid #98aff366; padding: 5px 11px; border-radius: 99px; font-size: .875rem; background: #172650; }
.diagnosis-stage { position: relative; isolation: isolate; padding: 12px 23px 18px; min-width: 0; }
.deck { position: absolute; inset: 22px 15px; z-index: -1; pointer-events: none; }
.deck-side { position: absolute; inset: 0; border-radius: 28px; border: 1px solid #a6baff75; display: flex; align-items: end; padding: 10px 22px; }
.deck-left { transform: translate(-5%, 1%) rotate(-8deg); background: linear-gradient(135deg,#482090,#142964 72%); }
.deck-right { transform: translate(5%, 2%) rotate(8deg); justify-content: end; background: linear-gradient(225deg,#1377b9,#27265d 72%); }
.deck-side span { color: #d0deff; font-size: .8rem; font-weight: 700; }
.quiz {
  --glow: #6f4deb;
  position: relative; min-width: 0; color: white; border: 1px solid #b2c6ff9c; border-radius: 25px;
  background: radial-gradient(ellipse at 94% 2%, var(--glow), transparent 53%), linear-gradient(145deg,#182b60,#0e1537 65%);
  padding: clamp(19px, 3.2vw, 37px); box-shadow: 0 28px 70px #03072090;
}
.quiz[data-tint="budget"],.quiz[data-tint="channels"] { --glow: #245db7; }
.quiz[data-tint="operations"],.quiz[data-tint="result"] { --glow: #207f98; }
.quiz[data-tint="creative"],.quiz[data-tint="response"] { --glow: #8d3ab8; }
.quiz-meta { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; font-size: .875rem; }
.quiz progress { display: block; width: 100%; height: 5px; margin: 11px 0 24px; border: 0; border-radius: 20px; overflow: hidden; background: #ccd8ff47; accent-color: #82ddff; }
.quiz progress::-webkit-progress-bar { background: #ccd8ff47; }
.quiz progress::-webkit-progress-value { background: #82ddff; }
.quiz progress::-moz-progress-bar { background: #82ddff; }
.quiz-topic { width: fit-content; max-width: 100%; margin-bottom: 12px; padding: 3px 11px; border: 1px solid #adbaff70; border-radius: 99px; background: #131f52; color: #ddeaff; font-size: .875rem; font-weight: 800; }
.quiz-body h3 { min-height: 3em; font-size: clamp(1.25rem, 2.35vw, 2rem); text-wrap: pretty; }
.quiz-body h3:focus { outline: none; }
.quiz-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz button { font: inherit; cursor: pointer; }
.quiz-actions button { border: 1px solid #c0cdff87; border-radius: 15px; padding: 9px; color: #fff; background: #283766; }
.quiz-actions button[data-answer="yes"] { color: #061c48; background: linear-gradient(125deg,#d6f1ff,#8ed4ff); border-color: #b5e9ff; }
.quiz-actions strong,.quiz-actions span { display: block; line-height: 1.4; }
.quiz-actions strong { font-size: 1.3rem; letter-spacing: .1em; }
.quiz-actions span { font-size: .875rem; }
.quiz-footer { margin-top: 12px; min-height: 26px; }
.quiz-back,.result-actions button { color: #dbe6ff; border: 0; padding: 3px 0; background: transparent; text-decoration: underline; text-underline-offset: .22em; }
.quiz-back:disabled { visibility: hidden; }
.quiz button:focus-visible { outline: 3px solid #ffd371; outline-offset: 4px; }
.quiz[data-tint="result"] h3 { min-height: 0; }
.result-label { margin-top: 10px; color: #d7e2ff; }
.quiz-results { list-style: none; margin: 12px 0 18px; padding: 0; }
.quiz-results li { border-top: 1px solid #a9b9ee55; padding: 8px 0; }
.quiz-results span { display: block; color: #dce6ff; font-size: .9rem; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.result-actions .button { padding: 9px 14px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: enter .55s ease-out both; }
  .hero-photo { animation: enter .65s .12s ease-out both; }
  .is-in-view { animation: enter .55s cubic-bezier(.2,.7,.3,1) both; }
  .cards article:nth-child(2).is-in-view { animation-delay: .07s; }
  .cards article:nth-child(3).is-in-view { animation-delay: .14s; }
  .button,.quiz-actions button,.cards article,.related article { transition: transform .22s ease, box-shadow .22s ease; }
  .button:active,.quiz-actions button:active { transform: scale(.97); }
  @media (hover:hover) {
    .button:hover,.quiz-actions button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #071b5130; }
    .cards article:hover,.related article:hover { transform: translateY(-5px); box-shadow: 0 15px 28px #071b5126; }
  }
  @keyframes enter { from { opacity: .2; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 820px) {
  .diagnosis-layout { grid-template-columns: 1fr; }
  .diagnosis-stage { width: min(100%, 575px); margin-inline: auto; }
  nav { column-gap: 5px; }
  nav a { font-size: clamp(.73rem, 2.7vw, .9rem); white-space: nowrap; }
}
@media (max-width: 420px) {
  .diagnosis-stage { padding-inline: 10px; }
  .deck-side { padding-inline: 12px; }
}
