:root {
  --forest: #173b35;
  --forest-2: #24564d;
  --ink: #18312d;
  --muted: #667873;
  --cream: #f6f3eb;
  --paper: #fffdf8;
  --line: #d9dfd9;
  --coral: #f07b61;
  --coral-dark: #c9553e;
  --sun: #edbb56;
  --mint: #dcebe3;
  --sky: #d8e6ea;
  --lavender: #e5deeb;
  --shadow: 0 24px 70px rgba(23, 59, 53, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(237, 187, 86, 0.18), transparent 25rem),
    radial-gradient(circle at 8% 82%, rgba(220, 235, 227, 0.75), transparent 28rem),
    var(--cream);
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; color: white; background: var(--forest); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header, main, .site-footer { width: min(1180px, calc(100vw - 40px)); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { position: relative; display: block; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); }
.brand-mark i { position: absolute; display: block; width: 4px; border-radius: 9px; background: var(--sun); transform-origin: bottom; }
.brand-mark i:nth-child(1) { height: 12px; left: 12px; bottom: 11px; transform: rotate(-26deg); }
.brand-mark i:nth-child(2) { height: 20px; left: 20px; bottom: 10px; }
.brand-mark i:nth-child(3) { height: 14px; right: 11px; bottom: 11px; transform: rotate(28deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: -0.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 0.7rem; }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; color: var(--forest-2); font-size: 0.78rem; font-weight: 750; }
.privacy-note span { color: #4f9e77; font-size: 0.66rem; }

.screen { display: none; }
.screen.is-active { display: block; animation: reveal 0.45s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

.welcome-screen.is-active { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr); gap: 72px; align-items: center; min-height: calc(100vh - 170px); padding: 44px 0 82px; }
.eyebrow { margin: 0; color: var(--coral-dark); font-size: 0.73rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 13ch; margin: 14px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 6.8vw, 6.7rem); font-weight: 500; line-height: 0.96; letter-spacing: -0.045em; }
h1 em { color: var(--coral-dark); font-weight: 400; }
.lede { max-width: 62ch; margin-bottom: 30px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.student-card { max-width: 650px; padding: 22px; border: 1px solid rgba(217, 223, 217, 0.9); border-radius: 20px; background: rgba(255, 253, 248, 0.88); box-shadow: 0 16px 50px rgba(23, 59, 53, 0.08); backdrop-filter: blur(12px); }
.field-grid { display: grid; grid-template-columns: 1.1fr 0.7fr; gap: 12px; }
label > span { display: block; margin-bottom: 7px; color: var(--forest); font-size: 0.78rem; font-weight: 800; }
label > span small { color: var(--muted); font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; outline: none; }
input, select { min-height: 50px; padding: 0 14px; }
textarea { padding: 15px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36, 86, 77, 0.12); }
.primary-button, .secondary-button, .text-button { border: 0; cursor: pointer; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 0 20px; border-radius: 999px; font-weight: 800; }
.primary-button { color: white; background: var(--forest); box-shadow: 0 10px 25px rgba(23, 59, 53, 0.18); }
.primary-button:hover { background: var(--forest-2); transform: translateY(-1px); }
.primary-button:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.primary-button b { font-size: 1.15rem; }
.student-card .primary-button { width: 100%; margin-top: 15px; }
.secondary-button { border: 1px solid var(--line); background: white; }
.secondary-button:hover { border-color: var(--forest-2); }
.text-button { padding: 8px 0; color: var(--forest-2); background: none; font-size: 0.82rem; font-weight: 800; }
.welcome-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; color: var(--muted); font-size: 0.8rem; }
.welcome-facts b { color: var(--forest); font-size: 1rem; }

.domain-preview { position: relative; padding: 44px 36px 28px; overflow: hidden; border-radius: 30px; color: white; background: var(--forest); box-shadow: var(--shadow); }
.domain-preview::after { content: ""; position: absolute; width: 210px; height: 210px; right: -110px; bottom: -130px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,0.025), 0 0 0 58px rgba(255,255,255,0.018); }
.orbit { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto 32px; border: 1px solid rgba(255,255,255,0.24); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; }
.orbit::after { inset: 31px; }
.orbit-core { display: grid; place-items: center; z-index: 2; width: 50px; height: 50px; border-radius: 50%; color: var(--forest); background: var(--sun); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.orbit i:nth-of-type(1) { top: 7px; left: 34px; }
.orbit i:nth-of-type(2) { right: 8px; bottom: 34px; background: var(--mint); }
.orbit i:nth-of-type(3) { bottom: 12px; left: 25px; background: var(--sun); }
.domain-preview ol { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.domain-preview li { display: grid; grid-template-columns: 32px 1fr; gap: 13px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.13); }
.domain-preview li > span { padding-top: 2px; color: var(--sun); font-size: 0.68rem; font-weight: 850; }
.domain-preview li strong, .domain-preview li small { display: block; }
.domain-preview li strong { font-family: Georgia, serif; font-size: 1.12rem; font-weight: 500; }
.domain-preview li small { margin-top: 4px; color: rgba(255,255,255,0.62); font-size: 0.72rem; line-height: 1.4; }

.survey-screen { min-height: calc(100vh - 170px); padding: 20px 0 80px; }
.survey-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.survey-topline p { margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.progress-track { height: 5px; margin-top: 15px; overflow: hidden; border-radius: 4px; background: #e0e3dc; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width 0.35s ease; }
.survey-layout { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 72px; align-items: start; padding-top: 70px; }
.domain-rail { position: sticky; top: 30px; padding-top: 8px; }
.domain-number { display: block; margin-top: 30px; color: var(--coral); font-family: Georgia, serif; font-size: 4rem; line-height: 1; }
.domain-rail h2 { max-width: 8ch; margin: 8px 0 15px; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 500; line-height: 0.97; letter-spacing: -0.045em; }
.domain-rail > p:not(.eyebrow) { max-width: 30ch; color: var(--muted); line-height: 1.65; }
.domain-dots { display: flex; gap: 8px; margin-top: 32px; }
.domain-dots span { width: 29px; height: 5px; border-radius: 4px; background: #d7dbd5; }
.domain-dots span.is-complete { background: var(--forest-2); }
.domain-dots span.is-current { background: var(--coral); }
.question-panel { min-height: 520px; padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(217,223,217,0.9); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.prompt-label { margin-bottom: 14px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.question-panel h3 { min-height: 2.55em; margin: 0 0 34px; font-family: Georgia, serif; font-size: clamp(1.85rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.26; letter-spacing: -0.025em; }
fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.option-card { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: center; min-height: 72px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 15px; background: white; cursor: pointer; transition: 0.16s ease; }
.option-card:hover { border-color: #a8b9b2; transform: translateY(-1px); }
.option-card:has(input:checked) { border-color: var(--forest); background: #eef4f0; box-shadow: inset 4px 0 var(--coral); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-key { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 0.72rem; font-weight: 850; }
.option-card:has(input:checked) .option-key { border-color: var(--forest); color: white; background: var(--forest); }
.option-copy strong { display: block; font-size: 0.94rem; }
.option-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.choice-help { margin: 14px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 30px; }

.results-screen { padding: 45px 0 90px; }
.results-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.results-header h1 { max-width: 11ch; margin: 12px 0 16px; font-size: clamp(3rem, 6vw, 5.8rem); }
.results-header p:last-child { max-width: 65ch; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 5px; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.score-card { --card-bg: var(--mint); position: relative; min-height: 270px; padding: 24px; overflow: hidden; border-radius: 22px; background: var(--card-bg); }
.score-card:nth-child(2) { --card-bg: #f4e9cb; }
.score-card:nth-child(3) { --card-bg: var(--sky); }
.score-card:nth-child(4) { --card-bg: var(--lavender); }
.score-card .score-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score-card .score-top span { font-size: 0.7rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.score-card .score-ring { --score: 0; display: grid; place-items: center; width: 112px; height: 112px; margin: 27px auto 22px; border-radius: 50%; background: conic-gradient(var(--forest) calc(var(--score) * 1%), rgba(255,255,255,0.68) 0); }
.score-card .score-ring::before { content: ""; width: 86px; height: 86px; border-radius: 50%; background: var(--card-bg); }
.score-card .score-value { position: absolute; left: 50%; top: 124px; transform: translate(-50%, -50%); font-family: Georgia, serif; font-size: 2rem; }
.score-card h3 { margin-bottom: 7px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.score-card p { margin: 0; color: #536a65; font-size: 0.75rem; line-height: 1.5; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.insight-card { min-height: 250px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.insight-card h2 { margin: 46px 0 12px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.insight-card > p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.strength-card { border-top: 5px solid var(--forest-2); }
.growth-card { border-top: 5px solid var(--coral); }
.next-steps { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 70px; margin-top: 62px; padding-top: 56px; border-top: 1px solid var(--line); }
.next-steps h2, .reflection-box h2 { max-width: 13ch; margin: 10px 0 0; font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
.strategy-list { display: grid; gap: 10px; }
.strategy { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.strategy > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--coral); font-size: 0.75rem; font-weight: 850; }
.strategy h3 { margin: 1px 0 5px; font-size: 0.95rem; }
.strategy p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.reflection-box { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; margin-top: 62px; padding: 44px; border-radius: 26px; color: white; background: var(--forest); }
.reflection-box .eyebrow { color: var(--sun); }
.reflection-box h2 { max-width: 16ch; }
.reflection-box p { margin: 13px 0 0; color: rgba(255,255,255,0.65); line-height: 1.6; }
.reflection-box textarea { min-height: 150px; border: 0; background: rgba(255,255,255,0.95); }
.results-footer-actions { display: flex; justify-content: center; margin-top: 42px; }
.danger-button { color: #9b4739; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.site-footer p { margin: 0; }
.source-credit { text-align: right; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 11px 18px; border-radius: 999px; color: white; background: var(--forest); box-shadow: var(--shadow); font-size: 0.8rem; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: 0.2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .welcome-screen.is-active { grid-template-columns: 1fr; gap: 36px; }
  .domain-preview { max-width: 620px; }
  .survey-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
  .domain-rail { position: static; }
  .domain-number { float: left; margin: 5px 15px 0 0; font-size: 2.4rem; }
  .domain-rail h2 { max-width: none; margin: 8px 0; font-size: 2.4rem; }
  .domain-dots { margin-top: 18px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .next-steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .site-header, main, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  .privacy-note { font-size: 0; }
  .privacy-note span { font-size: 0.75rem; }
  .welcome-screen.is-active { min-height: 0; padding: 42px 0 55px; }
  h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .field-grid { grid-template-columns: 1fr; }
  .student-card { padding: 16px; }
  .domain-preview { padding: 34px 22px 20px; }
  .survey-screen { padding-top: 8px; }
  .question-panel { min-height: 0; padding: 24px 18px; border-radius: 20px; }
  .question-panel h3 { min-height: 0; margin-bottom: 25px; font-size: 1.75rem; }
  .option-card { min-height: 77px; padding: 13px; }
  .question-actions { align-items: stretch; }
  .question-actions .secondary-button { min-width: 88px; padding: 0 14px; }
  .question-actions .primary-button { flex: 1; gap: 12px; }
  .results-header { display: block; }
  .results-actions { margin-top: 25px; }
  .results-grid, .insight-grid { grid-template-columns: 1fr; }
  .score-card { min-height: 245px; }
  .reflection-box { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
  .site-footer { display: block; }
  .source-credit { margin-top: 10px !important; text-align: left; }
}

@media print {
  @page { margin: 0.55in; }
  body { background: white; }
  .site-header, .welcome-screen, .survey-screen, .no-print, .site-footer, .toast { display: none !important; }
  main { width: 100%; }
  .results-screen.is-active { display: block; padding: 0; }
  .results-header { padding-bottom: 22px; }
  .results-header h1 { font-size: 40pt; }
  .results-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .score-card { min-height: 220px; padding: 16px; break-inside: avoid; }
  .insight-grid { break-inside: avoid; }
  .next-steps { margin-top: 30px; padding-top: 30px; }
  .reflection-box { color: var(--ink); background: white; border: 2px solid var(--forest); break-inside: avoid; }
  .reflection-box p { color: var(--muted); }
}
