:root {
  --ink: #111827;
  --ink-soft: #273449;
  --paper: #f5f7fa;
  --paper-deep: #e8edf3;
  --blue: #155eef;
  --blue-dark: #001a72;
  --line: #c9d2de;
  --muted: #536071;
  --white: #fff;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Noto Sans SC", "Source Han Sans SC", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
body::selection { color: var(--white); background: var(--blue); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header { position: fixed; z-index: 10; inset: 0 0 auto; width: 100%; height: 88px; display: flex; align-items: center; justify-content: space-between; margin: auto; padding: 0 max(48px, calc((100vw - 1180px) / 2)); color: var(--white); background: rgba(17,24,39,.96); border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: auto; height: 42px; }
.brand img { width: 132px; height: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.brand-divider { width: 1px; height: 22px; background: var(--blue); opacity: .9; }
.brand-name { color: var(--white); font-size: 22px; font-weight: 600; letter-spacing: 0; line-height: 1; opacity: .86; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.site-nav a { opacity: .78; transition: opacity 180ms ease, color 180ms ease; }
.site-nav a:hover { opacity: 1; color: var(--white); }
.site-nav .nav-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--white); opacity: 1; border: 1px solid transparent; border-bottom-color: rgba(255,255,255,.55); padding: 6px 0; background: transparent; }
.site-nav .nav-login { border-color: var(--blue); border-radius: 4px; padding: 7px 12px; background: var(--blue); }
.site-nav .nav-login:hover { background: #0d4cd6; }
.site-nav .nav-login:focus-visible { outline-offset: 3px; }
.site-nav button { border: 0; cursor: pointer; font: inherit; }
.site-nav .nav-logout { color: #82a9ff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-nav .nav-logout:hover { color: var(--white); }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::after { position: absolute; inset: 0; pointer-events: none; opacity: .08; content: ""; background-image: linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff 50%, transparent 50%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 9vw; align-items: center; width: min(1180px, calc(100% - 96px)); margin: 88px auto 0; }
.hero-copy { padding: 80px 0 100px; }
.eyebrow, .section-index, .route-label, .panel-top, .site-footer { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: #aebad0; }
.eyebrow-mark { display: inline-block; width: 8px; height: 8px; background: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
h1 { max-width: 780px; margin-bottom: 32px; font-size: clamp(3.1rem, 7vw, 6.2rem); font-weight: 800; }
h1 em { color: #82a9ff; font-style: normal; }
.hero-prefix { display: inline-block; margin-inline-end: .28em; font-size: .6em; }
.hero-lead { max-width: 500px; margin-bottom: 40px; color: #c5cedc; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 8px; padding: 0 22px; cursor: pointer; font-size: 14px; font-weight: 700; transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 5px 0 #0d3da5; }
.button-primary:hover { background: #0d4cd6; box-shadow: 0 7px 0 #0d3da5; }
.button-primary:active { box-shadow: 0 2px 0 #0d3da5; }
.text-link { display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--blue); padding-bottom: 5px; color: var(--blue-dark); font-weight: 700; font-size: 14px; }
.text-link span { font-size: 18px; line-height: 1; }
.light-link { color: var(--white); border-color: #8aaaf2; }
.hero-route { position: relative; padding: 32px 0 20px 44px; border-left: 1px solid rgba(255,255,255,.24); }
.route-label { margin-bottom: 35px; color: #8e9db4; }
.route-line { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; min-height: 84px; color: #8290a5; }
.route-line::before { position: absolute; top: 7px; left: -49px; width: 9px; height: 9px; border-radius: 50%; content: ""; background: #6f7c90; box-shadow: 0 0 0 5px var(--ink); }
.route-line span { font: 12px var(--mono); color: #8290a5; }
.route-line strong { max-width: 260px; font-size: 18px; font-weight: 500; line-height: 1.45; }
.route-line-two { color: var(--white); }
.route-line-two::before { background: var(--blue); }
.route-line-two strong { font-weight: 700; }
.route-foot { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; color: #8290a5; font-size: 14px; line-height: 1.6; }
.route-foot span { color: var(--white); }
.hero-scroll { position: absolute; z-index: 1; right: 48px; bottom: 42px; display: flex; align-items: center; gap: 18px; color: #8290a5; font: 12px var(--mono); letter-spacing: .08em; transform: rotate(-90deg); transform-origin: right center; }
.scroll-rule { width: 55px; height: 1px; background: #8290a5; }

.section-shell { width: min(1180px, calc(100% - 96px)); margin: auto; padding: 120px 0; }
.pilot-section { border-top: 1px solid var(--line); }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 9vw; }
.pilot-lead { max-width: 500px; color: var(--ink-soft); font-size: 18px; }
.pilot-list { display: grid; gap: 14px; }
.loading-state, .error-state { display: grid; gap: 8px; border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); }
.error-state strong { color: #b42318; }
.pilot-list-error { align-items: start; }
.pilot-list-error .button { justify-self: start; margin-top: 4px; }
.pilot-card { border-top: 3px solid var(--blue); padding: 18px 0; }
.pilot-card-header, .pilot-meta, .pilot-card-actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.pilot-card-header h3 { margin: 0; font-size: 20px; }
.pilot-card-body { display: grid; gap: 8px; margin: 12px 0 16px; color: var(--muted); font-size: 13px; }
.pilot-status, .guidance-badge { color: var(--blue-dark); font-weight: 700; }
.pilot-status.completed { color: #087443; }
.pilot-status.error { color: #b42318; }
.pilot-meta { color: var(--muted); font: 11px var(--mono); }
.pilot-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(17,24,39,.72); }
.pilot-modal-content { position: relative; width: min(720px, 100%); max-height: min(86vh, 900px); overflow: auto; padding: 32px; background: var(--white); color: var(--ink); }
.pilot-modal-close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 28px; }
.pilot-detail-section { border-top: 1px solid var(--line); padding: 18px 0; }
.pilot-detail-section h3 { margin-bottom: 10px; font-size: 16px; }
.pilot-detail-section dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.pilot-detail-section dt { color: var(--muted); }
.pilot-detail-section dd { margin: 0; overflow-wrap: anywhere; }
.pilot-inline-form { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.pilot-inline-form input, .pilot-inline-form textarea, .pilot-inline-form select { width: 100%; min-height: 44px; border: 1px solid var(--line); padding: 9px 10px; color: var(--ink); background: var(--white); }
.pilot-inline-form textarea { min-height: 72px; }
.section-index { margin-bottom: 44px; color: var(--blue); }
.intro { border-bottom: 1px solid var(--line); }
.intro-grid, .practice-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 9vw; }
h2 { margin-bottom: 28px; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800; }
h2 span { color: var(--blue-dark); }
.intro-body { padding-top: 6px; }
.intro-body p { max-width: 490px; color: var(--muted); }
.intro-body .lede { color: var(--ink-soft); font-size: 21px; line-height: 1.65; }
.intro-body .text-link { margin-top: 18px; }

.path-section { border-bottom: 1px solid var(--line); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 66px; }
.section-heading-row p { margin: 0 0 9px; color: var(--muted); text-align: right; }
.path-list { margin: 0; padding: 0; list-style: none; }
.path-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) 240px; gap: 28px; align-items: center; min-height: 160px; border-top: 1px solid var(--line); }
.path-item:last-child { border-bottom: 1px solid var(--line); }
.path-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue-dark); font: 14px var(--mono); }
.path-content h3 { margin-bottom: 10px; font-size: 24px; letter-spacing: -.025em; }
.path-content p { max-width: 610px; margin: 0; color: var(--muted); }
.path-meta { border-left: 1px solid var(--line); padding-left: 28px; color: var(--muted); font: 12px/1.8 var(--mono); }
.path-meta b { color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.path-item-active .path-number { background: var(--blue); }
.path-item-active .path-content h3 { color: var(--blue-dark); }
.path-item-muted { opacity: .65; }

.practice { padding-bottom: 140px; }
.practice-lead { max-width: 420px; color: var(--muted); font-size: 21px; line-height: 1.7; }
.output-list { border-top: 1px solid var(--line); }
.output-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.output-item span { color: var(--blue); font: 12px var(--mono); }
.output-item p { margin: 0; color: var(--muted); }
.output-item b { color: var(--ink); font-weight: 700; }

.task-section { border-bottom: 1px solid var(--line); }
.task-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 10vw; align-items: start; }
.task-lead { max-width: 470px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.task-status { display: inline-flex; margin-top: 24px; border-left: 3px solid var(--line); padding: 8px 12px; color: var(--muted); font: 12px var(--mono); }
.task-status[data-tone="ready"] { border-color: var(--blue); color: var(--blue-dark); }
.task-status[data-tone="active"] { border-color: #b36b00; color: #8a4d00; }
.task-status[data-tone="done"] { border-color: #087443; color: #087443; }
.task-status[data-tone="error"] { border-color: #b42318; color: #b42318; }
.task-panel { border-top: 3px solid var(--blue); padding: 28px; background: var(--white); box-shadow: 10px 10px 0 var(--paper-deep); }
.task-steps { border-top: 1px solid var(--line); }
.task-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.task-step > span { color: var(--blue); font: 12px var(--mono); }
.task-step strong, .task-step small { display: block; }
.task-step strong { font-size: 15px; }
.task-step small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-panel textarea { width: 100%; min-height: 86px; resize: vertical; border: 1px solid #b8c2d0; border-radius: 4px; padding: 10px 13px; color: var(--ink); background: var(--white); }
.task-panel textarea:focus { border-color: var(--blue); outline: 3px solid rgba(21,94,239,.16); }
.task-panel select { width: 100%; min-height: 42px; border: 1px solid #b8c2d0; border-radius: 4px; padding: 0 10px; color: var(--ink); background: var(--white); }
.task-panel select:focus { border-color: var(--blue); outline: 3px solid rgba(21,94,239,.16); }
#support-form { display: grid; gap: 8px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.support-heading { display: grid; gap: 2px; margin-bottom: 4px; }
.support-heading strong { color: var(--ink); font-size: 15px; }
.support-heading span, .support-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
#support-form label { margin-top: 5px; color: var(--ink); font-size: 13px; font-weight: 700; }
#support-form textarea { min-height: 72px; }
.support-note { margin: 4px 0 0; }
.button-secondary { color: var(--blue-dark); background: #e4ecff; box-shadow: 0 3px 0 #a8bce9; }
.button-secondary:hover { background: #d7e3ff; box-shadow: 0 5px 0 #a8bce9; }
.support-status { min-height: 20px; color: #087443; font-size: 12px; }
.support-history { display: grid; gap: 10px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.support-history-item { border-left: 2px solid var(--line); padding: 0 0 14px 14px; }
.support-history-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-history-meta strong { font-size: 13px; }
.support-history-item p { margin: 4px 0; color: var(--ink-soft); font-size: 14px; }
.support-history-item small, .support-history-empty, .support-history-error, .support-history-pending { color: var(--muted); font-size: 12px; }
.support-state { border-radius: 999px; padding: 3px 8px; font: 11px var(--mono); }
.support-state-open { color: #8a4d00; background: #fff2d9; }
.support-state-answered { color: #155eef; background: #e4ecff; }
.support-state-closed { color: #087443; background: #e7f6ed; }
.support-history-answer { margin-top: 12px; border-left: 2px solid #9dd1b8; padding-left: 12px; }
.support-history-answer b { color: #087443; font-size: 13px; }
.support-history-answer p { margin-bottom: 2px; }
.support-history-pending { margin-top: 12px; }
.feedback-form { display: grid; gap: 8px; margin-top: 20px; border-top: 1px solid #b9d8c5; padding-top: 18px; }
.feedback-form label { margin-top: 5px; color: var(--ink); font-size: 13px; font-weight: 700; }
.feedback-form select { min-height: 42px; border: 1px solid #b8c2d0; border-radius: 4px; padding: 0 10px; color: var(--ink); background: var(--white); }
.feedback-form textarea { min-height: 70px; }
.feedback-form .button { justify-self: start; min-height: 42px; margin-top: 6px; }
.feedback-status { min-height: 20px; color: #087443; font-size: 12px; }
.course-review-form { display: grid; gap: 8px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.course-review-form label { margin-top: 5px; color: var(--ink); font-size: 13px; font-weight: 700; }
.course-review-form textarea { min-height: 70px; }
.course-review-form .button { justify-self: start; min-height: 42px; margin-top: 6px; }
.course-section { border-bottom: 1px solid var(--line); }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 10vw; align-items: start; }
.course-lead { max-width: 470px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.course-status { display: inline-flex; margin-top: 24px; border-left: 3px solid var(--line); padding: 8px 12px; color: var(--muted); font: 12px var(--mono); }
.course-status[data-tone="ready"] { border-color: #087443; color: #087443; }
.course-status[data-tone="error"] { border-color: #b42318; color: #b42318; }
.course-panel { border-top: 3px solid var(--blue); padding: 28px; background: var(--white); box-shadow: 10px 10px 0 var(--paper-deep); }
.offering-list { border-top: 1px solid var(--line); }
.offering-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
.offering-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.offering-heading strong { font-size: 14px; }
.offering-heading span { color: var(--blue-dark); font: 12px var(--mono); white-space: nowrap; }
.offering-main small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.offering-button { min-height: 40px; padding: 0 15px; font-size: 12px; }
.offering-empty { margin: 0; padding: 22px 0 8px; color: var(--muted); font-size: 13px; }
.my-enrollments { display: grid; gap: 8px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.my-enrollments > strong { color: var(--ink); font-size: 13px; }
.my-enrollment-list { display: grid; gap: 8px; }
.my-enrollment-row { display: grid; gap: 2px; border-left: 2px solid #9dd1b8; padding-left: 10px; }
.my-enrollment-row b { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.my-enrollment-row small { color: #087443; font: 11px var(--mono); }
.enrollment-status { min-height: 22px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.enrollment-status[data-tone="ready"] { color: #087443; }
.enrollment-status[data-tone="error"] { color: #b42318; }

.join-section { color: var(--white); background: var(--blue-dark); }
.join-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 10vw; align-items: center; width: min(1180px, calc(100% - 96px)); margin: auto; padding: 120px 0; }
.dark-eyebrow { color: #9eb7ff; }
.join-copy h2 { max-width: 670px; }
.join-copy h2 span { color: #82a9ff; }
.join-copy > p:last-child { max-width: 480px; color: #c4d0e5; font-size: 18px; }
.join-panel { color: var(--ink); background: var(--paper); padding: 28px; box-shadow: 10px 10px 0 rgba(0,0,0,.18); }
.panel-top { display: flex; justify-content: space-between; margin-bottom: 26px; color: var(--blue); }
.join-panel > p { margin-bottom: 25px; color: var(--muted); font-size: 14px; }
.join-panel form { display: grid; gap: 8px; }
.join-panel label { margin-top: 9px; color: var(--ink); font-size: 13px; font-weight: 700; }
.join-panel input { width: 100%; min-height: 48px; border: 1px solid #b8c2d0; border-radius: 4px; padding: 0 13px; color: var(--ink); background: var(--white); }
.join-panel input::placeholder { color: #8491a2; }
.join-panel input:focus { border-color: var(--blue); outline: 3px solid rgba(21,94,239,.16); }
.panel-button { width: 100%; margin-top: 17px; }
.form-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-success { display: grid; gap: 9px; padding: 16px; border: 1px solid #9dd1b8; color: var(--ink); background: #eaf8ef; }
.form-success strong { color: var(--success, #087443); font-size: 18px; }
.form-success span { color: var(--muted); font-size: 14px; }
.form-success button { justify-self: start; border: 0; border-bottom: 1px solid var(--blue); padding: 0 0 3px; color: var(--blue-dark); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 26px 48px; color: var(--muted); background: var(--paper-deep); }
.site-footer a { color: var(--blue-dark); }

@media (max-width: 800px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 72px; padding: 0 24px; }
  .brand { gap: 8px; }
  .brand img { width: 112px; }
  .brand-divider { height: 18px; }
  .brand-name { font-size: 15px; }
  .site-nav { gap: 16px; font-size: 12px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; }
  .hero-inner, .intro-grid, .practice-grid, .join-inner { grid-template-columns: 1fr; gap: 54px; width: min(100% - 48px, 620px); }
  .hero-inner { margin-top: 72px; }
  .hero-copy { padding: 74px 0 20px; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-route { margin-bottom: 75px; padding-left: 42px; }
  .hero-scroll { display: none; }
  .section-shell { width: min(100% - 48px, 620px); padding: 80px 0; }
  .pilot-grid { grid-template-columns: 1fr; gap: 32px; }
  .pilot-detail-section dl { grid-template-columns: 1fr; gap: 2px; }
  .section-index { margin-bottom: 28px; }
  h2 { font-size: clamp(2.5rem, 12vw, 4.4rem); }
  .section-heading-row { display: block; margin-bottom: 38px; }
  .section-heading-row p { text-align: left; }
  .path-item { grid-template-columns: 44px 1fr; gap: 16px; padding: 25px 0; }
  .path-meta { grid-column: 2; border: 0; padding: 0; }
  .practice { padding-bottom: 85px; }
  .task-grid, .course-grid { grid-template-columns: 1fr; gap: 54px; }
  .join-inner { padding: 80px 0; }
  .site-footer { flex-wrap: wrap; padding: 24px; font-size: 12px; }
}

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

@media (max-width: 480px) {
  .pilot-modal { padding: 12px; }
  .pilot-modal-content { max-height: 92vh; padding: 24px 20px; }
  .pilot-card-header, .pilot-meta, .pilot-card-actions { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 801px) {
  .hero-copy { animation: reveal-up 520ms ease-out both; }
  .hero-route { animation: reveal-route 680ms ease-out 130ms both; }
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-route { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
