:root {
  --growth-navy: #0b2f63;
  --growth-blue: #175ba7;
  --growth-teal: #2f8f91;
  --growth-ink: #10233f;
  --growth-muted: #5f6f82;
  --growth-line: #dce5ed;
  --growth-paper: #f7f8f3;
}

.home-diagnostic,
.home-teacher {
  width: min(100% - 40px, 1180px);
  margin: clamp(72px, 10vw, 130px) auto 0;
}

.home-diagnostic {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid rgba(23, 91, 167, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 143, 145, 0.14), transparent 34%),
    #f4f8f8;
}

.home-diagnostic h2,
.home-teacher h2 {
  margin: 8px 0 18px;
  color: var(--growth-navy);
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-diagnostic-copy > p:not(.pro-kicker),
.home-teacher-copy > p:not(.pro-kicker) {
  color: var(--growth-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.home-diagnostic-copy .pro-button {
  margin-top: 18px;
}

.home-diagnostic-preview {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 70px rgba(26, 58, 92, 0.11);
}

.diagnostic-preview-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--growth-line);
}

.diagnostic-preview-score strong {
  color: var(--growth-navy);
  font-size: 4.4rem;
  line-height: 0.8;
}

.diagnostic-preview-score span,
.home-diagnostic-preview > p {
  color: var(--growth-muted);
  font-weight: 800;
}

.diagnostic-preview-bars {
  display: grid;
  gap: 17px;
  padding: 24px 0;
}

.diagnostic-preview-bars span {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
}

.diagnostic-preview-bars b {
  color: var(--growth-ink);
  font-size: 0.86rem;
}

.diagnostic-preview-bars i {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e7edf1;
}

.diagnostic-preview-bars em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--growth-blue), var(--growth-teal));
}

.home-teacher {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  padding: clamp(42px, 6vw, 76px);
  border-radius: 34px;
  background: #eaf3f6;
}

.home-teacher-photo {
  position: relative;
  min-height: 500px;
}

.home-teacher-photo::before {
  content: "";
  position: absolute;
  inset: 20px 24px -18px -18px;
  border: 1px solid rgba(23, 91, 167, 0.24);
  border-radius: 26px;
}

.home-teacher-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 48%;
  border-radius: 26px;
}

.home-teacher-photo span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--growth-navy);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.home-teacher-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.home-teacher-principles span {
  padding-top: 15px;
  border-top: 1px solid #c5d9e1;
  color: var(--growth-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-teacher-principles strong {
  display: block;
  color: var(--growth-navy);
  font-size: 0.96rem;
}

.diagnostic-page {
  min-height: 100vh;
  color: var(--growth-ink);
  background:
    radial-gradient(circle at 10% 18%, rgba(47, 143, 145, 0.11), transparent 30%),
    linear-gradient(180deg, #fbfcf8, var(--growth-paper));
}

.diagnostic-shell {
  width: min(100% - 40px, 1120px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 100px) 0;
}

.diagnostic-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.diagnostic-kicker {
  margin: 0 0 10px;
  color: var(--growth-teal);
  font-weight: 950;
  letter-spacing: 0.03em;
}

.diagnostic-intro h1,
.diagnostic-result h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--growth-navy);
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.diagnostic-intro-copy > p:last-child,
.diagnostic-result-hero > div > p:last-child {
  max-width: 690px;
  color: var(--growth-muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.diagnostic-track-picker {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(16, 35, 63, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(23, 55, 88, 0.1);
}

.diagnostic-track-picker h2 {
  margin: 0 0 8px;
  color: var(--growth-navy);
}

.diagnostic-track-picker button {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--growth-line);
  border-radius: 17px;
  color: var(--growth-ink);
  text-align: right;
  background: #fff;
  cursor: pointer;
  transition: 180ms ease;
}

.diagnostic-track-picker button:hover,
.diagnostic-track-picker button:focus-visible {
  border-color: var(--growth-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(23, 91, 167, 0.11);
}

.diagnostic-track-picker span {
  color: var(--growth-teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.diagnostic-track-picker strong {
  color: var(--growth-navy);
  font-size: 1.15rem;
}

.diagnostic-track-picker small {
  color: var(--growth-muted);
  line-height: 1.55;
}

.diagnostic-quiz {
  width: min(100%, 820px);
  margin: 0 auto;
  scroll-margin-top: 112px;
}

.diagnostic-progress > div {
  display: flex;
  justify-content: space-between;
  color: var(--growth-muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.diagnostic-progress > i {
  display: block;
  overflow: hidden;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e3e9ec;
}

.diagnostic-progress em {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--growth-blue), var(--growth-teal));
  transition: width 260ms ease;
}

.diagnostic-question-card {
  margin-top: 24px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(16, 35, 63, 0.09);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 55, 88, 0.1);
}

.diagnostic-question-card > p:first-child {
  margin: 0 0 10px;
  color: var(--growth-teal);
  font-weight: 900;
}

.diagnostic-question-card h1 {
  margin: 0;
  color: var(--growth-navy);
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.24;
}

.diagnostic-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.diagnostic-options button {
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--growth-line);
  border-radius: 16px;
  color: var(--growth-ink);
  font-size: 1rem;
  font-weight: 850;
  background: #fbfcfa;
  cursor: pointer;
}

.diagnostic-options button:hover,
.diagnostic-options button:focus-visible {
  border-color: var(--growth-blue);
}

.diagnostic-options button.is-selected {
  color: #fff;
  border-color: var(--growth-blue);
  background: var(--growth-blue);
}

.diagnostic-feedback {
  margin: 18px 0 0;
  padding: 12px 15px;
  border-radius: 12px;
  color: #175a57;
  background: #e9f6f3;
  font-weight: 800;
}

.diagnostic-question-actions,
.diagnostic-result-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.diagnostic-question-actions button,
.diagnostic-result-actions button,
.diagnostic-result-actions a,
.diagnostic-result-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--growth-line);
  border-radius: 12px;
  color: var(--growth-navy);
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
}

.diagnostic-question-actions .diagnostic-next,
.diagnostic-result-cta {
  color: #fff;
  border-color: var(--growth-blue);
  background: var(--growth-blue);
}

.diagnostic-question-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.diagnostic-result {
  width: min(100%, 980px);
  margin: 0 auto;
}

.diagnostic-result-hero {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.diagnostic-result h1 {
  font-size: clamp(2.7rem, 6vw, 5.5rem);
}

.diagnostic-score {
  display: flex;
  width: 180px;
  height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  background: conic-gradient(var(--growth-teal) var(--score), #dfe7e9 0);
  box-shadow: inset 0 0 0 18px var(--growth-paper);
}

.diagnostic-score strong {
  color: var(--growth-navy);
  font-size: 3.7rem;
  line-height: 1;
}

.diagnostic-score span {
  color: var(--growth-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.diagnostic-result-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
  margin-top: 46px;
}

.diagnostic-result-grid > section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(16, 35, 63, 0.09);
  border-radius: 24px;
  background: #fff;
}

.diagnostic-result-grid h2 {
  margin: 0 0 22px;
  color: var(--growth-navy);
}

.diagnostic-domain-list {
  display: grid;
  gap: 19px;
}

.diagnostic-domain-item > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--growth-muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.diagnostic-domain-item i {
  display: block;
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e5ebee;
}

.diagnostic-domain-item em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--growth-blue), var(--growth-teal));
}

.diagnostic-recommendation {
  color: #fff;
  background: var(--growth-navy) !important;
}

.diagnostic-recommendation > p {
  color: #8ce3ed;
  font-weight: 900;
}

.diagnostic-recommendation h2,
.diagnostic-recommendation > p:not(:first-child) {
  color: #fff;
}

.diagnostic-recommendation > p:not(:first-child) {
  line-height: 1.75;
  opacity: 0.78;
}

.diagnostic-result-cta {
  margin-top: 16px;
  color: var(--growth-navy);
  border-color: #fff;
  background: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .home-diagnostic,
  .home-teacher,
  .diagnostic-intro,
  .diagnostic-result-grid {
    grid-template-columns: 1fr;
  }

  .home-teacher-photo {
    width: min(100%, 480px);
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .home-diagnostic,
  .home-teacher,
  .diagnostic-shell {
    width: min(100% - 24px, 1180px);
  }

  .home-diagnostic,
  .home-teacher {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .home-teacher-photo {
    min-height: 390px;
  }

  .home-teacher-principles,
  .diagnostic-options {
    grid-template-columns: 1fr;
  }

  .diagnostic-intro h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

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

  .diagnostic-score {
    width: 145px;
    height: 145px;
  }

  .diagnostic-result-actions,
  .diagnostic-question-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
