/* Page-only styles; shared tokens, typography and components come from styles.css. */
.path-page { background: var(--soft); }
.path-page [hidden] { display: none !important; }
.path-page button, .path-page input { font: inherit; }
.path-page button { cursor: pointer; }
.path-page button:disabled { cursor: not-allowed; opacity: .48; }
.path-page :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.path-page h1, .path-page h2, .path-page h3 { color: var(--brand-blue); }
.path-page p { line-height: 1.8; }
.path-page main { min-height: calc(100svh - 290px); }
.path-page .btn-primary, .path-page .btn-secondary {
  justify-content: center; min-height: 48px; text-align: center; font-size: 16px;
}
.path-page .btn-primary {
  background: var(--brand-blue); color: #fff; border: 1px solid var(--brand-blue);
  box-shadow: var(--shadow-card-subtle); border-radius: 14px;
}
.path-page .btn-primary:not(:disabled):hover { background: var(--blue-dark); }
.path-page .btn-secondary { border-width: 1px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: #fff; z-index: 100; }
.skip-link:focus { top: 12px; }
.path-intro {
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto;
  margin: 42px auto 64px; padding: 56px 64px 0; border-radius: var(--radius-panel);
  background: linear-gradient(130deg,#fff 45%,#fff3c5 100%); overflow: hidden;
  border: 1px solid var(--line); position: relative; box-shadow: var(--shadow-card);
}
.path-intro-copy { position: relative; z-index: 1; }
.path-ielts-highlight { color: #c62838; }
/* Soft rings and a small dot pattern add depth behind the portrait. */
.path-intro::before {
  content: ''; position: absolute; pointer-events: none;
  width: 560px; height: 560px; right: -150px; top: -180px;
  border: 1px solid rgba(2,42,143,.09); border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255,197,21,.055), 0 0 0 92px rgba(2,42,143,.025);
}
.path-intro::after {
  content: ''; position: absolute; pointer-events: none;
  width: 150px; height: 110px; left: 49%; top: 38px;
  background: radial-gradient(circle,rgba(2,42,143,.13) 1.5px,transparent 2px) 0 0 / 18px 18px;
  transform: rotate(-8deg);
}
.path-title-accent { position: absolute; top: -16px; right: 6px; width: clamp(72px,8vw,110px); height: auto; color: var(--brand-blue); pointer-events: none; }
.path-english-title { margin: 0 0 20px; font-size: clamp(38px,4.4vw,60px); font-weight: 800; color: var(--brand-blue); line-height: 1.1 !important; letter-spacing: -.04em; }
.path-intro h1 { font-size: clamp(25px,2.7vw,34px); line-height: 1.4; margin: 0 0 18px; }
.path-intro-description { max-width: 500px; margin: 0; color: var(--text); }
.path-benefits { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; font-size: 14px; font-weight: 600; }
.path-benefits li::before, .path-reasons li::before { content: '✓'; color: var(--brand-blue); font-weight: 800; margin-right: 10px; }
.path-intro-visual { grid-column: 2; grid-row: 1 / 3; align-self: end; position: relative; z-index: 1; margin-left: 12px; }
.path-intro-visual img { width: 100%; height: auto; position: relative; }
.path-motto { position: absolute; top: -25px; right: 0; font-size: 19px; color: var(--brand-blue); font-style: italic; transform: rotate(-8deg); z-index: 1; }
.path-intro-action { position: relative; z-index: 2; padding: 4px 0 28px; max-width: 430px; }
.path-intro-action .btn-primary { width: 100%; border-radius: var(--radius-pill); }
.path-quote { font-size: 13px; text-align: center; color: var(--text); margin: 18px 0 0; }
.path-questionnaire { max-width: 840px; background: #fff; margin: 40px auto 64px; padding: 36px 42px; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card-subtle); }
.path-progress-row { display: flex; gap: 28px; align-items: center; margin-bottom: 34px; }
.path-back-top { background: none; border: 0; color: var(--brand-blue); min-height: 44px; padding: 8px 0; white-space: nowrap; }
.path-progress-wrap { flex: 1; }
#question-count { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-align: right; }
.path-page progress { display: block; appearance: none; border: 0; border-radius: 99px; width: 100%; height: 7px; overflow: hidden; background: var(--line); }
.path-page progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.path-page progress::-webkit-progress-value { background: var(--yellow); border-radius: 99px; transition: width .2s; }
.path-page progress::-moz-progress-bar { background: var(--yellow); }
.path-page fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#question-title { font-size: 26px; line-height: 1.5; font-weight: 800; padding: 0; width: 100%; color: var(--brand-blue); }
#question-helper { color: var(--text); font-size: 14px; margin: 10px 0 22px; }
.path-answers { display: grid; gap: 12px; }
.path-answer { display: flex; gap: 18px; align-items: center; min-height: 78px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: background .16s, border-color .16s; line-height: 1.65; }
.path-answer:hover { border-color: #aab9d8; }
.path-answer:has(input:checked) { border-color: var(--yellow-dark); background: #fff7db; }
.path-answer:has(input:focus-visible) { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.path-answer input { width: 19px; height: 19px; accent-color: var(--brand-blue); flex-shrink: 0; margin: 0 0 0 auto; }
.path-answer-text { flex: 1; min-width: 0; }
.path-icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--brand-blue); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.path-answers.is-multiple .path-answer { min-height: 60px; padding: 13px 18px; gap: 14px; }
.is-multiple input { order: -1; margin: 0; }
.path-question-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; margin-top: 30px; }
.path-question-actions .btn-secondary { background: var(--soft); border-color: var(--soft); border-radius: 14px; }
.path-privacy { font-size: 12px; text-align: center; color: var(--text); margin: 20px 0 0; }
.path-result { max-width: 1080px; margin: 42px auto 64px; }
.path-result-card { display: grid; grid-template-columns: .65fr 1fr; gap: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 44px; box-shadow: var(--shadow-card); }
.path-result-visual { text-align: center; align-self: start; padding-top: 12px; }
#result-art img { width: 160px; height: auto; margin: 24px auto; }
.path-assessment-icon { display: grid; place-items: center; width: 110px; height: 110px; margin: 24px auto; border-radius: 50%; background: var(--blue-soft); }
.path-assessment-icon .path-icon { width: 58px; height: 58px; }
#result-prefix { margin: 0 0 4px; font-weight: 700; }
#result-title { font-size: 32px; line-height: 1.4; margin: 0 0 16px; }
#result-description, #placement-info p { color: var(--text); }
.path-route { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.path-route span { background: var(--blue-soft); border-radius: 10px; padding: 12px; font-weight: 700; font-size: 14px; }
.path-route small { flex-basis: 100%; margin-top: 6px; font-weight: 700; }
.path-reasons { padding: 20px; border-radius: 14px; background: #fff8e2; margin: 24px 0; }
.path-reasons h2, #placement-info h2 { font-size: 18px; line-height: 1.6; margin: 0 0 12px; }
.path-reasons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.75; }
.path-result-copy > .btn-primary, .path-result-copy > .btn-secondary { width: 100%; margin-bottom: 12px; }
.path-restart { display: block; border: 0; background: none; color: var(--brand-blue); text-decoration: underline; min-height: 44px; margin: 0 auto; padding: 10px; }
.path-assessment-skills { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.path-assessment-skills span { background: var(--blue-soft); border-radius: 12px; padding: 14px 6px; text-align: center; font-size: 14px; font-weight: 700; }
.path-page .path-line-cta { background: #00852c; border-color: #00852c; }
.path-page .path-line-cta:hover { background: #006c24 !important; }
.path-page .path-line-secondary { color: #00852c; border-color: #00852c; }
.path-page .path-line-secondary:hover { color: #006c24; border-color: #006c24; background: #eef8f1; }
.path-small { font-size: 13px; color: var(--text); text-align: center; }
.path-next-steps { text-align: center; max-width: 540px; margin: 64px auto 0; }
.path-next-steps h2 { font-size: 30px; line-height: 1.3; }
.path-next-steps h3 { line-height: 1.7; }
.path-next-steps p { font-size: 14px; color: var(--text); }
.path-mountain { width: 220px; max-width: 100%; }
.path-footer { text-align: center; border-top: 1px solid var(--line); background: #fff; padding: 32px 20px; color: var(--text); }
.path-footer .brand { justify-content: center; }
.path-footer .brand img { width: 175px; }
.path-footer p { font-size: 14px; }
.path-questionnaire:not([hidden]), .path-result:not([hidden]) { animation: path-enter .2s ease-out; }
@keyframes path-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media(max-width:1199px) {
  .path-intro { padding: 40px 36px 0; }
  .path-result-card { gap: 28px; padding: 32px; }
}
@media(max-width:767px) {
  .path-intro { width: 100%; margin: 0 auto 30px; padding: 30px 24px 0; border-radius: 0 0 22px 22px; grid-template-columns: 1fr; }
  .path-title-accent { top: -12px; right: -8px; width: 64px; }
  .path-intro::before { width: 330px; height: 330px; right: -220px; top: -100px; }
  .path-intro::after { width: 72px; height: 90px; left: auto; right: 14px; top: 170px; opacity: .6; }
  .path-english-title { font-size: 40px; max-width: 270px; margin-bottom: 20px; }
  .path-intro h1 { font-size: 25px; }
  .path-intro-description { max-width: 58%; font-size: 14px; }
  .path-benefits { max-width: 58%; font-size: 12px; gap: 12px; margin-bottom: 28px; }
  .path-intro-visual { grid-area: auto; position: absolute; right: -12px; bottom: 142px; width: 50%; max-width: 275px; margin: 0; pointer-events: none; }
  .path-motto { top: -52px; right: 30px; font-size: 14px; }
  .path-intro-action { max-width: none; width: 100%; padding: 0 0 24px; }
  .path-quote { padding: 6px 0; }
  .path-questionnaire { width: 100%; margin: 0 auto 24px; padding: 22px 20px 28px; border: 0; border-radius: 0; box-shadow: none; }
  .path-progress-row { margin-bottom: 26px; }
  #question-title { font-size: 22px; }
  .path-answer { padding: 16px 14px; gap: 14px; font-size: 15px; min-height: 84px; }
  .path-answers.is-multiple .path-answer { padding: 13px 10px; gap: 10px; }
  .path-icon { width: 27px; height: 27px; }
  .path-question-actions .btn-primary, .path-question-actions .btn-secondary { padding: 13px 12px; }
  .path-result { margin: 20px auto 40px; }
  .path-result-card { display: block; padding: 24px 18px; }
  .path-result-visual { padding: 0; }
  #result-art img { width: 130px; margin: 10px auto 20px; }
  #result-title { font-size: 27px; }
  #result-title, #result-prefix, #result-description, #placement-info { text-align: center; }
  .path-route { margin: 0 0 24px; }
  .path-result-copy > .btn-primary, .path-result-copy > .btn-secondary { font-size: 14px; padding: 13px 10px; }
  .path-next-steps { margin-top: 44px; }
}
@media(prefers-reduced-motion:reduce) {
  .path-page *, .path-page *::before, .path-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
