
:root {
  --blue: #0057b8;
  --blue-dark: #003f86;
  --ink: #111418;
  --muted: #5d6670;
  --line: #d9dee5;
  --panel: #ffffff;
  --wash: #f5f7fa;
  --focus: #ffbf47;
  --max: 860px;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  transform: translateY(-150%);
  background: var(--ink); color: #fff; padding: .6rem .85rem; border-radius: 6px;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .09em; font-size: .94rem;
}
.header-actions { display: flex; align-items: center; gap: .8rem; }
.prototype-label {
  color: var(--muted); font-size: .78rem; line-height: 1;
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem .62rem;
}
.text-button, .icon-button {
  border: 0; background: transparent; color: var(--blue); font-weight: 700; cursor: pointer;
}
.text-button { padding: .55rem .4rem; text-decoration: none; }
.icon-button { font-size: 2rem; line-height: 1; padding: .25rem .45rem; color: var(--ink); }

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto; padding: 54px 0 50px;
}
.journey-meta {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: .82rem; font-weight: 650; letter-spacing: .02em;
}
.progress-track {
  height: 3px; margin: 12px 0 30px; background: #e8edf2; overflow: hidden;
}
.progress-track span {
  display: block; width: 0; height: 100%; background: var(--blue); transition: width .18s ease;
}
.content-card {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(34px, 6vw, 68px);
  padding-top: clamp(62px, 7vw, 72px);
  position: relative;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(16, 24, 40, .06);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms cubic-bezier(.2, .7, .2, 1), transform 300ms cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.corner-logo {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 82px;
  height: auto;
  opacity: .88;
  pointer-events: none;
}
.corner-logo[hidden] { display: none; }
.content-card.is-leaving {
  opacity: .04;
  transform: translateY(5px);
  transition-duration: 190ms;
}
.content-card.is-entering {
  opacity: .04;
  transform: translateY(5px);
  transition: none;
}
.eyebrow {
  margin: 0 0 12px; color: var(--blue); text-transform: uppercase;
  font-size: .76rem; line-height: 1.3; font-weight: 800; letter-spacing: .11em;
}
h1, h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
h1 {
  margin: 0 0 28px; color: var(--blue); font-size: clamp(2.05rem, 5vw, 3.55rem); font-weight: 760;
}
h2 { color: var(--blue); font-size: 1.5rem; margin: 2rem 0 .65rem; }
h3 { color: var(--ink); font-size: 1.08rem; margin: 1.6rem 0 .4rem; }
.card-copy { max-width: 690px; }
.card-copy p { margin: 0 0 1.15rem; }
.card-copy ul { padding-left: 1.25rem; margin: .8rem 0 1.3rem; }
.card-copy li { margin: .35rem 0; }
.lead { font-size: 1.16rem; line-height: 1.62; }
.tagline { font-size: 1.28rem; font-weight: 700; max-width: 650px; }
.status-note, .placeholder-note, .form-note, .mock-result {
  padding: 14px 16px; border-left: 4px solid var(--blue); background: var(--wash);
  color: #39434e; font-size: .9rem; line-height: 1.5; margin: 1.5rem 0;
}
.placeholder-note strong { color: var(--ink); }
.case-number { color: var(--muted); font-weight: 700; font-size: .88rem; }
.fixed-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.08); backdrop-filter: blur(8px);
}
.fixed-nav-inner {
  width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 10px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fixed-nav-destinations, .fixed-nav-reading { display: flex; align-items: center; gap: 10px; }
.fixed-nav .button { min-height: 42px; padding: .55rem .8rem; }
body { padding-bottom: 84px; }
.button {
  min-height: 48px; border-radius: 8px; padding: .72rem 1rem; font-weight: 760;
  border: 1px solid var(--blue); cursor: pointer; text-decoration: none;
}
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { background: #fff; color: var(--blue); }
.button-secondary:hover { background: #f3f7fc; }
.button:disabled { opacity: .42; cursor: default; }

.case-actions {
  margin-top: 28px; padding: 22px; background: var(--wash); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.case-actions p { flex-basis: 100%; margin: 0 0 4px; font-size: .92rem; color: var(--muted); }

.mock-note { margin: 18px auto 0; color: var(--muted); font-size: .76rem; text-align: center; }

.index-dialog {
  width: min(760px, calc(100% - 28px)); max-height: min(82vh, 800px); padding: 0;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.index-dialog::backdrop { background: rgba(10,18,28,.42); }
.dialog-head {
  position: sticky; top: 0; background: #fff; padding: 26px 28px 16px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { margin: 0; font-size: 1.75rem; }
.dialog-head .eyebrow { margin-bottom: 8px; }
.index-intro { margin: 0; padding: 20px 28px 6px; color: var(--muted); font-size: .92rem; }
.index-list { list-style: none; padding: 12px 18px 28px; margin: 0; }
.index-list li { border-bottom: 1px solid #edf0f3; }
.index-list a {
  display: grid; grid-template-columns: 2.7rem 1fr auto; gap: .65rem; align-items: center;
  padding: 13px 10px; text-decoration: none; color: var(--ink); font-weight: 650;
}
.index-number { color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .04em; }
.index-list a:hover { background: var(--wash); }
.index-heading { border-bottom: 0 !important; padding: 22px 10px 7px; color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.index-heading:first-child { padding-top: 8px; }
.index-supporting a { background: #f7f9fc; }
.index-type { color: var(--muted); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.index-current a { color: var(--blue); }

.mock-form { display: grid; gap: 18px; margin-top: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field small { color: var(--muted); font-size: .76rem; }
.field input, .field textarea {
  width: 100%; border: 1px solid #abb4be; border-radius: 7px; padding: .75rem .8rem;
  color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0,87,184,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.mock-submit { justify-self: start; }
.mock-result[hidden] { display: none; }

@media (max-width: 680px) {
  body { font-size: 17px; }
  .header-inner, .page-shell { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 62px; }
  .prototype-label { display: none; }
  .page-shell { padding-top: 32px; }
  .content-card { min-height: auto; padding: 58px 22px 30px; border-radius: 10px; }
  .corner-logo { top: 14px; right: 18px; width: 64px; }
  .journey-meta { font-size: .74rem; }
  .button { flex: 1; padding-left: .75rem; padding-right: .75rem; }
  .form-row { grid-template-columns: 1fr; }
  .case-actions .button { flex-basis: 100%; }
  .dialog-head, .index-intro { padding-left: 20px; padding-right: 20px; }
  .fixed-nav-inner { flex-direction: column; align-items: stretch; gap: 8px; width: min(100% - 20px, var(--max)); }
  .fixed-nav-destinations, .fixed-nav-reading { width: 100%; }
  .fixed-nav .button { flex: 1; padding-left: .55rem; padding-right: .55rem; font-size: .82rem; }
  body { padding-bottom: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .content-card, .content-card.is-leaving, .content-card.is-entering {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Locked-content refinements */
.mock-form fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: .4rem 0 0;
  padding: 1.35rem 0 0;
}
.mock-form legend {
  color: var(--blue);
  font-weight: 760;
  font-size: 1.12rem;
  padding: 0 .7rem 0 0;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  line-height: 1.45;
  cursor: pointer;
}
.check-field input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .2rem;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.source-check-list {
  list-style: none;
  padding-left: 0 !important;
}
.source-check-list li {
  position: relative;
  padding-left: 1.5rem;
}
.source-check-list li::before {
  content: "□";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.card-copy > h2:first-child { margin-top: .2rem; }
.card-copy p + h2 { margin-top: 2rem; }

@media (max-width: 680px) {
  .checkbox-grid { grid-template-columns: 1fr; }
  .mock-form fieldset { padding-top: 1.1rem; }
}


/* Welcome-page logo */
.welcome-logo {
  margin: 0 auto 24px;
  text-align: center;
}
.welcome-logo[hidden] { display: none; }
.welcome-logo img {
  display: block;
  width: min(288px, 72vw);
  height: auto;
  margin: 0 auto;
}

/* Welcome-page profession mosaic */
.welcome-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 11px);
  margin: 10px 0 4px;
  max-width: 690px;
}
.profession-tile {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
}
.profession-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 680px) {
  .welcome-mosaic { gap: 5px; }
  .profession-tile { border-radius: 5px; }
}
.video-intro-placeholder {
  margin: 24px 0 2px;
  min-height: 190px;
  border: 2px dashed #a9b7c7;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7f9fc, #eef3f8);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 30px 20px;
  text-align: center;
  color: var(--ink);
}
.video-intro-placeholder strong { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.video-intro-placeholder > span:last-child { color: var(--muted); font-size: .9rem; }
.video-intro-kicker { color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; font-weight: 800; }
