/* =========================================================================
   SCORM Blocks — marketing site
   Design tokens drawn from the app: navy/blue/orange brand, Hanken Grotesk
   (UI) + Newsreader (content serif), 8-12px radii.
   ========================================================================= */

/* Self-hosted latin-subset fonts, so the site makes no external requests. */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/hanken-grotesk.woff2) format('woff2');}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/newsreader.woff2) format('woff2');}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400 700;font-display:swap;src:url(../fonts/newsreader-italic.woff2) format('woff2');}

:root {
  /* deep-space navies */
  --navy-950: #06131f;
  --navy-900: #081a30;
  --navy-800: #0b1f38;
  --navy-700: #0e2a47;
  --navy-600: #14365c;

  /* brand blues (app accent family) */
  --blue-700: #446d99;
  --blue-600: #4f7cac;   /* DEFAULT_ACCENT */
  --blue-500: #5b93c9;
  --blue-400: #7fb0dd;
  --blue-300: #a9cbe8;

  /* ignite */
  --orange: #ef8b3c;
  --orange-600: #e8792b;
  --orange-300: #f6a43f;

  /* light UI */
  --ink: #1c2430;
  --muted: #5c6675;
  --faint: #97a0ad;
  --line: #e6e8ec;
  --line-strong: #d3d7dd;
  --panel: #ffffff;
  --wash: #f4f7fb;
  --soft: #e9eff6;
  --bg: #f6f8fb;

  --ok: #3e7a4a;
  --warn: #a16207;
  --danger: #c0574f;

  --font-ui: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 56, .06), 0 2px 8px rgba(16, 32, 56, .05);
  --shadow-md: 0 10px 30px rgba(14, 42, 71, .10), 0 2px 8px rgba(14, 42, 71, .06);
  --shadow-lg: 0 30px 70px rgba(8, 26, 48, .22);

  --wrap: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: .92em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue-600); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  padding: .7em 1.25em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn--lg { font-size: 1.02rem; padding: .85em 1.6em; }
.btn--solid {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff; box-shadow: 0 8px 22px rgba(79, 124, 172, .35);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 124, 172, .45); }
.btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* on light sections */
.section .btn--ghost, .cta .btn--ghost { }
.how .btn--ghost { color: var(--ink); border-color: var(--line-strong); background: #fff; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 22px;
  display: flex; align-items: center; gap: 22px;
}
.nav.scrolled {
  background: rgba(9, 24, 44, .82);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 30px rgba(0,0,0,.25);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { border-radius: 8px; }
.brand__word { color: #fff; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.brand__word b { font-weight: 800; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--orange); transition: right .25s var(--ease); border-radius: 2px;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { right: 0; }
.nav__links a.active { color: #fff; }
.nav__links a.active::after { right: 0; }
.nav__cta { display: flex; gap: 10px; }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 22px 80px;
  background:
    radial-gradient(1200px 700px at 78% 12%, rgba(91,147,201,.28), transparent 60%),
    radial-gradient(900px 600px at 12% 90%, rgba(239,139,60,.16), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__stars { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; right: 6%; top: 20%;
  background: radial-gradient(circle, rgba(91,147,201,.35), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.hero__inner {
  max-width: var(--wrap); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700;
  color: var(--blue-400);
}
.hero__copy .eyebrow { color: var(--blue-300); }
.hero__title {
  color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.9rem); margin: 16px 0 20px; font-weight: 800;
}
.hero__title .grad {
  background: linear-gradient(100deg, var(--blue-400), var(--orange) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { color: rgba(226,235,246,.82); font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 34em; }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.hero__pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; }
.hero__pills li { color: rgba(226,235,246,.72); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero__pills li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }

/* rocket */
.hero__craft { position: relative; display: grid; place-items: center; }
.rocket { width: min(360px, 78%); overflow: visible; filter: drop-shadow(0 24px 40px rgba(0,0,0,.4)); }
.rocket__float { transform-origin: 120px 160px; }
.rocket__pad {
  position: absolute; bottom: 4%; width: 62%; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(91,147,201,.4), transparent 70%);
  filter: blur(6px);
}
.rk { opacity: 1; }   /* assembled = safe default (reduced motion) */

@media (prefers-reduced-motion: no-preference) {
  .rk { opacity: 0; animation: assemble .8s var(--ease) forwards; }
  .rk.flame { animation: assemble .8s var(--ease) forwards, flicker 1.7s ease-in-out infinite; }
  .rocket__float { animation: floaty 6s ease-in-out infinite; }
}
@keyframes assemble {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1.2deg); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: .72; transform: scaleY(.86); }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px;
  display: grid; justify-items: center; padding-top: 8px;
}
.hero__scroll span { width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* =========================================================================
   SUBHERO (compact page header, e.g. Blocks page)
   ========================================================================= */
.subhero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 132px 22px 64px; text-align: center; color: #fff;
  background:
    radial-gradient(900px 520px at 80% -12%, rgba(91,147,201,.28), transparent 60%),
    radial-gradient(700px 480px at 10% 120%, rgba(239,139,60,.14), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-700));
}
.subhero__stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.subhero__inner { max-width: 780px; margin: 0 auto; position: relative; }
.subhero .eyebrow { color: var(--blue-300); }
.subhero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.5rem); margin: 14px 0 16px; font-weight: 800; letter-spacing: -.02em; }
.subhero__lede { color: rgba(226,235,246,.82); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 40em; margin: 0 auto; }

/* =========================================================================
   TRUST STRIP
   ========================================================================= */
.trust {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-600));
  border-top: 1px solid rgba(255,255,255,.06);
}
.trust__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 42px 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat b {
  display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.stat span { color: var(--blue-300); font-size: .92rem; font-weight: 600; }

/* =========================================================================
   SECTIONS (shared)
   ========================================================================= */
.section { padding: clamp(44px, 5.5vw, 76px) 22px; }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 720px; margin-bottom: 54px; }
.section__head .eyebrow { color: var(--blue-600); }
.section__head h2 { margin: 12px 0 14px; color: var(--navy-700); }
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* HOW */
.how { background: var(--wash); }
.steps { list-style: none; padding: 0; margin: 0 auto 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--wrap); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--blue-500), var(--orange)); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--soft); color: var(--blue-600); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.step h3 { color: var(--navy-700); margin-bottom: 8px; }
.step p { color: var(--muted); }

.shot { margin: 0 auto; max-width: 1000px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.shot img { width: 100%; }
.shot figcaption { padding: 14px 18px; color: var(--muted); font-size: .9rem; text-align: center; background: #fff; border-top: 1px solid var(--line); }
.how__cta { text-align: center; margin-top: 42px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.narrow .checklist { text-align: left; }

/* =========================================================================
   EDITOR DEMO (animated "add a block")
   ========================================================================= */
.ed { position: relative; zoom: 0.8; max-width: 980px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ed__bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--wash); }
.ed__seg { display: flex; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; font-size: .8rem; }
.ed__seg span { padding: 5px 13px; font-weight: 700; color: var(--muted); }
.ed__seg .on { background: var(--soft); color: var(--blue-700); }
.ed__tools { margin-left: auto; display: flex; gap: 16px; color: var(--faint); font-weight: 600; font-size: .8rem; }
.ed__tools b { color: var(--blue-600); }
.ed__body { display: grid; grid-template-columns: 176px 1fr 196px; min-height: 460px; }
.ed__rail { border-right: 1px solid var(--line); padding: 16px 12px; background: #fcfcfd; }
.ed__rail-t { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; margin: 0 0 10px 4px; }
.ol-item { display: flex; gap: 8px; align-items: center; padding: 8px 8px; border-radius: 7px; font-size: .84rem; color: var(--ink); font-weight: 600; }
.ol-item .tag { font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.ol-item.ins { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .4s var(--ease), padding .4s var(--ease); }
.ol-item.ins.show { max-height: 40px; opacity: 1; padding-top: 8px; padding-bottom: 8px; background: var(--soft); }
.ed__inspector { border-left: 1px solid var(--line); padding: 16px 13px; background: #fcfcfd; }
.insp__grp { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; margin: 15px 4px 7px; }
.insp__grp:first-of-type { margin-top: 2px; }
.insp__row { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--ink); padding: 4px; }
.insp__chk { width: 15px; height: 15px; border: 1.5px solid var(--line-strong); border-radius: 4px; flex: none; }
.insp__field { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--ink); padding: 4px; font-weight: 600; }
.insp__pill { font-size: .7rem; font-weight: 700; color: var(--blue-700); background: var(--soft); padding: 3px 9px; border-radius: 999px; }
.insp__block { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .4s var(--ease); }
.insp__block.show { max-height: 90px; opacity: 1; }
.insp__block .insp__grp { color: var(--blue-600); }
.ed__canvas { padding: 20px clamp(16px, 3.5vw, 38px) 24px; background: var(--bg); position: relative; }
.blk { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 17px; margin-bottom: 11px; box-shadow: var(--shadow-sm); }
.blk__h { font-family: var(--serif); font-size: 1.22rem; color: var(--navy-700); font-weight: 600; }
.blk__rule { width: 46px; height: 3px; background: var(--ok); border-radius: 3px; margin-top: 8px; }
.blk--text { font-family: var(--serif); color: var(--ink); font-size: .93rem; }
.blk--callout { border: 0; border-left: 4px solid var(--blue-500); background: var(--wash); font-family: var(--serif); color: var(--ink); font-size: .93rem; display: flex; gap: 11px; align-items: flex-start; }
.blk--callout .ico { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); color: var(--blue-600); display: grid; place-items: center; font-weight: 800; }
.ed__ins { display: grid; }
.ed__ins .blk { max-height: 0; opacity: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transform: translateY(8px); transition: max-height .45s var(--ease), opacity .4s var(--ease), transform .45s var(--ease), padding .45s var(--ease), margin .45s var(--ease); box-shadow: none; }
.ed__ins .blk.show { max-height: 360px; opacity: 1; margin-bottom: 11px; padding-top: 13px; padding-bottom: 13px; transform: none; }
.ed__ins #edImg.show { padding: 7px; max-height: 220px; }
.ed__ins .blk.flash { box-shadow: 0 0 0 3px var(--accent-soft, #e9eff6), 0 0 0 1.5px var(--blue-500); }
.addwrap { position: relative; }
.addbtn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-weight: 700; background: #fff; font-family: inherit; font-size: .9rem; transition: .18s; }
.addbtn .plus { width: 20px; height: 20px; border-radius: 6px; background: var(--soft); color: var(--blue-600); display: grid; place-items: center; font-weight: 800; transition: .18s; }
.addbtn.hot { border-color: var(--blue-500); color: var(--blue-600); background: var(--wash); }
.addbtn.hot .plus { background: var(--blue-600); color: #fff; }
.palette { position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, 6px); width: min(280px, 92%); background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-md); padding: 7px; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 5; }
.palette.open { opacity: 1; transform: translate(-50%, 0); }
.palette__t { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; padding: 6px 8px 4px; }
.palette__i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.palette__i .pi { width: 24px; height: 24px; border-radius: 6px; background: var(--soft); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.palette__i .pi svg { width: 14px; height: 14px; }
.palette__i.hot { background: var(--soft); color: var(--blue-700); }
/* rich block palette (grid + colorful icons) */
.palette--grid { width: min(372px, 96%); }
.palette__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.palette--grid .palette__i { font-size: .82rem; padding: 7px 8px; gap: 8px; }
.palette--grid .palette__i .pi { width: 26px; height: 26px; }
.pi--txt { background: var(--soft); color: var(--blue-600); }
.pi--img { background: #dcf0ec; color: #2f8f83; }
.pi--vid { background: #f0e6fb; color: #8b5cf6; }
.pi--chart { background: #fdecd8; color: #e8792b; }
.pi--quiz { background: #e2f1e6; color: #3e7a4a; }
.pi--cards { background: #e6e9fb; color: #5b6ad0; }
.pi--dnd { background: #fbe7e5; color: #c0574f; }
.pi--table { background: #e9edf2; color: #5b6b7d; }
/* image + quiz blocks */
.imgph { aspect-ratio: 32 / 9; border-radius: 8px; background-size: cover; background-position: center; }
.quiz__q { font-family: var(--serif); font-size: 1.02rem; color: var(--navy-700); font-weight: 600; margin-bottom: 11px; line-height: 1.3; }
.quiz__opts { display: grid; gap: 7px; }
.quiz__o { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: 9px; background: #fff; font-size: .88rem; color: var(--ink); transition: border-color .18s, background .18s; }
.quiz__mk { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; color: #fff; font-size: .66rem; font-weight: 800; transition: .18s; }
.quiz__o.correct { border-color: var(--ok); background: #eef6f0; }
.quiz__o.correct .quiz__mk { background: var(--ok); border-color: var(--ok); }
.quiz__fb { margin-top: 9px; padding: 9px 12px; border-radius: 8px; background: #eef6f0; color: var(--ok); font-size: .82rem; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s var(--ease), max-height .3s var(--ease); }
.quiz__fb.show { opacity: 1; max-height: 60px; }
.quiz__fb b { color: var(--ok); }
/* chart block */
.chartb__t { font-family: var(--font-serif); font-size: .98rem; color: var(--navy-700); font-weight: 600; margin-bottom: 12px; }
.chartb { display: flex; align-items: flex-end; gap: 14px; height: 132px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.chartb__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chartb__bar { width: 62%; max-width: 46px; height: 0; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); transition: height .9s cubic-bezier(.22,.61,.36,1); }
.blk--chart.charted .chartb__bar { height: var(--h); }
.chartb__col:nth-child(2) .chartb__bar { background: linear-gradient(180deg, var(--blue-400), var(--blue-500)); }
.chartb__col:nth-child(4) .chartb__bar { background: linear-gradient(180deg, var(--orange-300), var(--orange)); }
.chartb__col span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.ed__ins #edChart.show { max-height: 240px; }
/* palette flips up when there is little room below */
.palette--up { top: auto; bottom: calc(100% + 8px); transform: translate(-50%, -6px); }
.palette--up.open { transform: translate(-50%, 0); }
/* preview: render the finished lesson as a learner sees it */
.ed--preview .ed__tools, .ed--preview .ed__rail, .ed--preview .ed__inspector, .ed--preview .addwrap, .ed--preview .ed__cursor { display: none; }
.ed--preview .ed__body { grid-template-columns: 232px 1fr; }
.ed--preview .ed__canvas { max-width: 560px; margin: 0 auto; background: transparent; padding: 28px 20px 40px; }
.ed--preview .blk { border-color: transparent; box-shadow: none; }
.ed--preview .blk--quiz, .ed--preview .blk--chart { padding-left: 2px; padding-right: 2px; }
.ed__preview-badge { display: none; }
.ed--preview .ed__preview-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); }
.ed--preview .ed__preview-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
/* learner-runtime nav (shown only in preview) */
.ed__learnnav { display: none; background: #fff; border-right: 1px solid var(--line); overflow: hidden; }
.ed--preview .ed__learnnav { display: block; }
.lrn__head { background: #165032; color: #fff; padding: 20px 16px 18px; }
.lrn__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.06rem; line-height: 1.2; }
.lrn__prog { height: 5px; background: rgba(255,255,255,.25); border-radius: 3px; margin: 14px 0 9px; overflow: hidden; }
.lrn__prog span { display: block; height: 100%; width: 20%; background: rgba(255,255,255,.92); border-radius: 3px; }
.lrn__pct { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.lrn__list { padding: 10px 8px; }
.lrn__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: .9rem; color: var(--ink); }
.lrn__item--cur { background: #e7f0ea; font-weight: 700; }
.lrn__chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); color: transparent; display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; }
.lrn__item--cur .lrn__chk { background: #165032; border-color: #165032; color: #fff; }
.lrn__lesson { display: none; }
.ed--preview .lrn__lesson { display: block; font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: .98rem; margin-bottom: 6px; }
.lrn__foot { display: none; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ed--preview .lrn__foot { display: flex; }
.lrn__btn { font-family: inherit; font-weight: 700; font-size: .88rem; padding: 10px 18px; border-radius: 9px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--muted); cursor: default; }
.lrn__btn--solid { background: #165032; border-color: #165032; color: #fff; }
/* whoami block (About page) */
.whoami__card { max-width: 660px; margin: 0 auto; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 54px -26px rgba(20, 54, 92, .3); padding: 48px 46px 42px; position: relative; overflow: hidden; }
.whoami__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--blue-500), var(--orange)); }
.whoami__name { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.4vw, 2.15rem); color: var(--navy-700); margin: 10px 0 4px; line-height: 1.1; }
.whoami__roles { font-weight: 700; color: var(--blue-600); letter-spacing: .01em; margin-bottom: 20px; }
.whoami__bio { color: var(--muted); line-height: 1.68; max-width: 54ch; margin: 0 auto; }
.whoami__links { display: flex; gap: 24px; justify-content: center; margin-top: 26px; }
.whoami__links a { font-weight: 700; font-size: .92rem; color: var(--blue-600); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.whoami__links a::after { content: "\2197"; font-size: .85em; opacity: .7; }
.whoami__links a:hover { color: var(--navy-700); text-decoration: underline; }
.ed__cursor { position: absolute; top: 0; left: 0; z-index: 20; margin: -3px 0 0 -3px; transition: transform .55s cubic-bezier(.5,.05,.2,1); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.ed__cursor svg { width: 24px; height: 24px; display: block; }
.ed__cursor::after { content: ""; position: absolute; top: 2px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); opacity: 0; }
.ed__cursor.click::after { animation: edripple .5s ease-out; }
@keyframes edripple { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
.ed__cap { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px; }

@media (max-width: 760px) {
  .ed__body { grid-template-columns: 1fr; min-height: 0; }
  .ed__rail, .ed__inspector { display: none; }
  .ed__tools { display: none; }
  .ed { zoom: 1; }
  .ed--preview .ed__learnnav { display: none; }
  .ed--preview .ed__body { grid-template-columns: 1fr; }
  /* scale the mock down so the whole canvas reads at a glance */
  .ed__bar { padding: 9px 12px; }
  .ed__seg { font-size: .74rem; }
  .ed__seg span { padding: 4px 11px; }
  .ed__canvas { padding: 16px 16px 20px; }
  .blk { padding: 12px 14px; margin-bottom: 10px; border-radius: 9px; }
  .blk__h { font-size: 1.15rem; }
  .blk__rule { width: 40px; height: 2px; margin-top: 7px; }
  .blk--text { font-size: .92rem; }
  .blk--callout { font-size: .92rem; gap: 9px; }
  .blk--callout .ico { width: 22px; height: 22px; }
  .ed__ins .blk.show { max-height: 360px; padding-top: 13px; padding-bottom: 13px; margin-bottom: 10px; }
  .addbtn { padding: 10px; font-size: .88rem; }
  .addbtn .plus { width: 18px; height: 18px; }
  .palette { width: min(240px, 94%); }
  .palette__i { font-size: .86rem; padding: 8px 9px; }
  .palette__i .pi { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ed__cursor { display: none; }
  .ed__ins .blk, .ol-item.ins, .palette, .addbtn { transition: none; }
}

/* =========================================================================
   MEDIA / rapid authoring (stock image search)
   ========================================================================= */
.media { background: #fff; }
.media__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: center; }
.media__copy h2 { color: var(--navy-700); margin: 12px 0 16px; }
.media__copy > p { color: var(--muted); font-size: 1.06rem; margin-bottom: 22px; }
.media .checklist code, .media .checklist b { color: var(--blue-700); }
.stock { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-md); }
.stock__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; margin-bottom: 14px; }
.stock__bar svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.stock__bar .q { color: var(--ink); font-weight: 600; }
.stock__bar .cursor { width: 2px; height: 16px; background: var(--blue-500); margin-left: -4px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stock__bar .cursor { animation: none; } }
.stock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stock__tile {
  aspect-ratio: 4 / 3; border-radius: 8px;
  background-color: var(--soft); background-size: cover; background-position: center;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.stock__tile.is-hidden { opacity: 0; transform: translateY(10px) scale(.96); }
.stock__src { margin-top: 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.stock__src .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.stock__src b { color: var(--blue-600); }

/* =========================================================================
   PLAYGROUND
   ========================================================================= */
.playground { background: linear-gradient(180deg, #fff, var(--wash)); }
.pg {
  display: grid; grid-template-columns: 250px 1fr; gap: 20px; max-width: var(--wrap);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 18px; align-items: stretch;
}
.pg__palette { border-right: 1px solid var(--line); padding-right: 18px; }
.pg__palette-title { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--faint); font-weight: 700; margin: 6px 0 12px 8px; }
.pg__list { display: flex; flex-direction: column; gap: 4px; max-height: 460px; overflow-y: auto; }
.pg__chip {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: none;
  cursor: pointer; font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
  transition: background .15s, border-color .15s, transform .1s;
}
.pg__chip:hover { background: var(--wash); }
.pg__chip.active { background: var(--soft); border-color: var(--blue-400); color: var(--blue-700); }
.pg__chip .ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--soft); color: var(--blue-600); }
.pg__chip.active .ic { background: var(--blue-600); color: #fff; }
.pg__chip svg { width: 15px; height: 15px; }

.pg__stage { display: flex; flex-direction: column; min-width: 0; }
.pg__stage-bar {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.pg__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.pg__dot:nth-child(1){ background: #e6a09a; } .pg__dot:nth-child(2){ background: #ecc98a; } .pg__dot:nth-child(3){ background: #9ccca6; }
.pg__stage-label { font-weight: 700; color: var(--navy-700); margin-left: 8px; }
.pg__badge { margin-left: auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.pg__canvas { padding: 8px clamp(8px, 3vw, 40px) 26px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- demo shared primitives (learner view) --- */
.demo__q { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy-700); margin-bottom: 6px; line-height: 1.25; }
.demo__hint { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.demo__title { font-family: var(--font-serif); font-size: 1.65rem; color: var(--navy-700); margin-bottom: 4px; }

.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 15px 18px; margin-bottom: 12px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: #fff; cursor: pointer; font-family: inherit; font-size: 1.02rem; color: var(--ink);
  transition: border-color .16s, background .16s, transform .1s;
}
.opt:hover { border-color: var(--blue-400); background: var(--wash); }
.opt .mk { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: .85rem; color: #fff; transition: .16s; }
.opt.correct { border-color: var(--ok); background: #eef6f0; }
.opt.correct .mk { background: var(--ok); border-color: var(--ok); }
.opt.wrong { border-color: var(--danger); background: #fbeceb; }
.opt.wrong .mk { background: var(--danger); border-color: var(--danger); }
.opt:disabled { cursor: default; }
.feedback { margin-top: 8px; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.feedback.show { display: block; animation: fadeIn .3s var(--ease); }
.feedback.ok { background: #eef6f0; color: var(--ok); }
.feedback.no { background: #fbeceb; color: var(--danger); }

.demo__reset { margin-top: 18px; background: none; border: 0; color: var(--blue-600); font-weight: 700; font-family: inherit; cursor: pointer; font-size: .92rem; padding: 4px; }
.demo__reset:hover { text-decoration: underline; }

/* flashcards */
.fc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fc { perspective: 1000px; border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit; }
.fc__inner { position: relative; height: 150px; transition: transform .55s var(--ease); transform-style: preserve-3d; }
.fc.flip .fc__inner { transform: rotateY(180deg); }
.fc__face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--r-md); display: grid; place-items: center; padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.fc__front { background: linear-gradient(160deg, var(--blue-600), var(--navy-600)); color: #fff; font-weight: 700; font-size: 1.1rem; }
.fc__back { background: #fff; border: 1.5px solid var(--blue-400); color: var(--ink); transform: rotateY(180deg); font-size: .96rem; }
@media (prefers-reduced-motion: reduce) { .fc__inner { transition: none; } }

/* tabs */
.tabs__row { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs__tab { border: 0; background: none; font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--muted); padding: 12px 18px; cursor: pointer; position: relative; }
.tabs__tab.active { color: var(--blue-600); }
.tabs__tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px; background: var(--blue-600); border-radius: 3px; }
.tabs__panel { font-family: var(--font-serif); font-size: 1.12rem; color: var(--ink); line-height: 1.6; animation: fadeIn .3s var(--ease); }

/* accordion */
.acc__item { border: 1px solid var(--line-strong); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; background: #fff; }
.acc__head { width: 100%; text-align: left; background: none; border: 0; font-family: inherit; font-size: 1.05rem; font-weight: 700; color: var(--navy-700); padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc__sign { transition: transform .25s var(--ease); color: var(--blue-600); flex: none; font-size: 1.3rem; line-height: 1; }
.acc__item.open .acc__sign { transform: rotate(45deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc__item.open .acc__body { max-height: 220px; }
.acc__body p { padding: 0 18px 18px; color: var(--muted); font-family: var(--font-serif); }
@media (prefers-reduced-motion: reduce) { .acc__body { transition: none; } }

/* drag & drop matching */
.dnd { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.dnd__col-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; margin-bottom: 12px; }
.chip {
  padding: 12px 15px; border-radius: 10px; background: var(--soft); border: 1.5px solid var(--blue-400);
  color: var(--blue-700); font-weight: 700; margin-bottom: 10px; cursor: grab; user-select: none;
  display: flex; align-items: center; gap: 8px; transition: transform .12s, box-shadow .12s;
}
.chip[aria-grabbed="true"], .chip.dragging { opacity: .5; }
.chip:active { cursor: grabbing; }
.chip .grip { color: var(--faint); }
.zone {
  min-height: 52px; border: 2px dashed var(--line-strong); border-radius: 10px; margin-bottom: 10px;
  padding: 8px 12px; display: flex; align-items: center; gap: 10px; color: var(--muted); transition: .16s;
}
.zone b { color: var(--navy-700); font-weight: 700; }
.zone.over { border-color: var(--blue-500); background: var(--wash); }
.zone.filled { border-style: solid; }
.zone.correct { border-color: var(--ok); background: #eef6f0; }
.zone.incorrect { border-color: var(--danger); background: #fbeceb; }
.zone__slot { margin-left: auto; }
.zone__slot .chip { margin: 0; }

/* process stepper */
.proc__track { display: flex; gap: 6px; margin-bottom: 20px; }
.proc__pip { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.proc__pip.done { background: var(--blue-500); }
.proc__card { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; min-height: 130px; }
.proc__step-k { color: var(--blue-600); font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.proc__step-t { font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy-700); margin: 4px 0 8px; }
.proc__nav { display: flex; justify-content: space-between; margin-top: 18px; gap: 12px; }

/* chart */
.chart { display: flex; align-items: flex-end; gap: 18px; height: 240px; padding: 10px 6px 0; border-bottom: 2px solid var(--line); }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.chart__bar { width: 70%; max-width: 60px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); transition: height 1s var(--ease); }
.chart__col:nth-child(2) .chart__bar { background: linear-gradient(180deg, var(--blue-400), var(--blue-500)); }
.chart__col:nth-child(4) .chart__bar { background: linear-gradient(180deg, var(--orange-300), var(--orange)); }
.chart__val { font-weight: 800; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.chart__lbls { display: flex; gap: 18px; padding-top: 10px; }
.chart__lbls span { flex: 1; text-align: center; color: var(--muted); font-size: .86rem; font-weight: 600; }

/* slider / variable */
.slider-demo { text-align: center; }
.slider-demo output { display: block; font-family: var(--font-serif); font-size: 2.6rem; color: var(--blue-600); font-weight: 500; }
.var-line { font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); margin: 18px 0 26px; }
.var-line .var { background: var(--soft); color: var(--blue-700); padding: 2px 10px; border-radius: 6px; font-weight: 700; }
.slider-demo input[type=range] { width: 100%; max-width: 380px; accent-color: var(--blue-600); height: 28px; }
.tokchip { display: inline-block; background: var(--navy-700); color: var(--blue-300); font-family: ui-monospace, monospace; padding: 3px 8px; border-radius: 6px; font-size: .82rem; }

/* labeled graphic */
.lg { position: relative; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, var(--navy-700), var(--blue-600)); aspect-ratio: 16/9; }
.lg__scene { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.lg__mark { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--orange); color: #fff; font-weight: 800; cursor: pointer; display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .15s; }
.lg__mark:hover, .lg__mark.active { transform: translate(-50%, -50%) scale(1.15); }
.lg__mark::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lg__mark::after { animation: none; } }
.lg__pop { margin-top: 16px; background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 16px 18px; min-height: 40px; }
.lg__pop b { color: var(--navy-700); }
.lg__pop.empty { color: var(--faint); font-style: italic; border-left-color: var(--line); }

/* =========================================================================
   CATALOG
   ========================================================================= */
.catalog { background: #fff; }
.catalog__filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.cat-filter {
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--muted); font-family: inherit;
  font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: .16s;
}
.cat-filter:hover { border-color: var(--blue-400); color: var(--blue-600); }
.cat-filter.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: #fff;
  transition: transform .18s var(--ease), box-shadow .2s, border-color .2s; position: relative;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.cat-card__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--blue-600); margin-bottom: 12px; }
.cat-card__ic svg { width: 20px; height: 20px; }
.cat-card h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy-700); font-weight: 700; }
.cat-card p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.cat-card__fam { position: absolute; top: 14px; right: 14px; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--faint); }
.cat-card.hide { display: none; }
.mediacall {
  margin-top: 44px; display: flex; align-items: center; gap: 20px;
  background: linear-gradient(120deg, var(--soft), var(--wash));
  border: 1px solid var(--line); border-left: 4px solid var(--blue-500);
  border-radius: var(--r-lg); padding: 22px 26px;
}
.mediacall__ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, var(--blue-500), var(--blue-600)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(79,124,172,.3); }
.mediacall__ic svg { width: 26px; height: 26px; }
.mediacall__body h3 { color: var(--navy-700); margin-bottom: 5px; font-size: 1.12rem; }
.mediacall__body p { color: var(--muted); font-size: .97rem; }
.mediacall__body a { color: var(--blue-600); font-weight: 700; white-space: nowrap; }
.mediacall__body a:hover { text-decoration: underline; }
@media (max-width: 620px) { .mediacall { flex-direction: column; text-align: center; } }

/* =========================================================================
   ACCESSIBILITY
   ========================================================================= */
.a11y { background: var(--wash); }
.a11y__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.a11y__copy h2 { color: var(--navy-700); margin: 12px 0 16px; }
.a11y__copy > p { color: var(--muted); font-size: 1.06rem; margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 900; background: #eef6f0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; font-size: .8rem; }
.checklist code { background: var(--soft); padding: 2px 7px; border-radius: 5px; color: var(--blue-700); font-weight: 700; }
.a11y__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-md); }
.a11y__row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 10px; margin: 6px; font-weight: 600; }
.a11y__row .tick { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; flex: none; color: #fff; }
.a11y__row--ok { background: #eef6f0; color: var(--ok); } .a11y__row--ok .tick { background: var(--ok); }
.a11y__row--warn { background: #fdf4dc; color: var(--warn); } .a11y__row--warn .tick { background: var(--warn); }
.a11y__gate { margin: 12px 6px 6px; padding: 16px; border-radius: 12px; background: var(--navy-700); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.a11y__gate-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-300); font-weight: 700; }
.a11y__gate-state { font-weight: 800; color: #fff; }

/* =========================================================================
   PUBLISH
   ========================================================================= */
.publish {
  background:
    radial-gradient(800px 500px at 50% -5%, rgba(91,147,201,.22), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: #fff;
}
.publish .section__head h2 { color: #fff; }
.publish .section__head .eyebrow { color: var(--blue-400); }
.publish .section__sub { color: rgba(226,235,246,.72); }
.publish__flow { display: grid; place-items: center; margin-bottom: 10px; }
.publish__source {
  background: linear-gradient(160deg, var(--blue-500), var(--blue-600)); color: #fff; font-weight: 800;
  padding: 14px 30px; border-radius: 999px; box-shadow: 0 12px 30px rgba(79,124,172,.4); position: relative; z-index: 1;
}
.publish__rays { width: 2px; height: 44px; background: linear-gradient(var(--blue-400), transparent); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub-card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg);
  padding: 26px; transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.pub-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.pub-card__ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(91,147,201,.2); display: grid; place-items: center; color: var(--blue-300); margin-bottom: 16px; }
.pub-card__ic svg { width: 24px; height: 24px; }
.pub-card h3 { color: #fff; margin-bottom: 8px; }
.pub-card p { color: rgba(226,235,246,.7); font-size: .95rem; }
.pub-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pub-card li { font-size: .76rem; font-weight: 700; color: var(--blue-300); background: rgba(91,147,201,.16); padding: 4px 10px; border-radius: 999px; }

/* =========================================================================
   SELF-HOST
   ========================================================================= */
.selfhost { background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); color: #fff; }
.selfhost__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.selfhost__copy .eyebrow { color: var(--orange); }
.selfhost__copy h2 { color: #fff; margin: 12px 0 16px; }
.selfhost__copy > p { color: rgba(226,235,246,.78); font-size: 1.06rem; margin-bottom: 22px; }
.selfhost .checklist li { color: rgba(255,255,255,.9); }
.selfhost .checklist li::before { background: rgba(62,122,74,.28); color: #86e39c; }
.selfhost .checklist code { background: rgba(255,255,255,.1); color: var(--blue-300); }
.selfhost__note { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: rgba(239,139,60,.1); border: 1px solid rgba(239,139,60,.28); color: rgba(255,255,255,.82); font-size: .96rem; }
.selfhost__note b { color: var(--orange-300); }
.term { background: #0a1524; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.5); font-size: .82rem; font-weight: 600; }
.term__bar span { width: 11px; height: 11px; border-radius: 50%; background: #384456; }
.term__bar span:nth-child(1){ background: #e6a09a; } .term__bar span:nth-child(2){ background: #ecc98a; } .term__bar span:nth-child(3){ background: #9ccca6; }
.term__body { margin: 0; padding: 20px 22px; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: .9rem; line-height: 1.9; color: #cdd6e4; overflow-x: auto; }
.tok-c { color: #6b7a90; } .tok-p { color: var(--orange-300); } .tok-g { color: #86e39c; }

/* =========================================================================
   INSIGHTS
   ========================================================================= */
.insights { background: var(--wash); }
.insights__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ins-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.ins-card__label { font-weight: 800; color: var(--navy-700); margin-bottom: 20px; }
.ins-card__foot { margin-top: 16px; color: var(--muted); font-size: .84rem; display: flex; align-items: center; gap: 8px; }
.ins-card__foot .flag { width: 12px; height: 12px; border-radius: 3px; background: var(--danger); }
.funnel { display: grid; gap: 10px; }
.funnel__row { display: flex; align-items: center; gap: 12px; }
.funnel__bar { height: 34px; border-radius: 8px; background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 700; font-size: .85rem; min-width: 40px; transition: width 1.1s var(--ease); }
.funnel__lbl { width: 92px; flex: none; color: var(--muted); font-size: .86rem; font-weight: 600; }
.bars { display: grid; gap: 14px; }
.bars__row { display: grid; grid-template-columns: 1fr; gap: 5px; }
.bars__top { display: flex; justify-content: space-between; font-size: .86rem; }
.bars__top b { color: var(--navy-700); font-weight: 700; } .bars__top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.bars__track { height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.bars__fill { height: 100%; border-radius: 6px; background: var(--blue-500); transition: width 1.1s var(--ease); }
.bars__row.low .bars__fill { background: var(--danger); }
.bars__row.low .bars__top span { color: var(--danger); font-weight: 700; }

/* =========================================================================
   CTA + FOOTER
   ========================================================================= */
.cta {
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(91,147,201,.25), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
  color: #fff; text-align: center;
}
.cta__inner { max-width: 680px; }
.cta__mark { margin: 0 auto 20px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.cta p { color: rgba(226,235,246,.78); font-size: 1.1rem; margin: 16px auto 32px; max-width: 34em; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 48px 22px 34px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.05rem; }
.footer__brand b { font-weight: 800; }
.footer__tag { color: var(--blue-300); font-family: var(--font-serif); font-style: italic; margin-right: auto; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: rgba(255,255,255,.7); font-size: .92rem; font-weight: 600; }
.footer__links a:hover { color: #fff; }
.footer__fine { max-width: var(--wrap); margin: 24px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.45); font-size: .84rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; order: 2; }
  /* open menu: links and CTA flow below the bar via flex-wrap (self-sizing, no magic offsets) */
  .nav.open { background: rgba(9,24,44,.97); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 14px 34px rgba(0,0,0,.32); }
  .nav.open .nav__inner { flex-wrap: wrap; row-gap: 4px; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; order: 3; flex-basis: 100%; width: 100%;
    gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav.open .nav__links a { padding: 13px 2px; font-size: 1.05rem; }
  .nav.open .nav__cta {
    display: flex; order: 4; flex-basis: 100%; width: 100%; gap: 10px; padding: 10px 0 14px;
  }
  .nav.open .nav__cta .btn { flex: 1; justify-content: center; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero__craft { order: -1; }
  .rocket { width: 190px; }
  .hero { min-height: auto; padding-top: 110px; }
  .a11y__grid, .selfhost__grid, .media__grid { grid-template-columns: 1fr; gap: 34px; }
  .steps, .cards, .insights__grid { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .pg { grid-template-columns: 1fr; }
  .pg__palette, .pg__stage { min-width: 0; }
  .pg__palette { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 14px; }
  .pg__list { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .pg__chip { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .fc-grid { grid-template-columns: repeat(2, 1fr); }
  .dnd { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .fc-grid { grid-template-columns: 1fr; }
  .cta__actions, .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
}
