@import url("/assets/camp/platform/tokens.css");

/* Shared shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  border-bottom: 1px solid rgb(72 83 126 / 10%);
  background: rgb(248 249 253 / 78%);
  box-shadow: 0 8px 30px rgb(57 67 109 / 4%);
  backdrop-filter: blur(22px) saturate(145%);
}
.site-header__inner,
.site-footer__inner,
.container {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}
.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 10px;
  background:
    radial-gradient(circle at 32% 30%, white 0 7%, transparent 8%),
    linear-gradient(145deg, var(--violet), var(--blue) 48%, var(--cyan));
  box-shadow: 0 7px 18px rgb(97 117 246 / 24%);
  transform: rotate(-8deg);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.site-nav a:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
  transform: translateY(-1px);
}
.site-nav a[aria-current="page"] {
  color: var(--blue-strong);
  background: rgb(97 117 246 / 10%);
}
.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgb(255 255 255 / 76%);
  font: inherit;
}
.account-link {
  flex: 0 0 auto;
  max-width: 180px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgb(97 117 246 / 18%);
  border-radius: 999px;
  color: var(--blue-strong);
  background: rgb(97 117 246 / 8%);
  font: 700 .76rem var(--mono);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.management-link:hover { color: var(--blue-strong); background: rgb(97 117 246 / 8%); }

main { min-height: 70vh; }
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 24%, rgb(85 207 193 / 22%), transparent 22rem),
    radial-gradient(circle at 70% 75%, rgb(155 140 246 / 18%), transparent 24rem),
    linear-gradient(145deg, #f0f2ff, #fbfcff 55%, #eefaf7);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 20% 7% auto auto;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgb(97 117 246 / 14%);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgb(97 117 246 / 4%),
    0 0 0 76px rgb(85 207 193 / 3%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-strong);
  font: 750 .75rem/1.3 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 {
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -.035em;
}
h1 {
  max-width: 900px;
  margin: 0 0 22px;
  font-size: clamp(2.55rem, 6.5vw, 5.2rem);
  font-weight: 760;
}
h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  font-weight: 730;
}
h3 { margin-top: 0; font-size: 1.18rem; }
.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  line-height: 1.8;
}
.section {
  position: relative;
  padding: clamp(58px, 7vw, 96px) 0;
}
.section + .section { border-top: 1px solid rgb(72 83 126 / 8%); }
.section--surface { background: rgb(255 255 255 / 58%); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  background: rgb(255 255 255 / 76%);
  box-shadow: 0 6px 18px rgb(57 67 109 / 5%);
  font: 700 .95rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover {
  border-color: rgb(97 117 246 / 32%);
  background: white;
  box-shadow: 0 10px 26px rgb(57 67 109 / 10%);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn--primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--blue), #7e72ef);
  box-shadow: 0 12px 28px rgb(97 117 246 / 24%);
}
.btn--primary:hover {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--blue-strong), #7466e6);
  box-shadow: 0 15px 34px rgb(97 117 246 / 30%);
}
.btn--light {
  border-color: rgb(255 255 255 / 55%);
  color: var(--ink);
  background: rgb(255 255 255 / 58%);
}
.btn--danger {
  border-color: rgb(191 83 105 / 18%);
  color: var(--danger);
  background: rgb(191 83 105 / 7%);
  box-shadow: none;
}
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

/* Cards and data */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#camps.grid--2 { grid-template-columns: minmax(0, 760px); }
.card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  border-color: rgb(97 117 246 / 20%);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan));
  opacity: .7;
}
.card--emphasis {
  border-color: rgb(97 117 246 / 18%);
  background:
    radial-gradient(circle at 100% 0, rgb(85 207 193 / 14%), transparent 14rem),
    rgb(255 255 255 / 86%);
}
.day-card::before { height: 4px; }
.metric {
  margin: 0 0 10px;
  color: var(--blue-strong);
  font: 780 clamp(2rem, 5vw, 3.3rem)/1 var(--display);
}
.meta { color: var(--muted); font-size: .92rem; }
.mono { color: var(--blue-strong); font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 700 .78rem/1.2 var(--mono);
}
.status--success { color: var(--success); background: rgb(49 138 117 / 7%); }
.status--warning { color: var(--warning); background: rgb(185 120 49 / 7%); }
.status--danger { color: var(--danger); background: rgb(191 83 105 / 7%); }
.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(72 83 126 / 10%);
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* Forms */
form { max-width: 840px; }
fieldset {
  min-width: 0;
  margin: 0 0 26px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 84%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
legend {
  padding: 0 10px;
  color: var(--ink);
  font: 730 1.16rem var(--display);
}
.field { min-width: 0; margin-bottom: 20px; }
.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: #343a52;
  font-size: .92rem;
  font-weight: 700;
}
.field input,
.field textarea,
.field select,
.card > input,
.card > textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: rgb(250 251 255 / 86%);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field select { text-overflow: ellipsis; }
.field input:hover,
.field textarea:hover,
.field select:hover,
.card > input:hover,
.card > textarea:hover { border-color: rgb(97 117 246 / 34%); }
.field input:focus,
.field textarea:focus,
.field select:focus,
.card > input:focus,
.card > textarea:focus {
  border-color: rgb(97 117 246 / 58%);
  background: white;
  box-shadow: 0 0 0 4px rgb(97 117 246 / 10%);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgb(191 83 105 / 10%);
}
.card > input,
.card > textarea { margin: 0 0 12px; }
.field textarea { min-height: 116px; resize: vertical; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.field-error { margin: 7px 0 0; color: var(--danger); font-size: .88rem; font-weight: 650; }
.check {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #41485f;
}
.check input { width: 19px; height: 19px; margin-top: 4px; accent-color: var(--blue); }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 24px;
}
.choice-grid .check {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(246 247 252 / 76%);
}
.upload-list,
.profile-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.upload-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}
.upload-list .btn { min-height: 36px; padding: 6px 10px; font-size: .86rem; }
.profile-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 82%);
  box-shadow: var(--shadow-soft);
}
.profile-card h3 { margin-bottom: 6px; }
.profile-card p { margin: 7px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tag {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgb(97 117 246 / 18%);
  border-radius: 999px;
  color: var(--blue-strong);
  background: rgb(97 117 246 / 7%);
  font: 700 .77rem var(--mono);
}
.admin-breakdown { margin-top: 30px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

/* Course center */
.course-hub-hero {
  background:
    radial-gradient(circle at 78% 28%, rgb(85 207 193 / 18%), transparent 25rem),
    radial-gradient(circle at 18% 70%, rgb(155 140 246 / 16%), transparent 24rem),
    linear-gradient(145deg, #f3f4ff, #fbfcff 54%, #edf9f6);
}
.course-center-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.course-center-heading h2,
.section-heading h2 { margin-bottom: 10px; }
.course-center-heading .lead,
.section-heading .lead { margin: 0; }
.course-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.course-day-group {
  padding: 26px;
  border: 1px solid rgb(97 117 246 / 15%);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(247 249 255 / 82%));
  box-shadow: var(--shadow-soft);
}
.course-day-group > h3 { margin: 5px 0 20px; }
.course-session-list { display: grid; gap: 12px; }
.course-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 88%);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.course-session-card:hover {
  border-color: rgb(97 117 246 / 30%);
  box-shadow: 0 12px 28px rgb(57 67 109 / 9%);
}
.course-session-card h4 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.4;
}
.course-session-label {
  grid-column: 1;
  margin: 0;
  color: var(--blue-strong);
  font: 700 .72rem var(--mono);
  letter-spacing: .05em;
}
.course-session-card .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.course-center-actions { margin-top: 24px; }
.course-design-grid { margin-top: 26px; }
.course-design-card h3 { margin-top: 12px; }
.course-design-card p { color: var(--muted); }
.course-design-card strong { color: var(--ink); }
.course-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.course-library-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 84%);
  box-shadow: var(--shadow-soft);
}
.course-library-card h3 {
  min-height: 2.8em;
  margin: 12px 0 8px;
  overflow-wrap: anywhere;
}
.course-library-card .meta { margin-bottom: 20px; }
#content-form { margin-top: 64px; }
.admin-primary-actions { margin-top: 30px; }

dialog {
  width: min(calc(100% - 28px), 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--radius-xl);
  color: var(--ink);
  box-shadow: 0 30px 100px rgb(21 28 57 / 28%);
}
dialog::backdrop { background: rgb(35 40 70 / 42%); backdrop-filter: blur(10px); }
.dialog-card { padding: clamp(24px, 5vw, 42px); background: linear-gradient(145deg, white, #f5f6ff); }
.dialog-card video { display: block; width: 100%; max-height: 58vh; margin: 18px 0; border-radius: var(--radius-md); background: #15182a; }
.install-guide-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 17px 18px;
  border: 1px solid rgb(97 117 246 / 16%);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgb(97 117 246 / 7%), rgb(85 207 193 / 8%));
}
.install-guide-entry strong { display: block; margin-bottom: 4px; }
.install-guide-entry p { margin: 0; color: var(--muted); font-size: .9rem; }
.install-guide-entry .btn { flex: 0 0 auto; }

.notice,
.loading,
.empty,
.error {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 78%);
  box-shadow: var(--shadow-soft);
}
.notice { border-color: rgb(97 117 246 / 18%); color: #4a557b; background: rgb(97 117 246 / 6%); }
.error { border-color: rgb(191 83 105 / 24%); color: var(--danger); background: rgb(191 83 105 / 6%); }
.empty { color: var(--muted); }
.hidden { display: none !important; }

/* Authentication and stepped flows */
.auth-section {
  min-height: calc(100vh - 74px);
  padding-top: clamp(62px, 9vw, 112px);
  background:
    radial-gradient(circle at 18% 22%, rgb(155 140 246 / 22%), transparent 22rem),
    radial-gradient(circle at 86% 72%, rgb(85 207 193 / 18%), transparent 26rem),
    linear-gradient(145deg, #f2f3ff, #fbfcff 55%, #eefaf7);
}
.auth-shell { position: relative; max-width: 650px; }
.auth-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 72px -46px auto auto;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(155 140 246 / 42%), rgb(85 207 193 / 32%));
  filter: blur(1px);
  opacity: .52;
}
.auth-shell > * { position: relative; z-index: 1; }
.auth-shell h1 { font-size: clamp(2.7rem, 7vw, 4.7rem); }
.auth-card { margin-top: 32px; }
.auth-shell fieldset { margin-top: 0; }
.auth-shell form .btn--primary { min-width: 132px; }
.auth-switch {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .94rem;
}
.auth-switch button {
  padding: 0;
  border: 0;
  color: var(--blue-strong);
  background: transparent;
  font: 750 .94rem var(--body);
  cursor: pointer;
}
.auth-switch button:hover { text-decoration: underline; }

.step-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgb(255 255 255 / 52%);
  list-style: none;
}
.step-nav li {
  flex: 1 0 120px;
  padding: 10px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}
.step-nav li[aria-current="step"] {
  color: var(--blue-strong);
  background: white;
  box-shadow: 0 6px 18px rgb(57 67 109 / 8%);
}
#wizard { margin-inline: auto; scroll-margin-top: 92px; }
#wizard fieldset[data-step] { display: none; }
#wizard fieldset[data-step][data-active="true"] { display: block; animation: step-enter .28s ease-out; }
#wizard > .actions { justify-content: center; }
.save-step {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--blue), #7e72ef);
  box-shadow: 0 10px 24px rgb(97 117 246 / 20%);
}
.save-step:hover {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--blue-strong), #7466e6);
}
@keyframes step-enter { from { opacity: 0; transform: translateY(9px); } }

/* Pre-work — one calm, continuous task flow */
.prework-page main {
  background:
    radial-gradient(circle at 12% 0, rgb(155 140 246 / 10%), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgb(85 207 193 / 9%), transparent 30rem);
}
.prework-page .section { padding: clamp(34px, 4vw, 56px) 0 clamp(68px, 7vw, 96px); }
.prework-shell { max-width: 900px; }
.prework-heading { margin-bottom: 32px; }
.prework-heading__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}
.prework-heading__meta .eyebrow { margin: 0; }
.prework-heading__meta > span,
.prework-heading__meta > a {
  color: var(--muted);
  font: 680 .74rem/1.4 var(--mono);
  letter-spacing: .035em;
}
.prework-heading__meta > a:hover { color: var(--blue-strong); }
.prework-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 4.6vw, 3.75rem);
  letter-spacing: -.055em;
}
.prework-heading .lead {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.prework-page #wizard { max-width: none; }
.prework-page .step-nav {
  counter-reset: prework-step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.prework-page .step-nav li {
  counter-increment: prework-step;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgb(72 83 126 / 10%);
  border-radius: 14px;
  color: var(--muted);
  background: rgb(255 255 255 / 50%);
  font-size: .8rem;
  text-align: left;
  white-space: nowrap;
}
.prework-page .step-nav li::before {
  content: counter(prework-step);
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(72 83 126 / 14%);
  border-radius: 50%;
  color: #68708a;
  background: white;
  font: 750 .7rem/1 var(--mono);
}
.prework-page .step-nav li[data-complete="true"] { color: #4f786e; }
.prework-page .step-nav li[data-complete="true"]::before {
  content: "✓";
  color: white;
  border-color: var(--success);
  background: var(--success);
}
.prework-page .step-nav li[aria-current="step"] {
  color: var(--blue-strong);
  border-color: rgb(97 117 246 / 22%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 9px 26px rgb(57 67 109 / 8%);
}
.prework-page .step-nav li[aria-current="step"]::before {
  color: white;
  border-color: transparent;
  background: linear-gradient(145deg, var(--blue), var(--violet));
  box-shadow: 0 6px 15px rgb(97 117 246 / 22%);
}
.prework-page fieldset[data-step] {
  margin: 0;
  padding: clamp(28px, 4vw, 40px);
  border-color: rgb(72 83 126 / 12%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 18px 54px rgb(57 67 109 / 9%);
}
.prework-page fieldset[data-step] legend {
  width: 100%;
  float: left;
  display: block;
  margin: 0 0 30px;
  padding: 0;
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  line-height: 1.3;
}
.prework-page fieldset[data-step] legend span {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-strong);
  font: 750 .7rem/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.prework-page fieldset[data-step] > legend + * { clear: both; }
.prework-page fieldset[data-step] > .btn { margin-top: 3px; margin-right: 7px; }
.prework-page .field { margin-bottom: 24px; }
.prework-page .field label { margin-bottom: 9px; font-size: .94rem; line-height: 1.55; }
.prework-page .field textarea { min-height: 108px; }
.field-label {
  display: block;
  margin-bottom: 10px;
  color: #343b55;
  font-size: .94rem;
  font-weight: 720;
  line-height: 1.55;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.option-grid .check {
  min-height: 58px;
  align-items: flex-start;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgb(72 83 126 / 12%);
  border-radius: 14px;
  background: rgb(248 249 253 / 78%);
}
.option-grid .check:has(input:checked) {
  border-color: rgb(97 117 246 / 34%);
  background: rgb(97 117 246 / 8%);
  box-shadow: 0 8px 22px rgb(57 67 109 / 7%);
}
.project-frame {
  margin-bottom: 26px;
  padding: 20px 22px;
  border: 1px solid rgb(85 207 193 / 26%);
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(240 252 249 / 92%), rgb(247 248 255 / 94%));
}
.project-frame h2 { margin-bottom: 8px; font-size: 1.15rem; }
.project-frame p { margin: 0; color: var(--muted); line-height: 1.75; }
.install-resource {
  margin: 0 0 30px;
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
  border: 1px solid rgb(97 117 246 / 16%);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgb(85 207 193 / 13%), transparent 16rem),
    linear-gradient(145deg, rgb(245 246 255 / 95%), rgb(250 253 252 / 92%));
}
.install-resource__heading { margin-bottom: 18px; }
.install-resource__heading .eyebrow { margin-bottom: 7px; font-size: .67rem; }
.install-resource__heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: -.025em;
}
.install-resource__heading > p:last-child { margin: 0; color: var(--muted); font-size: .91rem; }
.install-resource video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 16px;
  background: #171b2c;
  object-fit: contain;
  box-shadow: 0 14px 34px rgb(26 31 54 / 12%);
}
.install-links {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
}
.install-links > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid rgb(72 83 126 / 10%);
  border-radius: 12px;
  background: rgb(255 255 255 / 72%);
}
.install-links dt {
  color: #535b76;
  font-size: .82rem;
  font-weight: 750;
}
.install-links dd { min-width: 0; margin: 0; }
.install-links a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue-strong);
  font: 650 .78rem/1.5 var(--mono);
}
.install-success {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #365e55;
  background: rgb(85 207 193 / 10%);
}
.install-success strong { display: block; margin-bottom: 3px; color: #245148; }
.install-success p { margin: 0; font-size: .88rem; line-height: 1.65; }
.prework-completion {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgb(97 117 246 / 16%);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgb(85 207 193 / 18%), transparent 20rem),
    radial-gradient(circle at 0 100%, rgb(155 140 246 / 15%), transparent 24rem),
    rgb(255 255 255 / 92%);
  box-shadow: 0 24px 70px rgb(57 67 109 / 12%);
}
.completion-stamp {
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid rgb(85 207 193 / 32%);
  border-radius: 999px;
  color: #327268;
  background: rgb(85 207 193 / 9%);
  font: 760 .7rem/1 var(--mono);
  letter-spacing: .12em;
}
.prework-completion h2 {
  max-width: 680px;
  margin-bottom: 13px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -.04em;
}
.completion-ticket {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 22px;
  overflow: hidden;
  border: 1px solid rgb(72 83 126 / 10%);
  border-radius: 18px;
  background: rgb(72 83 126 / 10%);
}
.completion-ticket > div { padding: 16px 18px; background: rgb(255 255 255 / 88%); }
.completion-ticket dt { margin-bottom: 4px; color: var(--muted); font-size: .76rem; }
.completion-ticket dd { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 730; }
.completion-note { color: #327268; font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
table { width: 100%; border-collapse: collapse; background: rgb(255 255 255 / 84%); }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #4c536b; background: var(--surface-soft); font-size: .87rem; }
tr:last-child td { border-bottom: 0; }

.site-footer {
  padding: 46px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgb(245 246 251 / 82%);
}
.site-footer strong { color: var(--ink); }
.site-footer p { margin-bottom: 0; font-size: .9rem; }
.site-footer small { display: block; margin-top: 8px; color: #7b8298; font-size: .76rem; }

/* Landing — warm, airy and quietly futuristic */
.landing {
  color: var(--ink);
  background: #f7f8fc;
}
.landing .site-header { background: rgb(249 250 253 / 72%); }
.future-hero {
  position: relative;
  min-height: min(820px, calc(100vh - 74px));
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 36%, rgb(155 140 246 / 28%), transparent 25rem),
    radial-gradient(circle at 88% 66%, rgb(85 207 193 / 22%), transparent 24rem),
    radial-gradient(circle at 8% 6%, rgb(239 159 193 / 13%), transparent 22rem),
    linear-gradient(145deg, #f2f3ff, #fbfcff 52%, #edf9f6);
}
.future-grid {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgb(97 117 246 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(97 117 246 / 8%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 66% 42%, black, transparent 66%);
}
.future-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(155 140 246 / 42%), rgb(85 207 193 / 52%), transparent);
}
.future-hero__layout {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  padding-block: clamp(72px, 9vw, 126px);
}
.future-hero__copy h1 {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--ink);
  font: 780 clamp(3.4rem, 6.2vw, 6.7rem)/.98 var(--display);
  letter-spacing: -.068em;
}
.future-hero__copy h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(110deg, var(--blue-strong), var(--violet) 48%, #42ab9f);
  background-clip: text;
  -webkit-background-clip: text;
}
.future-hero__copy .lead { max-width: 650px; color: #646b84; }
.btn--glow { box-shadow: 0 14px 34px rgb(97 117 246 / 25%); }
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  color: var(--muted);
  font: 680 .7rem/1.4 var(--mono);
  letter-spacing: .08em;
}
.signal-row span {
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 45%);
  backdrop-filter: blur(12px);
}
.signal-row b { display: block; color: var(--ink); font-size: 1.12rem; }
.future-core {
  position: relative;
  width: min(100%, 510px);
  aspect-ratio: 1;
  justify-self: end;
  filter: drop-shadow(0 35px 58px rgb(76 74 145 / 13%));
}
.core-sphere {
  position: absolute;
  inset: 28%;
  z-index: 2;
  display: grid;
  place-content: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 50%;
  color: #4d5681;
  background:
    radial-gradient(circle at 33% 26%, rgb(255 255 255 / 92%), transparent 14%),
    linear-gradient(145deg, rgb(155 140 246 / 65%), rgb(238 239 255 / 90%) 45%, rgb(85 207 193 / 64%));
  box-shadow:
    inset -20px -20px 46px rgb(97 117 246 / 14%),
    inset 14px 12px 28px rgb(255 255 255 / 72%),
    0 24px 60px rgb(97 117 246 / 18%);
  font: 700 .68rem var(--mono);
  letter-spacing: .12em;
  text-align: center;
}
.core-sphere::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgb(255 255 255 / 46%);
  border-radius: 50%;
}
.core-sphere strong { color: white; font-size: 2rem; line-height: 1; text-shadow: 0 4px 16px rgb(97 117 246 / 35%); }
.orbit {
  position: absolute;
  inset: 9%;
  border: 1px solid rgb(97 117 246 / 24%);
  border-radius: 50%;
  transform: rotate(24deg);
}
.orbit--two { inset: 17%; border-color: rgb(155 140 246 / 34%); transform: rotate(-38deg) scaleY(.78); }
.orbit--three { inset: 1%; border-style: dashed; border-color: rgb(85 207 193 / 24%); }
.orbit i {
  position: absolute;
  top: 47%;
  left: -6px;
  width: 12px;
  height: 12px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 5px 16px rgb(85 207 193 / 38%);
}
.orbit--two i { top: 18%; left: 84%; background: var(--violet); box-shadow: 0 5px 16px rgb(155 140 246 / 36%); }
.core-label {
  position: absolute;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #68708a;
  background: rgb(255 255 255 / 64%);
  box-shadow: 0 9px 24px rgb(57 67 109 / 7%);
  backdrop-filter: blur(12px);
  font: 700 .62rem var(--mono);
  letter-spacing: .12em;
}
.core-label--a { top: 13%; left: 2%; }
.core-label--b { right: 0; top: 37%; }
.core-label--c { left: 14%; bottom: 9%; }

.section--dark {
  color: var(--ink);
  border-color: var(--line);
  background:
    radial-gradient(circle at 10% 10%, rgb(155 140 246 / 14%), transparent 22rem),
    linear-gradient(180deg, #f8f8fd, #f1f4fb);
}
.landing .section { border-color: var(--line); }
.landing h2 {
  max-width: 850px;
  font-size: clamp(2.25rem, 4.8vw, 4.6rem);
  letter-spacing: -.052em;
}
.manifesto-grid { margin-top: 44px; }
.future-card {
  position: relative;
  min-height: 276px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgb(72 83 126 / 12%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 68%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: transform .22s ease, box-shadow .22s ease;
}
.future-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.future-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -42% 15%;
  height: 150px;
  border-radius: 50%;
  background: var(--violet);
  filter: blur(80px);
  opacity: .16;
}
.future-card:nth-child(2)::after { background: var(--blue); }
.future-card:nth-child(3)::after { background: var(--cyan); }
.future-card h3 { margin-top: 68px; font-size: 1.45rem; }
.future-card p { color: var(--muted); }
.card-index { color: var(--blue-strong); font: 750 .72rem var(--mono); }
.journey-section { color: var(--ink); background: rgb(255 255 255 / 58%); }
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.journey article {
  position: relative;
  min-height: 312px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 74%);
  box-shadow: 0 12px 30px rgb(57 67 109 / 6%);
}
.journey article::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  margin-bottom: 20px;
  border: 4px solid rgb(97 117 246 / 12%);
  border-radius: 50%;
  background: var(--blue);
}
.journey span,
.journey b { color: var(--blue-strong); font: 700 .68rem var(--mono); letter-spacing: .09em; }
.journey h3 { margin: 30px 0 15px; font-size: 1.43rem; }
.journey p { min-height: 98px; color: var(--muted); }
.protocol-layout,
.final-cta__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
}
.protocol-list p {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 22px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.protocol-list span { color: var(--blue-strong); font: 700 .72rem var(--mono); }
.final-cta {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 40%, rgb(155 140 246 / 18%), transparent 22rem),
    radial-gradient(circle at 88% 62%, rgb(85 207 193 / 18%), transparent 22rem),
    linear-gradient(135deg, #f1f2ff, #fbfbff 54%, #edfaf6);
}
.final-cta .actions { justify-content: flex-end; }
.signal-status { color: var(--blue-strong); font: 700 .72rem var(--mono); letter-spacing: .06em; }

@keyframes orbit-pulse { to { transform: rotate(384deg) scale(1.02); } }
@media (prefers-reduced-motion: no-preference) {
  .orbit--one { animation: orbit-pulse 28s linear infinite; }
  .core-sphere { animation: core-float 6s ease-in-out infinite; }
}
@keyframes core-float { 50% { transform: translateY(-7px); } }

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

@media (max-width: 940px) {
  .site-nav a { padding-inline: 8px; font-size: .84rem; }
  .future-hero__layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); }
}

@media (max-width: 760px) {
  .site-header { background: rgb(248 249 253 / 96%); }
  .site-header__inner { min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
  .brand { font-size: .92rem; }
  .brand::before { width: 26px; height: 26px; border-radius: 9px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 92%);
    box-shadow: var(--shadow);
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { width: 100%; padding-inline: 12px; }
  .management-link { order: 2; margin-left: auto; }
  .account-link { order: 3; margin-left: 0; max-width: 125px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .future-hero__layout { grid-template-columns: 1fr; padding-block: 64px 84px; }
  .future-hero__copy h1 { font-size: clamp(3.05rem, 14vw, 5.2rem); }
  .future-core { width: min(88vw, 420px); justify-self: center; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey article { min-height: 280px; }
  .protocol-layout, .final-cta__layout { grid-template-columns: 1fr; }
  .final-cta .actions { justify-content: flex-start; }
  .prework-heading__meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .course-day-grid,
  .course-library-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header__inner, .site-footer__inner, .container { width: min(calc(100% - 28px), var(--content)); }
  body { font-size: 16px; }
  .section { padding-block: 52px; }
  .hero { padding-block: 64px; }
  .hero::after { display: none; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .future-hero__copy h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .future-core { width: min(82vw, 360px); }
  .core-label { font-size: .56rem; }
  .signal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .signal-row span { min-width: 0; padding: 10px 8px; }
  .signal-row b { font-size: 1rem; }
  .actions .btn { width: 100%; }
  fieldset, .card, .future-card { padding: 20px; border-radius: 20px; }
  .choice-grid, .evidence-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .journey article { min-height: 0; }
  .journey p { min-height: 0; }
  .step-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
  }
  .step-nav li {
    min-width: 0;
    padding: 9px 2px;
    font-size: .68rem;
    white-space: nowrap;
  }
  .prework-page .section { padding-top: 32px; }
  .prework-heading { margin-bottom: 24px; }
  .prework-heading h1 { font-size: clamp(2.65rem, 14vw, 3.6rem); }
  .prework-page .step-nav {
    display: flex;
    gap: 7px;
    margin-inline: -2px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .prework-page .step-nav li {
    flex: 0 0 auto;
    min-width: 98px;
    padding: 9px 10px;
    font-size: .72rem;
  }
  .prework-page .step-nav li::before {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  .prework-page fieldset[data-step] { padding: 24px 20px; }
  .prework-page fieldset[data-step] legend { margin-bottom: 24px; }
  .prework-page fieldset[data-step] > .btn {
    width: 100%;
    margin: 8px 0 0;
  }
  .option-grid, .completion-ticket { grid-template-columns: 1fr; }
  .prework-completion { padding: 26px 20px; border-radius: 22px; }
  .install-resource { margin-inline: -4px; padding: 16px; border-radius: 17px; }
  .install-resource video { border-radius: 13px; }
  .install-links > div { grid-template-columns: 1fr; gap: 3px; }
  #wizard { scroll-margin-top: 126px; }
  .install-guide-entry { align-items: stretch; flex-direction: column; }
  .install-guide-entry .btn { width: 100%; }
  .auth-shell::before { inset: 110px -10px auto auto; width: 100px; }
  .course-center-heading { align-items: stretch; flex-direction: column; }
  .course-center-heading > .btn { width: 100%; }
  .course-day-group { padding: 20px; border-radius: 20px; }
  .course-session-card { grid-template-columns: 1fr; }
  .course-session-card .btn { grid-column: 1; grid-row: auto; width: 100%; }
  .course-library-card h3 { min-height: 0; }
}
