:root {
  color-scheme: light;
  --ink: #1d2733;
  --ink-soft: #43505d;
  --muted: #687481;
  --line: #dfe5e8;
  --line-strong: #cbd4d9;
  --paper: #ffffff;
  --warm: #fffaf0;
  --warm-deep: #fff1d7;
  --orange: #f4a62f;
  --orange-dark: #9c5b00;
  --orange-hover: #e9971e;
  --teal: #167b73;
  --teal-dark: #0d5e58;
  --teal-soft: #e8f5f2;
  --blue-soft: #edf5fc;
  --blue: #2f668c;
  --rose-soft: #fff0ed;
  --rose: #a94435;
  --green-soft: #eaf6ed;
  --green: #246f3d;
  --shadow-sm: 0 3px 14px rgba(25, 40, 50, 0.07);
  --shadow-md: 0 18px 50px rgba(25, 40, 50, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.flow-active,
body.result-active {
  background: #f5f7f7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.45rem, 5.7vw, 4.8rem);
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #176d9c;
  outline-offset: 3px;
}

h1[tabindex="-1"]:focus {
  outline: none;
}

#mainContent:focus {
  outline: none;
}

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.landing-view {
  overflow-x: hidden;
  overflow-x: clip;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(113, 91, 44, 0.12);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: block;
  width: 104px;
  height: 70px;
  overflow: hidden;
}

.brand img {
  width: 104px;
  height: 73px;
  object-fit: contain;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calgary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid #eed5a9;
  border-radius: 99px;
  color: #6e4d17;
  background: #fff7e8;
  font-size: 0.84rem;
  font-weight: 750;
}

.quiet-button,
.quiet-link,
.text-button {
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.quiet-button,
.quiet-link {
  min-height: 44px;
  padding: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-primary {
  color: #2d210d;
  background: var(--orange);
  box-shadow: 0 9px 22px rgba(213, 133, 9, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--orange-hover);
  box-shadow: 0 12px 25px rgba(213, 133, 9, 0.27);
}

.button-secondary {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: #fff;
}

.button-secondary:hover:not(:disabled) {
  background: var(--teal-soft);
}

.button-danger-quiet {
  border-color: #d9a199;
  color: #89382e;
  background: #fff;
}

.button-large {
  min-height: 56px;
  padding: 15px 28px;
  font-size: 1.03rem;
}

.button-full {
  width: 100%;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  min-height: 650px;
  padding-block: 72px 84px;
}

.hero-copy h1 {
  max-width: 790px;
  margin-bottom: 25px;
}

.headline-period {
  color: var(--orange);
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-actions .text-button {
  min-height: 48px;
  padding: 8px 0;
}

.small-print {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-card {
  position: relative;
  padding: 38px 34px 32px;
  border: 1px solid #eadbbf;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.hero-card::before {
  width: 105px;
  height: 105px;
  top: -42px;
  right: -28px;
  background: var(--teal-soft);
}

.hero-card::after {
  width: 52px;
  height: 52px;
  bottom: -22px;
  left: -18px;
  background: var(--warm-deep);
}

.hero-card-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 11px;
  border-radius: 99px;
  color: #79510b;
  background: var(--warm-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-bottom: 25px;
  font-size: 1.75rem;
}

.benefit-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 650;
}

.benefit-list span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 900;
}

.delivery-note {
  display: grid;
  margin: 27px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.delivery-note strong {
  color: var(--ink);
}

.trust-strip {
  border-block: 1px solid #d9e3e0;
  background: #f0f7f5;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 112px;
  padding: 20px;
}

.trust-grid > div + div {
  border-left: 1px solid #d9e3e0;
}

.trust-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.trust-grid strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.trust-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #b8d5ce;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 850;
}

.content-section {
  padding-block: 105px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 45px;
}

.compact-heading h2 {
  margin-bottom: 18px;
}

.compact-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-grid article {
  min-height: 185px;
  padding: 27px;
  border: 1px solid #e9dfcd;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.skill-grid article > span {
  display: block;
  margin-bottom: 20px;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.skill-grid h3 {
  margin-bottom: 10px;
}

.skill-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.sample-band {
  overflow: hidden;
  color: #fff;
  background: var(--teal-dark);
}

.sample-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
  min-height: 540px;
  padding-block: 72px;
}

.sample-layout .eyebrow {
  color: #9fe0d7;
}

.sample-layout h2 {
  margin-bottom: 20px;
}

.sample-layout p:not(.eyebrow) {
  color: #d8eeea;
}

.sample-layout .button {
  margin-top: 13px;
}

.sample-stack {
  position: relative;
  height: 390px;
}

.paper {
  position: absolute;
  width: min(380px, 82%);
  height: 330px;
  padding: 28px;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.paper-front {
  z-index: 2;
  top: 8px;
  left: 2%;
  transform: rotate(-3deg);
}

.paper-back {
  right: 1%;
  bottom: 0;
  transform: rotate(5deg);
  background: #fff9ec;
}

.paper > span,
.paper > p {
  color: var(--teal-dark) !important;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.paper h3 {
  margin: 24px 0 25px;
  font-size: 1.55rem;
}

.paper-line {
  width: 72%;
  height: 7px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #e6ecec;
}

.paper-line.long {
  width: 93%;
}

.paper-priority {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 13px;
  border-radius: 10px;
  color: var(--orange-dark);
  background: var(--warm-deep);
}

.paper-priority b {
  color: var(--ink);
}

.sound-box-row {
  display: flex;
  gap: 8px;
  margin: 37px 0;
}

.sound-box-row i {
  width: 55px;
  height: 55px;
  border: 2px solid var(--teal);
  border-radius: 8px;
}

.boundary-section {
  padding-bottom: 85px;
}

.boundary-card {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 30px;
  border: 1px solid #f0d8ab;
  border-radius: var(--radius-md);
  background: #fff8e8;
}

.boundary-card h2 {
  margin-bottom: 12px;
  font-size: 1.48rem;
}

.boundary-card p,
.privacy-promise p {
  margin: 0;
  color: var(--ink-soft);
}

.boundary-card .older-student-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.boundary-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #624513;
  background: #ffdf9f;
  font-family: Georgia, serif;
  font-weight: 800;
}

.privacy-promise {
  max-width: 840px;
  margin: 0 auto;
  padding: 10px 30px 30px 92px;
}

.privacy-promise h3 {
  margin-bottom: 8px;
}

.next-step-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 42px;
  padding: clamp(32px, 5vw, 58px);
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--teal-dark);
  box-shadow: var(--shadow-md);
}

.next-step-copy .eyebrow {
  color: #a7e3da;
}

.next-step-copy h2 {
  max-width: 680px;
  margin-bottom: 17px;
}

.next-step-copy > p:last-child {
  max-width: 700px;
  margin: 0;
  color: #d8eeea;
}

.next-step-action {
  display: grid;
  gap: 13px;
  justify-items: stretch;
  text-align: center;
}

.next-step-action p {
  margin: 0;
  color: #c7e5e0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid #e3dfd7;
  background: #fff;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px 50px;
  align-items: center;
  padding-block: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 54px;
  height: 43px;
  object-fit: contain;
}

.footer-brand div,
.footer-brand:not(:has(img)) {
  display: grid;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.sample-dialog {
  width: min(1050px, calc(100% - 30px));
  max-height: min(88vh, 860px);
  max-height: min(88dvh, 860px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #f4f7f6;
  box-shadow: 0 30px 90px rgba(12, 33, 39, 0.35);
}

.sample-dialog::backdrop {
  background: rgba(17, 31, 35, 0.68);
  backdrop-filter: blur(3px);
}

.dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.dialog-header .eyebrow,
.dialog-header h2 {
  margin-bottom: 2px;
}

.dialog-header h2 {
  font-size: 1.45rem;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-body {
  padding: 27px;
}

.sample-disclaimer {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dialog-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.report-preview,
.worksheet-preview {
  min-height: 590px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.preview-kicker {
  color: var(--teal-dark);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.report-preview h3,
.worksheet-preview h3 {
  margin: 23px 0 13px;
  font-size: 1.65rem;
}

.report-preview > p,
.worksheet-preview > p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.preview-domain {
  display: grid;
  gap: 7px;
  margin: 17px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.85rem;
}

.preview-domain b {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
}

.band-strong {
  color: var(--green);
  background: var(--green-soft);
}

.band-building {
  color: var(--blue);
  background: var(--blue-soft);
}

.band-start {
  color: var(--orange-dark);
  background: var(--warm-deep);
}

.band-recheck {
  color: var(--rose);
  background: var(--rose-soft);
}

.report-preview h4 {
  margin: 28px 0 12px;
}

.report-preview ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: priorities;
  list-style: none;
}

.report-preview li {
  position: relative;
  display: grid;
  padding: 13px 13px 13px 48px;
  border-radius: 10px;
  background: var(--warm);
  counter-increment: priorities;
}

.report-preview li::before {
  content: counter(priorities);
  position: absolute;
  left: 14px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
}

.report-preview li span {
  color: var(--muted);
  font-size: 0.78rem;
}

.worksheet-preview {
  background: #fffdf7;
}

.worksheet-word {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 29px;
  border-bottom: 1px solid #e8deca;
}

.worksheet-word span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.worksheet-word b {
  font-size: 1.25rem;
}

.worksheet-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 17px 0 25px;
}

.worksheet-boxes i {
  width: 61px;
  height: 61px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

.parent-tip {
  margin-top: 35px;
  padding: 13px;
  border-radius: 8px;
  background: var(--teal-soft);
}

/* Guided flow */
.flow-progress-wrap {
  position: sticky;
  z-index: 15;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.flow-progress {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.flow-progress > div:first-child {
  flex: 0 0 195px;
}

.flow-progress p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.flow-progress > div > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5ebea;
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #37a294);
  transition: width 300ms ease;
}

.flow-shell {
  width: min(820px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  padding-block: clamp(38px, 7vw, 76px) 90px;
}

.flow-card {
  padding: clamp(25px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.flow-card.narrow-card {
  max-width: 650px;
  margin-inline: auto;
}

.flow-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.flow-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.flow-intro {
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.flow-card,
.flow-card h1,
.review-summary strong,
.confirmation-email,
.result-hero h1,
.result-hero p:not(.eyebrow) {
  overflow-wrap: anywhere;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px;
}

.field-grid .field-full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field > span:first-child,
.fieldset-legend {
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 95px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 123, 115, 0.15);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--rose);
  outline-color: rgba(169, 68, 53, 0.14);
}

.field-help,
.field-error {
  margin: 0;
  font-size: 0.78rem;
}

.plain-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-help {
  color: var(--muted);
}

.field-error {
  color: var(--rose);
  font-weight: 700;
}

.flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}

.flow-actions.end-aligned {
  justify-content: flex-end;
}

.flow-actions .button-primary {
  min-width: 155px;
}

.back-button {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.callout {
  display: flex;
  gap: 15px;
  margin: 22px 0;
  padding: 17px;
  border: 1px solid #d5e5e2;
  border-radius: 12px;
  background: var(--teal-soft);
}

.callout > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 850;
}

.callout p,
.callout strong {
  margin: 0;
}

.callout p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.instruction-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: instructions;
}

.instruction-list li {
  position: relative;
  min-height: 45px;
  padding-left: 58px;
  color: var(--ink-soft);
  counter-increment: instructions;
}

.instruction-list li::before {
  content: counter(instructions);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 850;
}

.calibration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin: 28px 0;
}

.calibration-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.calibration-card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.calibration-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.check-row,
.radio-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  cursor: pointer;
}

.check-row input,
.radio-row input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.check-row span,
.radio-row span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.check-row strong,
.radio-row strong {
  color: var(--ink);
}

.section-intro-card {
  text-align: left;
}

.section-count {
  display: inline-block;
  margin-bottom: 17px;
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.parent-script {
  margin: 24px 0;
  padding: 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: var(--warm);
}

.parent-script > span {
  display: block;
  margin-bottom: 7px;
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.parent-script p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
}

.item-card {
  padding: clamp(22px, 5vw, 44px);
}

.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.item-meta .practice-tag {
  padding: 4px 9px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.stimulus-area {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: 18px 0 26px;
  padding: 28px;
  border: 1px solid #e7e0d4;
  border-radius: var(--radius-md);
  background: var(--warm);
  text-align: center;
}

.stimulus-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 19vw, 10rem);
  line-height: 1;
}

.stimulus-word {
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 4.2rem);
  font-weight: 800;
}

.stimulus-sounds {
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  font-weight: 750;
  letter-spacing: 0.06em;
}

.prompt-copy {
  max-width: 620px;
  margin: 0 auto 23px;
  text-align: center;
}

.prompt-copy > span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prompt-copy p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 650;
}

.reveal-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.reveal-note {
  color: var(--muted);
  font-size: 0.79rem;
  text-align: center;
}

.answer-panel {
  margin-top: 23px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.expected-answer {
  margin: 0 0 17px;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #f3f6f6;
  text-align: center;
}

.expected-answer strong {
  color: var(--ink);
}

.response-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.response-options.four-options {
  grid-template-columns: repeat(2, 1fr);
}

.response-button {
  min-height: 72px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.response-button:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.response-button.selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
  background: var(--teal-soft);
}

.response-button[data-outcome="demonstrated"] {
  color: var(--green);
}

.response-button[data-outcome="not_yet"] {
  color: var(--orange-dark);
}

.response-button[data-outcome="partial"] {
  color: var(--blue);
}

.response-button[data-outcome="unsure"] {
  color: var(--muted);
}

.practice-feedback {
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--teal-soft);
}

.practice-feedback p:last-child {
  margin-bottom: 0;
}

.assessment-help {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.assessment-help button {
  min-height: 42px;
}

.confidence-list {
  display: grid;
  gap: 12px;
  margin-top: 27px;
}

.confidence-option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.confidence-option:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.confidence-option input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.confidence-option span {
  display: grid;
}

.confidence-option small {
  margin-top: 3px;
  color: var(--muted);
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.review-summary > div {
  padding: 13px;
  border-radius: 10px;
  background: #f4f7f7;
}

.review-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.review-summary strong {
  font-size: 0.92rem;
}

.consent-box {
  margin-top: 25px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfb;
}

.consent-box .check-row + .check-row {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.optional-label {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--muted);
  background: #e9eded;
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-wrap {
  min-height: 65px;
  margin-top: 20px;
}

.form-message {
  margin: 18px 0 0;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.form-message.error {
  border: 1px solid #efc1ba;
  color: #84372e;
  background: var(--rose-soft);
}

.form-message.info {
  border: 1px solid #bedbd5;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.confirmation-card {
  max-width: 690px;
  margin-inline: auto;
  text-align: center;
}

.confirmation-card .callout {
  text-align: left;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 2rem;
  font-weight: 900;
}

.confirmation-card h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.confirmation-email {
  display: inline-block;
  margin: 4px 0 25px;
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 800;
}

.next-steps {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  text-align: left;
}

.next-step {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.next-step > span {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 850;
}

.next-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.next-step strong {
  display: block;
  color: var(--ink);
}

/* Private results */
.result-view {
  min-height: 700px;
}

.result-shell {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding-block: 55px 95px;
}

.loading-card,
.result-error {
  max-width: 620px;
  margin: 70px auto;
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.loading-card h1,
.result-error h1 {
  margin: 18px 0 10px;
  font-size: 2rem;
}

.loading-card p,
.result-error p {
  color: var(--muted);
}

.spinner {
  display: inline-block;
  width: 39px;
  height: 39px;
  border: 4px solid #dcebea;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 58px);
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--teal-dark);
}

.result-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border: 45px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.result-hero .eyebrow {
  color: #aee1da;
}

.result-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-bottom: 17px;
  font-size: clamp(2.2rem, 5vw, 3.65rem);
}

.result-hero p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: #d6eeea;
  font-size: 1.02rem;
}

.result-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.result-actions .button-secondary {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.result-section {
  margin-top: 42px;
}

.result-section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.result-section-heading h2 {
  margin-bottom: 10px;
  font-size: 1.75rem;
}

.result-section-heading p {
  margin: 0;
  color: var(--muted);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.domain-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.domain-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.domain-card h3 {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.band-pill {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 850;
}

.domain-meter {
  height: 7px;
  margin: 17px 0 11px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ecec;
}

.domain-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.domain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.subskill-breakdown {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subskill-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
}

.subskill-breakdown dt {
  color: var(--ink);
  font-weight: 800;
}

.subskill-breakdown dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.recheck-callout {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #f0ccc5;
  border-radius: 12px;
  color: #74372f;
  background: var(--rose-soft);
  font-size: 0.88rem;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  counter-reset: resultPriorities;
}

.priority-card {
  position: relative;
  padding: 26px 24px 24px 70px;
  border: 1px solid #eed9b5;
  border-radius: 16px;
  background: var(--warm);
  counter-increment: resultPriorities;
}

.priority-card::before {
  content: counter(resultPriorities);
  position: absolute;
  left: 22px;
  top: 23px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #322208;
  background: var(--orange);
  font-weight: 900;
}

.priority-card h3 {
  margin-bottom: 8px;
}

.priority-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.session-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.session-item {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.session-number {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-item strong {
  display: block;
}

.session-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.session-time {
  padding: 4px 9px;
  border-radius: 99px;
  color: var(--muted);
  background: #f0f3f3;
  font-size: 0.72rem;
  font-weight: 750;
}

.review-days {
  display: flex;
  gap: 10px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.review-day {
  flex: 1 1 220px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--ink-soft);
  background: #fafbfb;
  font-size: 0.84rem;
}

.result-note {
  margin-top: 35px;
  padding: 22px;
  border-radius: 14px;
  background: var(--blue-soft);
}

.result-note h2 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.result-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.result-note ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 21px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.assessment-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
  margin-top: 42px;
  padding: clamp(25px, 5vw, 40px);
  border-radius: var(--radius-md);
  color: #fff;
  background: #253943;
}

.assessment-cta h2 {
  margin-bottom: 9px;
  font-size: 1.65rem;
}

.assessment-cta p {
  margin: 0;
  color: #ccdade;
  font-size: 0.9rem;
}

.assessment-cta .button {
  min-width: 245px;
}

.cta-confirmed {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 245px;
  color: #bce5d5;
  font-weight: 800;
}

.cta-confirmed span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #1b3b2f;
  background: #9ad5be;
}

.private-footer-note {
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  gap: 9px;
  width: min(370px, calc(100% - 40px));
}

.toast {
  padding: 13px 16px;
  border: 1px solid #bfd5d1;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Privacy */
.privacy-shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding-block: 70px 100px;
}

.privacy-shell > h1 {
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 7vw, 4rem);
}

.privacy-updated {
  color: var(--muted);
  font-size: 0.86rem;
}

.privacy-intro {
  margin: 35px 0 55px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.75;
}

.privacy-shell section {
  margin-top: 42px;
}

.privacy-shell section h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.privacy-shell section p {
  color: var(--ink-soft);
}

.privacy-contact {
  padding: 25px;
  border: 1px solid #d6e3e0;
  border-radius: 15px;
  background: var(--teal-soft);
}

.privacy-contact p:last-child {
  margin-bottom: 0;
}

.noscript-card {
  margin-block: 60px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 55px 65px;
  }

  .hero-card {
    max-width: 590px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sample-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .sample-stack {
    max-width: 630px;
  }

  .next-step-card {
    grid-template-columns: 1fr;
  }

  .dialog-preview-grid {
    grid-template-columns: 1fr;
  }

  .report-preview,
  .worksheet-preview {
    min-height: 0;
  }

  .assessment-cta {
    grid-template-columns: 1fr;
  }

  .assessment-cta .button,
  .cta-confirmed {
    width: 100%;
  }
}

@media (max-width: 660px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    min-height: 75px;
    padding-inline: 14px;
  }

  .brand,
  .brand img {
    width: 82px;
    height: 58px;
  }

  .calgary-pill {
    display: none;
  }

  .hero {
    gap: 36px;
    padding-block: 40px 52px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero-actions {
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .button,
  .hero-actions .text-button {
    width: 100%;
  }

  .hero-card {
    padding: 28px 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    padding-block: 6px;
  }

  .trust-grid > div {
    justify-content: flex-start;
    min-height: 82px;
    padding: 13px 8px;
  }

  .trust-grid > div + div {
    border-top: 1px solid #d9e3e0;
    border-left: 0;
  }

  .content-section {
    padding-block: 70px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-grid article {
    min-height: 0;
  }

  .sample-layout {
    min-height: 0;
    padding-block: 60px;
  }

  .sample-stack {
    height: 300px;
  }

  .paper {
    width: 82%;
    height: 260px;
    padding: 20px;
  }

  .paper h3 {
    margin: 14px 0;
    font-size: 1.2rem;
  }

  .paper-priority {
    margin-top: 10px;
    padding: 8px;
    font-size: 0.78rem;
  }

  .sound-box-row {
    margin: 23px 0;
  }

  .sound-box-row i {
    width: 40px;
    height: 40px;
  }

  .boundary-card {
    display: grid;
    gap: 13px;
    padding: 22px;
  }

  .privacy-promise {
    padding: 7px 5px 20px;
  }

  .next-step-card {
    padding: 30px 22px;
  }

  .next-step-action .button {
    width: 100%;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer nav {
    gap: 14px 22px;
  }

  .dialog-header {
    padding: 17px;
  }

  .dialog-header h2 {
    font-size: 1.12rem;
  }

  .dialog-body {
    padding: 15px;
  }

  .report-preview,
  .worksheet-preview {
    padding: 22px;
  }

  .flow-progress {
    display: grid;
    gap: 8px;
    min-height: 79px;
    padding-block: 10px;
  }

  .flow-progress > div:first-child {
    display: flex;
    justify-content: space-between;
  }

  .flow-shell {
    width: min(100% - 20px, 820px);
    padding-block: 25px 60px;
  }

  .flow-card {
    padding: 23px 18px;
    border-radius: 16px;
  }

  .field-grid,
  .calibration-grid {
    grid-template-columns: 1fr;
  }

  .field-grid .field-full {
    grid-column: auto;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .flow-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .flow-actions .button,
  .flow-actions .back-button {
    width: 100%;
  }

  .item-card {
    padding: 20px 15px;
  }

  .stimulus-area {
    min-height: 175px;
    padding: 20px;
  }

  .response-options,
  .response-options.four-options {
    grid-template-columns: 1fr;
  }

  .response-button {
    min-height: 55px;
  }

  .review-summary {
    grid-template-columns: 1fr;
  }

  .result-shell {
    width: min(100% - 20px, 1000px);
    padding-block: 25px 70px;
  }

  .result-hero {
    padding: 29px 20px;
    border-radius: 18px;
  }

  .result-actions,
  .result-actions .button {
    width: 100%;
  }

  .domain-grid,
  .priority-grid {
    grid-template-columns: 1fr;
  }

  .domain-card-top {
    display: grid;
    gap: 8px;
  }

  .band-pill {
    width: fit-content;
  }

  .session-item {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .session-number {
    grid-column: 1 / -1;
  }

  .loading-card,
  .result-error {
    margin-top: 20px;
    padding: 28px 20px;
  }

  .quiet-link {
    max-width: 165px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .flow-progress-wrap,
  .result-actions,
  .assessment-cta,
  .private-footer-note {
    display: none !important;
  }

  body,
  .result-view {
    background: #fff;
  }

  .result-shell {
    width: 100%;
    padding: 0;
  }

  .result-hero {
    color: #000;
    background: #fff;
  }

  .result-hero p:not(.eyebrow) {
    color: #333;
  }

  .domain-card,
  .priority-card,
  .session-item {
    break-inside: avoid;
  }
}
