/* Humanz Marketer Academy: generated by tools/build-assets.mjs from the Cloudflare project. */

/* Humanz Marketer Academy: brand book 2024, kept clean.
   White paper, black type, #4086f7 as highlight and divider colour,
   Poppins for words, Bebas Neue for numbers. */

:root {
  --hz-blue: #4086f7;
  --hz-blue-deep: #2563d9;
  --hz-blue-soft: #94b3f5;
  --hz-blue-wash: #eef4ff;
  --hz-blue-tint: #f6f9ff;
  --hz-ink: #0a0a0b;
  --hz-text: #262a33;
  --hz-muted: #677085;
  --hz-line: #e6e9f0;
  --hz-line-strong: #d3d9e4;
  --hz-paper: #f5f7fb;
  --hz-white: #ffffff;
  --hz-orange: #ff6636;
  --hz-orange-wash: #fff3ee;
  --hz-green: #1f9d6c;
  --hz-green-bright: #40cc96;
  --hz-green-wash: #eefaf4;
  --hz-pink: #bc236f;

  --hz-font: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --hz-num: 'Bebas Neue', 'Poppins', sans-serif;

  --hz-s1: 4px; --hz-s2: 8px; --hz-s3: 12px; --hz-s4: 16px; --hz-s5: 24px;
  --hz-s6: 32px; --hz-s7: 48px; --hz-s8: 64px; --hz-s9: 96px;
  --hz-radius: 14px;
  --hz-radius-sm: 10px;
  --hz-pill: 999px;

  /* Depth: base (flat) → raised (cards) → float (header, dialogs) */
  --hz-raise: 0 1px 2px rgba(20, 45, 110, .05), 0 4px 14px -6px rgba(20, 45, 110, .10);
  --hz-raise-hover: 0 2px 4px rgba(20, 45, 110, .06), 0 14px 30px -12px rgba(40, 90, 200, .22);
  --hz-float: 0 1px 2px rgba(10, 20, 50, .06), 0 24px 60px -20px rgba(20, 50, 130, .28);

  --hz-spring: cubic-bezier(.2, .9, .25, 1.15);
  --hz-ease: cubic-bezier(.22, .8, .3, 1);

  --hz-header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hz-header-h) + 24px); }
body {
  margin: 0;
  background: var(--hz-white);
  color: var(--hz-text);
  font: 400 16.5px/1.7 var(--hz-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--hz-blue-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--hz-blue); }
:focus-visible { outline: 2px solid var(--hz-blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: #d6e4ff; color: var(--hz-ink); }

h1, h2, h3, h4 { color: var(--hz-ink); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--hz-ink); color: #fff; padding: 8px 14px; border-radius: var(--hz-pill); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- shared atoms ---------- */
.eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--hz-blue); line-height: 1.4;
}
.eyebrow--orange { color: var(--hz-orange); }
.num { font-family: var(--hz-num); font-weight: 400; letter-spacing: .01em; line-height: .9; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hz-ink); color: #fff; border-radius: var(--hz-pill);
  padding: 7px 16px 7px 14px; font-size: 13px; font-weight: 600; line-height: 1.2;
  text-decoration: none;
}
.pill b { color: var(--hz-blue-soft); font-weight: 600; }
a.pill:hover { color: #fff; }

.btn {
  --b: var(--hz-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--hz-pill);
  background: var(--b); color: #fff; border: 0;
  font: 600 15px/1 var(--hz-font); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(30, 70, 170, .2), 0 10px 24px -12px rgba(64, 134, 247, .7);
  transition: transform .35s var(--hz-spring), opacity .2s, box-shadow .3s var(--hz-ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30, 70, 170, .2), 0 16px 30px -12px rgba(64, 134, 247, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline-offset: 4px; border-radius: var(--hz-pill); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn--dark { --b: var(--hz-ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.btn--ghost {
  background: transparent; color: var(--hz-ink); box-shadow: inset 0 0 0 1.5px var(--hz-line-strong);
}
.btn--ghost:hover { color: var(--hz-ink); box-shadow: inset 0 0 0 1.5px var(--hz-ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.arrow { display: inline-block; transition: transform .35s var(--hz-spring); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--hz-header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hz-line);
}
.site-header__in { height: 100%; display: flex; align-items: center; gap: var(--hz-s5); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { display: block; border-radius: 4px; transition: opacity .2s; }
.brand__logo:hover { opacity: .75; }
.brand__logo:active { opacity: .6; }
.brand img { width: 104px; height: auto; display: block; }
.brand__divider { width: 1px; height: 22px; background: var(--hz-line-strong); }
.brand__name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: var(--hz-ink); text-decoration: none; }
.brand__name:hover { color: var(--hz-blue-deep); }
.brand__name:active { opacity: .7; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--hz-s4); }
.site-nav__link {
  font-size: 14px; font-weight: 500; color: var(--hz-text); text-decoration: none;
  padding: 8px 4px; position: relative;
}
.site-nav__link::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px;
  background: var(--hz-blue); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--hz-ease);
}
.site-nav__link:hover { color: var(--hz-ink); }
.site-nav__link:hover::after, .site-nav__link[aria-current='page']::after { transform: scaleX(1); }
.site-nav__link:active { opacity: .7; }
.progress-chip {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  color: var(--hz-ink); text-decoration: none; padding: 6px 14px 6px 6px; border-radius: var(--hz-pill);
  background: var(--hz-paper); border: 1px solid var(--hz-line);
  transition: transform .35s var(--hz-spring), box-shadow .3s;
}
.progress-chip:hover { color: var(--hz-ink); transform: translateY(-1px); box-shadow: var(--hz-raise); }
.progress-chip:active { transform: scale(.98); }
.ring { --p: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--hz-blue) calc(var(--p) * 1%), #dfe5f0 0); }
.ring::after { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--hz-paper); }
.who { font-size: 13px; color: var(--hz-muted); white-space: nowrap; }
.who[hidden] { display: none; }
@media (max-width: 860px) {
  .site-nav__link { display: none; }
  .brand__long { display: none; }
  .brand { gap: 10px; }
  .who { display: none; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hz-line); margin-top: var(--hz-s9); padding: var(--hz-s7) 0 var(--hz-s6); font-size: 14px; color: var(--hz-muted); }
.site-footer__grid { display: grid; gap: var(--hz-s6); grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--hz-ink); margin-bottom: var(--hz-s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--hz-text); text-decoration: none; }
.site-footer a:hover { color: var(--hz-blue); text-decoration: underline; }
.site-footer__legal { margin-top: var(--hz-s6); padding-top: var(--hz-s5); border-top: 1px solid var(--hz-line); font-size: 13px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- course layout ---------- */
.course { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--hz-s8); align-items: start; padding-top: var(--hz-s6); }
.toc {
  position: sticky; top: calc(var(--hz-header-h) + 20px);
  max-height: calc(100vh - var(--hz-header-h) - 40px); overflow: auto;
  padding: 4px 8px 24px 0; scrollbar-width: thin;
}
.toc__chapter + .toc__chapter { margin-top: var(--hz-s5); padding-top: var(--hz-s5); border-top: 1px solid var(--hz-line); }
.toc__head { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--hz-ink); margin-bottom: 8px; }
.toc__head .num { font-size: 26px; color: var(--hz-blue); min-width: 26px; }
.toc__head span:last-child { font-weight: 600; font-size: 14px; line-height: 1.3; }
.toc__head:hover span:last-child { color: var(--hz-blue-deep); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc__item a {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  padding: 7px 10px 7px 8px; margin-left: -8px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.4; color: var(--hz-text); text-decoration: none;
  transition: background-color .2s;
}
.toc__item a:hover { background: var(--hz-paper); color: var(--hz-ink); }
.toc__item a:active { background: var(--hz-blue-wash); }
.toc__item a[aria-current='page'] { background: var(--hz-blue-wash); color: var(--hz-ink); font-weight: 600; }
.toc__dot {
  width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  border: 1.5px solid var(--hz-line-strong); background: #fff; display: grid; place-items: center;
}
.toc__item.is-read .toc__dot { background: var(--hz-blue); border-color: var(--hz-blue); }
.toc__item.is-read .toc__dot::after {
  content: ''; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.toc__item a[aria-current='page'] .toc__dot { border-color: var(--hz-blue); box-shadow: 0 0 0 3px rgba(64, 134, 247, .18); }
.toc__group { margin: 10px 0 2px 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue); }
.toc__n { color: var(--hz-muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.toc__quiz { margin-top: var(--hz-s5); padding-top: var(--hz-s5); border-top: 1px solid var(--hz-line); }

.toc-toggle, .toc-scrim { display: none; }
@media (max-width: 1000px) {
  .course { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: var(--hz-s4); }
  .toc-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--hz-s4);
    font: 600 14px var(--hz-font); color: var(--hz-ink); background: var(--hz-paper);
    border: 1px solid var(--hz-line); border-radius: var(--hz-pill); padding: 9px 16px; cursor: pointer;
  }
  .toc-toggle:hover { border-color: var(--hz-line-strong); }
  .toc-toggle:active { transform: scale(.98); }
  .toc {
    position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; z-index: 60;
    background: #fff; padding: 24px 20px 40px; box-shadow: var(--hz-float);
    transform: translateX(-104%); transition: transform .45s var(--hz-ease);
  }
  .toc.is-open { transform: none; }
  .toc-scrim { display: block; position: fixed; inset: 0; background: rgba(10, 15, 30, .32); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .toc-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- lesson ---------- */
.lesson { max-width: 760px; min-width: 0; }
.lesson__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: var(--hz-s6); }
.lesson__meta { font-size: 13px; color: var(--hz-muted); }
.lesson__head { margin-bottom: var(--hz-s6); }
.lesson__head .eyebrow { margin-bottom: 10px; }
.lesson__title { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; }
.lesson__title .num { color: var(--hz-blue); font-family: var(--hz-font); font-weight: 800; letter-spacing: -0.03em; margin-right: .22em; }

/* :where() keeps the reset at zero specificity, so the spacing rule below wins. */
.prose :where(p) { margin: 0; }
.prose > * + * { margin-top: var(--hz-s5); }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: var(--hz-s8); padding-top: var(--hz-s5); border-top: 2px solid var(--hz-blue); width: fit-content; min-width: 120px; }
.prose h2 + * { margin-top: var(--hz-s4); }
.prose h3 { font-size: 20px; margin-top: var(--hz-s6); }
.prose h3 + * { margin-top: var(--hz-s3); }
.prose ul, .prose ol:not([class]) { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--hz-blue); }
.prose strong { color: var(--hz-ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--hz-line); margin: var(--hz-s7) 0; }

/* tables */
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.5; display: block; overflow-x: auto; border: 1px solid var(--hz-line); border-radius: var(--hz-radius-sm); }
.prose thead th { background: var(--hz-ink); color: #fff; text-align: left; font-weight: 600; padding: 12px 14px; white-space: nowrap; }
.prose thead th:first-child { border-top-left-radius: 9px; }
.prose thead th:last-child { border-top-right-radius: 9px; }
.prose td { padding: 12px 14px; border-top: 1px solid var(--hz-line); vertical-align: top; min-width: 120px; }
.prose tbody tr:nth-child(even) td { background: var(--hz-paper); }
.prose td:first-child { font-weight: 600; color: var(--hz-ink); }

/* checklists: GFM task lists, made tickable by academy.ts */
.prose .contains-task-list, .prose ul:has(> .task-list-item) { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose .task-list-item {
  margin: 0 !important; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 12px 16px; border-radius: var(--hz-radius-sm); border: 1px solid var(--hz-line); background: #fff;
  font-size: 15.5px; line-height: 1.55; transition: background-color .2s, border-color .2s;
}
.prose .task-list-item:hover { border-color: var(--hz-blue-soft); }
.prose .task-list-item::marker { content: ''; }
.prose .task-list-item > input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--hz-line-strong); display: grid; place-items: center; background: #fff; cursor: pointer;
  transition: transform .3s var(--hz-spring), background-color .2s, border-color .2s;
}
.prose .task-list-item > input:disabled { cursor: default; }
.prose .task-list-item > input:hover:not(:disabled) { border-color: var(--hz-blue); }
.prose .task-list-item > input:active:not(:disabled) { transform: scale(.88); }
.prose .task-list-item > input:checked { background: var(--hz-blue); border-color: var(--hz-blue); }
.prose .task-list-item > input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.prose .task-list-item.is-done { background: var(--hz-blue-tint); border-color: #cfdcf7; }

/* lead */
.lead p { font-size: 18.5px; line-height: 1.65; color: var(--hz-text); }
.lead p + p { margin-top: var(--hz-s4); }
.lead strong:first-child { color: var(--hz-blue); font-weight: 700; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--hz-s4); }
.stat {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px;
  border-radius: var(--hz-radius); background: #fff; border: 1px solid var(--hz-line); box-shadow: var(--hz-raise);
}
.stat__value { font-family: var(--hz-num); font-size: 58px; line-height: .9; color: var(--hz-blue); }
.stat__label { font-size: 14px; line-height: 1.45; color: var(--hz-text); }

/* objections */
.objection { display: grid; grid-template-columns: 220px 1fr; gap: var(--hz-s6); padding: var(--hz-s5) 0; border-bottom: 1px solid var(--hz-line); }
.prose > .objection + .objection { margin-top: 0; }
.objection__quote { font-weight: 700; font-style: italic; font-size: 19px; line-height: 1.3; color: var(--hz-ink); margin-top: 6px !important; letter-spacing: -.01em; }
.objection__you .eyebrow { margin-bottom: 6px; }
.objection__you > p + p { margin-top: var(--hz-s3); }
.objection__source { font-size: 12.5px; color: var(--hz-muted); margin-top: var(--hz-s3) !important; }
@media (max-width: 680px) { .objection { grid-template-columns: 1fr; gap: var(--hz-s3); } }

/* callouts */
.callout { position: relative; padding: 22px 26px 22px 28px; border-radius: 4px var(--hz-radius) var(--hz-radius) 4px; background: var(--hz-paper); border-left: 5px solid var(--hz-blue); }
.callout__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue-deep); margin-bottom: 8px !important; }
.callout__body > * + * { margin-top: var(--hz-s3); }
.callout--watch { border-left-color: var(--hz-orange); }
.callout--watch .callout__title { color: #e04e1d; }
.callout--key { background: var(--hz-blue-wash); border-left-color: var(--hz-ink); }
.callout--key .callout__title { color: var(--hz-ink); }

/* takeaway */
.takeaway {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--hz-s5); align-items: start;
  padding: 28px 30px; border-radius: var(--hz-radius); margin-top: var(--hz-s7) !important;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(64, 134, 247, .18), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(148, 179, 245, .22), transparent 60%),
    var(--hz-blue-wash);
}
.takeaway__mark { width: 40px; height: auto; margin-top: 4px; }
.takeaway__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue-deep); margin-bottom: 6px !important; }
.takeaway__body p { font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--hz-ink); letter-spacing: -.01em; }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--hz-s4); }
.step { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: var(--hz-s4); margin: 0 !important; }
.step::before {
  content: counter(step); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tone, var(--hz-blue)); color: #fff;
  font: 600 14px/1 var(--hz-font);
}
.steps--cross .step::before { content: '✕'; font-size: 13px; }
.steps--letter .step::before { content: counter(step, upper-alpha); }
.steps--check .step::before { content: '✓'; }
.step__title { display: block; color: var(--hz-ink); font-weight: 700; line-height: 1.45; padding-top: 5px; }
.step__body { color: var(--hz-text); font-size: 15.5px; line-height: 1.6; margin-top: 2px; }
.step__body > * + * { margin-top: 8px; }
.steps--orange { --tone: var(--hz-orange); }
.steps--green { --tone: var(--hz-green-bright); }
.steps--navy { --tone: var(--hz-ink); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--hz-s4); }
.card {
  --accent: var(--hz-blue);
  position: relative; padding: 24px 22px 22px; border-radius: var(--hz-radius-sm); background: #fff;
  border: 1px solid var(--hz-line); box-shadow: var(--hz-raise); overflow: hidden;
}
.card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.card__title { font-weight: 700; color: var(--accent); margin-bottom: 6px !important; }
.card__body { font-size: 15px; line-height: 1.6; }
.card__body > * + * { margin-top: 8px; }
.card--green { --accent: var(--hz-green); }
.card--orange { --accent: var(--hz-orange); }
.card--navy { --accent: var(--hz-ink); }

/* flow */
.flow { margin-inline: 0; }
.flow__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tone); margin-bottom: 12px; }
.flow { --tone: var(--hz-blue); }
.flow--orange { --tone: var(--hz-orange); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 22px; }
.flow__step { position: relative; margin: 0 !important; }
.flow__step:not(:last-child)::after {
  content: '→'; position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  color: var(--tone); font-weight: 700; font-size: 15px;
}
.flow__box {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 84px; padding: 12px; border: 1.5px solid var(--tone); border-radius: 10px; background: #fff;
  color: var(--hz-ink); text-decoration: none; font-size: 14px; line-height: 1.35;
  transition: transform .35s var(--hz-spring), box-shadow .3s;
}
a.flow__box:hover { color: var(--hz-ink); transform: translateY(-2px); box-shadow: var(--hz-raise-hover); }
a.flow__box:active { transform: translateY(0); }
.flow__step.is-first .flow__box { background: var(--tone); color: #fff; }
.flow__n { font-weight: 700; }
.flow__caption { font-size: 13.5px; font-style: italic; color: var(--hz-muted); margin-top: 10px !important; }
@media (max-width: 600px) {
  .flow__steps { grid-template-columns: 1fr 1fr; }
  .flow__step:nth-child(2n)::after { display: none; }
}

/* workflow stages */
.stagegroup { --tone: var(--hz-blue); display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.stagegroup--orange { --tone: var(--hz-orange); }
.stagegroup__label { margin: 0; background: var(--tone); border-radius: 8px; display: grid; place-items: center; }
.stagegroup__label span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stagegroup__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stage { margin: 0 !important; }
.stage__link {
  display: grid; grid-template-columns: 56px 1fr 24px; gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--hz-line);
  text-decoration: none; color: var(--hz-text); box-shadow: var(--hz-raise);
  transition: transform .35s var(--hz-spring), box-shadow .3s, border-color .2s;
}
.stage__link:hover { color: var(--hz-text); transform: translateX(4px); box-shadow: var(--hz-raise-hover); border-color: var(--hz-blue-soft); }
.stage__link:active { transform: translateX(2px) scale(.995); }
.stage__n { font-family: var(--hz-num); font-size: 34px; line-height: 1; color: var(--tone); }
.stage__text strong { display: block; color: var(--hz-ink); font-weight: 700; }
.stage__q { font-size: 14.5px; line-height: 1.5; }
.stage__arrow { color: var(--tone); font-weight: 700; transition: transform .35s var(--hz-spring); }
.stage__link:hover .stage__arrow { transform: translateX(3px); }

/* sources */
.sources { margin-top: var(--hz-s8) !important; padding-top: var(--hz-s4); border-top: 1px solid var(--hz-line); font-size: 12.5px; line-height: 1.6; color: var(--hz-muted); }
.sources__title { font-weight: 700; color: var(--hz-text); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin-bottom: 6px !important; }
.sources__body > * + * { margin-top: 4px; }
.sources a { color: inherit; }

.ref { font-weight: 600; text-decoration: none; color: var(--hz-blue-deep); border-bottom: 1.5px solid rgba(64, 134, 247, .35); transition: border-color .2s; }
.ref:hover { border-bottom-color: var(--hz-blue); }
.pending { color: var(--hz-text); white-space: nowrap; }
.pending__tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hz-muted); background: var(--hz-paper); border: 1px solid var(--hz-line); border-radius: var(--hz-pill); padding: 1px 8px; vertical-align: 2px; }
.pending:has(.pending__tag) { white-space: normal; }

/* local (market) box */
.local {
  position: relative; padding: 24px 26px; border-radius: 4px var(--hz-radius) var(--hz-radius) 4px;
  background: var(--hz-green-wash); border-left: 5px solid var(--hz-green-bright);
}
.local__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-green); margin-bottom: 10px !important; }
.local__flag { display: inline-block; background: var(--hz-green); color: #fff; border-radius: var(--hz-pill); padding: 2px 9px; margin-right: 6px; letter-spacing: .04em; }
.local__body > * + * { margin-top: var(--hz-s3); }
.local__body .stats { margin-top: var(--hz-s4); }
.local__body .sources { margin-top: var(--hz-s4) !important; border-top-color: rgba(31, 157, 108, .2); }
.local__more { display: inline-block; margin-top: var(--hz-s3); font-size: 13px; font-weight: 600; color: var(--hz-green); }
.local__more:hover { color: var(--hz-ink); }
.local .objection { grid-template-columns: 1fr; gap: var(--hz-s3); border-bottom: 0; padding-bottom: 0; }

/* figures and video */
.figure { margin-inline: 0; }
.figure figcaption, .video figcaption { font-size: 13.5px; color: var(--hz-muted); margin-top: 10px; }
.figure__missing { padding: 40px; border: 1.5px dashed var(--hz-line-strong); border-radius: var(--hz-radius); text-align: center; color: var(--hz-muted); }
.loop { position: relative; }
.loop svg { display: block; width: 100%; }
.loop__word { font: 700 24px var(--hz-font); fill: var(--hz-ink); letter-spacing: -.02em; }
.loop__sub { font: 500 13px var(--hz-font); fill: var(--hz-muted); }
.loop__mark { position: absolute; left: 50%; top: 50%; width: 4.2%; transform: translate(-50%, -52%); }
.video { margin-inline: 0; }
.video__facade, .video iframe, .video__placeholder {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--hz-radius); overflow: hidden;
}
.video__facade { cursor: pointer; background: #000; box-shadow: var(--hz-raise); }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .6s var(--hz-ease); }
.video__facade:hover img { opacity: 1; transform: scale(1.02); }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 50%; background: var(--hz-blue); transform: translate(-50%, -50%); box-shadow: 0 10px 30px -8px rgba(64, 134, 247, .8); transition: transform .35s var(--hz-spring); }
.video__play::after { content: ''; position: absolute; left: 31px; top: 24px; border: 14px solid transparent; border-left: 22px solid #fff; border-right: 0; }
.video__facade:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__placeholder {
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(64, 134, 247, .22), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(148, 179, 245, .35), transparent 60%),
    var(--hz-blue-wash);
  border: 1px solid #dbe6fb;
}
.video__soon { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue-deep); }

/* lesson end + pager */
.lesson__end { margin-top: var(--hz-s8); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hz-s4); }
.pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--hz-radius);
  border: 1px solid var(--hz-line); text-decoration: none; color: var(--hz-ink); background: #fff;
  transition: transform .35s var(--hz-spring), box-shadow .3s, border-color .2s;
}
.pager a:hover { color: var(--hz-ink); transform: translateY(-2px); box-shadow: var(--hz-raise-hover); border-color: var(--hz-blue-soft); }
.pager a:active { transform: translateY(0); }
.pager small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-muted); }
.pager strong { font-size: 16px; line-height: 1.35; font-weight: 600; }
.pager__next { grid-column: 2; text-align: right; align-items: flex-end; background: var(--hz-ink) !important; color: #fff !important; border-color: var(--hz-ink) !important; }
.pager__next small { color: var(--hz-blue-soft); }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager__next { grid-column: 1; } }

.read-flag { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--hz-blue-deep); margin-bottom: var(--hz-s4); }
.is-read .read-flag { display: inline-flex; }

/* Reveal animations are opt-in: content is visible by default and the script
   only arms the effect when it runs before first paint. */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--hz-ease), transform .8s var(--hz-ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* podcast */
.podcast { margin: 0; }
.podcast audio { display: block; width: 100%; height: 54px; border-radius: var(--hz-pill); }
.podcast figcaption { font-size: 13.5px; color: var(--hz-muted); margin-top: 10px; }
.podcast__placeholder {
  display: grid; place-content: center; justify-items: center; gap: 16px; aspect-ratio: 16 / 9; border-radius: var(--hz-radius);
  background: radial-gradient(80% 110% at 85% 0%, rgba(64, 134, 247, .45), transparent 60%), var(--hz-ink);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.podcast__bars { display: flex; align-items: center; gap: 6px; height: 56px; }
.podcast__bars i { display: block; width: 6px; border-radius: 3px; background: var(--hz-blue-soft); }
.podcast__bars i:nth-child(1), .podcast__bars i:nth-child(7) { height: 30%; }
.podcast__bars i:nth-child(2), .podcast__bars i:nth-child(6) { height: 55%; }
.podcast__bars i:nth-child(3), .podcast__bars i:nth-child(5) { height: 80%; background: var(--hz-blue); }
.podcast__bars i:nth-child(4) { height: 100%; background: var(--hz-blue); }
.chapters { list-style: none; margin: var(--hz-s4) 0 0; padding: 6px; border: 1px solid var(--hz-line); border-radius: var(--hz-radius); background: #fff; }
.chapter {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: baseline; text-align: left;
  padding: 9px 12px; border: 0; border-radius: var(--hz-radius-sm); background: transparent; cursor: pointer;
  font: 500 14.5px/1.4 var(--hz-font); color: var(--hz-text);
  transition: background-color .2s, color .2s;
}
.chapter:hover { background: var(--hz-blue-tint); color: var(--hz-ink); }
.chapter:active { background: var(--hz-blue-wash); }
.chapter:focus-visible { outline: 2px solid var(--hz-blue); outline-offset: 0; }
.chapter__n { font-family: var(--hz-num); font-size: 17px; letter-spacing: .02em; color: var(--hz-muted); }
.chapter__at { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--hz-muted); }
.chapter[aria-current='true'] { background: var(--hz-blue-wash); color: var(--hz-ink); font-weight: 600; }
.chapter[aria-current='true'] .chapter__n, .chapter[aria-current='true'] .chapter__at { color: var(--hz-blue); }
.chapter[aria-busy='true'] .chapter__at { color: transparent; background: linear-gradient(90deg, var(--hz-line), var(--hz-blue-wash), var(--hz-line)) 0 0 / 200% 100%; border-radius: 4px; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }



/* ---- from src/components/RegisterDialog.astro ---- */
.register {
    width: min(520px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0;
    border-radius: 20px; box-shadow: var(--hz-float); color: var(--hz-text);
  }
  .register::backdrop { background: rgba(8, 14, 32, .45); backdrop-filter: blur(3px); }
  .register[open] { animation: pop .45s var(--hz-spring); }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
  .register__form { position: relative; padding: 36px 32px 30px; display: grid; gap: 16px; }
  .register__close {
    position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: var(--hz-paper); cursor: pointer; font-size: 14px; color: var(--hz-ink);
    transition: transform .3s var(--hz-spring);
  }
  .register__close:hover { transform: rotate(90deg); }
  .register__close:active { transform: rotate(90deg) scale(.92); }
  .register h2 { font-size: 28px; font-weight: 800; margin-top: -8px; }
  .register__intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hz-muted); }
  .field { display: grid; gap: 6px; }
  .field > span { font-size: 13.5px; font-weight: 600; color: var(--hz-ink); }
  .field small { font-weight: 400; color: var(--hz-muted); }
  .field input, .field select {
    font: 400 15.5px var(--hz-font); color: var(--hz-ink); height: 48px; padding: 0 14px;
    border: 1.5px solid var(--hz-line-strong); border-radius: 12px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
  }
  .field input:hover, .field select:hover { border-color: #b7c2d6; }
  .field input:focus, .field select:focus { outline: none; border-color: var(--hz-blue); box-shadow: 0 0 0 4px rgba(64, 134, 247, .16); }
  .check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
  .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hz-blue); cursor: pointer; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .register__error { margin: 0; color: #c0360c; font-size: 14px; font-weight: 500; }
  .register__note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--hz-blue-wash); color: var(--hz-ink); font-size: 14px; line-height: 1.5; }
  .register__note[hidden], .register__error[hidden] { display: none; }
  .register__submit { margin-top: 4px; width: 100%; }
  .register__skip { justify-self: center; font-size: 14px; font-weight: 500; color: var(--hz-muted); }
  .register__skip:hover { color: var(--hz-ink); }
  .register__skip[hidden] { display: none; }


/* ---- from src/pages/index.astro ---- */
.hero { position: relative; overflow: hidden; padding: var(--hz-s8) 0 var(--hz-s8); }
  .hero::before {
    content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; pointer-events: none;
    background:
      radial-gradient(40% 40% at 70% 40%, rgba(64, 134, 247, .14), transparent 70%),
      radial-gradient(30% 30% at 40% 70%, rgba(148, 179, 245, .18), transparent 70%);
  }
  .hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--hz-s7); align-items: center; }
  .hero h1 { font-size: clamp(52px, 8.4vw, 112px); font-weight: 800; line-height: .95; margin-top: var(--hz-s5); letter-spacing: -0.045em; }
  .hero h1 span { color: var(--hz-blue); }
  .hero__sub { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 34ch; margin: var(--hz-s5) 0 0; color: var(--hz-text); }
  .hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--hz-s6); }
  .hero__note { font-size: 13.5px; color: var(--hz-muted); margin: var(--hz-s4) 0 0; }

  .hero__art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
  .halo { position: absolute; inset: 12%; display: grid; place-items: center; }
  .halo__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(64, 134, 247, .25); }
  .halo__ring--1 { inset: 0; background: radial-gradient(circle, rgba(64, 134, 247, .10), transparent 65%); }
  .halo__ring--2 { inset: 16%; border-style: dashed; border-color: rgba(64, 134, 247, .3); animation: spin 60s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .halo__mark { width: 34%; filter: drop-shadow(0 0 0 #fff) drop-shadow(0 18px 30px rgba(64, 134, 247, .35)); }
  .float {
    position: absolute; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
    width: 250px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--hz-float);
    font-size: 13px; line-height: 1.4; color: var(--hz-text); border: 1px solid var(--hz-line);
    animation: bob 7s ease-in-out infinite;
  }
  .float .num { font-size: 40px; color: var(--hz-blue); }
  .float--a { top: 4%; left: -4%; }
  .float--b { top: 44%; right: -6%; animation-delay: -2.3s; }
  .float--c { bottom: 2%; left: 4%; animation-delay: -4.6s; }
  @keyframes bob { 50% { transform: translateY(-8px); } }

  .evidence { border-block: 1px solid var(--hz-line); background: var(--hz-paper); }
  .evidence__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 18px; }
  .evidence span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue); }
  .evidence p { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--hz-ink); }

  .agenda, .how { padding-top: var(--hz-s9); }
  .agenda__head { display: grid; gap: 8px; margin-bottom: var(--hz-s6); }
  .agenda__head h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
  .agenda__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--hz-s8); }
  .agenda__item {
    display: grid; grid-template-columns: 1fr auto; gap: var(--hz-s5); align-items: center;
    padding: 28px 4px; border-bottom: 1px solid var(--hz-line); text-decoration: none; color: var(--hz-ink); text-align: right;
  }
  .agenda__text strong { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; transition: color .2s; }
  .agenda__summary { display: block; font-size: 14.5px; line-height: 1.55; color: var(--hz-muted); margin-top: 6px; }
  .agenda__meta { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-muted); }
  .agenda__num { font-size: 84px; color: var(--hz-blue); min-width: 1.2em; transition: transform .45s var(--hz-spring); }
  .agenda__item:hover { color: var(--hz-ink); }
  .agenda__item:hover strong { color: var(--hz-blue-deep); }
  .agenda__item:hover .agenda__num { transform: translateX(-6px); }
  .agenda__item:active .agenda__num { transform: translateX(-3px) scale(.97); }

  .how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hz-s5); }
  .how__steps li { padding: 28px 26px; border-radius: var(--hz-radius); border: 1px solid var(--hz-line); box-shadow: var(--hz-raise); background: #fff; }
  .how__steps .num { display: block; font-size: 56px; color: var(--hz-blue); }
  .how__steps strong { display: block; font-size: 20px; color: var(--hz-ink); margin-top: 10px; letter-spacing: -.01em; }
  .how__steps p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }

  .watch {
    margin-top: var(--hz-s8); display: grid; grid-template-columns: 220px 1fr auto; gap: var(--hz-s5); align-items: center;
    padding: var(--hz-s4); padding-right: var(--hz-s6); border-radius: 20px; text-decoration: none; color: var(--hz-text);
    background: var(--hz-paper); border: 1px solid var(--hz-line);
    transition: transform .35s var(--hz-spring), box-shadow .3s var(--hz-ease), border-color .2s;
  }
  .watch:hover { color: var(--hz-text); transform: translateY(-2px); box-shadow: var(--hz-raise-hover); border-color: var(--hz-line-strong); }
  .watch:active { transform: scale(.995); }
  .watch__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
  .watch__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .watch__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; border-radius: 50%; background: var(--hz-blue); transform: translate(-50%, -50%); box-shadow: 0 8px 20px -6px rgba(64, 134, 247, .8); }
  .watch__play::after { content: ''; position: absolute; left: 18px; top: 14px; border: 8px solid transparent; border-left: 12px solid #fff; border-right: 0; }
  .watch__text { display: grid; gap: 4px; }
  .watch__text strong { font-size: clamp(18px, 1.8vw, 22px); color: var(--hz-ink); letter-spacing: -.015em; line-height: 1.3; }
  .watch__sub { font-size: 14.5px; color: var(--hz-muted); }
  .watch__go { font-size: 22px; font-weight: 700; color: var(--hz-blue); transition: transform .35s var(--hz-spring); }
  .watch:hover .watch__go { transform: translateX(4px); }

  .band {
    margin-top: var(--hz-s9); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--hz-s5);
    padding: var(--hz-s7); border-radius: 24px; color: #fff; position: relative; overflow: hidden;
    background:
      radial-gradient(60% 120% at 100% 0%, rgba(64, 134, 247, .55), transparent 60%),
      radial-gradient(40% 80% at 0% 100%, rgba(64, 134, 247, .25), transparent 70%),
      var(--hz-ink);
  }
  .band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
  .band p { margin: 8px 0 0; color: #c9d6f2; font-size: 17px; }

  @media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { max-width: 420px; margin-top: var(--hz-s5); }
    .agenda__list { grid-template-columns: 1fr; }
    .how__steps { grid-template-columns: 1fr; }
    .watch { grid-template-columns: 1fr; padding-right: var(--hz-s4); }
    .watch__go { display: none; }
  }
  @media (max-width: 520px) {
    .float { width: 200px; padding: 10px 12px; font-size: 12px; }
    .float .num { font-size: 32px; }
    .float--b { right: -2%; }
    .agenda__num { font-size: 60px; }
    .agenda__text strong { font-size: 22px; }
    .band { padding: var(--hz-s6) var(--hz-s5); }
  }
  @media (prefers-reduced-motion: reduce) { .float, .halo__ring--2 { animation: none; } }


/* ---- from src/pages/[chapter]/index.astro ---- */
.chapter-hero { display: grid; grid-template-columns: auto 1fr; gap: var(--hz-s7); align-items: start; padding-block: var(--hz-s8) var(--hz-s7); }
  .chapter-hero__num { font-size: clamp(120px, 18vw, 230px); color: var(--hz-blue); line-height: .78; }
  .chapter-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; margin-top: var(--hz-s5); }
  .chapter-hero__summary { font-size: 20px; line-height: 1.55; margin: var(--hz-s4) 0 0; max-width: 46ch; color: var(--hz-text); }
  .chapter-hero__quote { margin: var(--hz-s5) 0 var(--hz-s6); padding-left: var(--hz-s4); border-left: 3px solid var(--hz-blue); max-width: 60ch; color: var(--hz-muted); font-style: italic; }
  .chapter-hero__quote p { margin: 0; }
  .lesson-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--hz-ink); }
  .lesson-list__item a {
    display: grid; grid-template-columns: 110px 1fr 28px; gap: var(--hz-s5); align-items: center;
    padding: 22px 8px; border-bottom: 1px solid var(--hz-line); text-decoration: none; color: var(--hz-text);
    transition: background-color .25s;
  }
  .lesson-list__item a:hover { background: var(--hz-blue-tint); color: var(--hz-text); }
  .lesson-list__item a:active { background: var(--hz-blue-wash); }
  .lesson-list__n { font-size: 40px; color: var(--hz-blue); }
  .lesson-list__group {
    padding: 28px 8px 10px 0; margin-left: calc(110px + var(--hz-s5));
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue);
    border-bottom: 1px solid var(--hz-line);
  }

  .lesson-list__text strong { display: block; font-size: 19px; line-height: 1.3; color: var(--hz-ink); letter-spacing: -.01em; }
  .lesson-list__text span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--hz-muted); margin-top: 2px; max-width: 70ch; }
  .lesson-list__state { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--hz-line-strong); display: grid; place-items: center; }
  .lesson-list__item.is-read .lesson-list__state { background: var(--hz-blue); border-color: var(--hz-blue); }
  .lesson-list__item.is-read .lesson-list__state::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
  @media (max-width: 760px) {
    .chapter-hero { grid-template-columns: 1fr; gap: 0; padding-top: var(--hz-s6); }
    .lesson-list__item a { grid-template-columns: 48px 1fr 24px; gap: var(--hz-s3); align-items: start; padding: 20px 4px; }
    .lesson-list__n { font-size: 28px; line-height: 1; padding-top: 1px; }
    .lesson-list__state { margin-top: 2px; }
    .lesson-list__text strong { font-size: 18px; }
    .lesson-list__group { margin-left: calc(48px + var(--hz-s3)); padding-top: 24px; }

  }


/* ---- from src/pages/quiz/index.astro ---- */
.qhub { padding-top: var(--hz-s8); }
  .qhub h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; margin-top: var(--hz-s5); }
  .qhub__lead { font-size: 19px; max-width: 58ch; margin: var(--hz-s4) 0 0; }
  .qhub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hz-s5); margin-top: var(--hz-s7); }
  .qcard { padding: 32px; border-radius: 20px; border: 1px solid var(--hz-line); box-shadow: var(--hz-raise); background: #fff; display: grid; gap: 12px; align-content: start; }
  .qcard--advanced { background: radial-gradient(80% 90% at 100% 0%, rgba(64,134,247,.16), transparent 60%), #fff; }
  .qcard__top { display: flex; justify-content: space-between; align-items: center; }
  .qcard__level { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue); }
  .qcard__state { font-size: 13px; font-weight: 600; color: var(--hz-green); }
  .qcard__count { margin: 0; font-size: 18px; font-weight: 600; color: var(--hz-ink); }
  .qcard__count .num { font-size: 72px; color: var(--hz-blue); margin-right: 8px; vertical-align: -6px; }
  .qcard__blurb { margin: 0; }
  .qcard__rule { margin: 0 0 8px; font-size: 14px; color: var(--hz-muted); }
  .qcard .btn { justify-self: start; }
  .qhub__cert { margin-top: var(--hz-s6); font-weight: 500; }
  @media (max-width: 760px) { .qhub__grid { grid-template-columns: 1fr; } }


/* ---- from src/pages/quiz/[id].astro ---- */
.quiz { padding-top: var(--hz-s7); max-width: 820px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .quiz__panel { margin-top: var(--hz-s6); }
  .quiz__panel[hidden] { display: none; }
  .quiz h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
  .quiz__lead { font-size: 18px; margin: var(--hz-s4) 0 var(--hz-s6); max-width: 60ch; }
  .quiz__msg { margin-top: var(--hz-s4); color: #c0360c; font-weight: 500; }
  .quiz__bar { height: 6px; border-radius: 6px; background: var(--hz-line); overflow: hidden; }
  .quiz__bar-fill { display: block; height: 100%; width: 100%; background: var(--hz-blue); border-radius: 6px; transform-origin: left; transform: scaleX(0); transition: transform .5s var(--hz-ease); }
  .quiz__count { margin: var(--hz-s4) 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue); }
  .quiz__q { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; outline: none; }
  .quiz__options { border: 0; padding: 0; margin: var(--hz-s5) 0 0; display: grid; gap: 10px; }
  .quiz__options label {
    display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; padding: 16px 18px;
    border: 1.5px solid var(--hz-line); border-radius: 14px; cursor: pointer; background: #fff; font-size: 16px; line-height: 1.5;
    transition: border-color .2s, background-color .2s, transform .3s var(--hz-spring);
  }
  .quiz__options label:hover { border-color: var(--hz-blue-soft); }
  .quiz__options label:active { transform: scale(.99); }
  .quiz__options label:has(input:focus-visible) { outline: 2px solid var(--hz-blue); outline-offset: 2px; }
  .quiz__options input { position: absolute; opacity: 0; pointer-events: none; }
  .quiz__options .letter { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--hz-paper); font-weight: 700; font-size: 14px; color: var(--hz-ink); transition: background-color .2s, color .2s; }
  .quiz__options label:has(input:checked) { border-color: var(--hz-blue); background: var(--hz-blue-tint); }
  .quiz__options label:has(input:checked) .letter { background: var(--hz-blue); color: #fff; }
  .quiz__hint { margin-top: var(--hz-s5); }
  .quiz__hint summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--hz-blue-deep); width: fit-content; }
  .quiz__hint summary:hover { color: var(--hz-blue); }
  .quiz__hint p { margin: 10px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--hz-blue-wash); font-size: 15px; }
  .quiz__nav { display: flex; justify-content: space-between; margin-top: var(--hz-s6); }
  .quiz__nav [data-prev][disabled] { visibility: hidden; }

  .score { padding: 32px; border-radius: 22px; background: radial-gradient(70% 120% at 100% 0%, rgba(64,134,247,.18), transparent 60%), var(--hz-blue-wash); }
  .score.is-pass { background: radial-gradient(70% 120% at 100% 0%, rgba(64,204,150,.25), transparent 60%), var(--hz-green-wash); }
  .score__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hz-blue-deep); }
  .score__value { margin: 6px 0 0; font-size: 28px; font-weight: 600; color: var(--hz-muted); }
  .score__value .num { font-size: 110px; color: var(--hz-ink); margin-right: 6px; }
  .score__verdict { margin: 8px 0 0; font-size: 19px; font-weight: 500; color: var(--hz-ink); max-width: 56ch; }
  .score__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--hz-s5); }
  .review__title { font-size: 28px; font-weight: 800; margin: var(--hz-s8) 0 var(--hz-s5); }
  .review { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hz-s4); }
  .review li { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--hz-line); border-left: 5px solid var(--hz-green-bright); background: #fff; }
  .review li.is-wrong { border-left-color: var(--hz-orange); }
  .review .rq { margin: 0; font-weight: 700; color: var(--hz-ink); line-height: 1.45; }
  .review .ra { margin: 10px 0 0; font-size: 15px; }
  .review .ra b { color: var(--hz-ink); }
  .review .rx { margin: 6px 0 0; font-size: 14.5px; color: var(--hz-muted); }
  .review .rl { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }


/* ---- from src/pages/certificate/index.astro ---- */
.certpage { padding-top: var(--hz-s7); }
  .certpage__msg { font-size: 18px; color: var(--hz-muted); }
  .certpage__title { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; margin-top: var(--hz-s5); }
  .certpage__lead { font-size: 19px; max-width: 58ch; margin: var(--hz-s4) 0 0; }
  .cert {
    position: relative; overflow: hidden; aspect-ratio: 297 / 210; width: 100%; max-width: 1040px; margin-inline: auto;
    padding: clamp(24px, 5.5%, 64px) clamp(24px, 7%, 80px); background: #fff; border-radius: 6px;
    box-shadow: 0 1px 2px rgba(10,20,50,.06), 0 40px 80px -40px rgba(20,50,130,.35); border: 1px solid var(--hz-line);
    display: flex; flex-direction: column; container-type: inline-size;
  }
  .cert__edge { position: absolute; inset: 0 0 auto; height: 10px; background: var(--hz-blue); }
  .cert__head { display: flex; align-items: center; gap: 14px; }
  .cert__head img { width: clamp(90px, 13cqw, 130px); }
  .cert__kicker { padding-left: 14px; border-left: 1px solid var(--hz-line-strong); font-weight: 600; font-size: clamp(11px, 1.5cqw, 15px); }
  .cert__label { margin: auto 0 0; font-size: clamp(10px, 1.3cqw, 13px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hz-blue); }
  .cert__level { margin: 0; }
  .cert__level .num { font-size: clamp(48px, 10cqw, 110px); color: var(--hz-ink); line-height: .9; }
  .cert__this { margin: clamp(6px, 1.5cqw, 16px) 0 0; font-size: clamp(11px, 1.6cqw, 16px); color: var(--hz-muted); }
  .cert__name { font-size: clamp(26px, 5.4cqw, 58px); font-weight: 800; letter-spacing: -.03em; color: var(--hz-ink); border-bottom: 2px solid var(--hz-blue); padding-bottom: .15em; width: fit-content; max-width: 70%; }
  .cert__body { margin: clamp(8px, 1.6cqw, 18px) 0 0; font-size: clamp(11px, 1.6cqw, 16.5px); max-width: 58ch; line-height: 1.6; }
  .cert__foot { margin-top: auto; padding-top: clamp(10px, 2cqw, 24px); display: flex; flex-wrap: wrap; gap: clamp(12px, 4cqw, 48px); font-size: clamp(9px, 1.25cqw, 13px); }
  .cert__foot span { display: block; color: var(--hz-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .85em; font-weight: 600; }
  .cert__foot strong { color: var(--hz-ink); font-weight: 600; word-break: break-all; }
  .cert__mark { position: absolute; right: -2%; bottom: -8%; width: 30%; opacity: .1; }
  .certpage__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--hz-s6); }
  @media print {
    @page { size: A4 landscape; margin: 0; }
    .site-header, .site-footer, .skip, #cookieyes, .certpage__actions, .certpage__msg { display: none !important; }
    .certpage { padding: 0; width: 100%; }
    .cert { box-shadow: none; border: 0; border-radius: 0; width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  }


/* ---- from src/pages/progress/index.astro ---- */
.prog { padding-top: var(--hz-s8); }
  .prog h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; margin-top: var(--hz-s5); }
  .prog__lead { font-size: 18px; margin: var(--hz-s3) 0 var(--hz-s5); max-width: 60ch; }
  .prog__actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .prog__actions [hidden] { display: none; }
  .prog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--hz-s6); margin-top: var(--hz-s7); }
  .prog__head { display: flex; align-items: baseline; gap: 10px; font-weight: 700; color: var(--hz-ink); text-decoration: none; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--hz-ink); }
  .prog__head .num { font-size: 34px; color: var(--hz-blue); }
  .prog ol { list-style: none; margin: 0; padding: 0; }
  .prog__reset { margin-top: var(--hz-s7); }
  .prog__reset button { border: 0; background: none; padding: 0; font: 500 14px var(--hz-font); color: var(--hz-muted); text-decoration: underline; cursor: pointer; }
  .prog__reset button:hover { color: var(--hz-ink); }


/* ---- from src/pages/[market]/index.astro ---- */
.mkt { padding-top: var(--hz-s8); }
  .mkt h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; margin-top: var(--hz-s5); }
  .mkt h1 span { color: var(--hz-green); }
  .mkt__lead { font-size: 19px; max-width: 60ch; margin: var(--hz-s4) 0 var(--hz-s7); }
  .mkt__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--hz-s4); }
  .mkt__list a { display: grid; gap: 6px; height: 100%; padding: 24px; border-radius: 16px; border: 1px solid var(--hz-line); border-top: 5px solid var(--hz-green-bright); background: #fff; color: var(--hz-text); text-decoration: none; box-shadow: var(--hz-raise); transition: transform .35s var(--hz-spring), box-shadow .3s; }
  .mkt__list a:hover { color: var(--hz-text); transform: translateY(-3px); box-shadow: var(--hz-raise-hover); }
  .mkt__list a:active { transform: translateY(-1px); }
  .mkt__list strong { font-size: 19px; color: var(--hz-ink); letter-spacing: -.01em; }
  .mkt__list span { font-size: 14.5px; line-height: 1.55; }
  .mkt__list small { font-size: 12.5px; font-weight: 600; color: var(--hz-green); margin-top: 6px; }


/* ---- from src/pages/[market]/[slug].astro ---- */
.mktpage { padding-top: var(--hz-s7); }
  .mktpage__back { margin-top: var(--hz-s7); }


/* ---- from src/pages/watch-and-listen.astro ---- */
.media-page { padding: var(--hz-s8) 0 var(--hz-s9); }
  .media-page__head { max-width: 760px; }
  .media-page__head h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: var(--hz-s4); }
  .media-page__head h1 span { color: var(--hz-blue); white-space: nowrap; }
  .media-page__head p { font-size: 18.5px; line-height: 1.65; margin: var(--hz-s5) 0 0; max-width: 60ch; }

  .media-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--hz-s6); margin-top: var(--hz-s7); align-items: start; }
  .media-card { min-width: 0; }
  .media-card__head { display: flex; align-items: center; gap: var(--hz-s4); margin-bottom: var(--hz-s4); }
  .media-card__head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
  .media-card__head p { margin: 2px 0 0; font-size: 14.5px; color: var(--hz-muted); line-height: 1.45; }
  .media-card__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--hz-blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(64, 134, 247, .8); }
  .media-card__icon--ink { background: var(--hz-ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
  .media-card__icon svg { width: 24px; height: 24px; }

  .media-next {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hz-s4);
    margin-top: var(--hz-s8); padding: var(--hz-s5) var(--hz-s6); border-radius: var(--hz-radius);
    background: var(--hz-paper); border: 1px solid var(--hz-line);
  }
  .media-next__text strong { display: block; font-size: 19px; color: var(--hz-ink); letter-spacing: -.01em; }
  .media-next__text span { font-size: 15px; color: var(--hz-muted); }

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