
:root {
  --bg: #050505;
  --bg-soft: #101011;
  --panel: rgba(22, 22, 24, 0.9);
  --panel-strong: #1f2024;
  --text: #f8f6f0;
  --muted: #bab7ad;
  --line: rgba(216, 182, 92, 0.24);
  --mint: #d8b65c;
  --cyan: #f0e1b2;
  --gold: #d8b65c;
  --rose: #d86f6f;
  --silver: #dedbd2;
  --graphite: #25272c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 182, 92, 0.18), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.09), transparent 28%),
    linear-gradient(180deg, #050505 0%, #101011 48%, #050505 100%);
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.boot-screen, .error-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--mint);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #f6e7b4);
  color: #121212;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(216, 182, 92, 0.25);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  flex: 1;
  display: flex;
  gap: 8px;
  justify-content: center;
}

nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
}

nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.locale-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.locale-switch button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 7px 10px;
  border-radius: 999px;
}

.locale-switch button.active {
  background: var(--mint);
  color: #062026;
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 28px;
  align-items: center;
  padding: 52px 0 28px;
}

.eyebrow, .section-head span, .lesson-meta span, .status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid rgba(216, 182, 92, 0.32);
  border-radius: 999px;
  background: rgba(216, 182, 92, 0.1);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(2.35rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(720px, 100%);
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-cta, .ghost {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-cta {
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #052229;
  box-shadow: 0 18px 45px rgba(216, 182, 92, 0.24);
}

.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-card, .course-card, .lesson-card, .module-list, .lab-card, .lab-panel, .glossary-grid article, .update-card, .outcomes {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 32, 36, 0.94), rgba(12, 12, 13, 0.94));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 410px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.radar-orb {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
}

.radar-orb::before, .radar-orb::after, .radar-orb span {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(135, 247, 212, 0.24);
}

.radar-orb::before { width: 230px; height: 230px; }
.radar-orb::after { width: 150px; height: 150px; }
.radar-orb span {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--gold), rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 80px rgba(216, 182, 92, 0.45);
  border: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.metrics div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
}

.metrics dt {
  font-size: 2.1rem;
  color: var(--mint);
  font-weight: 900;
}

.metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 52px 0 22px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-head p {
  color: var(--muted);
  max-width: 780px;
  line-height: 1.65;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.course-card, .lab-card {
  color: var(--text);
  text-align: left;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.course-card:hover, .course-card.selected, .lab-card:hover {
  transform: translateY(-2px);
  border-color: rgba(135, 247, 212, 0.55);
  background: linear-gradient(180deg, rgba(21, 65, 73, 0.96), rgba(8, 25, 30, 0.94));
}

.course-card strong, .lab-card strong {
  display: block;
  font-size: 1.18rem;
  margin: 10px 0 6px;
}

.course-card small, .lab-card small {
  color: var(--gold);
}

.course-card p, .lab-card p {
  color: var(--muted);
  line-height: 1.55;
}

.domain-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(126, 220, 255, 0.1);
  color: var(--cyan);
  font-size: 1.35rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags em, .outcomes span {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.045);
}

.outcomes {
  margin-top: 18px;
  padding: 22px;
}

.outcomes h2 {
  margin: 0 0 14px;
}

.outcomes div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 32px 0;
}

.module-list {
  padding: 14px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.sticky-head {
  position: sticky;
  top: 0;
  background: rgba(16, 47, 55, 0.94);
  padding-bottom: 10px;
  z-index: 1;
}

.sticky-head h3 {
  margin: 6px 4px 12px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}

input:focus { border-color: var(--mint); }

.module-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.module-button span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--mint);
  background: rgba(135, 247, 212, 0.08);
}

.module-button small { color: var(--muted); }
.module-button.active, .module-button:hover {
  border-color: rgba(135, 247, 212, 0.38);
  background: rgba(135, 247, 212, 0.08);
}

.lesson-card {
  padding: clamp(20px, 4vw, 42px);
  min-height: 620px;
}

.lesson-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lesson-card h2, .lab-panel h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 18px 0 10px;
}

.summary {
  color: var(--gold);
  line-height: 1.6;
}

.lesson-body {
  color: #d8efeb;
  line-height: 1.78;
  font-size: 1.02rem;
}

.lesson-body h2 {
  margin-top: 28px;
  font-size: 1.35rem;
  color: var(--mint);
  letter-spacing: -0.02em;
}

.lesson-body h3 {
  color: var(--cyan);
}

.lesson-body ul {
  padding-left: 22px;
  margin: 8px 0;
}

.lesson-body li {
  margin: 8px 0;
}

.lesson-body a {
  color: var(--cyan);
  word-break: break-word;
}

.lesson-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.lab-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.lab-panel {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 34px);
}

.lab-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.lab-columns h3 {
  color: var(--mint);
}

.lab-columns li {
  margin: 8px 0;
  color: var(--muted);
}

.question {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.04);
}

.question legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 800;
}

.question label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  color: var(--muted);
}

.ok { color: var(--mint); }
.warn { color: var(--rose); }

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.score {
  color: var(--gold);
}

.wide-search {
  max-width: 520px;
  margin-bottom: 16px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.glossary-grid article {
  padding: 16px;
  box-shadow: none;
}

.glossary-grid strong {
  color: var(--mint);
}

.glossary-grid p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.update-card {
  padding: 22px;
  box-shadow: none;
}

.source-row, .event-row {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.source-row span, .event-row span {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.source-row strong, .event-row strong {
  display: block;
  margin: 4px 0;
}

.source-row small, .event-row small {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 30px clamp(16px, 4vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.empty {
  color: var(--muted);
  padding: 16px;
}

@media (max-width: 980px) {
  nav { display: none; }
  .hero, .learning-shell, .lab-columns, .update-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 34px; }
  .module-list {
    position: relative;
    top: 0;
    max-height: none;
  }
  .lab-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }
  .brand small {
    display: none;
  }
  .course-grid, .lab-strip, .glossary-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.7rem;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .lesson-card, .lab-panel {
    border-radius: 20px;
  }
  .footer {
    flex-direction: column;
  }
  .learning-shell {
    padding-top: 14px;
  }
}


/* Toralya polish v3: gold / black / grey / white theme + lesson micro-actions */
.brand {
  max-width: 520px;
}

.brand-mark {
  min-width: 42px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  letter-spacing: -0.04em;
}

.brand strong {
  line-height: 1.05;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lesson-action[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.lesson-action[aria-pressed="true"] {
  border-color: rgba(216, 182, 92, 0.55);
  background: rgba(216, 182, 92, 0.14);
  color: var(--gold);
}

.precision-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(216, 182, 92, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(216, 182, 92, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
}

.precision-panel strong {
  color: var(--gold);
}

.precision-panel p {
  color: var(--muted);
  line-height: 1.65;
  margin: 8px 0 0;
}

.note-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.note-panel label {
  display: block;
  color: var(--gold);
  margin-bottom: 10px;
}

.note-panel textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(216, 182, 92, 0.25);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 14px;
  outline: none;
  line-height: 1.55;
}

.note-panel textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 182, 92, 0.12);
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.note-saved {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
}

.module-button.is-favorite {
  border-color: rgba(216, 182, 92, 0.36);
}

.module-button.is-favorite strong {
  color: var(--gold);
}

.glossary-grid article {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.glossary-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 182, 92, 0.38);
  background: linear-gradient(180deg, rgba(216, 182, 92, 0.10), rgba(255, 255, 255, 0.035));
}

.source-row small,
.event-row small {
  display: block;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .brand {
    width: 100%;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .lesson-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lesson-action,
  .lesson-actions .primary-cta {
    width: 100%;
  }

  .note-actions {
    align-items: stretch;
  }
}


/* Deep Lesson v4: technical prose, synoptic tables and field-training layout */
.lesson-depth-banner {
  display: grid;
  gap: 6px;
  margin: 16px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 182, 92, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(216, 182, 92, 0.16), rgba(255, 255, 255, 0.045));
}
.lesson-depth-banner strong {
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.lesson-depth-banner span {
  color: var(--silver);
  line-height: 1.55;
}
.deep-lesson-body {
  font-size: 1.015rem;
  line-height: 1.82;
}
.deep-lesson-body h2,
.deep-lesson-body h3 {
  letter-spacing: -0.018em;
  color: #fffaf0;
}
.deep-lesson-body h2 {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 182, 92, 0.18);
}
.deep-lesson-body p { color: var(--silver); }
.deep-lesson-body strong { color: #fff7dc; }
.deep-lesson-body code {
  padding: 2px 6px;
  border-radius: 8px;
  color: #15120a;
  background: #ecd383;
  font-weight: 750;
}
.deep-lesson-body pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
}
.deep-lesson-body pre code {
  background: transparent;
  color: var(--silver);
  padding: 0;
}
.deep-lesson-body blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: rgba(216, 182, 92, 0.1);
  color: #f8edd0;
}
.synoptic-table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid rgba(216, 182, 92, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.synoptic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.synoptic-table th,
.synoptic-table td {
  vertical-align: top;
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(216, 182, 92, 0.16);
}
.synoptic-table th {
  color: #15120a;
  background: linear-gradient(135deg, var(--gold), #f0e1b2);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.synoptic-table td {
  color: var(--silver);
}
.deep-lesson-body ol,
.deep-lesson-body ul {
  padding-left: 1.2rem;
  color: var(--silver);
}
.deep-lesson-body li { margin: 7px 0; }
@media (max-width: 760px) {
  .deep-lesson-body { font-size: 0.98rem; line-height: 1.72; }
  .synoptic-table { min-width: 620px; }
  .lesson-depth-banner { padding: 13px; }
}

/* Paid-access authentication layer â€” v6 */
.access-section { scroll-margin-top: 96px; }
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.access-card,
.claim-card,
.locked-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(31, 32, 36, 0.94), rgba(12, 12, 13, 0.94));
  box-shadow: var(--shadow);
}
.access-card h3 { margin: 0 0 12px; }
.access-card input,
.access-card select {
  width: 100%;
  margin: 8px 0;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(216, 182, 92, 0.26);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}
.access-card input:focus,
.access-card select:focus {
  border-color: rgba(216, 182, 92, 0.72);
  box-shadow: 0 0 0 3px rgba(216, 182, 92, 0.12);
}
.price-line {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.form-error {
  color: #ffb4b4;
  background: rgba(216, 111, 111, 0.12);
  border: 1px solid rgba(216, 111, 111, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
}
.claim-card code {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: rgba(216, 182, 92, 0.12);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.04em;
}
.access-card.success { border-color: rgba(216, 182, 92, 0.55); }
.locked-panel {
  margin: 16px 0;
  background: linear-gradient(145deg, rgba(216, 182, 92, 0.12), rgba(18, 18, 18, 0.88));
}
.locked-panel strong { color: var(--gold); }
.lab-strip.is-locked { opacity: 0.58; filter: grayscale(0.2); }
.compact { padding: 8px 10px !important; }
@media (max-width: 760px) {
  .access-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  nav { justify-content: flex-start; overflow-x: auto; width: 100%; }
}


/* Market launch pricing layer â€” v7 */
.pricing-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.pricing-ribbon > div {
  padding: 16px;
  border: 1px solid rgba(216, 182, 92, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(216, 182, 92, 0.13), rgba(255,255,255,0.035));
}
.pricing-ribbon strong { display: block; color: var(--gold); letter-spacing: -0.02em; }
.pricing-ribbon span { display: block; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.pricing-card { position: relative; overflow: hidden; border-color: rgba(216, 182, 92, 0.48); }
.pricing-card::before { content: ""; position: absolute; inset: -80px auto auto -80px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(216,182,92,0.22), transparent 64%); pointer-events: none; }
.price-kicker { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 10px; padding: 6px 10px; border-radius: 999px; color: #16110a; background: linear-gradient(135deg, var(--gold), #f2dfaa); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.price-line span { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 0.95; }
.price-line del { margin-left: 10px; color: var(--muted); font-size: 1.05rem; font-weight: 700; }
.price-note { color: var(--silver); margin-top: -6px; line-height: 1.55; }
.value-card { background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(12,12,13,0.92)); }
.value-list { margin: 10px 0 0; padding: 0; list-style: none; }
.value-list li { position: relative; padding: 9px 0 9px 26px; color: var(--silver); border-bottom: 1px solid rgba(255,255,255,0.07); }
.value-list li::before { content: "âœ“"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
@media (max-width: 760px) { .pricing-ribbon { grid-template-columns: 1fr; } .price-line span { font-size: 3.1rem; } }

/* v7.2 pre-launch polish: English-only UX, currency clarity and certificate card */
.currency-summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.currency-summary.expanded {
  display: flex;
  margin: 0.65rem 0 0.9rem;
}
.currency-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text, #f7f7f5);
}
.currency-pill strong {
  color: var(--gold, #d4af37);
  font-weight: 800;
}
.currency-pill small {
  color: var(--muted, #a8a8a2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.certificate-card {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.035));
}
.certificate-note {
  margin-top: 0.75rem;
  color: var(--muted, #a8a8a2);
  font-size: 0.92rem;
}
.claim-card .ghost,
.access-card.success .primary-cta {
  margin-top: 0.8rem;
  display: inline-flex;
  justify-content: center;
}
@media (max-width: 760px) {
  .currency-summary {
    width: 100%;
  }
  .currency-pill {
    flex: 1 1 auto;
    justify-content: center;
  }
}


/* Launch polish v7.3/v7.4 â€” cyber visual, deterministic lesson auto-scroll, colour-coded deep lessons, live radar and readable currency dropdown */
.learning-shell,
.lesson-card {
  scroll-margin-top: 104px;
}

.cyber-visual {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(216, 182, 92, 0.18), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(135, 247, 212, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.96), rgba(16, 18, 22, 0.92));
  border: 1px solid rgba(216, 182, 92, 0.18);
}

.cyber-grid,
.cyber-grid::before,
.cyber-grid::after {
  position: absolute;
  inset: 0;
  content: "";
}

.cyber-grid {
  background-image:
    linear-gradient(rgba(216, 182, 92, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 182, 92, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
}

.cyber-grid::before {
  background: linear-gradient(90deg, transparent 0%, rgba(135, 247, 212, 0.22) 50%, transparent 100%);
  width: 44%;
  left: 28%;
  top: 50%;
  height: 1px;
}

.cyber-grid::after {
  background: linear-gradient(180deg, transparent 0%, rgba(135, 247, 212, 0.22) 50%, transparent 100%);
  height: 44%;
  top: 28%;
  left: 50%;
  width: 1px;
}

.cyber-shield {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 132px;
  height: 154px;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 87% 12%, 87% 54%, 50% 100%, 13% 54%, 13% 12%);
  background:
    linear-gradient(180deg, rgba(216, 182, 92, 0.36), rgba(19, 26, 34, 0.96)),
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0));
  border: 1px solid rgba(216, 182, 92, 0.28);
  box-shadow: inset 0 0 28px rgba(216, 182, 92, 0.2), 0 0 42px rgba(216, 182, 92, 0.15);
}

.cyber-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #f6e7b4 0%, #d8b65c 35%, rgba(216,182,92,0.24) 62%, rgba(216,182,92,0) 100%);
  box-shadow: 0 0 55px rgba(216, 182, 92, 0.42);
}

.cyber-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9df5e0;
  box-shadow: 0 0 18px rgba(157, 245, 224, 0.5);
}

.node-a { top: 28%; left: 24%; }
.node-b { top: 24%; right: 22%; }
.node-c { bottom: 22%; left: 26%; }

.cyber-trace {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(157, 245, 224, 0.8), rgba(157, 245, 224, 0));
  box-shadow: 0 0 12px rgba(157, 245, 224, 0.22);
}

.trace-a { top: 31%; left: 27%; width: 118px; transform: rotate(19deg); }
.trace-b { top: 29%; right: 27%; width: 116px; transform: rotate(157deg); }
.trace-c { bottom: 27%; left: 29%; width: 110px; transform: rotate(-18deg); }

.deep-lesson-sections {
  display: grid;
  gap: 18px;
}

.deep-section {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(216, 182, 92, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.deep-section-header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.deep-section-header span {
  display: inline-flex;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  opacity: 0.92;
}

.deep-section-header h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.deep-section-body > :first-child { margin-top: 0; }
.deep-section-body > :last-child { margin-bottom: 0; }

.tone-amber {
  background: linear-gradient(180deg, rgba(216, 182, 92, 0.13), rgba(18, 15, 9, 0.92));
  border-color: rgba(216, 182, 92, 0.24);
}
.tone-amber .deep-section-header,
.tone-amber .deep-section-header h3 { color: #f0dba0; }

.tone-blue {
  background: linear-gradient(180deg, rgba(98, 165, 255, 0.12), rgba(11, 16, 24, 0.92));
  border-color: rgba(98, 165, 255, 0.22);
}
.tone-blue .deep-section-header,
.tone-blue .deep-section-header h3 { color: #bfd7ff; }

.tone-silver {
  background: linear-gradient(180deg, rgba(222, 219, 210, 0.12), rgba(18, 18, 20, 0.94));
  border-color: rgba(222, 219, 210, 0.2);
}
.tone-silver .deep-section-header,
.tone-silver .deep-section-header h3 { color: #f3eee3; }

.tone-graphite {
  background: linear-gradient(180deg, rgba(63, 72, 89, 0.3), rgba(16, 18, 23, 0.96));
  border-color: rgba(157, 245, 224, 0.16);
}
.tone-graphite .deep-section-header,
.tone-graphite .deep-section-header h3 { color: #bbf5e9; }

.tone-plum {
  background: linear-gradient(180deg, rgba(125, 88, 145, 0.18), rgba(21, 14, 25, 0.94));
  border-color: rgba(177, 128, 206, 0.22);
}
.tone-plum .deep-section-header,
.tone-plum .deep-section-header h3 { color: #e5c8ff; }

.daily-brief-card {
  margin-bottom: 16px;
}

.card-headline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-headline h3 {
  margin: 0 0 6px;
}

.card-headline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(216, 182, 92, 0.1);
  border: 1px solid rgba(216, 182, 92, 0.22);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.daily-brief-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.brief-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(216, 182, 92, 0.14);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.brief-row:hover,
.source-row.linked:hover,
.event-row.rich:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 182, 92, 0.34);
  background: rgba(255, 255, 255, 0.055);
}

.brief-row strong,
.event-row.rich strong {
  display: block;
  margin-bottom: 5px;
}

.brief-row p,
.event-row.rich p {
  margin: 0 0 6px;
  color: var(--silver);
  line-height: 1.5;
  font-size: 0.94rem;
}

.brief-row small,
.event-row.rich small {
  display: block;
}

.impact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 900;
  border: 1px solid currentColor;
}

.impact-chip.high {
  color: #ffb1b1;
  background: rgba(216, 111, 111, 0.14);
}

.impact-chip.medium {
  color: #f6dfa0;
  background: rgba(216, 182, 92, 0.14);
}

.impact-chip.monitor {
  color: #b8fff0;
  background: rgba(157, 245, 224, 0.12);
}

.enhanced-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.source-row.linked,
.event-row.rich {
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(216, 182, 92, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

/* Currency dropdown contrast fix for native Windows/browser menus. */
select,
select option,
select optgroup {
  color: #15120a !important;
  background: #fffaf0 !important;
}

select {
  border: 1px solid rgba(216, 182, 92, 0.36);
  background:
    linear-gradient(180deg, #fffaf0, #efe3bf) !important;
  color: #15120a !important;
  font-weight: 850;
  appearance: auto;
}

select:focus {
  outline: none;
  border-color: rgba(216, 182, 92, 0.78);
  box-shadow: 0 0 0 4px rgba(216, 182, 92, 0.18);
}

.access-card select,
.checkout-form select,
#checkout-form select,
select[name="currency"] {
  min-height: 48px;
  border-radius: 14px;
  padding: 10px 12px;
}

.access-card select option,
.checkout-form select option,
#checkout-form select option,
select[name="currency"] option {
  color: #15120a !important;
  background-color: #fffaf0 !important;
  font-weight: 750;
}

.module-button.active {
  box-shadow: 0 0 0 1px rgba(216, 182, 92, 0.28), 0 14px 32px rgba(216, 182, 92, 0.08);
}

.course-card:focus-visible,
.module-button:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(216, 182, 92, 0.82);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .daily-brief-list,
  .update-grid.enhanced-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .card-headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .brief-row {
    grid-template-columns: 1fr;
  }

  .impact-chip {
    width: max-content;
  }

  .cyber-visual {
    height: 220px;
  }
}

/* Launch polish v7.5 â€” Toralya.io visual alignment + gamified investigation console */
:root {
  --bg: #f5f2ea;
  --bg-soft: #ebe6dc;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #101010;
  --muted: #5f5b55;
  --line: rgba(16, 16, 16, 0.12);
  --mint: #981f22;
  --cyan: #101010;
  --gold: #981f22;
  --rose: #8f171a;
  --silver: #252525;
  --graphite: #171717;
  --shadow: 0 24px 70px rgba(16, 16, 16, 0.12);
}

html { background: var(--bg); }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(152, 31, 34, 0.10), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(16, 16, 16, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f4ee 0%, #ebe6dc 48%, #f7f4ee 100%);
}

.topbar {
  background: rgba(247, 244, 238, 0.9);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
}

.brand-mark {
  background: #101010;
  color: #f7f4ee;
  box-shadow: none;
}

.brand small,
nav a,
.hero p,
.course-card p,
.module-button small,
.update-card p,
.card-headline p,
.footer,
.muted { color: var(--muted); }

.primary-cta {
  background: #101010;
  color: #f7f4ee;
  box-shadow: 0 18px 42px rgba(16, 16, 16, 0.16);
}

.primary-cta:hover { background: #981f22; }

.ghost {
  border-color: rgba(16, 16, 16, 0.16);
  color: #101010;
  background: rgba(255, 255, 255, 0.64);
}

.eyebrow,
.section-head span,
.lesson-meta span,
.status-pill,
.pill-soft {
  border-color: rgba(152, 31, 34, 0.28);
  background: rgba(152, 31, 34, 0.08);
  color: #981f22;
}

.hero-card,
.course-card,
.lesson-card,
.module-list,
.lab-card,
.lab-panel,
.glossary-grid article,
.update-card,
.outcomes,
.access-card,
.pricing-card,
.mission-case,
.mission-map {
  border-color: rgba(16, 16, 16, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 238, 0.94));
  color: #101010;
  box-shadow: var(--shadow);
}

.hero h1,
.section-head h2,
.lesson-card h2,
.lab-panel h2,
.course-card h3,
.mission-case h3 { color: #101010; }

.summary,
.metrics dt,
.glossary-grid strong,
.score,
.lesson-depth-banner strong { color: #981f22; }

.lesson-body,
.deep-lesson-body p,
.deep-lesson-body li,
.deep-section-body,
.synoptic-table td,
.brief-row p,
.event-row.rich p { color: #252525; }

.deep-lesson-body strong,
.deep-lesson-body h2,
.deep-lesson-body h3 { color: #101010; }

.cyber-visual {
  background:
    radial-gradient(circle at 50% 45%, rgba(152, 31, 34, 0.16), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(16, 16, 16, 0.08), transparent 18%),
    linear-gradient(180deg, #f7f4ee, #ddd6c8);
  border-color: rgba(16, 16, 16, 0.12);
}
.cyber-grid {
  background-image:
    linear-gradient(rgba(16, 16, 16, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.07) 1px, transparent 1px);
}
.cyber-shield {
  background: linear-gradient(180deg, rgba(152,31,34,0.86), rgba(16,16,16,0.94));
  box-shadow: 0 22px 55px rgba(16, 16, 16, 0.18);
}
.cyber-core {
  background: radial-gradient(circle, #ffffff 0%, #981f22 45%, rgba(152,31,34,0.20) 70%, transparent 100%);
  box-shadow: 0 0 50px rgba(152, 31, 34, 0.30);
}
.cyber-node { background: #101010; box-shadow: none; }
.cyber-trace { background: linear-gradient(90deg, rgba(16,16,16,0.7), rgba(16,16,16,0)); }

.tone-amber,
.tone-blue,
.tone-silver,
.tone-graphite,
.tone-plum {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,235,226,0.92));
  border-color: rgba(16, 16, 16, 0.12);
}
.tone-amber .deep-section-header,
.tone-blue .deep-section-header,
.tone-silver .deep-section-header,
.tone-graphite .deep-section-header,
.tone-plum .deep-section-header,
.tone-amber .deep-section-header h3,
.tone-blue .deep-section-header h3,
.tone-silver .deep-section-header h3,
.tone-graphite .deep-section-header h3,
.tone-plum .deep-section-header h3 { color: #101010; }
.deep-section:nth-child(1) { border-left: 5px solid #981f22; }
.deep-section:nth-child(2) { border-left: 5px solid #101010; }
.deep-section:nth-child(3) { border-left: 5px solid #8a8175; }
.deep-section:nth-child(4) { border-left: 5px solid #bd8f8f; }
.deep-section:nth-child(5) { border-left: 5px solid #5d5650; }

.mission-section { scroll-margin-top: 104px; }
.mission-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 18px;
  align-items: start;
}
.mission-layout.is-locked {
  opacity: 0.78;
}
.mission-map,
.mission-case {
  padding: 22px;
  border-radius: var(--radius);
}
.mission-score {
  display: grid;
  gap: 2px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #101010;
  color: #f7f4ee;
}
.mission-score strong {
  font-size: 2.3rem;
  line-height: 1;
}
.mission-score span { font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.mission-score small { color: rgba(247,244,238,0.72); }
.mission-node {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  padding: 13px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid rgba(16,16,16,0.12);
  background: rgba(255,255,255,0.74);
  color: #101010;
}
.mission-node span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ebe6dc;
  color: #981f22;
  font-weight: 900;
}
.mission-node strong { font-size: 0.95rem; }
.mission-node small { grid-column: 2; color: var(--muted); }
.mission-node.active { border-color: rgba(152,31,34,0.4); background: rgba(152,31,34,0.07); }
.mission-node.solved span { background: #101010; color: #f7f4ee; }
.mission-node:disabled { opacity: 0.45; cursor: not-allowed; }
.mission-case h3 { font-size: clamp(1.55rem, 3vw, 2.4rem); margin: 16px 0 12px; }
.mission-case p { color: #252525; line-height: 1.65; }
.mission-evidence {
  padding: 16px;
  margin: 16px 0;
  border-radius: 18px;
  background: rgba(16,16,16,0.04);
  border: 1px solid rgba(16,16,16,0.1);
}
.mission-evidence strong { color: #981f22; }
.mission-evidence li { margin: 8px 0; color: #252525; }
.mission-decision {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
.mission-decision legend {
  font-weight: 900;
  margin-bottom: 10px;
}
.mission-choice {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(16,16,16,0.12);
  background: #ffffff;
  color: #101010;
  padding: 14px;
  text-align: left;
}
.mission-choice span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #981f22;
  color: #ffffff;
  font-weight: 900;
}
.mission-choice:hover { border-color: rgba(152,31,34,0.38); transform: translateY(-1px); }
.mission-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(16,16,16,0.12);
}
.mission-feedback.ok { background: rgba(16,16,16,0.05); color: #101010; }
.mission-feedback.warn { background: rgba(152,31,34,0.08); color: #101010; border-color: rgba(152,31,34,0.22); }
.mission-feedback strong { color: #981f22; }
.mission-feedback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

@media (max-width: 980px) {
  .mission-layout { grid-template-columns: 1fr; }
}


/* Toralya refined palette v7.6.1 â€” keep dark blue/navy/black/orange/white/grey but make it cleaner */
:root {
  --bg: #050914;
  --bg-soft: #0b1730;
  --panel: rgba(10, 19, 36, 0.96);
  --panel-strong: rgba(14, 27, 48, 0.98);
  --text: #f6f8fb;
  --muted: #a5b1c3;
  --line: rgba(84, 116, 161, 0.24);
  --mint: #ff7a1a;
  --cyan: #3e6ea5;
  --gold: #ff7a1a;
  --rose: #ff9a47;
  --silver: #dbe3ee;
  --graphite: #192536;
  --shadow: 0 24px 70px rgba(2, 8, 18, 0.48);
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(62, 110, 165, 0.18), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255, 122, 26, 0.10), transparent 22%),
    linear-gradient(180deg, #050914 0%, #091427 44%, #050914 100%);
  color: var(--text);
}

.topbar {
  background: rgba(5, 9, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(84, 116, 161, 0.18);
}

.brand-mark {
  background: linear-gradient(135deg, #ff7a1a, #ffae63);
  color: #06101f;
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.18);
}

.brand-copy strong,
nav a,
.hero h1,
.section-head h2,
.lesson-card h2,
.lab-panel h2,
.course-card h3,
.mission-case h3,
.summary,
.metrics dt,
.glossary-grid strong,
.score,
.lesson-depth-banner strong {
  color: #f7f9fc;
}

.brand-copy span,
.hero p,
.section-head p,
.course-card p,
.lesson-body,
.deep-lesson-body p,
.deep-lesson-body li,
.deep-section-body,
.synoptic-table td,
.brief-row p,
.event-row.rich p,
.mission-case p,
.mission-evidence li,
.mission-node small,
.lesson-meta,
small,
.muted {
  color: #a9b5c6;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.eyebrow,
.section-head span,
.lesson-meta span,
.status-pill,
.pill-soft {
  border-color: rgba(255, 122, 26, 0.26);
  background: rgba(255, 122, 26, 0.10);
  color: #ff9b4c;
}

.primary-cta {
  background: linear-gradient(135deg, #ff7a1a, #ffb066);
  color: #071221;
  box-shadow: 0 18px 40px rgba(255, 122, 26, 0.20);
}

.primary-cta:hover,
.primary-cta:focus-visible {
  filter: brightness(1.03);
  box-shadow: 0 20px 44px rgba(255, 122, 26, 0.26);
}

.ghost,
.module-button,
.action-button,
.secondary-button,
.note-action,
.lesson-footer button {
  border-color: rgba(84, 116, 161, 0.26);
  background: rgba(84, 116, 161, 0.10);
  color: #eef4fb;
}

.module-button.active,
.action-button.primary,
.secondary-button.primary {
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(62, 110, 165, 0.18));
  border-color: rgba(255, 122, 26, 0.32);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.16), 0 14px 28px rgba(255, 122, 26, 0.08);
}

.hero-card,
.course-card,
.lesson-card,
.module-list,
.lab-card,
.lab-panel,
.glossary-grid article,
.update-card,
.outcomes,
.access-card,
.pricing-card,
.mission-case,
.mission-map,
.locked-panel,
.precision-panel,
.note-panel,
.mission-console,
.score-panel {
  border: 1px solid rgba(84, 116, 161, 0.18);
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 15, 28, 0.98));
  color: #f6f8fb;
  box-shadow: var(--shadow);
}

.course-card:hover,
.lab-card:hover,
.glossary-grid article:hover,
.update-card:hover,
.brief-row:hover,
.source-row.linked:hover,
.event-row.rich:hover,
.mission-choice:hover,
.mission-node:hover {
  border-color: rgba(255, 122, 26, 0.26);
}

.cyber-visual {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 122, 26, 0.18), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(62, 110, 165, 0.20), transparent 18%),
    linear-gradient(180deg, rgba(7, 14, 28, 0.98), rgba(13, 24, 42, 0.94));
  border: 1px solid rgba(84, 116, 161, 0.20);
}

.cyber-grid {
  background-image:
    linear-gradient(rgba(84, 116, 161, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 116, 161, 0.08) 1px, transparent 1px);
}

.cyber-grid::before,
.cyber-grid::after {
  opacity: 0.95;
}

.cyber-grid::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 122, 26, 0.26) 50%, transparent 100%);
}

.cyber-grid::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 122, 26, 0.26) 50%, transparent 100%);
}

.cyber-shield {
  background:
    linear-gradient(180deg, rgba(255, 122, 26, 0.32), rgba(16, 29, 49, 0.96)),
    linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  border-color: rgba(255, 122, 26, 0.20);
  box-shadow: inset 0 0 24px rgba(255, 122, 26, 0.16), 0 0 36px rgba(62, 110, 165, 0.12);
}

.cyber-core {
  background: radial-gradient(circle, #fff7ee 0%, #ff7a1a 34%, rgba(255,122,26,0.22) 62%, rgba(255,122,26,0) 100%);
  box-shadow: 0 0 45px rgba(255, 122, 26, 0.28);
}

.cyber-node {
  background: #7eb0e2;
  box-shadow: 0 0 16px rgba(126, 176, 226, 0.36);
}

.cyber-trace {
  background: linear-gradient(90deg, rgba(126, 176, 226, 0.8), rgba(126, 176, 226, 0));
}

.tone-amber {
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.22), rgba(10, 17, 31, 0.98));
  border-color: rgba(255, 122, 26, 0.24);
}
.tone-amber .deep-section-header,
.tone-amber .deep-section-header h3 { color: #ffb26f; }

.tone-blue {
  background: linear-gradient(180deg, rgba(62, 110, 165, 0.18), rgba(10, 18, 32, 0.98));
  border-color: rgba(84, 116, 161, 0.24);
}
.tone-blue .deep-section-header,
.tone-blue .deep-section-header h3 { color: #b7d6fb; }

.tone-silver {
  background: linear-gradient(180deg, rgba(219, 227, 238, 0.10), rgba(12, 18, 30, 0.98));
  border-color: rgba(219, 227, 238, 0.15);
}
.tone-silver .deep-section-header,
.tone-silver .deep-section-header h3 { color: #f5f8fb; }

.tone-graphite {
  background: linear-gradient(180deg, rgba(26, 37, 54, 0.94), rgba(9, 15, 28, 0.98));
  border-color: rgba(84, 116, 161, 0.20);
}
.tone-graphite .deep-section-header,
.tone-graphite .deep-section-header h3 { color: #d3e5fb; }

.tone-plum {
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.92), rgba(7, 13, 24, 0.98));
  border-color: rgba(255, 122, 26, 0.16);
}
.tone-plum .deep-section-header,
.tone-plum .deep-section-header h3 { color: #dce8f7; }

.deep-section:nth-child(1) { border-left: 4px solid #ff7a1a; }
.deep-section:nth-child(2) { border-left: 4px solid #4e84bc; }
.deep-section:nth-child(3) { border-left: 4px solid #cfd9e5; }
.deep-section:nth-child(4) { border-left: 4px solid #6e87a9; }
.deep-section:nth-child(5) { border-left: 4px solid #9cb6d2; }

.mission-score {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.18), rgba(8, 15, 28, 0.96));
  border: 1px solid rgba(255, 122, 26, 0.22);
  color: #f7f9fc;
}

.mission-score small {
  color: rgba(247, 249, 252, 0.72);
}

.mission-node {
  border-color: rgba(84, 116, 161, 0.20);
  background: rgba(18, 29, 48, 0.86);
  color: #f6f8fb;
}

.mission-node span {
  background: rgba(255, 122, 26, 0.14);
  color: #ff9e56;
}

.mission-node.active {
  border-color: rgba(255, 122, 26, 0.30);
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.10), rgba(18, 29, 48, 0.90));
}

.mission-node.solved span {
  background: #ff7a1a;
  color: #08111f;
}

.mission-evidence {
  background: rgba(84, 116, 161, 0.08);
  border-color: rgba(84, 116, 161, 0.16);
}

.mission-evidence strong,
.mission-feedback strong,
.lesson-depth-banner strong {
  color: #ff9b4c;
}

.mission-choice {
  border-color: rgba(84, 116, 161, 0.18);
  background: linear-gradient(180deg, rgba(15, 25, 43, 0.98), rgba(10, 18, 31, 0.98));
  color: #f7f9fc;
}

.mission-choice span {
  background: linear-gradient(135deg, #ff7a1a, #ffb066);
  color: #071221;
}

.mission-feedback {
  border-color: rgba(84, 116, 161, 0.16);
  background: rgba(12, 21, 37, 0.92);
  color: #f5f8fb;
}

.mission-feedback.ok {
  background: rgba(62, 110, 165, 0.12);
  border-color: rgba(62, 110, 165, 0.22);
  color: #f5f8fb;
}

.mission-feedback.warn {
  background: rgba(255, 122, 26, 0.10);
  border-color: rgba(255, 122, 26, 0.20);
  color: #f5f8fb;
}

.impact-chip.high {
  color: #ffd7bc;
  background: rgba(255, 122, 26, 0.16);
}

.impact-chip.medium {
  color: #d6e8fb;
  background: rgba(62, 110, 165, 0.16);
}

.impact-chip.monitor {
  color: #eef3f9;
  background: rgba(219, 227, 238, 0.12);
}

select,
select option,
select optgroup {
  color: #0a1523 !important;
  background: #f7fbff !important;
}

select {
  border-color: rgba(84, 116, 161, 0.30);
  background: linear-gradient(180deg, #f7fbff, #dbe8f5) !important;
  color: #0a1523 !important;
}

select:focus {
  border-color: rgba(255, 122, 26, 0.64);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14);
}

hr,
.card-divider,
.module-divider {
  border-color: rgba(84, 116, 161, 0.16);
}


/* Lesson readability + electric blue curriculum glow v7.6.2 */
.lesson-card,
.deep-lesson-body,
.deep-section,
.deep-section-body,
.deep-section-body p,
.deep-section-body li,
.deep-lesson-body p,
.deep-lesson-body li,
.lesson-body,
.synoptic-table td,
.synoptic-table th,
.synoptic-table tr,
.lesson-card table,
.lesson-card tbody,
.lesson-card thead,
.lesson-card ul,
.lesson-card ol,
.lesson-card blockquote,
.lesson-card pre,
.lesson-card code {
  color: #eef4fb !important;
}

.deep-lesson-body strong,
.deep-section-body strong,
.lesson-body strong,
.lesson-card h2,
.lesson-card h3,
.lesson-card h4,
.deep-lesson-body h2,
.deep-lesson-body h3,
.deep-section-header h3,
.deep-section-header span {
  color: #ffffff !important;
}

.deep-lesson-body a,
.lesson-body a,
.deep-section-body a {
  color: #7fc2ff !important;
}

.deep-lesson-body code,
.lesson-body code {
  background: rgba(62, 110, 165, 0.18) !important;
  color: #f5f9ff !important;
  border: 1px solid rgba(102, 163, 230, 0.22) !important;
}

.deep-lesson-body pre,
.lesson-body pre,
.synoptic-table-wrap {
  background: rgba(7, 14, 26, 0.82) !important;
  border: 1px solid rgba(84, 116, 161, 0.24) !important;
}

.synoptic-table th {
  background: rgba(21, 38, 67, 0.92) !important;
  color: #ffffff !important;
}

.synoptic-table td {
  background: rgba(11, 20, 36, 0.88) !important;
  color: #eaf2fb !important;
  border-color: rgba(84, 116, 161, 0.20) !important;
}

.synoptic-table tr:nth-child(even) td {
  background: rgba(14, 26, 46, 0.94) !important;
}

.deep-section {
  border-color: rgba(84, 116, 161, 0.22) !important;
}

.deep-section-body,
.deep-lesson-body,
.lesson-body {
  text-shadow: none !important;
}

/* Electric-blue emphasis for curriculum / course cards */
.course-card,
.course-card.selected,
.course-card:hover {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 180ms ease !important;
}

.course-card:hover,
.course-card.selected {
  border-color: rgba(72, 149, 255, 0.62) !important;
  background: linear-gradient(180deg, rgba(14, 29, 52, 0.98), rgba(8, 16, 31, 0.98)) !important;
  box-shadow:
    0 0 0 1px rgba(72, 149, 255, 0.26),
    0 0 22px rgba(72, 149, 255, 0.20),
    0 18px 42px rgba(9, 27, 53, 0.42) !important;
}

.course-card:hover h3,
.course-card.selected h3,
.course-card:hover strong,
.course-card.selected strong {
  color: #ffffff !important;
}

.course-card:hover p,
.course-card.selected p,
.course-card:hover small,
.course-card.selected small {
  color: #cfe3fb !important;
}

.course-card:hover .eyebrow,
.course-card.selected .eyebrow,
.course-card:hover .pill-soft,
.course-card.selected .pill-soft {
  background: rgba(72, 149, 255, 0.14) !important;
  border-color: rgba(72, 149, 255, 0.34) !important;
  color: #8fd2ff !important;
}


/* Scenario quiz + printable lesson patch v7.7 */
.question.is-scored label {
  border-radius: 14px;
  padding: 10px;
  border: 1px solid transparent;
  margin: 4px 0;
}

.question label.answer-correct {
  border-color: rgba(42, 190, 104, 0.52) !important;
  background: rgba(42, 190, 104, 0.14) !important;
  color: #dfffe9 !important;
}

.question label.answer-correct span {
  color: #dfffe9 !important;
}

.question label.answer-wrong {
  border-color: rgba(255, 82, 82, 0.58) !important;
  background: rgba(255, 82, 82, 0.16) !important;
  color: #ffe2e2 !important;
}

.question label.answer-wrong span {
  color: #ffe2e2 !important;
}

.question label.answer-neutral {
  opacity: 0.72;
}

.question p.ok {
  color: #82f5a7 !important;
  background: rgba(42, 190, 104, 0.10);
  border: 1px solid rgba(42, 190, 104, 0.28);
  border-radius: 12px;
  padding: 9px 10px;
}

.question p.warn {
  color: #ffb1b1 !important;
  background: rgba(255, 82, 82, 0.10);
  border: 1px solid rgba(255, 82, 82, 0.28);
  border-radius: 12px;
  padding: 9px 10px;
}

@media print {
  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .topbar,
  .hero,
  #access,
  #courses,
  .outcomes,
  .module-list,
  #labs,
  #game,
  #glossary,
  #updates,
  .footer,
  footer,
  .lesson-actions,
  .note-panel,
  .precision-panel {
    display: none !important;
  }

  main {
    width: 100% !important;
    margin: 0 !important;
  }

  .learning-shell {
    display: block !important;
    padding: 0 !important;
  }

  .lesson-card {
    display: block !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  .lesson-card *,
  .deep-section,
  .deep-section *,
  .deep-lesson-body *,
  .lesson-body * {
    color: #000000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .lesson-depth-banner,
  .deep-section {
    border: 1px solid #cccccc !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 12px 0 !important;
  }

  .synoptic-table-wrap {
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
  }

  .synoptic-table th {
    background: #eeeeee !important;
    color: #000000 !important;
  }

  .synoptic-table td {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #dddddd !important;
  }
}


/* Toralya logo + scenario quiz layout patch v7.8 */
.brand-logo {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 148px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  filter: drop-shadow(0 12px 24px rgba(1, 8, 18, 0.32));
}

.brand-logo svg {
  width: 148px;
  height: 42px;
  display: block;
}

.brand-logo rect {
  fill: rgba(6, 13, 26, 0.94);
  stroke: rgba(72, 149, 255, 0.28);
  stroke-width: 1.2;
}

.brand-logo path {
  fill: #ff7a1a;
}

.brand-logo text {
  fill: #f7f9fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1.4px;
}

.brand-copy {
  min-width: 0;
}

.quiz-panel {
  overflow: visible;
}

.lab-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin: 18px 0 20px;
}

.lab-overview-card {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(84, 116, 161, 0.20);
  background: rgba(11, 21, 38, 0.78);
}

.lab-overview-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.lab-overview-card p,
.lab-overview-card li {
  color: #dbe8f7;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.quiz-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 22px 0 12px;
}

.quiz-title-row h3 {
  margin: 0;
}

.quiz-title-row span {
  color: #8fb4dc;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.quiz-card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  padding: 14px !important;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 26, 48, 0.96), rgba(7, 15, 30, 0.98));
  border: 1px solid rgba(84, 116, 161, 0.22);
}

.quiz-card legend {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 0;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: normal;
}

.quiz-card legend span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #071221;
  background: linear-gradient(135deg, #4895ff, #8dc8ff);
  font-size: 0.76rem;
  font-weight: 950;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-card label {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: start !important;
  border-radius: 13px;
  padding: 9px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(84, 116, 161, 0.14);
}

.quiz-card label span {
  min-width: 0;
  color: #dce9f7;
  line-height: 1.36;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.quiz-card input {
  margin-top: 2px;
}

.quiz-card p.ok,
.quiz-card p.warn {
  margin: auto 0 0;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.quiz-actions {
  margin-top: 18px;
}

@media (min-width: 1320px) {
  .quiz-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .brand-logo {
    width: 118px;
    height: 36px;
  }

  .brand-logo svg {
    width: 118px;
    height: 36px;
  }

  .brand-logo text {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .lab-overview-grid,
  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .quiz-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Toralya real logo patch v7.8.1 */
.brand-logo {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(84, 116, 161, 0.22);
  box-shadow: 0 10px 24px rgba(1, 8, 18, 0.28);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
}

.brand-copy small {
  display: block;
}

@media (max-width: 680px) {
  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
}


/* Interactive investigation layer v8.0 */
.course-grid-cinematic .course-card {
  position: relative;
  overflow: hidden;
}

.episode-pill,
.track-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 156, 255, 0.36);
  background: linear-gradient(135deg, rgba(10, 39, 92, 0.88), rgba(7, 18, 43, 0.95));
  color: #a8ceff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-screen {
  margin: 1.35rem 0 1.5rem;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(79, 140, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(34, 84, 166, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(7, 16, 33, 0.98), rgba(5, 11, 24, 0.96));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.case-screen-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.case-screen-head h3 {
  margin: 0.55rem 0 0.2rem;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.case-strapline,
.case-hook {
  color: rgba(231, 239, 255, 0.84);
}

.case-screen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 142, 53, 0.1);
  border: 1px solid rgba(255, 142, 53, 0.26);
  color: #ffad63;
  font-size: 0.8rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.case-panel {
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(92, 156, 255, 0.16);
  background: linear-gradient(180deg, rgba(10, 24, 49, 0.92), rgba(8, 17, 36, 0.96));
}

.panel-kicker {
  color: #8cb9ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  margin-bottom: 0.35rem;
}

.media-shell {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.media-shell audio {
  width: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.transcript-card,
.hint-card,
.clue-card,
.memory-footer {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem;
}

.transcript-card strong,
.hint-card strong,
.clue-card strong,
.glossary-card strong {
  color: #ffffff;
}

.clue-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.8rem;
}

.dossier-list {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.dossier-list li {
  margin-bottom: 0.48rem;
  color: rgba(232, 239, 255, 0.86);
}

.hint-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.hint-trigger {
  border-color: rgba(92, 156, 255, 0.28);
}

.hint-stack {
  display: grid;
  gap: 0.75rem;
}

.notebook-panel textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(92, 156, 255, 0.2);
  background: rgba(7, 14, 28, 0.92);
  color: #eef4ff;
  padding: 0.9rem 1rem;
  resize: vertical;
}

.inline-notes {
  margin-top: 0.8rem;
}

.memory-shell {
  margin: 1.15rem 0 1.35rem;
  border-radius: 24px;
  padding: 1rem;
  border: 1px solid rgba(92, 156, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 17, 36, 0.96), rgba(7, 12, 28, 0.98));
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.memory-card {
  min-height: 108px;
  border-radius: 18px;
  padding: 0.9rem;
  text-align: left;
  border: 1px solid rgba(92, 156, 255, 0.18);
  background: linear-gradient(180deg, rgba(9, 20, 43, 0.96), rgba(5, 13, 28, 0.94));
  color: rgba(232, 239, 255, 0.9);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.memory-card:hover,
.memory-card.is-open {
  transform: translateY(-2px);
  border-color: rgba(92, 156, 255, 0.42);
  box-shadow: 0 14px 24px rgba(19, 56, 116, 0.26);
}

.memory-card.is-matched {
  border-color: rgba(255, 142, 53, 0.45);
  box-shadow: 0 12px 22px rgba(255, 142, 53, 0.16);
}

.glossary-card-grid {
  margin-top: 1rem;
}

.glossary-card {
  border-radius: 18px;
  border: 1px solid rgba(92, 156, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 24, 49, 0.92), rgba(8, 17, 36, 0.95));
}

.quiz-feedback {
  margin-top: 1rem;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(92, 156, 255, 0.18);
}

.quiz-feedback.success {
  background: linear-gradient(180deg, rgba(11, 47, 37, 0.96), rgba(9, 32, 26, 0.96));
  border-color: rgba(91, 223, 168, 0.34);
}

.quiz-feedback.retry {
  background: linear-gradient(180deg, rgba(57, 29, 18, 0.96), rgba(38, 20, 12, 0.96));
  border-color: rgba(255, 142, 53, 0.34);
}

.quiz-feedback strong {
  display: block;
  margin-bottom: 0.35rem;
}

@media (max-width: 980px) {
  .case-grid,
  .memory-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-screen-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .case-grid,
  .memory-board {
    grid-template-columns: 1fr;
  }
}


/* Ethical flow & mastery layer v9.0 */
.progress-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 18px;
  margin: 24px 0;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(92, 156, 255, 0.18);
  background: linear-gradient(135deg, rgba(7, 18, 41, 0.96), rgba(12, 27, 52, 0.94));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.progress-copy h2,
.progress-meter-head strong {
  margin: 8px 0;
  color: #ffffff;
}

.progress-copy p {
  color: rgba(231, 239, 255, 0.76);
  line-height: 1.65;
}

.progress-meter-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(92, 156, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.progress-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.progress-meter-head strong {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.progress-meter-head span {
  color: #ffad63;
  font-weight: 800;
  text-align: right;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f8cff, #ff8d35);
  box-shadow: 0 0 18px rgba(63, 140, 255, 0.28);
}

.progress-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.progress-stat-grid span {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-stat-grid strong,
.progress-stat-grid small {
  display: block;
}

.progress-stat-grid small {
  color: rgba(231, 239, 255, 0.65);
}

.episode-map {
  margin: 20px 0 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(92, 156, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 18, 39, 0.96), rgba(6, 12, 26, 0.98));
}

.episode-map-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.episode-map-head h3 {
  margin: 8px 0 0;
}

.episode-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.episode-node {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 12px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(92, 156, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #f6f9ff;
}

.episode-node span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(92, 156, 255, 0.14);
  color: #9dccff;
  font-weight: 900;
}

.episode-node.active {
  border-color: rgba(255, 142, 53, 0.38);
  background: linear-gradient(180deg, rgba(255, 142, 53, 0.10), rgba(255, 255, 255, 0.035));
}

.episode-node.completed {
  border-color: rgba(83, 224, 156, 0.28);
}

.episode-node.completed span {
  background: rgba(83, 224, 156, 0.18);
  color: #9cf5c5;
}

.completion-toast,
.breath-cue {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(83, 224, 156, 0.22);
  background: linear-gradient(180deg, rgba(16, 58, 44, 0.88), rgba(8, 24, 25, 0.92));
  color: #eafff3;
}

.breath-cue {
  border-color: rgba(92, 156, 255, 0.22);
  background: linear-gradient(180deg, rgba(18, 43, 78, 0.90), rgba(8, 20, 37, 0.92));
}

.case-resolution-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(83, 224, 156, 0.24);
  background: rgba(83, 224, 156, 0.10);
}

.case-resolution-card span {
  color: #9cf5c5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.case-resolution-card strong {
  color: #ffffff;
}

.support-copy,
.reflection-list li {
  color: rgba(231, 239, 255, 0.74);
}

.focus-mode .topbar,
.focus-mode .hero,
.focus-mode #access,
.focus-mode #courses,
.focus-mode .progress-dashboard,
.focus-mode .outcomes,
.focus-mode #labs,
.focus-mode #game,
.focus-mode #glossary,
.focus-mode #updates,
.focus-mode .footer {
  display: none !important;
}

.focus-mode main {
  width: min(980px, calc(100% - 28px));
}

.focus-mode .learning-shell {
  margin-top: 18px;
}

.focus-mode .module-list {
  display: none;
}

.focus-mode .lesson-card {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .progress-dashboard,
  .episode-rail {
    grid-template-columns: 1fr 1fr;
  }

  .progress-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .progress-dashboard,
  .episode-rail,
  .progress-stat-grid {
    grid-template-columns: 1fr;
  }

  .episode-map-head,
  .progress-meter-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Jurisdiction, toolkit and chain-of-custody evolution v10 */
:root {
  --calm-blue: #0a1d3a;
  --calm-navy: #071326;
  --soft-blue: #79b7ff;
  --soft-orange: #ff9b4c;
  --wellbeing-panel: rgba(12, 25, 48, 0.92);
}

.case-screen,
.memory-shell,
.lesson-card,
.course-card,
.update-card {
  background:
    radial-gradient(circle at 8% 0%, rgba(90, 142, 217, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(11, 24, 45, 0.98), rgba(7, 15, 31, 0.98));
}

.case-panel {
  border-color: rgba(121, 183, 255, 0.18);
  background: linear-gradient(180deg, rgba(12, 28, 52, 0.94), rgba(8, 18, 36, 0.96));
}

.case-panel:hover {
  border-color: rgba(121, 183, 255, 0.30);
}

.toolkit-grid,
.compliance-grid,
.custody-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tool-card,
.compliance-grid section,
.reference-stack,
.decision-card,
.case-resolution-card,
.custody-preview {
  border: 1px solid rgba(121, 183, 255, 0.16);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.tool-card p,
.tool-card small,
.compliance-grid li,
.reference-stack p,
.decision-card p,
.case-resolution-card p {
  color: rgba(235, 243, 255, 0.86) !important;
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.reference-links a {
  border: 1px solid rgba(255, 155, 76, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  color: #ffb476;
  text-decoration: none;
  font-size: 0.82rem;
}

.jurisdiction-select {
  width: 100%;
  margin: 0.75rem 0;
}

.custody-form label {
  display: grid;
  gap: 0.35rem;
}

.custody-form label span {
  color: #b9d7ff;
  font-size: 0.82rem;
  font-weight: 750;
}

.custody-form input,
.custody-form textarea,
.notebook-panel textarea,
#lesson-note-inline {
  width: 100%;
  border: 1px solid rgba(121, 183, 255, 0.18);
  border-radius: 14px;
  padding: 0.72rem 0.8rem;
  background: rgba(5, 11, 24, 0.82);
  color: #f2f7ff;
}

.custody-actions,
.decision-options,
.choose-score {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.9rem;
}

.choose-score span {
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: rgba(121, 183, 255, 0.10);
  color: #b9d7ff;
  border: 1px solid rgba(121, 183, 255, 0.18);
  font-size: 0.84rem;
}

.decision-choice {
  flex: 1 1 220px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(121, 183, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #f2f7ff;
  padding: 0.85rem;
}

.decision-choice:hover {
  border-color: rgba(255, 155, 76, 0.32);
  transform: translateY(-1px);
}

.case-resolution-card.complete {
  border-color: rgba(89, 215, 141, 0.32);
  background: rgba(20, 78, 52, 0.22);
}

.custody-preview summary {
  cursor: pointer;
  color: #ffb476;
  font-weight: 800;
}

.custody-preview pre {
  white-space: pre-wrap;
  color: #dceaff;
}

@media (max-width: 840px) {
  .toolkit-grid,
  .compliance-grid,
  .custody-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .custody-panel,
  .custody-panel * {
    color: #000000 !important;
    background: #ffffff !important;
  }
}


/* Custody preview and audio usability patch v10.1 */
.custody-preview {
  margin-top: 1rem;
  border: 1px solid rgba(92, 156, 255, 0.18);
  border-radius: 18px;
  background: rgba(8, 17, 36, 0.72);
  overflow: hidden;
}

.custody-preview summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(19, 38, 68, 0.92), rgba(9, 18, 36, 0.94));
}

.custody-dossier-preview {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.dossier-cover {
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(255, 142, 53, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 142, 53, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(10, 24, 49, 0.96), rgba(7, 15, 32, 0.98));
}

.dossier-cover span {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: #ffad63;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dossier-cover h4 {
  margin: 0 0 0.35rem;
  color: #ffffff;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.dossier-cover p {
  margin: 0;
  color: rgba(235, 242, 255, 0.78);
}

.dossier-section {
  border-radius: 16px;
  border: 1px solid rgba(92, 156, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.dossier-section h5 {
  margin: 0 0 0.8rem;
  color: #a8ceff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dossier-section dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.dossier-section dl div {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-section dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.dossier-section dt {
  color: rgba(235, 242, 255, 0.62);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dossier-section dd {
  margin: 0;
  color: #f4f8ff;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.evidence-audio-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(92, 156, 255, 0.16);
  background: rgba(5, 11, 24, 0.74);
}

.evidence-audio-card audio {
  width: 100%;
  min-height: 42px;
}

.media-play-button {
  width: max-content;
}

.evidence-audio-card small {
  color: rgba(235, 242, 255, 0.68);
}

@media (max-width: 720px) {
  .dossier-section dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .media-play-button {
    width: 100%;
  }
}

@media print {
  .custody-dossier-preview {
    color: #000000 !important;
    background: #ffffff !important;
  }

  .dossier-cover,
  .dossier-section {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
  }

  .dossier-cover *,
  .dossier-section * {
    color: #000000 !important;
  }
}


/* Dossier modal, audio fallback and cinematic episode title refinement v10.3 */
.evidence-audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.evidence-audio-actions .secondary {
  background: rgba(255,255,255,0.04);
}

.custody-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dossier-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(2, 8, 18, 0.86);
  backdrop-filter: blur(12px);
}

.dossier-overlay-panel {
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(92, 156, 255, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 142, 53, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(9, 19, 39, 0.98), rgba(5, 11, 24, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  padding: clamp(16px, 2.5vw, 28px);
}

.dossier-overlay-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dossier-overlay-actions strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.dossier-overlay-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dossier-overlay .custody-dossier-preview {
  width: 100%;
}

.dossier-overlay .dossier-section dl div {
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
}

@media (max-width: 760px) {
  .evidence-audio-actions,
  .custody-preview-actions,
  .dossier-overlay-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .evidence-audio-actions .media-play-button,
  .custody-preview-actions .ghost,
  .dossier-overlay-actions .ghost {
    width: 100%;
  }

  .dossier-overlay .dossier-section dl div {
    grid-template-columns: 1fr;
  }
}

@media print {
  body > *:not(#app) {
    display: none !important;
  }

  .topbar,
  .hero,
  #access,
  #courses,
  .outcomes,
  .learning-shell,
  #labs,
  #game,
  #glossary,
  #updates,
  .footer {
    display: none !important;
  }

  .dossier-overlay {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
  }

  .dossier-overlay-panel {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  .dossier-overlay-actions {
    display: none !important;
  }

  .dossier-overlay *,
  .custody-dossier-preview *,
  .dossier-cover *,
  .dossier-section * {
    color: #000000 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .dossier-cover,
  .dossier-section {
    border: 1px solid #cccccc !important;
    page-break-inside: avoid;
  }
}


/* Audio reliability, access scroll and episode title patch v10.4 */
#access,
#login-form,
#checkout-form,
#active-access-panel,
[data-access-target] {
  scroll-margin-top: 128px;
}

.evidence-audio-card {
  display: grid;
  gap: 0.7rem;
  align-items: start;
}

.evidence-audio-card .media-play-button {
  width: max-content;
  min-width: 190px;
  justify-content: center;
  border-color: rgba(92, 156, 255, 0.34);
  background: linear-gradient(135deg, rgba(18, 44, 84, 0.98), rgba(10, 24, 49, 0.98));
}

.evidence-audio-card .media-play-button:hover {
  border-color: rgba(255, 142, 53, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 142, 53, 0.12), 0 16px 28px rgba(9, 27, 53, 0.24);
}

.evidence-audio-card small {
  color: rgba(235, 242, 255, 0.68);
}

@media (max-width: 720px) {
  .evidence-audio-card .media-play-button {
    width: 100%;
  }
}


/* Positive emotional learning palette + conversion demo v11 */
:root {
  --bg: #10162b;
  --bg-soft: #151f3a;
  --panel: rgba(22, 31, 58, 0.92);
  --panel-strong: rgba(26, 38, 72, 0.96);
  --text: #f8fbff;
  --muted: #b9c5d8;
  --line: rgba(143, 178, 255, 0.20);
  --mint: #ffb86b;
  --cyan: #8fb2ff;
  --gold: #ffb86b;
  --rose: #ff8f7a;
  --silver: #dce6f7;
  --graphite: #24304d;
  --shadow: 0 24px 80px rgba(4, 9, 26, 0.36);
}

body {
  background:
    radial-gradient(circle at 12% 2%, rgba(143, 178, 255, 0.22), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255, 184, 107, 0.15), transparent 26%),
    radial-gradient(circle at 50% 92%, rgba(132, 232, 210, 0.10), transparent 28%),
    linear-gradient(180deg, #10162b 0%, #15213f 42%, #0f1529 100%);
}

.topbar {
  background: rgba(12, 18, 38, 0.84);
  border-bottom-color: rgba(143, 178, 255, 0.18);
}

.hero-card,
.course-card,
.lesson-card,
.module-list,
.lab-card,
.lab-panel,
.glossary-grid article,
.update-card,
.outcomes,
.access-card,
.pricing-card,
.mission-case,
.mission-map,
.case-panel,
.memory-shell,
.demo-hero-panel,
.demo-case-card,
.demo-decision-card,
.demo-lesson-preview,
.demo-unlock-card,
.demo-conversion-card,
.demo-faq {
  border-color: rgba(143, 178, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(143, 178, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(25, 37, 70, 0.94), rgba(15, 24, 48, 0.96));
  box-shadow: 0 18px 55px rgba(5, 11, 30, 0.30);
}

.primary-cta {
  background: linear-gradient(135deg, #ffb86b, #ffd59a);
  color: #13213a;
  box-shadow: 0 18px 42px rgba(255, 184, 107, 0.22);
}

.ghost {
  border-color: rgba(143, 178, 255, 0.28);
  background: rgba(143, 178, 255, 0.10);
  color: #eef5ff;
}

.eyebrow,
.section-head span,
.lesson-meta span,
.status-pill,
.pill-soft,
.track-pill,
.episode-pill {
  border-color: rgba(255, 184, 107, 0.28);
  background: rgba(255, 184, 107, 0.10);
  color: #ffd59a;
}

.course-card:hover,
.course-card.selected,
.module-button.active,
.demo-choice:hover,
.demo-choice.selected {
  border-color: rgba(132, 232, 210, 0.42) !important;
  box-shadow:
    0 0 0 1px rgba(132, 232, 210, 0.18),
    0 18px 42px rgba(62, 102, 205, 0.22) !important;
}

.deep-section,
.tone-amber,
.tone-blue,
.tone-silver,
.tone-graphite,
.tone-plum {
  background:
    linear-gradient(180deg, rgba(29, 43, 82, 0.92), rgba(16, 26, 53, 0.96)) !important;
  border-color: rgba(143, 178, 255, 0.18) !important;
}

.deep-section-header h3,
.deep-section-header span {
  color: #ffffff !important;
}

.quiz-feedback.success,
.mission-feedback.ok {
  background: linear-gradient(180deg, rgba(22, 88, 76, 0.90), rgba(18, 54, 52, 0.94));
  border-color: rgba(132, 232, 210, 0.32);
}

.quiz-feedback.retry,
.mission-feedback.warn {
  background: linear-gradient(180deg, rgba(92, 55, 36, 0.86), rgba(55, 34, 28, 0.94));
  border-color: rgba(255, 184, 107, 0.28);
}

.demo-section {
  scroll-margin-top: 116px;
}

.demo-hero-panel {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 28px;
  margin-bottom: 18px;
}

.demo-hero-panel h2 {
  margin: 14px 0 12px;
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.demo-hero-panel p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.demo-grid,
.demo-value-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.demo-case-card,
.demo-decision-card,
.demo-lesson-preview,
.demo-unlock-card,
.demo-conversion-card,
.demo-faq {
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
}

.demo-evidence-room,
.demo-synoptic {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.demo-evidence-room section,
.demo-synoptic section {
  padding: 14px;
  border: 1px solid rgba(143, 178, 255, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}

.demo-evidence-room strong,
.demo-synoptic strong {
  display: block;
  color: #ffffff;
  margin-bottom: 5px;
}

.demo-evidence-room span,
.demo-synoptic span {
  color: var(--muted);
  line-height: 1.55;
}

.demo-choice-stack {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.demo-choice {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 1px solid rgba(143, 178, 255, 0.18);
  border-radius: 18px;
  padding: 14px;
  color: #f8fbff;
  background: rgba(255,255,255,0.035);
  text-align: left;
}

.demo-choice span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 184, 107, 0.14);
  color: #ffd59a;
  font-weight: 900;
}

.demo-feedback {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(143, 178, 255, 0.18);
}

.demo-feedback.excellent {
  background: rgba(132, 232, 210, 0.10);
  border-color: rgba(132, 232, 210, 0.28);
}

.demo-feedback.review {
  background: rgba(255, 184, 107, 0.09);
  border-color: rgba(255, 184, 107, 0.24);
}

.demo-feedback strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
}

.demo-feedback p,
.demo-feedback small {
  color: var(--silver);
  line-height: 1.55;
}

.demo-unlock-card ul {
  display: grid;
  gap: 9px;
  padding-left: 1.15rem;
  color: var(--silver);
}

.demo-conversion-card h3 {
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.demo-faq details {
  border-top: 1px solid rgba(143, 178, 255, 0.14);
  padding: 13px 0;
}

.demo-faq summary {
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
}

.demo-faq p {
  color: var(--muted);
  line-height: 1.6;
}

#access,
#demo {
  scroll-margin-top: 116px;
}

@media (max-width: 900px) {
  .demo-grid,
  .demo-value-grid {
    grid-template-columns: 1fr;
  }
}

/* v12 â€” Toralya Blue Hero & Launch Palette
   Non-destructive cascade override: keeps the existing layout and content while replacing
   the orange shield visual with a blue/cyan image-led cyber forensic matrix. */
:root {
  --bg: #071326;
  --bg-soft: #08111f;
  --panel: rgba(16, 32, 51, 0.92);
  --panel-strong: #16253a;
  --text: #f8fbff;
  --muted: #aab7c7;
  --line: rgba(148, 163, 184, 0.24);
  --blue: #2563eb;
  --blue-deep: #0b1b2e;
  --cyan: #7dd3fc;
  --mint: #7dd3fc;
  --gold: #93c5fd;
  --silver: #e5e7eb;
  --graphite: #16253a;
  --orange-accent: #f97316;
  --orange-soft: #ff8a3d;
  --rose: #ff8a3d;
  --shadow: 0 24px 80px rgba(1, 8, 23, 0.42);
}

html {
  background: var(--bg) !important;
}

body {
  color: var(--text) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 86% 6%, rgba(125, 211, 252, 0.11), transparent 28%),
    radial-gradient(circle at 72% 92%, rgba(249, 115, 22, 0.055), transparent 24%),
    linear-gradient(180deg, #071326 0%, #08111f 46%, #071326 100%) !important;
}

.boot-screen,
.error-screen {
  color: var(--cyan) !important;
  background: linear-gradient(180deg, #071326, #08111f) !important;
}

.topbar {
  background: rgba(7, 19, 38, 0.88) !important;
  border-bottom-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 16px 46px rgba(1, 8, 23, 0.28);
}

.brand-logo {
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.08), rgba(125, 211, 252, 0.06)) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 14px 34px rgba(1, 8, 23, 0.26) !important;
}

.brand-copy strong,
.hero h1,
.section-head h2,
.demo-hero-panel h2,
.card-headline,
.lesson-card h2,
.lab-card h3,
.glossary-card h3,
.update-card h3,
.pricing-card h3,
.access-card h3 {
  color: #f8fbff !important;
}

.brand-copy small,
.hero p,
.demo-hero-panel p,
.section-head p,
.course-card p,
.lab-card p,
.glossary-card p,
.update-card p,
.pricing-card p,
.access-card p,
.muted,
.support-copy,
.price-note,
.note-saved,
.metrics dd {
  color: var(--muted) !important;
}

nav a {
  color: #c7d2e4 !important;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(125, 211, 252, 0.10) !important;
  color: #f8fbff !important;
}

.hero-card,
.course-card,
.lesson-card,
.module-list,
.lab-card,
.lab-panel,
.glossary-grid article,
.update-card,
.outcomes,
.access-card,
.pricing-card,
.mission-case,
.mission-map,
.case-panel,
.memory-shell,
.demo-hero-panel,
.demo-case-card,
.demo-decision-card,
.demo-lesson-preview,
.demo-unlock-card,
.demo-conversion-card,
.demo-faq,
.locked-panel,
.precision-panel,
.note-panel,
.notebook-panel,
.mission-console,
.score-panel,
.certificate-card,
.daily-brief-card,
.transcript-card,
.dossier-cover,
.dossier-overlay-panel,
.custody-panel,
.custody-preview,
.progress-meter-card,
.tool-card,
.decision-card,
.clue-card,
.quiz-panel,
.quiz-card,
.value-card,
.brief-row,
.source-row,
.event-row,
.memory-card {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.075), transparent 28%),
    linear-gradient(180deg, rgba(16, 32, 51, 0.94), rgba(8, 17, 31, 0.97)) !important;
  box-shadow: var(--shadow) !important;
}

.course-card:hover,
.course-card.selected,
.lab-card:hover,
.glossary-grid article:hover,
.update-card:hover,
.brief-row:hover,
.source-row.linked:hover,
.event-row.rich:hover,
.mission-choice:hover,
.mission-node:hover,
.demo-choice:hover,
.demo-choice.selected,
.memory-card:hover,
.memory-card.is-open,
.memory-card.is-matched,
.module-button.active {
  border-color: rgba(125, 211, 252, 0.46) !important;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 18px 46px rgba(37, 99, 235, 0.18) !important;
}

.eyebrow,
.section-head span,
.lesson-meta span,
.status-pill,
.pill-soft,
.track-pill,
.episode-pill,
.status-chip,
.impact-chip,
.currency-pill,
.price-kicker {
  border-color: rgba(125, 211, 252, 0.32) !important;
  background: rgba(37, 99, 235, 0.14) !important;
  color: #dff6ff !important;
}

.status-pill,
.price-kicker,
.pricing-ribbon {
  box-shadow: inset 0 1px 0 rgba(248, 251, 255, 0.05);
}

.primary-cta,
.action-button.primary,
.secondary-button.primary,
.note-action.primary,
.lesson-footer button.primary {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
  color: #f8fbff !important;
  border: 1px solid rgba(125, 211, 252, 0.38) !important;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.28) !important;
}

.primary-cta:hover,
.primary-cta:focus-visible,
.action-button.primary:hover,
.secondary-button.primary:hover {
  filter: brightness(1.04) !important;
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.36),
    0 22px 52px rgba(37, 99, 235, 0.32) !important;
}

.ghost,
.module-button,
.action-button,
.secondary-button,
.note-action,
.lesson-footer button,
.demo-choice,
.decision-choice,
.mission-choice,
.hint-trigger,
.media-play-button {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(16, 37, 68, 0.72) !important;
  color: #edf6ff !important;
}

.ghost:hover,
.ghost:focus-visible,
.module-button:hover,
.action-button:hover,
.secondary-button:hover,
.note-action:hover,
.lesson-footer button:hover,
.demo-choice:hover,
.decision-choice:hover,
.mission-choice:hover {
  border-color: rgba(125, 211, 252, 0.42) !important;
  background: rgba(37, 99, 235, 0.18) !important;
}

input,
select,
textarea,
.wide-search,
.jurisdiction-select {
  color: #f8fbff !important;
  background: rgba(8, 17, 31, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

input:focus,
select:focus,
textarea:focus,
.wide-search:focus,
.jurisdiction-select:focus {
  border-color: rgba(125, 211, 252, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  outline: 0 !important;
}

.locale-switch {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(16, 32, 51, 0.74) !important;
}

.locale-switch button.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(125, 211, 252, 0.86)) !important;
  color: #f8fbff !important;
}

.metrics div {
  background: rgba(16, 32, 51, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

.metrics dt,
.price-line strong,
.pricing-ribbon strong,
.progress-stat-grid strong,
.mission-score strong,
.choose-score strong,
.score strong {
  color: #f8fbff !important;
}

.ok,
.quiz-feedback.success strong,
.mission-feedback.ok strong,
.answer-correct {
  color: #7dd3fc !important;
}

.warn,
.quiz-feedback.retry strong,
.mission-feedback.warn strong,
.answer-wrong,
.form-error {
  color: #ffb074 !important;
}

.quiz-feedback.success,
.mission-feedback.ok,
.demo-feedback.success {
  background: linear-gradient(180deg, rgba(14, 70, 99, 0.90), rgba(9, 42, 66, 0.95)) !important;
  border-color: rgba(125, 211, 252, 0.34) !important;
}

.quiz-feedback.retry,
.mission-feedback.warn,
.demo-feedback.retry {
  background: linear-gradient(180deg, rgba(64, 46, 33, 0.76), rgba(33, 28, 24, 0.92)) !important;
  border-color: rgba(249, 115, 22, 0.24) !important;
}

.deep-section,
.tone-amber,
.tone-blue,
.tone-silver,
.tone-graphite,
.tone-plum,
.case-screen,
.case-resolution-card,
.evidence-audio-card,
.hint-card,
.lesson-depth-banner,
.progress-dashboard {
  background:
    linear-gradient(180deg, rgba(22, 37, 58, 0.93), rgba(9, 21, 38, 0.97)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.deep-section-header h3,
.deep-section-header span,
.lesson-depth-banner strong,
.case-screen-head strong,
.panel-kicker {
  color: #dff6ff !important;
}

.value-list li::before,
.locked-panel strong,
.certificate-card strong,
.reference-links a,
.footer a {
  color: #7dd3fc !important;
}

.reference-links a:hover,
.footer a:hover {
  color: #f8fbff !important;
}

.progress-bar,
.progress-meter-card .progress-bar {
  background: rgba(148, 163, 184, 0.18) !important;
}

.progress-bar span,
.progress-meter-card .progress-bar span,
.completed .progress-bar span {
  background: linear-gradient(90deg, #2563eb, #7dd3fc) !important;
}

.cyber-visual {
  position: relative;
  min-height: 250px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(125, 211, 252, 0.14), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(37, 99, 235, 0.18), transparent 18%),
    radial-gradient(circle at 18% 82%, rgba(249, 115, 22, 0.055), transparent 20%),
    linear-gradient(180deg, rgba(7, 19, 38, 0.98), rgba(8, 17, 31, 0.96)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.cyber-grid {
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.075) 1px, transparent 1px) !important;
  background-size: 34px 34px !important;
  opacity: 0.92;
}

.cyber-grid::before {
  background: linear-gradient(90deg, transparent 0%, rgba(125, 211, 252, 0.24) 50%, transparent 100%) !important;
}

.cyber-grid::after {
  background: linear-gradient(180deg, transparent 0%, rgba(125, 211, 252, 0.24) 50%, transparent 100%) !important;
}

.cyber-shield {
  display: none !important;
}

.hero-security-image {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(76%, 360px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.92;
  filter: drop-shadow(0 0 28px rgba(125, 211, 252, 0.22));
  pointer-events: none;
  user-select: none;
}

.cyber-core {
  z-index: 3;
  width: 38px !important;
  height: 38px !important;
  background: radial-gradient(circle, #f8fbff 0%, #7dd3fc 34%, rgba(37,99,235,0.24) 64%, rgba(37,99,235,0) 100%) !important;
  box-shadow: 0 0 42px rgba(125, 211, 252, 0.30) !important;
  opacity: 0.86;
}

.cyber-node {
  z-index: 4;
  background: #8dcfff !important;
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.42) !important;
}

.cyber-trace {
  z-index: 4;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.82), rgba(125, 211, 252, 0)) !important;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.22) !important;
}

.node-a { top: 28% !important; left: 22% !important; }
.node-b { top: 24% !important; right: 21% !important; }
.node-c { bottom: 22% !important; left: 24% !important; }
.trace-a { top: 31% !important; left: 25% !important; width: 128px !important; transform: rotate(20deg) !important; }
.trace-b { top: 29% !important; right: 26% !important; width: 126px !important; transform: rotate(158deg) !important; }
.trace-c { bottom: 27% !important; left: 27% !important; width: 122px !important; transform: rotate(-18deg) !important; }

::-moz-selection {
  background: rgba(125, 211, 252, 0.36);
  color: #f8fbff;
}

::selection {
  background: rgba(125, 211, 252, 0.36);
  color: #f8fbff;
}

@media (max-width: 880px) {
  .hero-security-image {
    width: min(82%, 320px);
  }
}

@media (max-width: 620px) {
  .cyber-visual {
    min-height: 212px;
  }
  .hero-security-image {
    width: min(88%, 300px);
  }
  .cyber-core {
    width: 32px !important;
    height: 32px !important;
  }
  .node-a { left: 18% !important; }
  .node-b { right: 17% !important; }
  .node-c { left: 20% !important; }
  .trace-a,
  .trace-b,
  .trace-c {
    width: 96px !important;
  }
}
/* Toralya v14 live header image override - AI forensics cyber visual */
.hero-card .cyber-visual {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 282px !important;
  width: 100% !important;
  border-radius: 24px !important;
  border: 1px solid rgba(125, 211, 252, 0.20) !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(7, 19, 38, 0.98), rgba(8, 17, 31, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(248, 251, 255, 0.04), 0 22px 70px rgba(0, 0, 0, 0.30) !important;
}

.hero-card .cyber-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 48%, rgba(125, 211, 252, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(7, 19, 38, 0.22), transparent 18%, transparent 82%, rgba(7, 19, 38, 0.26)),
    linear-gradient(180deg, rgba(7, 19, 38, 0.10), transparent 40%, rgba(7, 19, 38, 0.30));
}

.hero-security-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
  opacity: 0.94 !important;
  filter: saturate(1.05) contrast(1.04) brightness(0.98) drop-shadow(0 0 28px rgba(125, 211, 252, 0.18)) !important;
  pointer-events: none !important;
  user-select: none !important;
}

.cyber-grid {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  opacity: 0.15 !important;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.12) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
}

.cyber-core,
.cyber-node,
.cyber-trace,
.radar-orb {
  display: none !important;
}

@media (max-width: 880px) {
  .hero-card .cyber-visual {
    min-height: 250px !important;
  }
}

@media (max-width: 620px) {
  .hero-card .cyber-visual {
    min-height: 218px !important;
  }

  .hero-security-image {
    object-position: center center !important;
  }
}
