:root {
  --navy: #23325c;
  --navy-dark: #162342;
  --blue: #3259bf;
  --blue-hover: #294ba5;
  --teal: #4fb2b1;
  --ink: #172033;
  --muted: #667085;
  --line: #e2e7ef;
  --soft: #f4f7fb;
  --pale-blue: #f1f6fd;
  --pale-teal: #f3fafa;
  --white: #fff;
  --success: #16835c;
  --shadow: 0 18px 55px rgba(35, 50, 92, .1);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  height: 78px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 62px; object-fit: contain; }

.header-actions, .save-state, .language-switch { display: flex; align-items: center; }
.header-actions { gap: 22px; }
.reset-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.reset-button[hidden] { display: none; }
.reset-button:hover { color: var(--navy); }
.reset-button:focus-visible { outline: 3px solid rgba(50,89,191,.3); outline-offset: 4px; border-radius: 3px; }
.reset-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.save-state { gap: 8px; color: var(--muted); font-size: 13px; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.language-switch { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.language-button { border: 0; border-radius: 6px; padding: 5px 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.language-button.is-active { background: var(--white); color: var(--navy); box-shadow: 0 1px 4px rgba(15,23,42,.12); }

.welcome-view {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  grid-template-rows: 1fr auto;
  gap: 20px 6vw;
  padding: clamp(60px, 9vh, 110px) clamp(28px, 8vw, 135px) 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 43%, rgba(79,178,177,.14), transparent 25%),
    radial-gradient(circle at 58% 12%, rgba(50,89,191,.08), transparent 22%),
    var(--white);
}

.welcome-copy { align-self: center; max-width: 660px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy-dark); font-size: clamp(48px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; }
.welcome-lead { max-width: 590px; margin: 28px 0 25px; color: #4c566d; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.55; }
.welcome-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 35px; color: var(--muted); font-size: 14px; }
.welcome-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.welcome-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .language-button:focus-visible, .nav-step:focus-visible, .task-check:focus-visible { outline: 3px solid rgba(50,89,191,.3); outline-offset: 2px; }
.button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--navy); color: var(--white); box-shadow: 0 9px 22px rgba(35,50,92,.2); }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 12px 25px rgba(35,50,92,.24); }
.button-secondary { background: var(--white); border-color: var(--line); color: var(--navy); }
.button-secondary:hover { background: var(--pale-blue); }
.button-large { min-height: 56px; padding: 14px 25px; }

.mascot-stage { align-self: center; position: relative; min-height: 420px; display: grid; place-items: center; }
.mascot-stage img { position: relative; z-index: 1; width: min(100%, 650px); height: auto; object-fit: contain; filter: drop-shadow(0 30px 28px rgba(35,50,92,.16)); transform: rotate(-1.5deg); }
.mascot-glow { position: absolute; width: min(38vw, 500px); aspect-ratio: 1; background: linear-gradient(145deg, var(--pale-teal), #e6edf9); border-radius: 51% 49% 45% 55% / 62% 38% 62% 38%; transform: rotate(12deg); }
.speech-card { position: absolute; left: 14%; top: 89%; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 13px 13px 13px 3px; box-shadow: var(--shadow); color: var(--navy); font-size: 14px; font-weight: 700; transform: rotate(-2deg); }
.wave { font-size: 20px; }
.welcome-footer { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); color: #8b93a5; font-size: 12px; text-align: center; }

.wizard-view { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 295px 1fr; }
.wizard-view[hidden], .welcome-view[hidden] { display: none; }
.journey-sidebar { padding: 38px 28px 25px; background: var(--navy); color: var(--white); display: flex; flex-direction: column; }
.sidebar-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.sidebar-heading .eyebrow { color: #9fafdb; margin: 0; }
.sidebar-heading p { margin: 0; color: #c3cae0; font-size: 11px; }
.sidebar-heading strong { color: var(--white); font-size: 17px; }
.progress-track { height: 4px; overflow: hidden; background: rgba(255,255,255,.15); border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--teal); border-radius: inherit; transition: width .35s ease; }
.journey-sidebar > .progress-track { margin: 17px 0 28px; }
#step-navigation { display: grid; gap: 5px; }
.nav-step { width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #aeb8d5; text-align: left; cursor: pointer; }
.nav-step:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-step.is-active { color: var(--white); background: rgba(255,255,255,.11); }
.nav-step.is-complete { color: #dbe0ed; }
.nav-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; }
.nav-step.is-active .nav-icon { background: var(--teal); border-color: var(--teal); color: var(--navy-dark); }
.nav-step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-label span { display: block; color: #8491b3; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.nav-label strong { display: block; font-size: 12px; font-weight: 650; line-height: 1.25; }
.nav-status { opacity: 0; }
.nav-step.is-complete .nav-status { opacity: 1; color: #73cead; }
.sidebar-mascot { margin-top: auto; padding: 13px 13px 5px; position: relative; background: rgba(255,255,255,.07); border-radius: 12px; text-align: center; }
.sidebar-mascot img { display: block; width: 104px; height: auto; margin: 10px auto 0; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0,0,0,.18)); }
.sidebar-mascot p { margin: 0; color: #c8d0e3; font-size: 10px; line-height: 1.5; }

.wizard-main { padding: 55px clamp(28px, 7vw, 100px) 24px; display: flex; min-width: 0; flex-direction: column; }
.step-card { width: min(100%, 850px); margin: auto; animation: card-in .28s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(9px); } }
.step-topline { display: flex; align-items: center; gap: 12px; color: var(--blue); }
.step-number { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.step-rule { width: 44px; height: 2px; background: var(--teal); }
.step-card h2 { margin: 14px 0 10px; color: var(--navy-dark); font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.step-intro { max-width: 720px; margin: 0 0 31px; color: var(--muted); font-size: 17px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.topic-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 25px rgba(35,50,92,.045); }
.topic-card.wide { grid-column: 1 / -1; }
.subchapter-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.subchapter-navigation button { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--muted); font-size: 12px; cursor: pointer; text-align: left; }
.subchapter-navigation button span { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--soft); font-weight: 700; }
.subchapter-navigation button[aria-current] { border-color: var(--blue); color: var(--blue); background: var(--pale-blue); }
.subchapter-navigation button:focus-visible, .person-details summary:focus-visible { outline: 3px solid rgba(50,89,191,.3); outline-offset: 2px; }
.subchapter-title { margin: 0 0 14px; color: var(--navy); font-size: 21px; }
.people-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; margin-top: 18px; }
.person-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.person-heading { display: flex; align-items: center; gap: 12px; }
.person-heading > div { min-width: 0; }
.person-heading h4 { margin: 0 0 4px; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }
.person-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.person-photo { width: 70px; height: 70px; flex: none; border-radius: 12px; }
.person-photo { object-fit: contain; background: var(--soft); }
.person-heading .avatar-caption { margin-top: 5px; color: #287c7b; font-size: 10px; font-weight: 700; }
.person-details { margin-top: 14px; font-size: 12px; color: var(--muted); }
.person-details summary { color: var(--blue); cursor: pointer; }
.person-details p { margin: 12px 0; }
.person-contact { margin: 14px 0 0; font-size: 12px; }
.person-contact > div { display: grid; grid-template-columns: minmax(60px, .45fr) minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.person-contact dt { color: var(--muted); }
.person-contact dd { margin: 0; overflow-wrap: anywhere; }
.person-contact a { color: var(--blue); }
.imported-profile { margin-top: 14px; }
.imported-profile dl > div { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.imported-profile dt { font-weight: 700; color: var(--navy); }
.imported-profile dd { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.welcome-template { margin-top: 16px; }
.welcome-template summary, .organization-chart summary { color: var(--blue); font-size: 12px; cursor: pointer; }
.welcome-template pre { margin: 10px 0 0; padding: 16px; border-radius: 8px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.organization-chart { margin: 18px 0 0; }
.organization-chart img { display: block; width: 100%; height: auto; }
.organization-chart figcaption { margin: 8px 0; color: var(--muted); font-size: 11px; }
.organization-chart details p { color: var(--muted); font-size: 12px; }
.topic-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.topic-heading h3 { margin: 0; color: var(--navy); font-size: 15px; }
.topic-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.topic-badge { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--pale-teal); color: #287c7b; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.task-list { display: grid; gap: 8px; margin-top: 16px; }
.task-check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: #4b566d; font-size: 12px; cursor: pointer; transition: background .15s ease; }
.task-check:hover { background: var(--soft); }
.task-check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border: 1.5px solid #b7c0d1; border-radius: 5px; background: var(--white); }
.check-box svg { width: 12px; height: 12px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.task-check:has(input:checked) { background: #f3faf7; color: #366250; }
.task-check input:checked + .check-box { background: var(--success); border-color: var(--success); }
.task-check input:checked + .check-box svg { stroke: white; }
.task-check input:checked ~ span:last-child { text-decoration: line-through; text-decoration-color: #9db5aa; }
.task-help { margin: 0 10px 8px 38px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.task-help p { margin: 6px 0 0; }
.resource-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.resource-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; background: var(--pale-blue); color: var(--blue); font-size: 10px; font-weight: 750; line-height: 1.35; text-decoration: none; }
.resource-link:hover { background: #e5eefb; color: var(--blue-hover); }
.resource-link:focus-visible { outline: 3px solid rgba(50,89,191,.3); outline-offset: 2px; }
.resource-link svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-note { display: flex; gap: 12px; margin-top: 16px; padding: 14px; border-left: 3px solid var(--teal); background: var(--pale-teal); color: #446061; font-size: 12px; }
.info-note strong { display: block; color: #2c5556; margin-bottom: 2px; }
.info-note .note-icon { font-size: 17px; }

.summary-card { padding: 29px; background: var(--navy); border-radius: var(--radius); color: white; box-shadow: var(--shadow); }
.summary-score { display: flex; align-items: center; gap: 22px; }
.score-ring { --score: 0deg; width: 92px; height: 92px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) var(--score), rgba(255,255,255,.12) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: var(--navy); }
.score-ring strong { position: relative; font-size: 19px; }
.summary-card h3 { margin: 0 0 5px; font-size: 21px; }
.summary-card p { margin: 0; color: #cbd3e6; font-size: 13px; }
.summary-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 22px; }
.summary-list div { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: rgba(255,255,255,.06); border-radius: 8px; color: #d7dcec; font-size: 11px; }
.summary-list svg { width: 14px; height: 14px; fill: none; stroke: var(--teal); stroke-width: 2.5; }
.completion-message { margin-top: 17px; padding: 15px; border-radius: 10px; background: var(--pale-teal); color: #2c5556; font-size: 13px; text-align: center; }

.wizard-controls { width: min(100%, 850px); margin: 35px auto 0; padding-top: 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.keyboard-hint { margin: 0; color: #98a0b0; font-size: 10px; }
.mobile-progress { display: none; }

@media (max-width: 900px) {
  .welcome-view { grid-template-columns: 1fr; padding-top: 55px; text-align: center; }
  .welcome-copy { margin: auto; }
  .welcome-meta { justify-content: center; }
  .mascot-stage { min-height: 320px; }
  .mascot-stage img { width: min(100%, 650px); max-height: 350px; }
  .mascot-glow { width: 340px; }
  .speech-card { left: 14%; top: 89%; }
  .journey-sidebar { display: none; }
  .wizard-view { grid-template-columns: 1fr; }
  .wizard-main { padding-top: 25px; }
  .mobile-progress { width: min(100%,850px); margin: 0 auto 34px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
  .mobile-progress strong { color: var(--navy); }
  .mobile-progress .progress-track { grid-column: 1 / -1; background: #dfe5ee; }
}

@media (max-width: 620px) {
  .site-header { height: 67px; padding: 0 16px; }
  .save-state, .reset-button span { display: none; }
  .header-actions { gap: 12px; }
  .reset-button { padding: 7px; }
  .reset-button svg { width: 17px; height: 17px; }
  .brand-logo { height: 53px; }
  .welcome-view { min-height: calc(100vh - 67px); padding: 45px 21px 22px; }
  .welcome-lead { margin-top: 21px; }
  .mascot-stage { min-height: 275px; }
  .mascot-stage img { width: min(100%, 650px); max-height: 350px; }
  .speech-card { top: 90%; left: 10%; }
  .wizard-main { padding: 22px 17px 18px; }
  .content-grid { grid-template-columns: 1fr; }
  .people-gallery { grid-template-columns: 1fr; }
  .topic-card.wide { grid-column: auto; }
  .step-card h2 { font-size: 34px; }
  .step-intro { font-size: 15px; }
  .keyboard-hint { display: none; }
  .wizard-controls .button { padding-inline: 15px; }
  .summary-list { grid-template-columns: 1fr; }
  .summary-score { align-items: flex-start; }
}

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

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
