:root {
  --orange: #ff5a00;
  --orange-deep: #d64500;
  --ink: #141414;
  --sea: #0a1b2b;
  --sea-mid: #143044;
  --foam: #f4f0ea;
  --sand: #e8e0d4;
  --white: #fff;
  --muted: #5b6b76;
  --line: #ddd4c8;
  --ok: #1d7a4c;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(10, 27, 43, 0.08);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Barlow", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--foam);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--orange-deep); }
button, input, textarea { font: inherit; }

.demo-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 1.5rem;
  background: var(--sea);
  color: #d7e2ea;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.demo-bar a { color: #fff; text-decoration: none; margin-left: 0.6rem; opacity: 0.7; }
.demo-bar a.is-on { opacity: 1; border-bottom: 2px solid var(--orange); }

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
}
.brand__text small {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a.is-active { border-color: var(--orange); }
.header-user { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.text-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; }

.avatar, .avatar-inline {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
}
.avatar--sea { background: var(--sea); }
.avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-inline { width: 28px; height: 28px; font-size: 0.7rem; margin-right: 0.35rem; }

main { flex: 1; }
main > .hero,
main > .layout-2,
main > .panel,
main > .player,
main > .discover-block,
main > .wizard,
main > .flash-wrap { width: min(1120px, calc(100% - 2.5rem)); margin-left: auto; margin-right: auto; }
main > .hero { margin-top: 2rem; }
.flash-wrap { margin-top: 1rem; }

.hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.hero--compact { align-items: flex-start; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin: 0 0 0.4rem;
}
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 42rem; margin: 0; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--orange);
  color: #fff;
  border: 0;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--orange-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--sand); }
.btn--small { padding: 0.4rem 0.85rem; font-size: 0.9rem; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.panel--accent { border-color: transparent; background: var(--sea); color: #fff; }
.panel--accent .eyebrow { color: var(--orange); }
.panel--accent p { color: #c5d3de; }
.panel--narrow { max-width: 720px; margin: 2rem auto; }
.stack { display: grid; gap: 0.75rem; }
.stack-lg { display: grid; gap: 1.25rem; }
.layout-2 { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 1.25rem; margin-bottom: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.8rem; }
.section-head a { font-weight: 700; text-decoration: none; }

.progress-orb { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.progress-orb svg { transform: rotate(-90deg); }
.progress-orb__track { fill: none; stroke: var(--sand); stroke-width: 8; }
.progress-orb__value { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round; }
.progress-orb__label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.progress-orb__label strong { font-family: var(--display); font-size: 1.7rem; }
.progress-orb__label span { color: var(--muted); font-size: 0.8rem; }

.bar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; margin: 0.6rem 0; }
.bar span { display: block; height: 100%; background: var(--orange); }
.bar--inline { display: inline-block; width: 120px; vertical-align: middle; margin-right: 0.5rem; }

.course-row, .micro-row, .event-mini, .trigger, .eval-mini {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.course-row:last-child, .micro-row:last-child { border-bottom: 0; }
.micro-row { text-decoration: none; color: inherit; }
.micro-row:hover strong { color: var(--orange-deep); }

.tag {
  display: inline-block;
  background: var(--sand);
  color: var(--ink);
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}
.tag--sea { background: var(--sea); color: #fff; }

.values { display: flex; gap: 0.5rem; }
.values span {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.std-list { list-style: none; padding: 0; margin: 0; }
.std-list li { padding: 0.7rem 0 0.7rem 1rem; border-left: 3px solid var(--line); margin: 0.4rem 0; }
.std-list li.is-now { border-color: var(--orange); }
.std-list li.is-done { border-color: var(--ok); }
.std-list span { display: block; color: var(--muted); font-size: 0.9rem; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.course-card, .event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  min-height: 11rem;
  box-shadow: var(--shadow);
}
.course-card:hover { border-color: var(--orange); }
.tone-orange { background: linear-gradient(180deg, #fff 60%, #ffe8dc); }
.tone-sea { background: linear-gradient(180deg, #fff 60%, #e4eef4); }
.tone-teal { background: linear-gradient(180deg, #fff 60%, #e4f3ee); }
.tone-sand { background: linear-gradient(180deg, #fff 60%, #f3eadc); }
.discover-block { margin-bottom: 2rem; }

.player {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin: 1.5rem auto 3rem;
  align-items: start;
}
.curriculum {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: sticky;
  top: 1rem;
}
.curriculum__title { font-size: 1.15rem; }
.curr-mod { margin-top: 1rem; }
.curr-mod h2 { font-size: 0.95rem; display: flex; justify-content: space-between; }
.curr-mod ul { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.curr-mod a {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.45rem 0.5rem; border-radius: 8px;
  text-decoration: none; color: inherit; font-size: 0.92rem;
}
.curr-mod li.is-active a { background: #fff1e8; color: var(--orange-deep); font-weight: 700; }
.curr-mod li.is-done a { color: var(--ok); }
.activity {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem 1.4rem;
  box-shadow: var(--shadow);
}
.activity__foot { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.prose p { margin: 0 0 0.9rem; }
.prose .lede { font-size: 1.15rem; color: var(--ink); }
.prose ul.plain, .prose ol.plain { padding-left: 1.1rem; }
.prose li { margin: 0.35rem 0; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1rem 0 1.4rem; }
.value-grid article { background: var(--foam); padding: 0.9rem; border-radius: 10px; }
.value-grid h3 { font-size: 1rem; color: var(--orange-deep); }
.signoff { font-style: italic; color: var(--muted); }

.video-poster {
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 80% 80%, rgba(255,90,0,0.45), transparent 45%),
    linear-gradient(160deg, #0a1b2b 0%, #143044 100%);
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}
.video-poster::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 28%;
  height: 40px;
  background: repeating-linear-gradient(
    -8deg,
    transparent,
    transparent 18px,
    rgba(255,90,0,0.35) 18px,
    rgba(255,90,0,0.35) 24px
  );
  opacity: 0.7;
}
.video-poster__play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.video-poster__play::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-style: solid;
  border-width: 11px 0 11px 16px;
  border-color: transparent transparent transparent #fff;
}
.video-poster div { position: relative; z-index: 1; }
.video-poster p { margin: 0.2rem 0 0; color: #c9d6e0; }
.video-poster--player { margin-bottom: 1rem; }

.quiz, .eval-form { display: grid; gap: 1rem; margin-top: 1rem; }
.quiz-q { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }
.quiz-q legend { font-weight: 700; padding: 0 0.3rem; }
.quiz-q label { display: flex; gap: 0.5rem; margin: 0.35rem 0; }
.scale { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.scale label { min-width: 2rem; }
.callout { background: var(--foam); border-left: 3px solid var(--orange); padding: 0.8rem 1rem; border-radius: 0 10px 10px 0; }
.callout--ok { border-color: var(--ok); background: #eef7f1; }

.data { width: 100%; border-collapse: collapse; }
.data th { text-align: left; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.data td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }

.log { list-style: none; padding: 0; margin: 0; }
.log li { display: grid; gap: 0.15rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.log time { font-size: 0.78rem; color: var(--muted); }
.subhead { margin-top: 1.4rem; font-size: 1rem; }
.cert { background: var(--foam); padding: 1rem; border-radius: 10px; margin-bottom: 1rem; }

.choice, .interest {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.choice:has(input:checked), .interest:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.interest small { color: var(--muted); }
.interest__icon {
  width: 28px; height: 4px; background: var(--orange); border-radius: 99px; margin-bottom: 0.3rem;
}

.wizard { padding-bottom: 3rem; }
.wizard__top { margin: 2rem 0 1.25rem; }
.steps { display: flex; gap: 1rem; list-style: none; padding: 0; color: var(--muted); font-weight: 700; }
.steps li.is-on { color: var(--ink); border-bottom: 2px solid var(--orange); }
.wizard__pane { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.welcome-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; }
.wizard__nav { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; }

.login-split { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 100vh; }
.login-hero {
  background: var(--sea);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3rem;
}
.login-hero__glow {
  position: absolute;
  width: 420px; height: 420px;
  right: -80px; bottom: -80px;
  background: radial-gradient(circle, rgba(255,90,0,0.45), transparent 70%);
  pointer-events: none;
}
.login-hero__inner { position: relative; max-width: 34rem; }
.login-logo { width: 160px; margin-bottom: 1.5rem; background: #fff; padding: 0.85rem 1rem; border-radius: 12px; }
.login-kicker { letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); font-weight: 700; font-size: 0.8rem; }
.login-hero h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.login-lead { color: #c9d6e0; font-size: 1.1rem; }
.login-hero blockquote { margin: 2rem 0 0; padding: 0; border: 0; }
.login-hero blockquote p { font-size: 1.05rem; margin: 0 0 0.4rem; }
.login-hero cite { color: #8ea0ae; font-style: normal; font-size: 0.9rem; }
.login-panel { padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; background: var(--foam); }
.demo-accounts { display: grid; gap: 0.8rem; margin: 1.2rem 0; }
.account-card {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.account-card:hover { border-color: var(--orange); }
.account-card__who { display: flex; gap: 0.8rem; align-items: center; }
.account-card__who small { display: block; color: var(--muted); }
.account-card__cta { font-weight: 700; color: var(--orange-deep); }
.login-more { margin-top: 1rem; color: var(--muted); }
.login-more form { margin-top: 0.8rem; }
label { display: grid; gap: 0.25rem; font-weight: 600; }
input[type="text"], input[type="password"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  background: #fff;
}
.flash { background: #fff; border: 1px solid var(--line); padding: 0.7rem 0.9rem; border-radius: 8px; }
.flash--error { border-color: #c0392b; color: #8a1f16; }

.site-footer {
  padding: 1.2rem 1.5rem 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer__muted { opacity: 0.75; }

body.is-login { background: var(--sea); }
body.is-login .site-footer, body.is-login main { margin: 0; width: 100%; }
body.is-login main { max-width: none; }

@media (max-width: 900px) {
  .login-split, .layout-2, .player, .welcome-grid, .choice-row, .card-grid, .interest-grid, .value-grid {
    grid-template-columns: 1fr;
  }
  .site-nav { display: none; }
  .login-hero { padding: 2rem 1.4rem; }
  .login-panel { padding: 1.5rem; }
  .curriculum { position: static; }
}
