@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-400.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-800.woff2') format('woff2'); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  --ink: #163537;
  --muted: #627579;
  --line: #d9e3df;
  --paper: #fbfcf8;
  --white: #fff;
  --teal: #25cad2;
  --teal-dark: #159da5;
  --logo-grey: #c1c0bf;
  --logo-grey-dark: #687475;
  --mint: #dff5ed;
  --coral: #ff8f72;
  --yellow: #f2c85d;
  --shadow: 0 26px 80px rgba(25, 63, 62, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; }
html[data-screen="access"], body[data-screen="access"] { height: 100%; min-height: 0; overflow: hidden; }
body[data-screen="access"] #app { height: 100dvh; min-height: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 99; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { height: 88px; padding: 0 clamp(24px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(22,53,55,.08); }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 180px; height: auto; }
.header-badge { padding: 9px 14px; border: 1px solid var(--logo-grey); border-radius: 999px; color: var(--logo-grey-dark); font-size: 12px; font-weight: 700; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 88px; min-height: calc(100vh - 88px); }
.panel { background: rgba(255,255,255,.92); border: 1px solid rgba(22,53,55,.09); border-radius: var(--radius); box-shadow: var(--shadow); }

.access-shell { height: 100%; min-height: 0; overflow-y: auto; padding: clamp(28px, 5vh, 58px) 24px; display: grid; place-items: center; background: radial-gradient(circle at 18% 18%, rgba(255,211,122,.18), transparent 32%), radial-gradient(circle at 82% 78%, rgba(37,202,210,.17), transparent 34%); }
.access-stage { width: min(470px, 100%); display: grid; justify-items: center; gap: clamp(44px, 7vh, 72px); }
.access-brand { display: grid; place-items: center; }
.access-brand .brand img { width: 214px; }
.access-layout { width: min(470px, 100%); display: grid; place-items: center; }
.access-layout > * { min-width: 0; }
.form-heading h1, .welcome-content h1 { margin: 14px 0 20px; max-width: 760px; font-family: 'Poppins', 'Segoe UI', sans-serif; font-size: clamp(42px, 5.2vw, 70px); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.kicker, .mini-label { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.access-card { width: 100%; padding: 44px; }
.product-title { margin-bottom: 34px; display: grid; justify-items: center; text-align: center; }
.product-title h1 { margin: 0; font-size: clamp(25px, 4vw, 32px); font-weight: 700; line-height: 1.28; letter-spacing: -.035em; }
.product-title h1 span { color: var(--teal-dark); font-size: .72em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.product-title p { max-width: 330px; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.field { display: grid; align-content: start; gap: 9px; min-width: 0; }
.field > span, .field legend { color: #40585b; font-size: 13px; font-weight: 700; }
.field small { color: #8a9899; font-size: 11px; }
.field input, .field select { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #cbd8d5; border-radius: 12px; outline: none; background: white; color: var(--ink); transition: .18s ease; }
.field select { padding-right: 38px; cursor: pointer; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(37,202,210,.14); }
.field input[aria-invalid="true"] { border-color: #bd503f; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 72px; }
.icon-button { position: absolute; right: 7px; top: 7px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: #eff0f0; color: var(--logo-grey-dark); font-size: 12px; font-weight: 600; cursor: pointer; }
.button { min-height: 51px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; border-radius: 13px; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--teal); color: white; }
.button.primary:hover { background: #18b8c0; }
.button.primary:focus-visible { outline: 4px solid rgba(37,202,210,.24); outline-offset: 2px; }
.button.ghost { border-color: var(--logo-grey); background: #f5f5f4; color: var(--logo-grey-dark); }
.button.ghost:hover { background: #e9e9e8; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button.wide { width: 100%; margin-top: 8px; }
.form-error { min-height: 20px; margin: 8px 0; color: #a23b31; font-size: 13px; font-weight: 600; }

.form-wrap { width: min(920px, 100%); margin: auto; }
.step-label { margin-bottom: 40px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.step-label span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--logo-grey); color: #354446; letter-spacing: 0; }
.form-heading { margin-bottom: 50px; display: grid; grid-template-columns: 1.2fr .65fr; gap: 50px; align-items: end; }
.form-heading.single { grid-template-columns: 1fr; }
.form-heading h1 { margin-bottom: 0; font-size: clamp(39px, 5vw, 58px); }
.form-heading > p { margin: 0 0 6px; color: var(--muted); line-height: 1.6; }
.form-heading.single p { max-width: 760px; margin: 14px 0 0; color: var(--muted); line-height: 1.65; }
.registration-grid { padding: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 22px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.span-2 { grid-column: span 2; }
.age-output { height: 52px; padding: 0 15px; display: flex; align-items: center; border: 1px dashed #b9cac6; border-radius: 12px; background: #f3f8f5; font-weight: 800; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.phone-control { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; }
.phone-control label { min-width: 0; }
.country-picker { position: relative; min-width: 0; }
.country-trigger, .country-option { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; border: 1px solid #cbd8d5; background: white; color: var(--ink); text-align: left; font-weight: 500; cursor: pointer; }
.country-trigger { height: 52px; padding: 0 13px; border-radius: 12px; }
.country-trigger { grid-template-columns: 26px 1fr 9px; }
.country-trigger span { display: none; }
.country-trigger::after { content: ''; width: 7px; height: 7px; justify-self: end; border-right: 1.5px solid var(--logo-grey-dark); border-bottom: 1.5px solid var(--logo-grey-dark); transform: rotate(45deg) translate(-1px, 1px); transform-origin: center; }
.country-trigger:focus-visible { border-color: var(--teal); outline: 4px solid rgba(37,202,210,.14); }
.country-flag { width: 24px; display: inline-grid; place-items: center; font-size: 20px; line-height: 1; }
.country-trigger span, .country-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-trigger b, .country-option b { color: var(--logo-grey-dark); font-weight: 600; }
.country-trigger b { line-height: 1; }
.country-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(390px, calc(100vw - 64px)); padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 18px 48px rgba(25,63,62,.18); }
.country-search { display: block; margin-bottom: 8px; }
.field .country-search input { height: 42px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.country-options { max-height: 260px; overflow-y: auto; display: grid; gap: 3px; }
.country-option { grid-template-columns: 26px minmax(0, 1fr) auto; min-height: 42px; padding: 7px 9px; border-color: transparent; border-radius: 9px; font-size: 12px; }
.country-option:hover, .country-option:focus-visible { border-color: rgba(37,202,210,.35); outline: none; background: rgba(37,202,210,.1); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label span { min-height: 48px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; }
.segmented input:focus-visible + span { outline: 3px solid rgba(37,202,210,.25); }
.segmented input:checked + span { border-color: var(--teal); background: var(--mint); color: var(--teal-dark); }
.consent { padding: 18px; display: flex; gap: 13px; border-radius: 13px; background: #f1f7f4; color: #435b5c; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal-dark); }
.consent span { display: grid; gap: 4px; line-height: 1.4; }
.consent small { color: var(--muted); }
.form-actions { display: flex; justify-content: space-between; }
.form-actions.single { justify-content: flex-end; }
.academic-wrap { width: min(960px, 100%); }
.academic-grid { gap: 24px 22px; }
.compact-checks { padding-top: 4px; }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.check-grid label { position: relative; }
.check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.check-grid span { min-height: 48px; padding: 10px 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; }
.check-grid input:checked + span { border-color: var(--teal); background: var(--mint); color: var(--teal-dark); }
.check-grid input:focus-visible + span { outline: 3px solid rgba(37,202,210,.25); }

.welcome-wrap { width: min(1040px, 100%); margin: auto; }
.welcome-card { min-height: 590px; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; }
.welcome-illustration { position: relative; min-height: 430px; display: grid; place-items: center; background: linear-gradient(145deg, #c8efe4, #f0dca5); overflow: hidden; }
.book { position: relative; width: 210px; height: 142px; filter: drop-shadow(0 24px 24px rgba(25,63,62,.18)); }
.book i { position: absolute; width: 108px; height: 142px; border: 7px solid var(--ink); background: #fffdf5; }
.book i:first-child { left: 0; border-radius: 14px 3px 3px 14px; transform: skewY(7deg); }
.book i:last-child { right: 0; border-radius: 3px 14px 14px 3px; transform: skewY(-7deg); }
.orbit { position: absolute; display: grid; place-items: center; border-radius: 50%; font: 700 18px 'Poppins', 'Segoe UI', sans-serif; box-shadow: 0 12px 28px rgba(25,63,62,.14); }
.orbit.one { top: 15%; left: 15%; width: 68px; height: 68px; background: var(--coral); transform: rotate(-12deg); }
.orbit.two { right: 13%; top: 20%; width: 86px; height: 86px; background: white; transform: rotate(9deg); }
.orbit.three { right: 19%; bottom: 15%; width: 58px; height: 58px; background: var(--yellow); transform: rotate(-6deg); }
.welcome-content { padding: clamp(38px, 6vw, 72px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.welcome-content h1 { font-size: clamp(36px, 4vw, 54px); }
.welcome-content > p { margin: 0; color: var(--muted); line-height: 1.7; }
.check-list { margin: 26px 0; padding: 0; display: grid; gap: 12px; list-style: none; color: #3e5859; font-size: 14px; }
.check-list li { display: flex; gap: 10px; }
.check-list span { color: var(--teal-dark); font-weight: 800; }
.notice { margin-bottom: 28px; padding: 17px 18px; border-left: 4px solid var(--yellow); background: #fff8df; font-size: 12px; line-height: 1.5; }
.notice p { margin: 4px 0 0; color: #6c654d; }

.test-header { position: sticky; z-index: 10; top: 0; height: 96px; padding: 0 clamp(22px, 5vw, 72px); display: grid; grid-template-columns: minmax(280px, 320px) minmax(260px, 540px) 150px; justify-content: space-between; align-items: center; gap: 34px; background: rgba(251,252,248,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.test-branding { min-width: 0; display: flex; align-items: center; gap: 18px; }
.test-branding .brand { flex: 0 0 auto; }
.test-section { min-width: 0; padding-left: 18px; display: flex; align-items: center; gap: 5px; border-left: 1px solid var(--line); line-height: 1.2; }
.test-section small { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.test-section i { color: var(--logo-grey-dark); font-size: 10px; font-style: normal; }
.test-section strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.test-progress > div:first-child { margin-bottom: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.test-progress strong { color: var(--ink); }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #dfe8e3; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #69d0a6); transition: width .35s ease; }
.timer { justify-self: end; display: grid; justify-items: end; }
.timer span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.timer strong { margin-top: 3px; font: 700 24px 'Poppins', 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
.test-main { width: min(840px, calc(100% - 40px)); min-height: calc(100vh - 96px); margin: 0 auto; padding: clamp(46px, 7vh, 84px) 0 40px; }
.question-meta { margin-bottom: 18px; display: flex; align-items: center; }
.question-number { font: 700 13px 'Poppins', 'Segoe UI', sans-serif; letter-spacing: .06em; }
.question-number i { color: #92a2a2; font-style: normal; font-weight: 600; }
.question-card { padding: clamp(28px, 5vw, 54px); background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 22px 70px rgba(25,63,62,.08); }
.question-card h1 { margin: 14px 0 8px; font: 700 clamp(27px, 4vw, 40px)/1.2 'Poppins', 'Segoe UI', sans-serif; letter-spacing: -.035em; }
.question-hint { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.passage { margin-bottom: 30px; padding: 24px; border-radius: 18px; background: #f1f7f3; }
.passage span { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.passage p { margin: 10px 0 0; font: 500 clamp(18px, 2.5vw, 23px)/1.65 'Poppins', 'Segoe UI', sans-serif; }
.oral-passage { border-left: 4px solid var(--teal); }
.stimulus-list { margin: 24px 0 30px; padding: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; border-radius: 18px; background: #f1f7f3; }
.stimulus-list span { padding: 10px 14px; border-radius: 10px; background: white; font-size: clamp(18px, 3vw, 24px); font-weight: 700; box-shadow: 0 4px 14px rgba(25,63,62,.06); }
.stimulus-list span small { margin-right: 6px; color: #93a2a2; font-size: 9px; font-weight: 600; vertical-align: top; }
.single-stimulus { margin: 26px 0 30px; padding: 34px 22px; border-radius: 18px; background: #f1f7f3; text-align: center; font-size: clamp(40px, 8vw, 68px); font-weight: 600; letter-spacing: .02em; }
.timed-stimulus { transition: filter .2s ease, opacity .2s ease; }
.timed-stimulus.locked { min-height: 150px; filter: blur(12px); opacity: .16; user-select: none; }
.audio-controls { margin: 4px 0 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.audio-button { min-height: 54px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 13px; background: var(--teal); color: white; font-weight: 600; cursor: pointer; }
.audio-button:hover { background: #18b8c0; }
.audio-button:focus-visible { outline: 4px solid rgba(37,202,210,.24); outline-offset: 2px; }
.audio-button > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #167f85; color: white; font-size: 10px; }
.audio-button small { color: #315b5e; font-size: 10px; }
.audio-button:disabled { cursor: default; opacity: .62; }
.tutor-reveal { font-size: 11px; color: #7b8989; }
.answer-options { display: grid; gap: 12px; }
.answer-card { min-height: 68px; padding: 13px 18px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 14px; border: 1px solid #d3dedb; border-radius: 15px; background: white; text-align: left; font: 600 17px 'Poppins', 'Segoe UI', sans-serif; cursor: pointer; transition: .16s ease; }
.answer-card:hover { border-color: var(--teal); background: #f6fbf8; transform: translateX(3px); }
.answer-card:focus-visible { outline: 4px solid rgba(37,202,210,.2); border-color: var(--teal-dark); }
.answer-card.selected { border-color: var(--teal-dark); background: var(--mint); transform: scale(.995); }
.answer-card:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.option-key { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #edf3f0; color: var(--teal-dark); font-size: 12px; }
.scale-options { grid-template-columns: repeat(3, 1fr); }
.scale-options .answer-card { min-height: 96px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.response-form { display: grid; gap: 12px; }
.response-form label { color: #40585b; font-size: 13px; font-weight: 700; }
.response-input, .response-form textarea { width: 100%; border: 1px solid #cbd8d5; border-radius: 13px; outline: none; background: white; color: var(--ink); }
.response-input { height: 56px; padding: 0 16px; font-size: 19px; }
.response-form textarea { min-height: 130px; padding: 16px; overflow-x: hidden; overflow-y: auto; resize: none; font: 500 17px/1.6 'Poppins', 'Segoe UI', sans-serif; }
.response-input:focus, .response-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(37,202,210,.14); }
.response-form .button { justify-self: end; margin-top: 5px; }
.writing-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.writing-footer span:first-child { color: var(--teal-dark); font-weight: 800; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--logo-grey-dark); font-weight: 600; cursor: pointer; }
.task-timer { margin-bottom: 4px; padding: 9px 13px; display: flex; justify-content: space-between; border-radius: 10px; background: #eef8f6; color: var(--muted); font-size: 12px; }
.task-timer strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.task-timer.expired { background: #fff0ec; color: #a23b31; }
.timed-trial { margin: 18px 0 24px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f8faf9; }
.trial-clock { margin-right: auto; display: grid; min-width: 100px; }
.trial-clock span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.trial-clock strong { font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.trial-clock small { color: var(--muted); font-size: 10px; }
.trial-fields, .prosody-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trial-fields label, .prosody-grid label { display: grid; gap: 7px; }
.trial-fields input, .trial-fields select, .prosody-grid select { width: 100%; height: 50px; padding: 0 13px; border: 1px solid #cbd8d5; border-radius: 11px; background: white; color: var(--ink); }
.fluency-form fieldset { margin: 6px 0 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; }
.fluency-form legend { padding: 0 7px; color: #40585b; font-size: 12px; font-weight: 700; }
.oral-question { padding: 16px; display: grid; gap: 7px; border-left: 4px solid var(--teal); border-radius: 10px; background: #eef8f6; }
.oral-question[hidden] { display: none; }
.oral-question span { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.oral-question strong { font-size: 15px; }
.oral-question .text-button { justify-self: start; font-size: 11px; }
.professional-only-note { padding: 15px 17px; display: grid; gap: 4px; border-radius: 12px; background: #f2f4f3; color: var(--logo-grey-dark); }
.professional-only-note strong { color: var(--ink); font-size: 12px; }
.professional-only-note span { font-size: 11px; line-height: 1.55; }
.observation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.observation-form label { display: grid; gap: 7px; }
.observation-form select { width: 100%; height: 50px; padding: 0 13px; border: 1px solid #cbd8d5; border-radius: 11px; background: white; color: var(--ink); }

html[data-result-stage="celebration"], html[data-result-stage="handoff"], body[data-result-stage="celebration"], body[data-result-stage="handoff"] { height: 100%; min-height: 0; overflow: hidden; }
.result-stage-shell { position: relative; height: calc(100dvh - 88px); min-height: 0; padding: 48px 24px; overflow-x: hidden; overflow-y: auto; display: grid; place-items: center; isolation: isolate; }
.celebration-screen { background: radial-gradient(circle at 16% 20%, rgba(242,200,93,.25), transparent 28%), radial-gradient(circle at 84% 78%, rgba(37,202,210,.22), transparent 31%), linear-gradient(145deg, #fffdf6, #f7fffd); }
@property --celebration-progress {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.completion-frame { --celebration-progress: 0deg; position: relative; z-index: 2; width: min(700px, 100%); padding: 3px; border-radius: 27px; background: conic-gradient(from -90deg, var(--teal) var(--celebration-progress), var(--line) 0deg); box-shadow: var(--shadow); animation: completion-border 18s linear forwards; }
@keyframes completion-border { to { --celebration-progress: 360deg; } }
.completion-card, .handoff-card { position: relative; z-index: 2; width: min(700px, 100%); padding: clamp(38px, 6vw, 64px); text-align: center; }
.completion-frame .completion-card { width: 100%; border: 0; background: white; box-shadow: none; }
.completion-symbol, .handoff-icon { width: 76px; height: 76px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: 34px; font-weight: 700; box-shadow: 0 15px 35px rgba(37,202,210,.25); }
.completion-card h1, .handoff-card h1 { margin: 12px 0 18px; font-size: clamp(38px, 6vw, 60px); line-height: 1.08; letter-spacing: -.05em; }
.completion-card p, .handoff-card p { max-width: 570px; margin: 0 auto 14px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.completion-card .completion-time { color: var(--ink); font-size: 18px; }
.completion-card .button { margin-top: 16px; }
.confetti-field { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-field i { position: absolute; top: -28px; left: var(--x); width: 10px; height: 18px; border-radius: 2px; background: var(--colour); opacity: 0; animation: confetti-fall var(--duration) linear var(--delay) infinite; }
.confetti-field i:nth-child(3n) { width: 12px; height: 12px; border-radius: 50%; }
.confetti-field i:nth-child(4n) { width: 7px; height: 22px; }
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg) scale(.5); }
  9% { opacity: 1; transform: translate3d(calc(var(--drift) * -.2), 2vh, 0) rotate(45deg) scale(1); }
  100% { opacity: .9; transform: translate3d(var(--drift), 110vh, 0) rotate(var(--turn)); }
}
.handoff-screen { background: radial-gradient(circle at 50% 30%, rgba(37,202,210,.14), transparent 35%), var(--paper); }
.handoff-card { width: min(660px, 100%); }
.handoff-icon { background: var(--logo-grey); color: var(--ink); box-shadow: none; }
.handoff-card h1 { font-size: clamp(34px, 5vw, 52px); }
.handoff-card .button { margin-top: 20px; }

.result-wrap { width: min(1060px, 100%); margin: auto; }
.result-page-shell { min-height: 0; }
.simple-result { padding-bottom: 20px; }
.report-overview { padding: 22px 0 34px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(38px, 7vw, 78px); align-items: center; }
.review-card { min-height: 330px; padding: clamp(34px, 5vw, 52px); display: flex; flex-direction: column; justify-content: center; box-shadow: none; }
.review-card h1 { margin: 13px 0 18px; font-size: clamp(30px, 4vw, 46px); line-height: 1.18; letter-spacing: -.045em; }
.review-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.result-metrics { display: grid; justify-items: center; gap: 22px; }
.risk-ring { position: relative; width: 235px; height: 235px; justify-self: center; }
.risk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.risk-ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: #e3ebe7; }
.ring-value { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 289; transition: stroke-dashoffset .8s ease; }
.risk-ring.observe .ring-value { stroke: var(--yellow); }
.risk-ring.consult .ring-value { stroke: var(--coral); }
.risk-ring > div { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.risk-ring strong { font: 700 55px 'Poppins', 'Segoe UI', sans-serif; letter-spacing: -.06em; }
.risk-ring span { color: var(--muted); font-size: 11px; }
.score-summary { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.score-summary span { color: var(--muted); font-size: 11px; font-weight: 600; }
.score-summary b { color: var(--ink); font: 700 25px 'Poppins', 'Segoe UI', sans-serif; }
.report-totals { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.report-totals span { display: grid; justify-items: center; gap: 2px; text-align: center; }
.report-confirmation { margin-top: 18px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.report-confirmation strong { font-size: 15px; }
.report-confirmation p { max-width: 650px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.report-confirmation .delivery-status { min-height: 20px; margin-top: 9px; font-weight: 600; }
.delivery-status:empty { display: none; }
.delivery-status.pending { color: var(--logo-grey-dark); }
.delivery-status.success { color: #13868c; }
.delivery-status.error { color: #a53b32; }
.report-confirmation .button { flex: 0 0 auto; }

@media (max-width: 800px) {
  .access-layout, .welcome-card, .report-overview { grid-template-columns: 1fr; }
  .welcome-illustration { min-height: 300px; }
  .test-header { grid-template-columns: 1fr 86px; height: auto; min-height: 92px; padding: 14px 20px; gap: 15px; }
  .test-branding { display: none; }
  .timer { grid-column: 2; grid-row: 1; }
  .test-progress { grid-column: 1; grid-row: 1; }
  .report-overview { gap: 30px; }
  .review-card { min-height: 0; }
  .result-metrics { width: min(420px, 100%); justify-self: center; }
  .risk-ring { justify-self: center; }
  .report-confirmation { align-items: center; flex-direction: column; text-align: center; }
  .report-confirmation p { margin-right: auto; margin-left: auto; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 74px; padding: 0 20px; }
  .brand img { width: 150px; }
  .page-shell { width: min(100% - 28px, 1180px); padding: 38px 0 60px; }
  .access-shell { height: 100%; min-height: 0; padding: 30px 18px; }
  .access-stage { gap: 38px; }
  .access-brand .brand img { width: 185px; }
  .access-card, .registration-grid, .question-card { padding: 24px; }
  .product-title { margin-bottom: 30px; }
  .form-heading { grid-template-columns: 1fr; gap: 16px; }
  .registration-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .phone-control { grid-template-columns: 118px minmax(0, 1fr); }
  .segmented { grid-template-columns: 1fr; }
  .form-actions { gap: 10px; }
  .form-actions .button { flex: 1; padding: 0 12px; }
  .welcome-content { padding: 30px 24px 38px; }
  .welcome-illustration { min-height: 250px; }
  .book { transform: scale(.76); }
  .scale-options { grid-template-columns: 1fr; }
  .scale-options .answer-card { min-height: 62px; grid-template-columns: 38px 1fr; justify-items: stretch; text-align: left; }
  .audio-controls { align-items: flex-start; flex-direction: column; }
  .timed-trial { align-items: stretch; flex-direction: column; }
  .trial-clock { margin-right: 0; }
  .trial-fields, .prosody-grid, .check-grid, .observation-grid { grid-template-columns: 1fr; }
  .response-form .button { width: 100%; }
  .question-card h1 { font-size: 28px; }
  .result-stage-shell { height: calc(100dvh - 74px); min-height: 0; padding: 28px 16px; }
  .completion-card, .handoff-card { padding: 34px 24px; }
  .completion-card h1, .handoff-card h1 { font-size: 34px; }
  .report-totals { grid-template-columns: 1fr; }
  .report-confirmation { padding: 22px; }
  .report-confirmation .button { width: auto; min-width: 210px; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .confetti-field { display: none; }
  .completion-frame { background: var(--teal); }
}
