/* Reset, typography, focus, buttons and the small shared pieces every page uses. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* pages swap while loading: the scrollbar appearing must not shift the layout */
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
h1, h2, h3, h4, p { margin-block: 0; }
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
ol, ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.bz-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.bz-skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600;
}
.bz-skip:focus { top: 8px; color: var(--bg); }

.bz-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }

.bz-container { max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }

/* Headings */
.bz-display { font-family: var(--font-head); font-weight: 800; line-height: 1; letter-spacing: -0.3px; }
.bz-h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; }
.bz-h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; }
.bz-h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.bz-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.bz-muted { color: var(--muted); }
.bz-small { font-size: 13px; }

/* Buttons */
.bz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; line-height: 1.2; text-align: center;
  background: var(--surface); color: var(--ink);
  transition: transform .1s ease;
}
.bz-btn:active { transform: translateY(2px); }
.bz-btn--accent { background: var(--accent); color: #FFFFFF; box-shadow: 0 3px 0 var(--accent-shadow); }
.bz-btn--accent:hover { color: #FFFFFF; }
.bz-btn--play { background: var(--play); color: var(--play-ink); box-shadow: 0 4px 0 var(--play-shadow); font-family: var(--font-head); font-weight: 800; font-size: 24px; padding: 14px 32px; border-radius: 18px; }
.bz-btn--play:hover { color: var(--play-ink); }
.bz-btn--teal { background: var(--teal-btn); color: #FFFFFF; box-shadow: 0 2px 0 var(--teal-shadow); }
.bz-btn--teal:hover { color: #FFFFFF; }
.bz-btn--ghost { background: transparent; border-color: var(--line); }
.bz-btn--outline { background: transparent; border-color: var(--ink); }
.bz-btn--small { padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.bz-btn--block { display: flex; width: 100%; }
.bz-btn:disabled, .bz-btn[aria-disabled="true"] { opacity: .55; box-shadow: none; transform: none; }
.bz-btn--accent:disabled { background: var(--soft); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bz-btn { transition: none; } .bz-btn:active { transform: none; } }

.bz-iconbtn {
  width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; position: relative; padding: 0;
}
.bz-iconbtn:hover { border-color: var(--ink); }
.bz-iconbtn .bz-icon { width: 20px; height: 20px; }

.bz-badge-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Panels and chips */
.bz-panel { background: var(--surface); border-radius: 20px; padding: 20px 22px; }
.bz-panel--shadow { box-shadow: 0 3px 0 var(--line); }
.bz-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line);
}
.bz-chip:hover { color: var(--ink); border-color: var(--ink); }
.bz-chip[aria-current="true"], .bz-chip[aria-pressed="true"], .bz-chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bz-chip--small { padding: 6px 12px; font-size: 13px; }
.bz-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.bz-pill--level { background: var(--level-soft); color: var(--level-ink); }
.bz-pill--teal { background: var(--teal-soft); color: var(--teal-ink); }
.bz-pill--blue { background: var(--blue-soft); color: var(--blue-ink); }
.bz-pill--soft { background: var(--soft); color: var(--muted); }
.bz-pill--accent { background: var(--accent-soft); color: var(--accent-text); }

/* Forms */
.bz-field { display: flex; flex-direction: column; gap: 6px; }
.bz-field > label, .bz-label { font-size: 14px; font-weight: 600; }
.bz-input, .bz-select, .bz-textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg); color: var(--ink);
}
.bz-select { appearance: auto; }
.bz-input:focus-visible, .bz-select:focus-visible, .bz-textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.bz-input::placeholder { color: var(--muted); opacity: 1; }
.bz-check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.bz-check input { width: 20px; height: 20px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

/* Segmented control */
.bz-seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--soft); gap: 2px; }
.bz-seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.bz-seg button[aria-pressed="true"], .bz-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }

/* Progress bar */
.bz-bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bz-bar > span { display: block; height: 100%; background: var(--play); border-radius: 999px; }
.bz-bar--teal > span { background: var(--teal); }

.bz-stack { display: flex; flex-direction: column; gap: 16px; }
.bz-row-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bz-spacer { flex: 1; }

.bz-page { max-width: var(--page-max); margin: 0 auto; padding: 28px var(--gutter) 56px; display: flex; flex-direction: column; gap: 34px; }

.bz-loading { padding: 80px 0; text-align: center; color: var(--muted); }
.bz-error { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 720px) {
  .bz-page { padding-top: 16px; gap: 24px; padding-bottom: 96px; }
}
.bz-btn--play.bz-btn--small { font-family: var(--font-text); font-size: 14px; padding: 7px 14px; border-radius: 10px; box-shadow: 0 2px 0 var(--play-shadow); }
.bz-page > *, .bz-stack > * { min-width: 0; }
/* The crawlable text the worker writes into <body> (seo.js prerenderHtml); src/main.js removes it when the app starts. */
.bz-prerender { max-width: 760px; margin: 0 auto; padding: 24px 16px; font-family: var(--font-text, sans-serif); line-height: 1.5; }
.bz-prerender h1 { font-family: var(--font-head, inherit); }
.bz-prerender ul { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; }
