@charset "UTF-8";
/* =====================================================================
   NeuraViz AI Learning - design matched to neuraviz.com
   Inter · navy gradient hero · white bordered cards · calm and minimal
   ===================================================================== */
:root {
  --ink: #172033;
  --text: #3E4757;
  --muted: #5B6577;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --line: #DFE3E8;
  --navy: #173F5F;
  --navy-dark: #102D45;
  --navy-deep: #0B2234;
  --accent: #2F6F8F;
  --sky: #EAF2F6;
  --sky-text: #9BC4D8;
  --ok: #1E7B4F;   --ok-bg: #E8F5EE;
  --bad: #B42318;  --bad-bg: #FDECEA;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --gut: 24px;
  --font: Inter, Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(47, 111, 143, .45); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--light { color: var(--sky-text); }
.eyebrow--accent { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm); font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); }
.btn--light { background: #fff; color: var(--navy-dark); }
.btn--light:hover { background: var(--sky); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--quiet { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn--quiet:hover { border-color: #b9c3cf; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--accent); font: 600 14px/1.4 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(8px); }
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: #3E4757; font-size: 14.9px; font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* Hero (same gradient as neuraviz.com) */
.hero, .chapter-hero, .cta-band { background: linear-gradient(125deg, rgba(13, 42, 63, .98), rgba(23, 63, 95, .94)); color: #DBE6ED; }
.hero { padding: clamp(64px, 9vw, 112px) 0 clamp(60px, 8vw, 96px); }
.hero__in { max-width: 860px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.hero h1, .chapter-hero h1, .cta-band h2 { color: #fff; }
.hero__lead { max-width: 640px; margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: #DBE6ED; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.hero__meta li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 30px; color: #DBE6ED; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .05); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sky { background: var(--sky); }
.section--quiz { padding-top: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }

/* Progress */
.progress-card { min-width: 260px; }
.progress-card__label { margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .3s; }

/* Chapter cards */
.chapter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.chapter-card { display: flex; flex-direction: column; height: 100%; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.chapter-card:hover { border-color: #b9c3cf; transform: translateY(-2px); }
.chapter-card h3 { margin-bottom: 10px; }
.chapter-card p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.chapter-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.chapter-card__state { color: var(--navy); }
.chapter-card.is-done { border-color: #bcdccb; }
.chapter-card.is-done .chapter-card__state { color: var(--ok); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.step { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); }
.cta-band p:not(.eyebrow) { margin-top: 10px; color: #DBE6ED; }

/* Chapter page */
.reading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; }
.reading-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.chapter-hero { padding: 44px 0 52px; }
.chapter-hero--compact { padding: 36px 0 40px; }
.chapter-hero h1 { max-width: 820px; }
.chapter-hero__meta { margin-top: 14px; color: var(--sky-text); font-size: 14px; font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--sky-text); font-size: 13.5px; font-weight: 600; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.chapter-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 80px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc__title { margin-bottom: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: flex; gap: 10px; padding: 9px 0 9px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--navy); }
.toc a[aria-current="page"] { color: var(--navy); font-weight: 700; border-left-color: var(--navy); }
.toc__num { min-width: 20px; color: #8a94a3; font-weight: 600; }
.toc a.is-done .toc__num { color: var(--ok); }

/* Prose */
.prose { max-width: 720px; color: var(--text); font-size: 17px; line-height: 1.75; }
.prose .lede { font-size: 1.2rem; line-height: 1.65; color: var(--ink); padding-bottom: 8px; }
.prose h2 { margin: 2.2em 0 .7em; font-size: 1.5rem; }
.prose h3 { margin: 0 0 6px; font-size: 1.05rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.callout { margin: 1.8em 0; padding: 22px 24px; background: var(--sky); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout p { margin: 0; }
.callout__label { margin-bottom: 6px !important; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.callout--warn { background: #FFF6E5; border-left-color: #B7791F; }
.callout--warn .callout__label { color: #8A5A12; }
.takeaways { margin: 2.6em 0 0; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.takeaways__title { margin-bottom: 12px !important; color: var(--ink); font-weight: 700; }
.takeaways ul { margin: 0; }
.table-wrap { margin: 1.4em 0 1.8em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: #F2F5F8; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4em 0 2em; }
.principle { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.principle p { margin: 0; font-size: 15px; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.4em 0 2em; }
.flow__step { position: relative; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.flow__step span { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 700; font-size: 15px; }
.flow__step p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

.chapter-end { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s; }
.pager:hover { border-color: #b9c3cf; }
.pager span { color: var(--muted); font-size: 13px; font-weight: 600; }
.pager strong { color: var(--ink); font-size: 15.5px; line-height: 1.4; }
.pager--next { text-align: right; }
.pager--strong { background: var(--navy); border-color: var(--navy); }
.pager--strong span { color: var(--sky-text); }
.pager--strong strong { color: #fff; }

/* Quiz */
.card { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quiz-intro h2 { margin-bottom: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.facts li { flex: 1 1 120px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.facts strong { display: block; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: 14px; }
.quiz-intro .muted { margin-bottom: 26px; }

.quiz-q__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tag { padding: 4px 10px; background: var(--sky); color: var(--accent); border-radius: 30px; font-size: 12.5px; font-weight: 700; }
.quiz-q__body { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.quiz-q__text { padding: 0; margin-bottom: 20px; color: var(--ink); font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: 500 15.5px/1.5 var(--font); text-align: left; cursor: pointer; transition: border-color .12s, background-color .12s; }
.option:hover { border-color: #9fb3c4; }
.option__key { flex: 0 0 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.option[aria-checked="true"] { border-color: var(--navy); background: #F1F6FA; color: var(--ink); box-shadow: inset 0 0 0 1px var(--navy); }
.option[aria-checked="true"] .option__key { background: var(--navy); border-color: var(--navy); color: #fff; }
.quiz-q__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.form-msg { min-height: 0; margin-top: 14px; font-size: 14.5px; font-weight: 500; }
.form-msg:empty { margin: 0; }
.form-msg.is-error { color: var(--bad); }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-info { color: var(--muted); }

.result { display: flex; align-items: center; gap: clamp(24px, 5vw, 48px); }
.score-ring { --p: 0; flex: 0 0 auto; width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ring, var(--accent)) calc(var(--p) * 1%), var(--line) 0); }
.score-ring span { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.badge { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 30px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ok-bg); color: var(--ok); }
.badge.is-fail { background: var(--bad-bg); color: var(--bad); }
.result__text h2 { margin-bottom: 6px; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.save { margin-top: 20px; }
.save h3 { margin-bottom: 8px; }
.save .muted { margin-bottom: 18px; font-size: 15px; }
.save__step { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field { display: flex; flex: 1 1 260px; flex-direction: column; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.field input { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: 500 16px var(--font); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 143, .18); }
.save__done { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); font-weight: 600; }

.review { margin-top: 20px; }
.review h3 { margin-bottom: 14px; }
.review__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: rv; }
.review__item { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius-sm); }
.review__item.is-wrong { border-left-color: var(--bad); }
.review__q { margin-bottom: 10px; color: var(--ink); font-weight: 700; line-height: 1.45; }
.review__line { font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.review__line b { font-weight: 700; }
.review__ok { color: var(--ok); }
.review__bad { color: var(--bad); }
.review__why { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* Footer (neuraviz.com dark footer) */
.site-footer { background: var(--navy-deep); color: #B8C7D1; padding: 44px 0 30px; font-size: 14.5px; }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer__brand { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.site-footer a { color: #DBE6ED; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__base { padding-top: 22px; font-size: 13px; color: #8DA0AE; }

/* Responsive */
@media (max-width: 980px) {
  .chapter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .toc { display: none; }
  .prose { max-width: none; }
}
@media (max-width: 720px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .site-header__in { gap: 14px; min-height: 64px; }
  .site-nav { gap: 16px; }
  .site-nav a:first-child { display: none; }
  .brand { font-size: 20px; }
  .chapter-list, .steps { grid-template-columns: 1fr; }
  .progress-card { min-width: 0; width: 100%; }
  .prose { font-size: 16.5px; }
  .principles, .flow { grid-template-columns: 1fr; }
  .chapter-end { grid-template-columns: 1fr; }
  .pager--next { text-align: left; }
  .result { flex-direction: column; text-align: center; }
  .result__actions { justify-content: center; }
  .cta-band .btn, .hero__cta .btn { width: 100%; }
  .quiz-q__nav .btn { flex: 1; }
}
@media (max-width: 420px) {
  :root { --gut: 16px; }
  .site-header .btn--sm { padding: 0 12px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Course switcher + Advanced track promo (added with the Advanced track) */
.track-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 26px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 30px; background: rgba(255, 255, 255, .05); }
.track-switch a { padding: 7px 16px; border-radius: 30px; color: #C9D8E2; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.track-switch a[aria-current="page"] { background: #fff; color: var(--navy-dark); }
.track-switch a:not([aria-current]):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.section--tight { padding: 0 0 clamp(48px, 7vw, 80px); }
.adv-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px 30px; border-radius: var(--radius); text-decoration: none;
  background: radial-gradient(500px 200px at 95% 0%, rgba(184, 134, 43, .25), transparent 60%), linear-gradient(135deg, #061624, #133B57); color: #DBE6ED; transition: transform .15s; }
.adv-promo:hover { transform: translateY(-2px); }
.adv-promo__badge { padding: 7px 12px; border: 1px solid rgba(241, 217, 162, .4); border-radius: 30px; color: #F1D9A2; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.adv-promo__body strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.15rem; }
.adv-promo__body span { font-size: 15px; color: #C9D8E2; }
.adv-promo__cta { color: #F1D9A2; font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) {
  .adv-promo { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .adv-promo__badge { justify-self: start; }
  .track-switch { display: flex; width: 100%; }
  .track-switch a { flex: 1; text-align: center; }
}
/* Small phones: the main menu moves to its own scrollable row so the Register button always fits */
@media (max-width: 560px) {
  .site-header__in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; padding-bottom: 4px; }
  .site-header .btn--sm { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 0 4px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .site-nav a:first-child { display: inline; }
}
