:root {
  --navy: oklch(24% 0.055 255);
  --navy-deep: oklch(18% 0.045 255);
  --navy-raised: oklch(29% 0.065 252);
  --cyan: oklch(68% 0.16 255);
  --cyan-soft: oklch(82% 0.075 255);
  --cyan-dark: oklch(50% 0.145 258);
  --cyan-ink: oklch(25% 0.08 260);
  --cyan-wash: oklch(94% 0.03 255);
  --blue-wash: oklch(92% 0.028 245);
  --mist: oklch(97% 0.008 235);
  --mist-strong: oklch(93% 0.014 235);
  --slate: oklch(48% 0.025 250);
  --white: oklch(100% 0 0);
  --radius-sm: .2rem;
  --radius-md: .35rem;
  --container: clamp(78rem, calc(100vw - 8rem), 104rem);
  --page-gutter: clamp(1rem, 4vw, 4rem);
  --surface: oklch(98% 0.006 240);
  --surface-muted: oklch(95% 0.012 240);
  --ink: oklch(24% 0.045 255);
  --muted: oklch(48% 0.035 245);
  --line: oklch(86% 0.025 240);
  --line-dark: oklch(42% 0.055 245);
  --danger: oklch(58% 0.21 25);
  --warning: oklch(73% 0.16 75);
  --success: oklch(63% 0.15 155);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Onest", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

body {
  min-width: 20rem;
  background: var(--blue-wash);
  color: var(--ink);
  font-family: var(--font-body);
  font-synthesis: none;
}

button, input { font: inherit; }

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.container { width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--container)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--mist-strong);
  background: color-mix(in oklch, white 94%, transparent);
  backdrop-filter: blur(14px);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}

.site-header[data-scrolled="true"] { background: color-mix(in oklch, white 98%, transparent); box-shadow: 0 4px 8px oklch(18% .03 255 / .08); }
.nav { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 2.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.button) { color: var(--slate); font-size: .9rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="location"]:not(.button) { color: var(--navy); box-shadow: inset 0 -2px 0 var(--cyan-dark); }
.menu-toggle { display: none; width: 3rem; height: 3rem; border: 0; border-radius: var(--radius-sm); background: var(--mist); color: var(--navy); }
.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; padding: .85rem 1.3rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { border-color: var(--cyan); background: var(--cyan); color: var(--navy-deep); }

.assessment-context { border-bottom: 1px solid oklch(42% .06 245); background: var(--navy); color: white; }
.context-row { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.context-row div { display: grid; gap: .1rem; }
.context-row div span { color: var(--cyan-soft); font-size: .7rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.context-row strong { font-family: var(--font-display); font-size: .95rem; }
.context-row .badge { padding: .4rem .55rem; border: 1px solid oklch(52% .055 245); color: var(--cyan); font-size: .72rem; font-weight: 750; }

.main {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--container));
  max-width: none;
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.assessment-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, .75fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.intro-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .8rem;
  color: oklch(45% .11 215);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.intro-label i {
  width: .55rem;
  height: .55rem;
  background: var(--cyan);
}

.assessment-intro h2 {
  max-width: 17ch;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.assessment-intro p:last-child {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.scale-guide {
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--navy-deep);
}

.scale-guide > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.scale-guide ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .4rem;
  margin-top: .8rem;
  list-style: none;
}

.scale-guide li {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.2;
}

.scale-guide b {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .4rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-size: .78rem;
}

.progress-wrap {
  position: sticky;
  z-index: 20;
  top: 4.75rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: oklch(99% .004 240 / .96);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.progress-stats {
  display: flex;
  gap: 0;
  margin-bottom: .9rem;
}

.pstat {
  min-width: 8rem;
  padding-inline: 1rem;
  border-right: 1px solid var(--line);
  text-align: left;
}

.pstat:first-child { padding-left: 0; }
.pstat:last-child { border-right: 0; }

.pstat-n {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.pstat-l {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}

.pbar-track {
  height: 3px;
  border-radius: 0;
  background: var(--line);
}

.pbar-fill {
  border-radius: 0;
  background: var(--cyan);
}

.dim-block {
  margin-bottom: .75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: none;
}

.dim-hdr {
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: white;
  color: inherit;
  text-align: left;
}

.dim-hdr:hover { background: var(--surface-muted); }
.dim-hdr.open { background: var(--navy-deep); }

.dim-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0;
  background: var(--navy);
  color: var(--cyan-soft);
  font-family: var(--font-display);
  font-size: .78rem;
}

.dim-hdr.open .dim-icon {
  background: var(--cyan);
  color: var(--navy-deep);
}

.dim-name {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: -.015em;
}

.dim-desc {
  max-width: 72ch;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.dim-hdr.open .dim-name { color: white; }
.dim-hdr.open .dim-desc { color: var(--cyan-soft); }

.dim-badge,
.dim-avg {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.dim-avg { border: 0; color: white; }
.dim-hdr.open .dim-badge { border-color: var(--line-dark); background: var(--navy); color: var(--cyan-soft); }
.chevron { color: var(--muted); }
.dim-hdr.open .chevron { color: var(--cyan); }

.dim-body { border-top: 0; background: var(--surface); }

.sub-block {
  padding: 1.6rem 1.5rem .5rem;
  border-bottom: 1px solid var(--line);
}

.sub-title {
  margin-bottom: .6rem;
  color: oklch(43% .1 215);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: none;
}

.q-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem 2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.q-text {
  max-width: 74ch;
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.55;
}

.q-num { color: oklch(45% .11 215); font-weight: 800; }

.likert {
  display: grid;
  grid-template-columns: repeat(5, 2.5rem);
  gap: .35rem;
}

.likert-opt input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.likert-dot {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--muted);
  font-size: .76rem;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s var(--ease);
}

.likert-opt:hover .likert-dot {
  border-color: var(--cyan);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.likert-opt input:focus-visible + .likert-dot {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.likert-opt input:checked + .likert-dot {
  border-color: var(--cyan);
  background: var(--navy-deep) !important;
  color: white;
}

.likert-legend { display: none; }

.action-bar {
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.btn {
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 750;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease);
}

.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn-primary, .btn-teal { background: var(--cyan); color: var(--navy-deep); }
.btn-primary:hover, .btn-teal:hover { background: var(--cyan-soft); }
.btn-outline { border-color: var(--line); background: white; color: var(--navy-deep); }
.btn-outline:hover { border-color: var(--navy); background: var(--surface-muted); }

.report-panel {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.report-kicker {
  margin-bottom: .35rem;
  color: oklch(45% .11 215);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.report-head h2 {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.report-score {
  display: grid;
  min-width: 9rem;
  justify-items: end;
  gap: .45rem;
}

.score-value {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  padding: .4rem .55rem;
  background: var(--band-color);
  color: white;
  font-size: .72rem;
  font-weight: 800;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.report-meta span {
  display: grid;
  gap: .2rem;
  color: var(--ink);
  font-size: .82rem;
}

.report-meta strong {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
}

.report-dimensions {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.report-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.report-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem .85rem;
  border-top: 3px solid var(--band-color);
  border-bottom: 1px solid var(--line);
  background: white;
}

.report-card header span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .65rem;
  background: var(--navy-deep);
  color: var(--cyan-soft);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
}

.report-card h3 {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -.02em;
}

.report-card-score {
  display: grid;
  justify-items: end;
  gap: .25rem;
  min-width: 7rem;
}

.report-card-score strong {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.report-card-score em {
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  font-weight: 750;
  text-align: right;
}

.report-progress {
  padding: .8rem 1rem 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.report-copy {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.6;
}

.report-copy p,
.report-copy ul {
  max-width: 82ch;
}

.report-copy ul {
  display: grid;
  gap: .35rem;
  padding-left: 1.1rem;
}

.report-copy strong {
  color: var(--navy-deep);
}

.report-disclaimer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

.report-disclaimer strong {
  color: var(--navy-deep);
}

.overlay {
  z-index: 40;
  padding: 1rem;
  background: oklch(12% .035 255 / .76);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  width: min(37rem, 100%);
  padding: 2rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 8px 0 oklch(10% .03 255 / .25);
}

.modal-signal {
  position: absolute;
  top: 0;
  left: 2rem;
  width: 4rem;
  height: 3px;
  background: var(--cyan);
}

.modal h2 {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -.03em;
}

.modal p {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.field label {
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
}

.field input,
.field select {
  min-height: 2.75rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .85rem;
}

.field input::placeholder { color: oklch(49% .025 245); }
.field input:hover { border-color: var(--line-dark); }
.field input:focus { border-color: var(--cyan); }

.consent-box {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  background: white;
}

.consent-box label {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent-box input {
  width: 1rem;
  height: 1rem;
  margin-top: .15rem;
  accent-color: var(--cyan-dark);
  flex: 0 0 auto;
}

#toast {
  z-index: 50;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: .8rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--navy-deep);
  color: white;
  font-family: var(--font-body);
  font-size: .8rem;
}

#toast.error {
  border-color: var(--danger);
  background: oklch(27% .09 25);
}

.site-footer { padding-block: 3rem; background: var(--navy-deep); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid p, .footer-grid a { color: oklch(84% .025 240); }
.footer-grid p { max-width: 68ch; margin-top: 1rem; }
.footer-grid a { display: block; width: fit-content; margin-block: .45rem; text-decoration: none; }
.footer-grid a.brand { display: inline-flex; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid oklch(34% .04 250); color: oklch(72% .02 240); font-size: .8rem; line-height: 1.55; }

@media (max-width: 860px) {
  .assessment-intro { grid-template-columns: 1fr; gap: 2rem; }
  .q-item { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed; inset: 4.75rem 0 auto; display: flex; max-height: calc(100dvh - 4.75rem); padding: 1.25rem 1rem 2rem; overflow-y: auto; background: white;
    border-bottom: 1px solid var(--mist-strong); flex-direction: column; align-items: stretch;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem); pointer-events: none;
    transition: opacity .22s ease-out, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav-links[data-open="true"] { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .nav-links a { display: flex; min-height: 3rem; align-items: center; }
}

@media (max-width: 600px) {
  :root { --page-gutter: .75rem; }
  .brand img { height: 2rem; }
  .context-row { min-height: 4rem; }
  .main { padding-top: 3rem; }
  .assessment-intro h2 { font-size: 2.1rem; }
  .scale-guide { overflow-x: auto; }
  .scale-guide ol { min-width: 24rem; }
  .progress-wrap { padding: .85rem; }
  .progress-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .pstat { min-width: 0; padding: 0; border: 0; }
  .dim-hdr { align-items: flex-start; padding: 1rem; }
  .dim-meta { display: grid; gap: .3rem; }
  .dim-desc { display: none; }
  .sub-block { padding: 1.25rem 1rem .25rem; }
  .q-item { padding: 1rem 0; }
  .likert { grid-template-columns: repeat(5, 1fr); width: 100%; }
  .likert-dot { width: 100%; min-width: 2.5rem; }
  .action-bar { display: grid; }
  .btn { width: 100%; }
  .report-head,
  .report-card header { display: grid; }
  .report-score,
  .report-card-score { justify-items: start; }
  .modal { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

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