/* :root {
  --bg: #f8fafc;
  --bg-soft: #111827;
  --panel: #23355a;
  --muted: #94a3b8;
  --text: #373e48;
  --accent: #19a100;
  --border: #1f2937;
  --danger: #ef4444;
  --ok: #22c55e;
  --code-color: #ffa3a3;
  --warn: #f59e0b;
  --title: #05386b;
  --subtitle: #14856e;
  --maingreen: #2fc969;
  --green: #8ee4af;
  --line: #dce6eb;
  --white: #ffffff;
  --soft-green: #ecfdf3;
  --soft-blue: #eff7fb;
  --shadow: 0 12px 34px rgba(5, 56, 107, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
} */

.wrapper {
  max-width: 95%;
  margin: 0 auto;
}

.about {
  margin-top: 100px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.career-tool {
  min-height: 100vh;
  padding: 32px 16px;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.screen {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.intro-screen {
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
}

.eyebrow {
  color: var(--subtitle);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--title);
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  margin: 12px auto 20px;
  font-size: clamp(36px, 6vw, 66px);
}

.lead {
  max-width: 820px;
  margin: 0 auto;
  color: #547186;
  font-size: clamp(17px, 2vw, 21px);
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 38px 0;
}

.intro-stats div {
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdfd);
}

.intro-stats strong,
.intro-stats span {
  display: block;
}

.intro-stats strong {
  color: var(--title);
  font-size: 20px;
}

.intro-stats span {
  margin-top: 4px;
  color: #71879a;
  font-size: 14px;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 20px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.btn:focus-visible,
.text-button:focus-visible,
.quiz-option:has(input:focus-visible) {
  outline: 3px solid rgba(47, 201, 105, 0.35);
  outline-offset: 3px;
}

.btn-primary {
  color: #fff;
  background: var(--title);
  box-shadow: 0 8px 18px rgba(5, 56, 107, 0.16);
}

.btn-primary:hover {
  background: #064b8f;
}

.btn-secondary {
  color: var(--title);
  background: #fff;
  border-color: var(--line);
}

.btn-large {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 17px;
}

.text-button {
  border: 0;
  padding: 4px;
  color: var(--subtitle);
  background: transparent;
  font-weight: 750;
}

.danger-text {
  color: var(--danger);
}

.info-note,
.resume-box {
  max-width: 800px;
  margin: 26px auto 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--soft-blue);
  border: 1px solid #d4e5ee;
  color: #4d6c7f;
  text-align: left;
}

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

.resume-box p {
  margin: 4px 0 0;
}

.resume-actions {
  display: flex;
  gap: 10px;
}

.quiz-screen,
.results-screen {
  padding: clamp(22px, 4vw, 48px);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.step-label {
  margin: 0 0 7px;
  color: var(--subtitle);
  font-weight: 700;
}

.quiz-header h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.progress-wrap {
  margin: 24px 0 36px;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef2;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--subtitle), var(--maingreen));
  transition: width 0.3s ease;
}

.question-title {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.question-description {
  margin: 0 0 24px;
  color: #6c8495;
  font-size: 16px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quiz-option {
  position: relative;
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.quiz-option:hover {
  border-color: #b9d4df;
}

.quiz-option.is-selected {
  border-color: var(--subtitle);
  background: #f3fbf7;
  box-shadow: 0 8px 18px rgba(20, 133, 110, 0.08);
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-control {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border: 2px solid #a9c4d0;
  background: #fff;
  border-radius: 50%;
}

.quiz-option[data-type="checkbox"] .option-control {
  border-radius: 6px;
}

.quiz-option.is-selected .option-control {
  border-color: var(--subtitle);
  background: var(--subtitle);
  box-shadow: inset 0 0 0 5px #fff;
}

.quiz-option[data-type="checkbox"].is-selected .option-control {
  box-shadow: inset 0 0 0 4px #fff;
}

.option-content {
  min-width: 0;
}

.option-title {
  display: block;
  color: var(--title);
  font-size: 17px;
  font-weight: 700;
}

.option-description {
  display: block;
  margin-top: 4px;
  color: #678497;
  font-size: 14px;
}

.option-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--soft-blue);
  color: var(--subtitle);
  font-weight: 900;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.processing-screen {
  min-height: 460px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px;
}

.loader {
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 6px solid #dce9ee;
  border-top-color: var(--maingreen);
  animation: spin 1s linear infinite;
}

.processing-screen h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.processing-screen p {
  color: #678497;
  font-size: 18px;
}

.results-heading {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
}

.results-heading h2 {
  margin: 10px 0 10px;
  font-size: clamp(32px, 5vw, 50px);
}

.results-heading p {
  color: #678497;
}

.profile-card,
.top-match-card,
.match-card,
.strength-card,
.results-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.profile-card {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f7fffb, #f4f8fb);
}

.profile-name {
  margin: 5px 0 8px;
  color: var(--title);
  font-size: 28px;
  font-weight: 900;
}

.profile-description {
  margin: 0;
  color: #617d90;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.profile-stat span,
.profile-stat strong {
  display: block;
}

.profile-stat span {
  color: #7a8f9d;
  font-size: 13px;
}
.profile-stat strong {
  margin-top: 5px;
  color: var(--title);
  font-size: 18px;
}

.top-match-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--subtitle);
}

.top-match-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(var(--subtitle), var(--maingreen));
}

.match-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--subtitle);
  font-size: 13px;
  font-weight: 900;
}

.top-line,
.match-card-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.top-match-card h3 {
  margin: 18px 0 8px;
  font-size: clamp(29px, 4vw, 42px);
}

.match-description {
  margin: 0;
  color: #627e91;
  font-size: 17px;
}

.score {
  flex: 0 0 auto;
  color: #0e62bd;
  text-align: right;
}

.score strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}
.score span {
  color: #638297;
  font-size: 14px;
}

.top-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-top: 28px;
}

.top-content h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.reason-list,
.skill-list {
  margin: 0;
  padding-left: 20px;
  color: #496b80;
}

.reason-list li,
.skill-list li {
  margin: 8px 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.meta-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdfd;
}

.meta-item span,
.meta-item strong {
  display: block;
}

.meta-item span {
  color: #7a8f9d;
  font-size: 13px;
}
.meta-item strong {
  margin-top: 5px;
  color: var(--title);
}

.roadmap-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--title);
  text-decoration: none;
  font-weight: 900;
}

.roadmap-button:hover {
  background: #064b8f;
  color: #fff;
}

.results-section {
  margin-top: 22px;
  padding: 24px;
}

.section-heading {
  margin-bottom: 18px;
}
.section-heading h3 {
  margin-bottom: 5px;
  font-size: 26px;
}
.section-heading p {
  margin: 0;
  color: #718797;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.match-card {
  padding: 20px;
}

.match-card h4 {
  margin: 0 0 6px;
  font-size: 22px;
}

.match-card .score strong {
  font-size: 29px;
}

.match-card p {
  color: #6a8292;
}

.match-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff6f7;
  color: var(--subtitle);
  font-size: 12px;
  font-weight: 700;
}

.small-link {
  color: var(--title);
  font-weight: 850;
  text-decoration: none;
}

.small-link:hover {
  text-decoration: underline;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.strength-card {
  padding: 18px;
}
.strength-card h4 {
  margin-bottom: 6px;
  font-size: 18px;
}
.strength-level {
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}
.strength-card p {
  margin-bottom: 0;
  color: #6c8292;
  font-size: 14px;
}

.learning-path {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.learning-path li {
  counter-increment: path;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.learning-path li:last-child {
  border-bottom: 0;
}

.learning-path li::before {
  content: counter(path);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--subtitle);
  font-weight: 900;
}

.learning-path a {
  color: var(--title);
  font-weight: 850;
  text-decoration: none;
}

.learning-path a:hover {
  text-decoration: underline;
}

.path-status {
  color: var(--subtitle);
  font-size: 12px;
  font-weight: 850;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compare-table th,
.compare-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--title);
  background: #f7fafb;
  font-size: 13px;
}

.compare-table td {
  color: #526f82;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.disclaimer {
  max-width: 850px;
  margin: 24px auto 0;
  text-align: center;
  color: #7b8f9c;
  font-size: 13px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 850px) {
  .intro-stats,
  .profile-stats,
  .meta-grid,
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card,
  .top-content {
    grid-template-columns: 1fr;
  }

  .options-grid,
  .match-grid {
    grid-template-columns: 1fr;
  }
  .back-to-top-link {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .career-tool {
    padding: 0;
  }

  .screen {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .intro-screen,
  .quiz-screen,
  .results-screen {
    padding: 24px 16px;
  }

  .intro-stats,
  .profile-stats,
  .meta-grid,
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .resume-box,
  .quiz-header,
  .top-line,
  .match-card-head {
    flex-direction: column;
  }

  .resume-actions {
    width: 100%;
  }
  .resume-actions .btn {
    flex: 1;
  }

  .score {
    text-align: left;
  }

  .quiz-navigation {
    position: sticky;
    bottom: 0;
    margin-inline: -16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .quiz-navigation .btn {
    min-width: 120px;
  }

  .learning-path li {
    grid-template-columns: 40px 1fr;
  }

  .path-status {
    grid-column: 2;
  }
}

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

@media print {
  body {
    background: #fff;
  }
  .career-tool {
    padding: 0;
  }
  .results-screen {
    box-shadow: none;
    border: 0;
  }
  .results-actions,
  .small-link,
  .roadmap-button {
    display: none !important;
  }
  .results-section,
  .profile-card,
  .top-match-card {
    break-inside: avoid;
  }
}
