@charset "UTF-8";
:root {
  --nr-blue: #1d6fe0;
  --nr-blue-600: #1559c2;
  --nr-blue-700: #0f469c;
  --nr-cyan: #00aeef;
  --nr-sky: #e8f4ff;
  --nr-green: #00a86b;
  --nr-green-soft: #e3f7ee;
  --nr-gold: #ffb020;
  --nr-gold-soft: #fff4dc;
  --ink-950: #070d1c;
  --ink-900: #0b1426;
  --ink-800: #17223a;
  --ink-700: #2a3650;
  --ink-500: #5b6782;
  --ink-400: #8a94ab;
  --ink-300: #c3cad8;
  --ink-200: #e3e8f0;
  --ink-100: #f1f4f9;
  --ink-50: #f8fafc;
  --white: #fff;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --font-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-soft: 0 12px 36px rgba(11, 20, 38, .10);
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--ink-50);
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--ink-50); }
body { margin: 0; min-height: 100vh; background: var(--ink-50); color: var(--ink-900); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; }
button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(29, 111, 224, .5); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; transform: translateY(-150%); background: var(--white); color: var(--nr-blue-700); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-soft); }
.skip-link:focus-visible { transform: translateY(0); }
::selection { background: var(--nr-blue); color: var(--white); }

.prototype-app { width: min(100%, 440px); min-height: 100svh; margin-inline: auto; background: var(--white); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.demo-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 18px; background: #f0f7ff; color: var(--nr-blue-700); border-bottom: 1px solid #d9ebff; font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.demo-banner span:last-child { color: var(--ink-500); font-weight: 600; letter-spacing: 0; }
.app-header { background: var(--nr-blue); color: var(--white); padding: 14px 20px 18px; border-radius: 0 0 22px 22px; }
.screen-title { margin-top: 10px; color: var(--white); font: 700 18px/1.3 var(--font-display); letter-spacing: -.02em; }
.brand-row { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.back-button { width: 44px; height: 44px; margin-left: -10px; padding: 0; border: 0; border-radius: 12px; color: var(--white); background: transparent; display: grid; place-items: center; flex: 0 0 44px; }
.back-button:hover { background: rgba(255,255,255,.12); }
.back-button svg { width: 22px; height: 22px; }
.brand-mark { display: block; width: 126px; max-height: 35px; object-fit: contain; object-position: left center; padding: 4px 7px; border-radius: 8px; background: var(--white); }
.brand-row .spacer { flex: 1; }
.prototype-tag { border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 9px; color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.screen-step { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; }
.screen-step .step-track { height: 4px; flex: 1; max-width: 110px; background: rgba(255,255,255,.32); border-radius: 99px; overflow: hidden; }
.screen-step .step-fill { display: block; height: 100%; background: var(--white); border-radius: inherit; transition: width 180ms ease-out; }

.screen-content { flex: 1; padding: 24px 20px 30px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; color: var(--ink-950); font: 700 26px/1.18 var(--font-display); letter-spacing: -.03em; }
h2 { margin-bottom: 8px; color: var(--ink-900); font: 700 18px/1.25 var(--font-display); letter-spacing: -.02em; }
h3 { margin-bottom: 5px; font: 700 15px/1.3 var(--font-body); }
.lead { margin-bottom: 20px; color: var(--ink-500); font-size: 15px; line-height: 1.5; }
.eyebrow { margin: 0 0 8px; color: var(--nr-blue-700); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.helper { margin: 7px 0 0; color: var(--ink-500); font-size: 13px; line-height: 1.45; }
.small-note { color: var(--ink-500); font-size: 12px; }

.route-list { display: grid; gap: 10px; margin: 22px 0 24px; }
.route-choice { width: 100%; min-height: 84px; padding: 14px 14px; display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--ink-200); border-radius: var(--r-md); color: var(--ink-900); background: var(--white); transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.route-choice:hover { border-color: var(--nr-blue); background: #fbfdff; }
.route-choice:active { transform: scale(.99); }
.route-number { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--nr-sky); color: var(--nr-blue-700); font-size: 13px; font-weight: 800; }
.route-choice strong { display: block; margin-bottom: 3px; font-size: 15px; }
.route-choice small { display: block; color: var(--ink-500); font-size: 12px; line-height: 1.35; }
.route-arrow { color: var(--nr-blue); font-size: 20px; font-weight: 700; }
.route-arrow svg { display: block; width: 18px; height: 18px; }
.demo-controls { margin-top: 22px; border-top: 1px solid var(--ink-200); padding-top: 14px; }
.demo-controls summary { min-height: 44px; display: flex; align-items: center; color: var(--ink-700); font-size: 13px; font-weight: 700; cursor: pointer; }
.demo-controls p { margin: 0 0 10px; color: var(--ink-500); font-size: 12px; }
.scenario-options { display: grid; gap: 7px; }
.scenario-option { min-height: 42px; display: flex; align-items: center; gap: 9px; color: var(--ink-700); font-size: 13px; }
.scenario-option input { accent-color: var(--nr-blue); width: 18px; height: 18px; }

.choice-list { display: grid; gap: 10px; margin: 18px 0; }
.choice-card { position: relative; min-height: 58px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--ink-200); border-radius: 14px; background: var(--white); color: var(--ink-900); cursor: pointer; }
.choice-card.selected { border: 2px solid var(--nr-blue); padding: 11px 13px; background: #f6fbff; }
.choice-card.disabled { color: var(--ink-400); background: var(--ink-50); cursor: not-allowed; }
.choice-card input { width: 20px; height: 20px; accent-color: var(--nr-blue); flex: 0 0 auto; }
.choice-card .choice-copy { flex: 1; }
.choice-card strong { display: block; font-size: 15px; }
.choice-card small { display: block; color: var(--ink-500); font-size: 12px; }
.choice-chip { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--ink-100); color: var(--ink-500); font-size: 10px; font-weight: 800; white-space: nowrap; }
.choice-card.selected .choice-chip { background: var(--nr-sky); color: var(--nr-blue-700); }
.levels-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.level-pill { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ink-200); color: var(--ink-500); background: var(--white); font-size: 12px; font-weight: 650; }
.level-pill.active { color: var(--nr-blue-700); border-color: var(--nr-blue); background: var(--nr-sky); }

.form-stack { display: grid; gap: 17px; }
.form-section { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--ink-200); border-radius: var(--r-md); background: var(--white); }
.form-section > p { margin: -2px 0 0; color: var(--ink-500); font-size: 13px; }
.field { display: grid; gap: 6px; }
.field label, .group-label { color: var(--ink-800); font-size: 13px; font-weight: 700; }
.required { color: var(--nr-blue-700); }
.field input, .field select, .field textarea, .search-input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--ink-300); border-radius: 12px; background: var(--white); color: var(--ink-900); font-size: 16px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .search-input::placeholder { color: var(--ink-500); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { border-color: var(--nr-blue); outline: 3px solid rgba(29,111,224,.17); }
.field input[readonly] { background: var(--ink-50); color: var(--ink-700); }
.field small { color: var(--ink-500); font-size: 12px; }
.radio-inline { display: flex; flex-wrap: wrap; gap: 9px; }
.radio-option { min-height: 44px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--white); font-size: 14px; }
.radio-option input { width: 18px; height: 18px; accent-color: var(--nr-blue); }
.field-error, .error-box { color: var(--danger); }
.field-error { margin: 2px 0 0; font-size: 12px; }
.error-box { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #f1b2aa; border-radius: 12px; background: var(--danger-soft); font-size: 14px; }
.error-box:empty { display: none; }
.error-box[tabindex="-1"]:focus { outline: 3px solid rgba(180,35,24,.28); outline-offset: 2px; }

.school-result { width: 100%; min-height: 98px; margin: 9px 0; padding: 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--ink-200); border-radius: var(--r-md); background: var(--white); color: var(--ink-900); }
.school-result:hover { border-color: var(--nr-blue); }
.school-result strong { display: block; font-size: 15px; }
.school-result small { display: block; margin-top: 4px; color: var(--ink-500); font-size: 12px; }
.school-result .result-levels { display: block; margin-top: 7px; color: var(--nr-blue-700); font-size: 11px; font-weight: 700; }
.sample-label { display: inline-block; margin-bottom: 9px; padding: 4px 8px; border-radius: 999px; background: var(--nr-sky); color: var(--nr-blue-700); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.school-context { margin: 4px 0 18px; padding: 14px; border: 1px solid var(--ink-200); border-radius: 14px; background: var(--ink-50); }
.school-context strong { display: block; font-size: 15px; }
.school-context span { display: block; margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.state-panel { margin: 12px 0 18px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--ink-200); background: var(--ink-50); }
.state-panel.error { border-color: #f1b2aa; background: var(--danger-soft); }
.state-panel h2 { margin-bottom: 7px; }
.state-panel p { margin-bottom: 0; color: var(--ink-500); font-size: 14px; }
.state-panel.error p { color: #7a271a; }
.inline-link { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--nr-blue-700); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.rating-progress { margin: 0 0 17px; padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: 14px; background: var(--ink-50); }
.rating-progress-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink-700); font-size: 13px; font-weight: 700; }
.progress-track { height: 7px; margin-top: 9px; background: var(--ink-200); border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--nr-green); border-radius: inherit; transition: width 160ms ease-out; }
.child-level { margin: 0 0 16px; padding: 15px; border: 1px solid var(--ink-200); border-radius: var(--r-md); }
.child-level legend { padding: 0 4px; color: var(--ink-900); font-size: 14px; font-weight: 750; }
.child-level .helper { margin: 0 0 10px; }
.child-choice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.child-choice { min-height: 48px; position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink-300); border-radius: 12px; background: var(--white); color: var(--ink-800); font-size: 13px; font-weight: 700; cursor: pointer; }
.child-choice:has(input:checked) { border: 2px solid var(--nr-blue); background: var(--nr-sky); color: var(--nr-blue-700); }
.child-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.child-choice:has(input:focus-visible) { outline: 3px solid rgba(29,111,224,.5); outline-offset: 3px; }
.rating-list { display: grid; gap: 11px; }
.rating-item { padding: 13px 14px 12px; border: 1px solid var(--ink-200); border-radius: 14px; background: var(--white); }
.rating-item legend { padding: 0; color: var(--ink-900); font-size: 14px; font-weight: 750; }
.rating-item .rating-value { min-height: 20px; margin: 4px 0 0; color: var(--ink-500); font-size: 12px; }
.rating-item .rating-value.selected { color: var(--nr-green); font-weight: 700; }
.stars { display: flex; gap: 6px; margin-top: 7px; }
.star-choice { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; }
.star-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.star-choice span { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink-400); font-size: 28px; line-height: 1; border-radius: 9px; }
.star-choice:hover span { background: var(--ink-100); }
.star-choice input:checked + span { color: #14794f; text-shadow: 0 0 0 currentColor; }
.star-choice input:focus-visible + span { outline: 3px solid rgba(29,111,224,.55); outline-offset: 2px; }
.assumption { margin: 10px 0 0; padding: 11px 12px; border: 1px solid #ecd39f; border-radius: 12px; background: var(--nr-gold-soft); color: #563c10; font-size: 12px; line-height: 1.45; }
.assumption strong { display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.rating-error { margin: 12px 0 0; color: var(--danger); font-size: 13px; }

.action-area { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink-100); background: rgba(255,255,255,.97); position: sticky; bottom: 0; z-index: 2; }
.prototype-app.rating-screen > .action-area { position: static; }
.primary-button, .secondary-button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; padding: 12px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; transition: background 130ms ease, transform 130ms ease, box-shadow 130ms ease; }
.primary-button { color: var(--white); background: var(--nr-blue); box-shadow: 0 4px 12px rgba(29,111,224,.18); }
.primary-button:hover { background: var(--nr-blue-600); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { background: #9ab6d9; box-shadow: none; cursor: not-allowed; }
.secondary-button { border: 1px solid var(--ink-200); color: var(--ink-800); background: var(--white); }
.secondary-button:hover { border-color: var(--nr-blue); background: #fbfdff; }
.action-area .helper { text-align: center; }
.action-area .secondary-button + .primary-button { margin-top: 9px; }

.thank-mark { width: 52px; height: 52px; margin-bottom: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--nr-green-soft); color: #08744d; font-size: 25px; font-weight: 800; }
.thank-mark svg { display: block; width: 25px; height: 25px; }
.done-panel { padding: 15px; border: 1px solid var(--ink-200); border-radius: 14px; background: var(--ink-50); color: var(--ink-700); font-size: 13px; }
.demo-disclaimer { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--nr-sky); color: var(--nr-blue-700); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 600px) {
  body { padding: 24px 12px; }
  .prototype-app { min-height: calc(100svh - 48px); border: 1px solid var(--ink-200); border-radius: 22px; overflow: hidden; }
  .app-header { border-radius: 0 0 22px 22px; }
}
@media (max-width: 360px) {
  .screen-content { padding-inline: 16px; }
  .action-area { padding-inline: 16px; }
  .child-choice-list { gap: 6px; }
  .child-choice { font-size: 12px; }
  .stars { gap: 2px; }
  .star-choice { width: 42px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .prototype-app { min-height: 100svh; }
  .screen-content { padding-top: 18px; }
  .action-area { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
