:root {
  --bg: #eef5ff;
  --bg-soft: #d7e6fb;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(32, 90, 180, 0.14);
  --text: #12315f;
  --muted: #55729c;
  --accent: #2e67c7;
  --accent-2: #1bb3a9;
  --accent-3: #1a468a;
  --success: #1aa579;
  --danger: #cf4f67;
  --shadow: 0 22px 60px rgba(20, 58, 120, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at left 12%, rgba(86, 139, 235, 0.18), transparent 26%),
    radial-gradient(circle at right 16%, rgba(46, 103, 199, 0.1), transparent 24%),
    linear-gradient(180deg, #f5f9ff 0%, #eaf2fe 52%, #e2ecfb 100%);
}

.page-shell {
  width: min(1260px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow,
.kicker,
.screen-kicker,
.result-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 800;
}

.brand-copy strong,
.hero-panel h1,
.app-card h2,
.result-panel h3,
.cta-panel h3 {
  font-family: "Cormorant Garamond", serif;
}

.brand-copy strong {
  font-size: 1.5rem;
  line-height: 1;
}

.ghost-link,
.btn-link {
  text-decoration: none;
}

.ghost-link {
  color: var(--accent);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.main-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.hero-panel,
.app-card {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(24, 76, 154, 0.96), rgba(19, 58, 121, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef6ff;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -80px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.hero-panel h1 {
  margin: 12px 0 16px;
  font-size: clamp(3rem, 6vw, 4.9rem);
  line-height: 0.92;
}

.hero-text {
  color: rgba(234, 244, 255, 0.82);
  line-height: 1.75;
}

.hero-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.point-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.point-card strong {
  display: block;
  margin-bottom: 6px;
}

.point-card span {
  color: rgba(234, 244, 255, 0.78);
  line-height: 1.55;
}

.app-card {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 103, 199, 0.08);
  border: 1px solid rgba(46, 103, 199, 0.14);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.mini-progress,
.question-progress {
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(46, 103, 199, 0.1);
}

.mini-progress {
  height: 10px;
}

.question-progress {
  height: 12px;
  margin: 18px 0 22px;
}

.mini-progress-fill,
.question-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #1bb3a9, #2e67c7);
  transition: width 0.2s ease;
}

.screen {
  display: none;
  margin-top: 22px;
}

.screen.is-active {
  display: block;
}

.screen h2 {
  margin: 8px 0 12px;
  font-size: 2rem;
  line-height: 1;
}

.screen-copy {
  color: var(--muted);
  line-height: 1.7;
}

.choice-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(46, 103, 199, 0.12);
  border-radius: 22px;
  background: rgba(46, 103, 199, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.choice:hover,
.choice.is-selected {
  transform: translateY(-2px);
  border-color: rgba(46, 103, 199, 0.34);
  background: rgba(46, 103, 199, 0.1);
}

.choice-title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.choice-copy {
  color: var(--muted);
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.field-label {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.input-control {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(46, 103, 199, 0.14);
  background: rgba(46, 103, 199, 0.03);
  color: var(--text);
  font: inherit;
  outline: none;
}

.input-control:focus {
  border-color: rgba(46, 103, 199, 0.4);
  box-shadow: 0 0 0 4px rgba(46, 103, 199, 0.08);
}

.question-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.question-counter {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(46, 103, 199, 0.08);
  color: var(--accent);
  font-weight: 800;
}

.question-card,
.result-panel,
.cta-panel {
  padding: 22px;
  border-radius: 22px;
  background: rgba(46, 103, 199, 0.04);
  border: 1px solid rgba(46, 103, 199, 0.1);
}

.question-text {
  margin: 0 0 18px;
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 600;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-btn {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(46, 103, 199, 0.12);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.option-btn:hover,
.option-btn.is-selected {
  transform: translateY(-1px);
  border-color: rgba(46, 103, 199, 0.34);
  background: rgba(46, 103, 199, 0.08);
}

.option-letter {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin-right: 12px;
  background: rgba(46, 103, 199, 0.08);
  color: var(--accent);
  font-weight: 800;
}

.actions,
.cta-actions,
.result-panels {
  display: flex;
  gap: 12px;
}

.actions {
  margin-top: 22px;
  justify-content: space-between;
}

.result-shell {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.score-ring {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at center, #ffffff 56%, transparent 57%),
    conic-gradient(#59e0bf 0deg, #2e67c7 250deg, rgba(46, 103, 199, 0.12) 250deg 360deg);
  border: 1px solid rgba(46, 103, 199, 0.12);
}

.score-ring span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.score-ring small {
  width: 80px;
  display: block;
  color: var(--muted);
}

.result-copy h2 {
  margin: 8px 0 10px;
}

.result-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.result-panels {
  margin-bottom: 16px;
}

.result-panel {
  flex: 1;
}

.result-panel h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.tag-list,
.subject-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.tag-list.strong li {
  background: rgba(26, 165, 121, 0.12);
  color: var(--success);
}

.tag-list.weak li {
  background: rgba(207, 79, 103, 0.12);
  color: var(--danger);
}

.subject-list {
  display: grid;
  gap: 12px;
}

.subject-row {
  display: grid;
  grid-template-columns: 1.2fr 90px 1fr;
  align-items: center;
  gap: 12px;
}

.subject-row strong {
  text-transform: capitalize;
}

.subject-score {
  font-weight: 800;
  color: var(--accent-3);
}

.subject-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(46, 103, 199, 0.1);
  overflow: hidden;
}

.subject-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #1bb3a9, #2e67c7);
}

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

.cta-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-actions {
  min-width: 280px;
  flex-direction: column;
}

.primary-btn,
.secondary-btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 15px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #18b3a4, #2489d7);
}

.secondary-btn {
  color: var(--accent-3);
  background: rgba(46, 103, 199, 0.06);
  border: 1px solid rgba(46, 103, 199, 0.12);
}

.feedback {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.feedback.is-ok {
  color: var(--success);
}

@media (max-width: 980px) {
  .main-grid,
  .result-panels,
  .cta-panel,
  .choice-grid.two,
  .result-shell {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-panel,
  .app-card {
    padding: 22px;
  }

  .cta-actions {
    min-width: 0;
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .btn-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .question-head,
  .status-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .subject-row {
    grid-template-columns: 1fr;
  }

  .score-ring {
    margin: 0 auto;
  }
}
