/* Synthetic Data in Health Research — shared styles
   Visual system matched to the "Data to Decisions" companion site:
   system sans type, heavy weights, navy / teal / purple palette,
   rounded glass cards, numbered section landmarks, dark gradient banners. */

:root {
  --navy: #101a46;
  --navy-2: #203a8f;
  --teal: #00a8a8;
  --teal-2: #007f86;
  --cyan: #48c9ff;
  --green: #23a36d;
  --amber: #f2ad3d;
  --purple: #7656d8;
  --coral: #ef6a67;
  --ink: #18213b;
  --muted: #61708a;
  --body: #42536a;
  --line: #d8e2f0;
  --paper: #ffffff;
  --card: #ffffff;
  --soft: #f6f8fd;
  --soft-2: #edf3ff;
  --soft-3: #f8fbff;
  --shadow: 0 22px 70px rgba(25, 42, 92, .14);
  --shadow-card: 0 14px 40px rgba(15, 40, 70, .07);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1180px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  /* chart colours read by the canvas scripts */
  --real: #203a8f;
  --synth: #00a8a8;
  --warn: #ef6a67;
  color-scheme: light;
}
html[data-theme="dark"] {
  --navy: #eaf4ff;
  --navy-2: #d6e8ff;
  --ink: #edf5ff;
  --muted: #9eb0c4;
  --body: #aebfd1;
  --line: #2b4058;
  --paper: #08111d;
  --card: #0f1c2b;
  --soft: #101e2d;
  --soft-2: #13263a;
  --soft-3: #0f1c2b;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
  --shadow-card: 0 18px 48px rgba(0, 0, 0, .24);
  --real: #9db4ff;
  --synth: #3fd6cf;
  --warn: #f08c86;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  line-height: 1.6;
}
html[data-theme="dark"] body { background: linear-gradient(180deg, #07111c 0%, #0b1725 48%, #08111d 100%); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, canvas, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); }
p { margin: 0 0 1em; }
.wrapper { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.section-pad { padding: 88px 0; }
.section-pad.compact { padding-top: 70px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid rgba(72, 201, 255, .72); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy-2); color: #fff; padding: .6rem 1rem; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(128, 150, 190, .22);
  box-shadow: 0 8px 30px rgba(22, 37, 82, .045);
}
html[data-theme="dark"] .site-header { background: rgba(8, 17, 29, .86); border-bottom-color: rgba(48, 70, 94, .85); }
.nav-shell {
  position: relative;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: .95rem; letter-spacing: -.02em;
  background: linear-gradient(145deg, #17307c, #00a8a8 68%, #55d8ca);
  box-shadow: 0 12px 30px rgba(0, 168, 168, .27);
}
.brand strong { display: block; letter-spacing: .05em; color: var(--navy); line-height: 1.3; }
.brand small { display: block; color: var(--muted); margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 6px; color: #334155; font-weight: 650; }
html[data-theme="dark"] .nav-links { color: #c9d8e8; }
.nav-links a { position: relative; padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--purple), var(--teal)); transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover { background: var(--soft-2); color: var(--navy); }
.nav-links a:hover::after, .nav-links > a[aria-current]::after, .nav-drop > a[aria-current]::after { transform: scaleX(1); }
.nav-links a[aria-current] { color: var(--navy); background: rgba(43, 179, 163, .12); }
/* session dropdowns */
.nav-drop { position: relative; }
.caret { margin-left: 4px; font-size: .72em; opacity: .7; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 10;
  width: 320px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu-title { margin: 4px 10px 8px; color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.nav-menu a { display: block; white-space: normal; border-radius: 12px; padding: 9px 12px; font-weight: 700; line-height: 1.35; }
.nav-menu a::after { display: none; }
.nav-actions { display: inline-flex; align-items: center; gap: 10px; }
.theme-toggle {
  min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .78); color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 40, 70, .07);
  transition: transform .2s ease, border-color .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(40, 194, 182, .45); }
.theme-icon { font-size: 1rem; line-height: 1; }
.menu-toggle { display: none; border: 0; background: var(--navy); color: #fff; border-radius: 12px; width: 42px; height: 42px; font-size: 1.1rem; cursor: pointer; }
html[data-theme="dark"] .theme-toggle { background: #13263a; color: #edf5ff; border-color: #30465f; }
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .brand-mark { background: linear-gradient(135deg, #122d49, #164c59); color: #fff; }

/* ---------- buttons, links, tags ---------- */
.btn {
  border: 1px solid var(--line);
  background: var(--card); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 40, 70, .13); }
.btn.primary { background: linear-gradient(125deg, #203a8f, #5746bf 55%, #007f86); color: #fff; border-color: transparent; box-shadow: 0 11px 28px rgba(64, 63, 170, .22); }
.btn.ghost { background: rgba(255, 255, 255, .6); }
.btn.small { min-height: 36px; padding: 0 13px; font-size: .88rem; }
html[data-theme="dark"] .btn.ghost, html[data-theme="dark"] .btn:not(.primary) { background: #13263a; color: #edf5ff; border-color: #30465f; }
html[data-theme="dark"] .btn.primary { background: linear-gradient(135deg, #1f3a86, #4b3aa8 55%, #0b6f76); }
.btn-row, .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.text-link, .prose a { color: var(--teal-2); font-weight: 850; }
html[data-theme="dark"] .text-link, html[data-theme="dark"] .prose a { color: #5fe0d6; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--teal-2); font-weight: 850; cursor: pointer; }
html[data-theme="dark"] .linkbtn { color: #5fe0d6; }
.tag { display: inline-flex; white-space: nowrap; color: var(--navy); background: #e8f2ff; border: 1px solid #d5e5fb; padding: 6px 10px; border-radius: 999px; font-weight: 850; font-size: .78rem; }
.tag.amber { background: #fff4df; border-color: #ffe0a7; color: #8a5712; }
.tag.purple { background: #f0ecff; border-color: #ded4ff; color: #5635a3; }
.tag.green { background: #eaf8ee; border-color: #cfeeda; color: #286b3d; }
.tag.teal { background: #e7f7f5; border-color: #bfebe5; color: #14776d; }
.tag.coral { background: #fff0ef; border-color: #ffd2cf; color: #a4322e; }
html[data-theme="dark"] .tag { background: #172b40; border-color: #304861; color: #dbe9f7; }
html[data-theme="dark"] .tag.amber { background: #3a2b14; border-color: #6b4a19; color: #ffd894; }
html[data-theme="dark"] .tag.purple { background: #291f45; border-color: #4b3b77; color: #d7c9ff; }
html[data-theme="dark"] .tag.green { background: #173322; border-color: #285c3b; color: #bde9c9; }
html[data-theme="dark"] .tag.teal { background: #123632; border-color: #23645d; color: #baf4ed; }
html[data-theme="dark"] .tag.coral { background: #3a1d1c; border-color: #6e3431; color: #ffc9c5; }
.chip { border: 1px solid var(--line); background: var(--card); color: #334155; border-radius: 999px; padding: 10px 15px; font-weight: 850; cursor: pointer; }
.chip[aria-pressed="true"], .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
html[data-theme="dark"] .chip { background: #13263a; color: #edf5ff; border-color: #30465f; }
html[data-theme="dark"] .chip[aria-pressed="true"], html[data-theme="dark"] .chip:hover { background: linear-gradient(135deg, #122d49, #164c59); border-color: transparent; }

/* ---------- eyebrow + section heads ---------- */
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--teal); font-size: .78rem; font-weight: 800; }
.section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-head h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 14px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.left { text-align: left; margin-left: 0; max-width: 860px; }
.sub-head { margin: 56px 0 18px; color: var(--navy); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.1; }
.section-identity { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 13px; color: #44566d; font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
html[data-theme="dark"] .section-identity { color: #9db1c5; }
.section-identity .identity-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #203a8f, #7656d8); color: #fff; font-size: .72rem; letter-spacing: 0; box-shadow: 0 8px 22px rgba(15, 40, 70, .14); }
.section-identity.inverse { color: #c8d9e9; }
.section-identity.inverse .identity-mark { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 720px; display: grid; align-items: center;
  background:
    radial-gradient(circle at 10% 12%, rgba(72, 201, 255, .24), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(118, 86, 216, .17), transparent 27%),
    radial-gradient(circle at 70% 86%, rgba(0, 168, 168, .12), transparent 25%),
    linear-gradient(135deg, #f8fbff 0%, #eef3ff 48%, #f4fffd 100%);
}
html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 8% 10%, rgba(38, 154, 185, .18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(40, 194, 182, .15), transparent 30%),
    linear-gradient(135deg, #081421 0%, #0c1b2b 52%, #0a1723 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy, .hero-panel { min-width: 0; }
.hero h1 {
  margin: 0; font-size: clamp(3rem, 6.4vw, 6rem); line-height: .93; letter-spacing: -.065em;
  background: linear-gradient(115deg, #101a46 8%, #203a8f 55%, #007f86);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
html[data-theme="dark"] .hero h1 { background: linear-gradient(115deg, #f4f8ff 10%, #b9c9ff 55%, #5fe0d6); -webkit-background-clip: text; background-clip: text; }
.hero-text { max-width: 660px; font-size: 1.2rem; color: #42536a; margin-top: 22px; }
html[data-theme="dark"] .hero-text { color: #9eb0c4; }
.hero-stats { display: flex; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div { background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px; min-width: 125px; }
.hero-stats strong { display: block; color: var(--navy); font-size: 1.55rem; }
.hero-stats span { color: var(--muted); font-size: .88rem; }
html[data-theme="dark"] .hero-stats div { background: rgba(15, 28, 43, .8); }
.hero-orb { position: absolute; border-radius: 999px; filter: blur(4px); opacity: .6; pointer-events: none; }
.orb-one { width: 220px; height: 220px; background: rgba(43, 179, 163, .12); bottom: -60px; left: 8%; }
.orb-two { width: 300px; height: 300px; background: rgba(133, 101, 214, .10); top: 20%; right: -100px; }

/* session card under the hero copy (mirrors the QR card) */
.hero-ai-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center;
  margin-top: 28px; padding: 16px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 12px 34px rgba(15, 40, 70, .08);
}
html[data-theme="dark"] .hero-ai-card { background: #0f1c2b; border-color: #293d54; }
.session-tile { width: 96px; height: 96px; border-radius: 18px; display: grid; place-content: center; text-align: center; color: #fff; background: linear-gradient(145deg, #203a8f, #7656d8 55%, #00a8a8); box-shadow: 0 12px 28px rgba(64, 63, 170, .25); }
.session-tile b { display: block; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.session-tile small { display: block; margin-top: 4px; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hero-ai-card strong { display: block; color: var(--navy); margin-bottom: 4px; }
.hero-ai-card span { display: block; color: var(--muted); margin-bottom: 6px; }

/* glass overview card */
.glass-card { border: 1px solid rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .72); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.overview-card {
  min-width: 0;
  padding: clamp(24px, 3.4vw, 38px);
  background:
    radial-gradient(circle at 100% 0%, rgba(40, 194, 182, .12), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .92));
  border: 1px solid rgba(210, 225, 240, .92);
}
html[data-theme="dark"] .overview-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(40, 194, 182, .12), transparent 36%),
    linear-gradient(160deg, rgba(15, 31, 48, .98), rgba(10, 22, 35, .98));
  border-color: #2b4058;
}
.overview-kicker { margin: 0 0 10px; color: var(--teal-2); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
html[data-theme="dark"] .overview-kicker { color: #5fe0d6; }
.overview-card h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -.045em; }
.overview-intro { margin: 14px 0 0; color: #52657d; font-size: 1rem; min-height: 3.2em; }
html[data-theme="dark"] .overview-intro { color: #9eb0c4; }
.overview-flow {
  margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(245, 249, 255, .82);
}
html[data-theme="dark"] .overview-flow { background: #101f30; }
.overview-flow span { color: var(--navy); font-weight: 850; font-size: .9rem; }
.overview-flow i { color: var(--teal-2); font-style: normal; font-weight: 900; }
.hero-canvas { margin-top: 18px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff, #f3f8ff); padding: 10px; }
html[data-theme="dark"] .hero-canvas { background: #101f30; }
.hero-canvas canvas { width: 100%; height: auto; aspect-ratio: 1 / .7; display: block; }
.hero-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.hero-controls .btn-row { margin: 0; gap: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; font-weight: 750; color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dot.real { background: var(--real); }
.dot.synth { background: var(--synth); }
.dot.unknown { background: var(--muted); }

/* ---------- landmark sections ---------- */
.section-landmark { position: relative; isolation: isolate; }
.section-landmark::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.full-bleed::before { left: 50%; right: auto; width: 100vw; transform: translateX(-50%); }

.learning-landmark { padding-top: clamp(70px, 8vw, 112px); }
.learning-landmark::after { content: attr(data-watermark); position: absolute; right: 4%; top: 62px; z-index: -1; font-size: clamp(3.4rem, 9vw, 8rem); line-height: 1; font-weight: 950; letter-spacing: -.08em; color: rgba(16, 47, 78, .045); white-space: nowrap; pointer-events: none; }
html[data-theme="dark"] .learning-landmark::after { color: rgba(234, 244, 255, .04); }

.lab-landmark { overflow: hidden; background: linear-gradient(155deg, #eef4ff, #f3fffc 62%, #fff8f2); }
.lab-landmark::before { background-image: linear-gradient(rgba(16, 47, 78, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 47, 78, .035) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%); mask-image: linear-gradient(to bottom, black, transparent 92%); }
.lab-landmark .section-head { text-align: left; max-width: 820px; margin-left: 0; }
.lab-landmark .section-identity .identity-mark { border-radius: 10px; background: #14776d; }
html[data-theme="dark"] .lab-landmark { background: #0e1e2d; }

.field-landmark { padding-top: clamp(82px, 9vw, 126px); }
.field-landmark::before { background: linear-gradient(180deg, #fffaf0 0, #fff 88%); }
.field-landmark .section-head { max-width: 880px; }
.field-landmark .section-identity .identity-mark { background: #9d6329; }
html[data-theme="dark"] .field-landmark::before { background: linear-gradient(180deg, #211b13 0, #0b1723 88%); }

.practice-landmark { background: linear-gradient(180deg, #f7f4ff, #fbfaff); }
.practice-landmark::before { background: radial-gradient(circle at 12% 18%, rgba(133, 101, 214, .10), transparent 24%), radial-gradient(circle at 88% 74%, rgba(133, 101, 214, .07), transparent 20%); }
.practice-landmark .section-identity .identity-mark { background: #6f55bd; border-radius: 12px; transform: rotate(-3deg); }
html[data-theme="dark"] .practice-landmark { background: linear-gradient(180deg, #171528, #0d1824); }

.software-landmark { background: #f4f8f5; }
.software-landmark::before { background: linear-gradient(90deg, rgba(27, 125, 74, .04), transparent 36%, rgba(49, 91, 175, .035)); }
.software-landmark .section-head { text-align: left; margin-left: 0; max-width: 920px; }
.software-landmark .section-identity .identity-mark { background: #1b7d4a; border-radius: 9px; }
html[data-theme="dark"] .software-landmark { background: #0d1d18; }

.ai-landmark { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 7vw, 96px); }
.ai-landmark::before { background: #f8fbfd; }
html[data-theme="dark"] .ai-landmark::before { background: #0b1723; }

.reasoning-landmark { padding-top: clamp(84px, 9vw, 124px); }
.reasoning-landmark::before { background: linear-gradient(180deg, #fff, #f7fbff); }
.reasoning-landmark .section-identity .identity-mark { background: #d38327; width: 38px; height: 38px; }
html[data-theme="dark"] .reasoning-landmark::before { background: #0b1723; }

/* ---------- path cards (learning steps) ---------- */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path-grid.four { grid-template-columns: repeat(4, 1fr); }
.path-card {
  display: flex; flex-direction: column; min-height: 230px;
  border: 1px solid var(--line); border-top: 5px solid transparent; border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 35px rgba(15, 40, 70, .06);
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(90deg, var(--purple), var(--teal)) border-box;
}
.path-card h3 { color: var(--navy); margin: 18px 0 6px; font-size: 1.25rem; }
.path-card p { color: var(--muted); margin: 0; }
.path-card .text-link { margin-top: auto; padding-top: 16px; }
.path-step { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #e5f8f5, #edf5ff); color: var(--navy); font-weight: 950; border: 1px solid #d5e8ee; }
html[data-theme="dark"] .path-step { background: linear-gradient(135deg, #163d42, #17314d); border-color: #2b4058; color: #dff8f5; }

/* myths: claim vs fact */
.myth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.myth { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px 24px 24px 8px; padding: 22px; box-shadow: var(--shadow-card); }
.myth .claim { border-left: 4px solid var(--coral); border-radius: 14px; background: #fff3f2; padding: 13px 15px; color: #6b2a28; font-weight: 800; }
.myth .fact { border-left: 4px solid var(--teal); border-radius: 14px; background: #eef9f7; padding: 13px 15px; color: #334155; }
.myth .claim::before, .myth .fact::before { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.myth .claim::before { content: "Myth"; color: #c04440; }
.myth .fact::before { content: "In practice"; color: var(--teal-2); }
html[data-theme="dark"] .myth .claim { background: #321b1d; color: #ffd0cc; }
html[data-theme="dark"] .myth .fact { background: #122c35; color: #aebfd1; }
html[data-theme="dark"] .myth .fact::before { color: #5fe0d6; }

/* purpose cards with realism meter */
.purpose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.purpose-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(133, 101, 214, .20); border-radius: var(--radius); padding: 23px; box-shadow: var(--shadow-card); }
.purpose-card .practice-index { margin-top: 0; }
.purpose-card h3 { margin: 6px 0 8px; color: var(--navy); font-size: 1.22rem; line-height: 1.2; }
.purpose-card p { margin: 0; color: var(--body); }
.realism-wrap { margin-top: auto; padding-top: 18px; }
.realism-wrap small { display: block; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.realism { display: flex; gap: 5px; margin-top: 8px; }
.realism i { flex: 1; height: 8px; border-radius: 999px; background: var(--line); }
.realism i.on { background: linear-gradient(90deg, var(--purple), var(--teal)); }
.practice-index { display: block; margin-top: 18px; color: var(--teal); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
html[data-theme="dark"] .purpose-card { border-color: #2b4058; }

/* simulation launch */
.sim-launch-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: stretch; }
.sim-launch-feature { position: relative; overflow: hidden; display: block; min-height: 330px; padding: clamp(28px, 5vw, 54px); border-radius: 34px 10px 34px 10px; color: #fff; background: radial-gradient(circle at 85% 12%, rgba(72, 201, 255, .34), transparent 27%), linear-gradient(135deg, #111b4a, #2d3e9c 58%, #007f86); box-shadow: 0 28px 70px rgba(24, 43, 104, .25); transition: transform .2s ease; }
.sim-launch-feature:hover { transform: translateY(-3px); }
.sim-launch-feature::after { content: ""; position: absolute; width: 220px; height: 220px; border: 44px solid rgba(255, 255, 255, .08); border-radius: 50%; right: -62px; bottom: -95px; }
.sim-launch-label { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #bdf7f0; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.sim-launch-feature h3 { max-width: 650px; margin: 54px 0 13px; color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.045em; }
.sim-launch-feature p { max-width: 620px; margin: 0; color: #dce7ff; font-size: 1.08rem; }
.sim-launch-action { display: block; margin-top: 32px; color: #fff; font-weight: 850; }
.sim-launch-side { display: flex; flex-direction: column; justify-content: center; padding: 30px; border: 1px solid rgba(79, 101, 159, .16); border-radius: 12px 32px 12px 32px; background: rgba(255, 255, 255, .78); box-shadow: 0 18px 50px rgba(22, 38, 85, .10); }
.sim-launch-side p { color: var(--muted); }
.sim-launch-side p strong { color: var(--navy); }
.sim-launch-side .btn { align-self: flex-start; }
html[data-theme="dark"] .sim-launch-side { background: #0f1c2b; border-color: #2b4058; }
.sim-mini-plot { height: 110px; display: flex; align-items: flex-end; gap: 8px; padding: 12px 0; }
.sim-mini-plot i { flex: 1; height: var(--h, 45%); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--cyan), var(--purple)); }
.sim-mini-plot i:nth-child(1) { --h: 28%; } .sim-mini-plot i:nth-child(2) { --h: 48%; } .sim-mini-plot i:nth-child(3) { --h: 76%; } .sim-mini-plot i:nth-child(4) { --h: 94%; } .sim-mini-plot i:nth-child(5) { --h: 71%; } .sim-mini-plot i:nth-child(6) { --h: 43%; } .sim-mini-plot i:nth-child(7) { --h: 21%; }

/* method family cards (field cases) */
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.case-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-left: 6px solid #d7a05d; border-radius: 8px 24px 24px 8px; padding: 22px; box-shadow: 0 14px 34px rgba(105, 74, 32, .09); min-height: 250px; transition: transform .2s ease; }
a.case-card:hover { transform: translateY(-3px); }
.case-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(215, 160, 93, .12); right: -55px; top: -45px; pointer-events: none; }
.case-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-number { color: #9aabc0; font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.case-card h3 { position: relative; color: var(--navy); margin: 14px 0 8px; font-size: 1.25rem; line-height: 1.2; }
.case-card p { color: var(--muted); margin: 0; }
.case-card .text-link { margin-top: auto; padding-top: 16px; }
html[data-theme="dark"] .case-card { border-color: #293d54; border-left-color: #b98545; box-shadow: 0 18px 48px rgba(0, 0, 0, .24); }
.spectrum-scale { margin-top: 26px; }
.scale-bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--teal), #2479c7 45%, var(--purple) 75%, #d38327); }
.scale-labels { display: flex; justify-content: space-between; gap: 18px; margin-top: 10px; color: var(--muted); font-size: .88rem; font-weight: 750; }
.scale-labels span:last-child { text-align: right; }

/* course day: guide + agenda */
.software-guide { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 22px; align-items: start; }
.software-guide-copy { position: sticky; top: 100px; background: #102f4e; color: #e9f3fb; border-radius: 26px; padding: 26px; box-shadow: 0 18px 48px rgba(15, 40, 70, .12); }
html[data-theme="dark"] .software-guide-copy { background: #13314f; }
.guide-label { display: inline-block; margin-bottom: 18px; color: #8de2d8; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.software-guide-copy h3 { margin: 0 0 10px; color: #fff; font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.08; }
.software-guide-copy p { margin: 0; color: #c7d9e8; }
.software-guide-copy .btn { margin-top: 22px; background: #fff; color: #0b1f35; border-color: transparent; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agenda li { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 14px; background: rgba(255, 255, 255, .92); border: 1px solid #dce7df; border-radius: 18px; padding: 14px 17px; }
.agenda time { display: grid; place-items: center; min-height: 38px; padding: 0 8px; border-radius: 12px; background: #eaf5ed; color: #1b6f45; font-weight: 900; font-size: .84rem; font-variant-numeric: tabular-nums; }
.agenda strong { display: block; color: var(--navy); }
.agenda strong a:hover { color: var(--teal-2); }
.agenda .who { display: block; color: var(--muted); font-size: .88rem; }
.agenda li.break { background: transparent; border-style: dashed; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.agenda li.break time { background: transparent; color: var(--muted); }
.agenda li.this { background: linear-gradient(145deg, #ffffff, #eef8ff); border: 2px solid rgba(43, 179, 163, .55); box-shadow: 0 12px 30px rgba(15, 40, 70, .09); }
.agenda li.this time { background: linear-gradient(125deg, #203a8f, #5746bf 55%, #007f86); color: #fff; }
.agenda li.this .who a { color: var(--teal-2); font-weight: 850; }
html[data-theme="dark"] .agenda li { background: #122235; border-color: #2b4058; }
html[data-theme="dark"] .agenda li.break { background: transparent; }
html[data-theme="dark"] .agenda time { background: #173322; color: #bde9c9; }
html[data-theme="dark"] .agenda li.this { background: #122c35; border-color: #285d61; }
html[data-theme="dark"] .agenda li.this .who a { color: #5fe0d6; }

/* dark call-to-action shell */
.ai-compact-shell {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr); gap: 28px; align-items: center;
  padding: clamp(24px, 4vw, 38px); border-radius: 30px; color: #eaf5ff; overflow: hidden;
  background: radial-gradient(circle at 90% 10%, rgba(43, 179, 163, .24), transparent 35%), linear-gradient(145deg, #0b2037, #102f4e);
  box-shadow: 0 28px 75px rgba(7, 20, 35, .2);
  transform: rotate(-.25deg);
}
.ai-compact-copy .eyebrow { color: #79e5d9; }
.ai-compact-copy h2 { margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.045em; }
.ai-compact-copy > p:not(.eyebrow) { color: #bfd1e3; max-width: 650px; margin-top: 14px; }
.ai-use-cases { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.ai-use-cases span { border: 1px solid rgba(185, 218, 244, .18); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 7px 11px; color: #dcecff; font-size: .82rem; font-weight: 800; }
.ai-compact-shell .btn.primary { background: #fff; color: #0b1f35; }
.qr-compact { display: grid; justify-items: center; text-align: center; gap: 12px; }
.qr-frame { width: min(190px, 100%); aspect-ratio: 1; display: grid; place-content: center; padding: 12px; background: #fff; border-radius: 20px; box-shadow: 0 16px 38px rgba(0, 0, 0, .24); }
.qr-frame b { font-size: 5.2rem; line-height: .9; letter-spacing: -.06em; background: linear-gradient(125deg, #203a8f, #7656d8 55%, #00a8a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qr-frame small { color: #44566d; font-weight: 850; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.qr-compact strong { color: #fff; }
.qr-compact span { display: block; color: #a9bfd6; font-size: .84rem; }

/* ---------- inner page banner (mirrors the simulation hub hero) ---------- */
.page-top { padding-top: 40px; }
.page-banner {
  position: relative; overflow: hidden;
  padding: clamp(34px, 6vw, 70px); border-radius: 42px 12px 42px 12px; color: #fff;
  background: radial-gradient(circle at 84% 12%, rgba(72, 201, 255, .32), transparent 25%), radial-gradient(circle at 12% 90%, rgba(239, 106, 103, .22), transparent 25%), linear-gradient(135deg, #111b4a, #2d3f9f 56%, #007f86);
  box-shadow: 0 32px 90px rgba(28, 43, 108, .27);
}
.page-banner::after { content: ""; position: absolute; width: 260px; height: 260px; border: 50px solid rgba(255, 255, 255, .06); border-radius: 50%; right: -70px; bottom: -120px; pointer-events: none; }
.page-banner .eyebrow { color: #91eee3; }
.page-banner h1 { max-width: 900px; margin: 0; color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .94; letter-spacing: -.06em; }
.page-banner p { max-width: 720px; margin: 18px 0 0; color: #dce7ff; font-size: 1.12rem; }
.page-banner a { color: #fff; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.stage-line { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.stage-line span, .stage-line a { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: #dce7ff; font-size: .8rem; font-weight: 850; text-decoration: none !important; }
.stage-line a:hover { background: rgba(255, 255, 255, .12); }
.stage-line .active { color: #0b1f35 !important; background: #fff; border-color: transparent; }

/* ---------- methods page ---------- */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); font-size: .92rem; }
.toc a { display: block; padding: 7px 11px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.toc a:hover { background: var(--soft); color: var(--navy); }
.toc a.active { background: #edf8f7; color: var(--navy); box-shadow: inset 3px 0 0 var(--teal); }
html[data-theme="dark"] .toc a.active { background: #122c35; }
.toc-part { margin: 14px 0 6px; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.toc-part:first-child { margin-top: 0; }
.part { padding: 12px 0 44px; }
.part + .part { padding-top: 44px; border-top: 1px solid var(--line); }
.part > h2 { margin: 0 0 10px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: -.04em; }
.part > .lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.method { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: 0 16px 45px rgba(15, 40, 70, .08); }
.method > h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.55rem; line-height: 1.12; letter-spacing: -.02em; }
.method p { color: var(--body); }
.method p:last-child { margin-bottom: 0; }
.tool-kicker { margin: 0 0 4px; color: var(--teal); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.use, .watch, .warn { border-left: 4px solid var(--teal); border-radius: 14px; background: #eef9f7; padding: 13px 15px; color: #334155; }
.watch { border-left-color: #d47a23; background: #fff7e8; color: #4b5563; }
.warn { border-left-color: var(--coral); background: #fff2f1; color: #4b3a3a; margin-top: 14px; }
.use strong, .watch strong, .warn strong { color: var(--navy); }
.use strong, .watch strong { display: block; margin-bottom: 3px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.use strong { color: var(--teal-2); } .watch strong { color: #a85a12; }
.use a, .watch a, .warn a { color: var(--teal-2); font-weight: 850; }
html[data-theme="dark"] .use { background: #122c35; color: #aebfd1; }
html[data-theme="dark"] .watch { background: #302616; border-color: #8c5b20; color: #d8c5a5; }
html[data-theme="dark"] .warn { background: #321b1d; color: #e5c2bf; }
html[data-theme="dark"] .use strong { color: #5fe0d6; }
html[data-theme="dark"] .watch strong { color: #ffc56e; }
html[data-theme="dark"] .warn strong { color: #fff; }
.steps { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 62px 16px 16px; color: var(--body); }
.steps li strong { display: block; color: var(--navy); }
.steps li::before { content: "0" counter(s); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #e8f7f5, #eaf3ff); color: var(--navy); font-weight: 900; font-size: .8rem; }
html[data-theme="dark"] .steps li::before { background: linear-gradient(135deg, #163d42, #17314d); color: #dff8f5; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(245, 249, 255, .82); }
html[data-theme="dark"] .chain { background: #101f30; }
.chain span { color: var(--navy); font-weight: 850; font-size: .92rem; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.chain b { color: var(--teal); font-weight: 900; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.mini-grid.two { grid-template-columns: repeat(2, 1fr); }
.mini-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--soft-3); }
.mini-card h4 { margin: 0 0 6px; color: var(--navy); font-size: 1.02rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.mini-card > span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 12px; background: #e7f7f5; color: #14776d; font-size: .76rem; font-weight: 900; }
html[data-theme="dark"] .mini-card > span { background: #123632; color: #baf4ed; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--navy); font-weight: 850; }
td { color: var(--body); }
tr:last-child td { border-bottom: 0; }
td a { color: var(--teal-2); font-weight: 850; }
html[data-theme="dark"] td a { color: #5fe0d6; }

/* code windows */
.code { overflow: hidden; margin: 16px 0 0; border-radius: 18px; background: #0b1d31; border: 1px solid #203850; }
html[data-theme="dark"] .code { border-color: #35516d; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #233b54; color: #a9c3dc; font-size: .78rem; font-weight: 800; }
.code-window-label { display: flex; align-items: center; gap: 6px; }
.code-window-label i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.code-window-label i:nth-child(2) { background: #f4c14b; }
.code-window-label i:nth-child(3) { background: #4ecb71; margin-right: 5px; }
.code .copy { border: 1px solid #3d5872; border-radius: 999px; background: #152d44; color: #edf7ff; padding: 5px 11px; cursor: pointer; font-weight: 800; font-size: .78rem; }
.code .copy:hover { background: #1d3a57; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; color: #e9f8ff; font-family: var(--font-code); font-size: .88rem; line-height: 1.55; }
.code .cmt { color: #7fd6cb; }

/* ---------- simulation lab (mirrors the environment pages) ---------- */
.sim-block { padding: 56px 0 30px; }
.sim-block + .sim-block { border-top: 1px solid var(--line); margin-top: 30px; }
.sim-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; margin-bottom: 26px; }
.sim-intro h2 { max-width: 850px; margin: 0; color: var(--navy); font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: .98; letter-spacing: -.055em; }
.sim-intro p:not(.sim-step-label) { max-width: 760px; margin: 16px 0 0; color: #53627d; font-size: 1.06rem; }
html[data-theme="dark"] .sim-intro p:not(.sim-step-label) { color: #9eb0c4; }
.sim-stage-line { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.sim-stage-line span { padding: 7px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: #4f5f79; font-size: .78rem; font-weight: 850; }
html[data-theme="dark"] .sim-stage-line span { color: #aebfd1; }
.sim-stage-line span.active { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--sim-accent, #7656d8), var(--sim-accent-2, #00a8a8)); }
.sim-step-label { margin: 0 0 8px; color: var(--sim-accent, #7656d8); font-size: .73rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
html[data-theme="dark"] .sim-step-label { color: #b7a4ff; }
.lab { display: grid; grid-template-columns: minmax(250px, .36fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.controls, .chart-box { border: 1px solid rgba(105, 125, 172, .18); background: rgba(255, 255, 255, .92); box-shadow: 0 18px 55px rgba(25, 43, 92, .09); }
html[data-theme="dark"] .controls, html[data-theme="dark"] .chart-box { background: #101d30; border-color: #2c3d59; }
.controls { position: sticky; top: 96px; padding: 24px; border-radius: 28px 9px 28px 9px; }
.controls h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.35rem; line-height: 1.15; }
.controls > p { color: var(--muted); font-size: .92rem; }
.control { margin-top: 18px; color: var(--navy); font-weight: 800; }
.control label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.control output { color: var(--sim-accent, #7656d8); font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .control output { color: #b7a4ff; }
.control .hint { margin-top: 5px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.control.checks label { justify-content: flex-start; font-weight: 750; margin-bottom: 4px; cursor: pointer; }
.control input[type="checkbox"] { accent-color: var(--sim-accent, #7656d8); width: 16px; height: 16px; }
input[type="range"] { width: 100%; accent-color: var(--sim-accent, #7656d8); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.seg button { min-height: 38px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 800; font-size: .86rem; cursor: pointer; }
.seg button[aria-pressed="true"] { color: #fff; background: linear-gradient(120deg, var(--sim-accent, #7656d8), var(--sim-accent-2, #00a8a8)); box-shadow: 0 8px 18px rgba(118, 86, 216, .22); }
.sim-action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.sim-btn { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--navy); font-weight: 850; cursor: pointer; }
.sim-btn:hover { border-color: var(--sim-accent, #7656d8); }
.sim-btn.primary { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--sim-accent, #7656d8), var(--sim-accent-2, #00a8a8)); box-shadow: 0 10px 24px rgba(118, 86, 216, .24); }
.chart-box { padding: clamp(18px, 2.6vw, 30px); border-radius: 10px 34px 10px 34px; overflow: hidden; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.chart-head h3 { margin: 0; color: var(--navy); font-size: 1.45rem; }
.chart-box canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(25, 43, 92, .06); }
.stat .v { color: var(--navy); font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 6px; color: var(--muted); font-size: .8rem; font-weight: 700; line-height: 1.4; }
.meter { height: 8px; margin-top: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), #23a36d); transition: width .3s ease; }
.meter.mid i { background: linear-gradient(90deg, #f2ad3d, #d47a23); }
.meter.bad i { background: linear-gradient(90deg, #ef6a67, #c04483); }
.interpret { margin-top: 18px; padding: 20px; border-radius: 18px 6px 18px 6px; color: #fff; background: linear-gradient(125deg, #142350, #243d91 58%, var(--sim-accent-2, #00a8a8)); box-shadow: 0 16px 34px rgba(24, 42, 91, .18); }
.interpret small { display: block; margin-bottom: 6px; color: #bfeee8; font-size: .74rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.interpret p { margin: 0; color: #eaf1ff; }
.sim-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; color: var(--muted); font-size: .82rem; font-weight: 750; }
.sim-legend .dot { margin-right: 5px; }

/* ---------- chooser ---------- */
.chooser-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
fieldset { margin: 0 0 16px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); }
legend { float: left; width: 100%; margin-bottom: 14px; padding: 0; color: var(--navy); font-size: 1.15rem; font-weight: 850; }
legend + * { clear: both; }
legend .q-num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 10px; background: linear-gradient(135deg, #e5f8f5, #edf5ff); color: var(--navy); font-size: .8rem; font-weight: 950; vertical-align: 1px; }
html[data-theme="dark"] legend .q-num { background: linear-gradient(135deg, #163d42, #17314d); color: #dff8f5; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.options label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; background: var(--soft); color: var(--ink); font-weight: 750; cursor: pointer; }
.options label:hover { border-color: var(--teal); background: #effcf9; }
.options label:has(input:checked) { border-color: var(--teal); background: #eaf8f6; box-shadow: 0 0 0 3px rgba(0, 168, 168, .12); }
.options input { accent-color: var(--teal); margin-top: 5px; }
html[data-theme="dark"] .options label:hover, html[data-theme="dark"] .options label:has(input:checked) { background: #122c35; }
.result { position: sticky; top: 96px; background: var(--card); border: 2px solid rgba(16, 47, 78, .10); border-radius: 30px 8px 30px 8px; padding: 28px; box-shadow: var(--shadow); }
html[data-theme="dark"] .result { border-color: #2b4058; }
.result .pick { margin: 12px 0 10px; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.result p { color: var(--body); }
.result strong { color: var(--navy); }
.result h4 { margin: 20px 0 8px; color: var(--teal); font-size: .74rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding: 10px 12px 10px 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); color: var(--body); font-weight: 650; }
.checklist li::before { content: "✓"; position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 900; }
.workflow { list-style: none; margin: 0; padding: 0; counter-reset: w; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.workflow li { counter-increment: w; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 10px 28px rgba(15, 40, 70, .05); }
html[data-theme="dark"] .workflow li { background: #0f1c2b; }
.workflow li::before { content: "0" counter(w); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #e7f7f5; color: #14776d; font-size: .76rem; font-weight: 900; }
html[data-theme="dark"] .workflow li::before { background: #123632; color: #baf4ed; }
.workflow h4 { margin: 12px 0 0; color: var(--navy); font-size: 1.02rem; }
.workflow p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- practice ---------- */
.practice-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .88); box-shadow: 0 12px 34px rgba(15, 40, 70, .06); }
html[data-theme="dark"] .practice-toolbar { background: #101f30; }
.practice-toolbar .label { margin-right: 4px; color: var(--navy); font-size: .8rem; font-weight: 850; }
.score { margin-left: auto; min-height: 44px; display: grid; place-items: center; padding: 0 16px; border-radius: 16px; background: linear-gradient(125deg, #203a8f, #5746bf 55%, #007f86); color: #fff; font-weight: 850; white-space: nowrap; }
#quizList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.q { display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(133, 101, 214, .20); border-radius: var(--radius); padding: 23px; box-shadow: var(--shadow-card); }
html[data-theme="dark"] .q { border-color: #2b4058; }
.q .meta { color: var(--teal); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.q h3 { margin: 6px 0 12px; color: var(--navy); font-size: 1.2rem; line-height: 1.25; }
.q .opts { display: grid; gap: 9px; margin-bottom: 14px; }
.q .opts button { text-align: left; border: 1px solid var(--line); background: var(--soft); border-radius: 16px; padding: 12px 14px; cursor: pointer; color: var(--ink); font-weight: 700; }
.q .opts button:hover:not(:disabled) { border-color: var(--teal); background: #effcf9; }
html[data-theme="dark"] .q .opts button:hover:not(:disabled) { background: #122c35; }
.q .opts button:disabled { cursor: default; }
.q .opts button.right { border-color: var(--green); background: #eaf8ee; }
.q .opts button.wrong { border-color: #e06a6a; background: #fff0f0; }
html[data-theme="dark"] .q .opts button.right { background: #173322; }
html[data-theme="dark"] .q .opts button.wrong { background: #3a1d1c; }
.q .linkbtn { align-self: flex-start; margin-top: auto; }
.q .fb { display: none; margin-top: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft-3); padding: 12px 14px; color: var(--body); }
.q .fb.show { display: block; }
.q .fb p { margin: 0; }
.q .fb.ans { background: #eef9f7; border-color: #c8ebe6; }
.q .fb strong { color: var(--navy); }
html[data-theme="dark"] .q .fb.ans { background: #122c35; border-color: #285d61; }
.practice-load-row { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ---------- resources ---------- */
.dl-card .btn { margin-top: 18px; align-self: flex-start; position: relative; z-index: 1; }
.file-ext { padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .22); font-size: .72rem; font-weight: 900; letter-spacing: .06em; }
.btn:not(.primary) .file-ext { background: #fff4df; color: #8a5712; }
.software-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.software-choice-grid article { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px; background: rgba(255, 255, 255, .92); border: 1px solid #dce7df; border-radius: 18px; padding: 15px 17px; }
.choice-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eaf5ed; color: #1b6f45; font-weight: 950; }
.software-choice-grid article:nth-child(2) .choice-icon { background: #eef1fb; color: #445ca6; }
.software-choice-grid article:nth-child(3) .choice-icon { background: #fff6df; color: #84600c; }
.software-choice-grid article:nth-child(4) .choice-icon { background: #f0ecff; color: #5635a3; }
.software-choice-grid strong { color: var(--navy); }
.software-choice-grid strong a:hover { color: var(--teal-2); }
.software-choice-grid p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
html[data-theme="dark"] .software-choice-grid article { background: #122235; border-color: #2b4058; }
dl.glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 10px 28px rgba(15, 40, 70, .05); }
.term dt { color: var(--navy); font-weight: 900; }
.term dd { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- session pages ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--purple); font-weight: 800; }
html[data-theme="dark"] .breadcrumb a { color: #b7a4ff; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meta-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-card); }
.meta-grid span { display: block; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.meta-grid strong { color: var(--navy); }
.software-choice-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.session-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.session-pager a { color: var(--teal-2); font-weight: 850; }
.session-pager a:last-child { margin-left: auto; text-align: right; }
html[data-theme="dark"] .session-pager a { color: #5fe0d6; }

/* ---------- footer ---------- */
.site-footer { background: #101a46; color: #dbeafe; padding: 44px 0; }
html[data-theme="dark"] .site-footer { background: #050c14; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer .brand strong { color: #fff; }
.site-footer .brand small { color: #aac6e4; }
.site-footer p { color: #aac6e4; margin: 12px 0 0; }
.site-footer h4 { margin: 0 0 6px; color: #fff; }
.site-footer a:not(.brand) { color: #fff; font-weight: 800; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 80px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; max-height: calc(100vh - 100px); overflow-y: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 4px 16px; }
  .nav-menu-title, .caret { display: none; }
  .nav-menu a { font-weight: 600; font-size: .92rem; }
  .software-choice-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid, .purpose-grid, .path-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid, .footer-grid, .software-guide, .doc-layout, .chooser-layout, .lab { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .path-grid, .myth-grid { grid-template-columns: 1fr; }
  .theme-label { display: none; }
  .theme-toggle { width: 42px; padding: 0; justify-content: center; }
  .toc { display: none; }
  .software-guide-copy, .controls, .result { position: static; }
  .ai-compact-shell { grid-template-columns: 1fr; text-align: center; }
  .ai-compact-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .ai-use-cases { justify-content: center; }
  .sim-launch-grid { grid-template-columns: 1fr; }
  .sim-intro { grid-template-columns: 1fr; }
  .sim-stage-line { justify-content: flex-start; }
  #quizList, dl.glossary { grid-template-columns: 1fr 1fr; }
  .learning-landmark::after { display: none; }
}
@media (max-width: 740px) {
  body { overflow-x: hidden; }
  .section-pad { padding: 64px 0; }
  .wrapper { width: min(var(--max), calc(100% - 28px)); }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .hero-orb { display: none; }
  .hero-ai-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .case-grid, .case-grid.two, .purpose-grid, .path-grid.four, .pair, .steps, .mini-grid, .mini-grid.two, .options, .workflow, .stats, #quizList, dl.glossary, .software-choice-grid, .software-choice-grid.four, .meta-grid { grid-template-columns: 1fr; }
  .session-pager { flex-direction: column; }
  .agenda li { grid-template-columns: 1fr; gap: 6px; }
  .agenda time { justify-self: start; }
  .footer-grid { gap: 10px; }
  .page-banner { border-radius: 28px 8px 28px 8px; }
  .page-banner h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .ai-compact-shell { padding: 24px 18px; border-radius: 24px; transform: none; }
  .brand small { display: none; }
  .score { margin-left: 0; width: 100%; }
  .scale-labels { flex-direction: column; gap: 4px; }
  .scale-labels span:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, .nav-links a::after, .sim-launch-feature, .case-card { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
