/*
 * AI Coding Kickstart by Axonova — one hand-written stylesheet. Phone first (390px).
 *
 * A sibling of axonovatechnologies.com: the same indigo, slate and coral, the
 * same Space Grotesk / DM Sans pairing, the same rounded geometry. What is
 * ours: the live batch. A ticket-like batch card with a seat map of the real
 * seats, and one deep-indigo band holding the Sunday timeline. Caveat (the
 * Axonova handwriting) appears only where a teacher would write by hand: the
 * margin notes on the prompt recipe and the signatures on the certificate.
 *
 * Type: Space Grotesk (headings), DM Sans (reading), DM Mono (code),
 * Caveat (handwriting). All self-hosted, latin subset, OFL (fonts/OFL.txt).
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
/* Metric-matched fallbacks so the swap does not shove the layout around. */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial"); size-adjust: 99%; ascent-override: 97%; descent-override: 30%; line-gap-override: 0%; }

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #7c8aa0;  /* inputs, 3.5:1 on white */
  /* text: Axonova slate */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;          /* 6.9:1 on every light surface */
  --faint: #64748b;          /* decoration and large text only */
  /* brand */
  --primary: #4f46e5;
  --primary-hover: #4338ca;  /* #6366f1 under white text is 4.47:1, just under AA */
  --primary-text: #4f46e5;   /* links and headings on light surfaces */
  --primary-wash: #eef2ff;
  --primary-ring: #c7d2fe;
  --on-primary: #ffffff;
  --deep: #1e1b4b;
  --coral: #ef6461;          /* fills and decoration */
  --coral-text: #c2413e;     /* coral as text on light: 5.1:1 */
  --coral-wash: #fef1f0;
  --amber: #f59e0b;
  --amber-text: #92400e;
  --amber-wash: #fffbeb;
  --cyan: #06b6d4;
  --cyan-text: #0e7490;
  --cyan-wash: #ecfeff;
  /* code */
  --code-bg: #0f172a;
  --code-head: #1e293b;
  --code-ink: #e2e8f0;
  --code-muted: #cbd5e1;

  --r-sm: .5rem;
  --r: .75rem;
  --r-lg: 1.25rem;
  --r-xl: 1.5rem;
  --wrap: 1200px;
  --measure: 35.5em;       /* about 70-75 characters of DM Sans body text */
  --lift: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -18px rgba(30, 27, 75, .28);
  --font: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Space Grotesk Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-alt: #131c31;
    --surface: #1e293b;
    --surface-2: #172135;
    --border: #334155;
    --border-strong: #64748b;
    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted: #a3b0c2;
    --faint: #94a3b8;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-text: #a5b4fc;
    --primary-wash: #1e1b4b;
    --primary-ring: #4338ca;
    --deep: #1e1b4b;
    --coral-text: #f8a5a2;
    --coral-wash: #3a1f2b;
    --amber-text: #fbbf24;
    --amber-wash: #33270f;
    --cyan-text: #67e8f9;
    --cyan-wash: #0c2a33;
    --code-bg: #0b1222;
    --code-head: #172135;
    --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
  }
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--primary-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
::selection { background: var(--primary-ring); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 520px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.stack > * + * { margin-top: 16px; }
.stack > input[type=hidden] + :not(input[type=hidden]) { margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--primary-text); padding: 10px 14px; z-index: 100; border: 2px solid var(--primary-text); border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

.env-banner {
  background: var(--amber-wash); color: var(--ink); font: 400 .75rem/1.4 var(--mono);
  text-align: center; padding: 4px 8px; border-bottom: 1px solid var(--border);
}

/* Display type */
.page-title { font-size: clamp(2rem, 1.55rem + 1.9vw, 2.9rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: .45em; }
.section-title { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: .6em; text-wrap: balance; }

/* ---- Brand lockup -------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.bm-ring { fill: var(--primary-ring); }
.bm-bg { fill: #4f46e5; }
.bm-chev { stroke: #ffffff; }
.bm-cur { stroke: #ff8f8c; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font: 700 1.06rem/1.1 var(--display); letter-spacing: -.02em; }
.brand-by { font: 500 .78rem/1.3 var(--font); color: var(--muted); }

/* ---- Header / footer ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: .95rem; white-space: nowrap; }
.site-nav a:not(.btn), .site-nav .link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.site-nav a:not(.btn):hover, .site-nav .link-btn:hover { color: var(--primary-text); background: var(--primary-wash); text-decoration: none; }
.site-nav .btn { margin-left: 8px; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-text); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.link-btn:hover { text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .hide-sm, .site-nav a.hide-sm { display: none; }
  .site-nav { gap: 0; font-size: .92rem; }
  .site-nav a:not(.btn), .site-nav .link-btn { padding: 0 8px; }
  .site-nav .btn { margin-left: 4px; }
  .site-header .brand-by { display: none; }
  .site-header .brand-name { font-size: .98rem; max-width: 6.2em; line-height: 1.08; }
  .brand-mark { width: 32px; height: 32px; }
}
/* Under 375px the name hides only when the nav is crowded (logged in + buy button, or admin). */
@media (max-width: 374px) {
  .site-header .brand-text { display: none; }
  .header-inner:not(:has(.site-nav > :not(.hide-sm) ~ :not(.hide-sm) ~ :not(.hide-sm))) .brand-text { display: grid; }
  .site-header .brand-name { font-size: .92rem; }
}

.site-footer { margin-top: 0; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--ink-2); }
.footer-inner { display: grid; gap: 20px; }
.footer-lockup { margin-bottom: 10px; }
.footer-by { max-width: 34em; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; align-content: start; }
.footer-links a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { margin: 0; color: var(--muted); }
.page-home .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
  .page-home .site-footer { padding-bottom: 40px; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 22px;
  background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); border-radius: var(--r);
  font: 600 1rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); text-decoration: none; box-shadow: 0 8px 24px -6px rgba(79, 70, 229, .45); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .75; cursor: progress; box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--primary-wash); color: var(--primary-text); border-color: var(--primary-ring); box-shadow: none; }
.btn-light { background: #ffffff; color: #1e1b4b; border-color: #ffffff; }
.btn-light:hover { background: #e0e7ff; border-color: #e0e7ff; color: #1e1b4b; box-shadow: none; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.06rem; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--coral-text); border-color: var(--coral-text); }
.btn-danger:hover { background: var(--coral-wash); color: var(--coral-text); border-color: var(--coral-text); box-shadow: none; }
@media (max-width: 560px) { .btn-block-sm { width: 100%; } }
.icon-btn { display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--r-sm); min-width: 44px; min-height: 44px; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---- Forms --------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: .875rem; }
.field-hint { margin: 0; font-size: .85rem; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=number], input[type=date], input[type=tel], input[type=search], textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r);
}
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input:focus, textarea:focus { outline: none; border-color: var(--primary-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--coral-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 20%, transparent); }
select {
  min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background-color: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r);
}
select:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 1px; }
.otp-input { font: 500 1.7rem/1 var(--mono) !important; letter-spacing: .4em; text-align: center; padding-left: .4em !important; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.form-error { color: var(--coral-text); font-weight: 600; margin: 0; padding: 10px 14px; background: var(--coral-wash); border-radius: var(--r); }
.form-ok { color: var(--ink); font-weight: 600; margin: 0; padding: 12px 14px 12px 46px; position: relative; background: var(--primary-wash); border-radius: var(--r); }
.form-ok::before {
  content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary);
}
.form-ok::after { content: ""; position: absolute; left: 20px; top: 18px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.is-sent .field, .is-sent [type=submit], .is-sent .waitlist-lead { display: none; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; }
.row-actions > a:not(.btn), .row-actions .link-btn, .toggle-all .link-btn, .tap { display: inline-flex; align-items: center; min-height: 44px; }
.coupon summary { cursor: pointer; color: var(--primary-text); font-size: .95rem; display: inline-flex; align-items: center; min-height: 44px; }
.coupon .field { margin-top: 6px; }
.buying-for { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 0 0 14px; padding: 6px 14px; background: var(--surface-2); border-radius: var(--r); font-size: .95rem; }
.buying-for p { margin: 0; overflow-wrap: anywhere; }
.buying-for .link-btn { min-height: 44px; }
.agree { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .92rem; line-height: 1.5; }
.agree input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.agree input[aria-invalid="true"] { outline: 2px solid var(--coral-text); outline-offset: 2px; }
.agree label { cursor: pointer; color: var(--ink-2); }
.buy-summary { padding: 14px 16px; border-radius: var(--r-lg); background: var(--primary-wash); }
.buy-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--ink-2); }
.buy-price strong { font: 700 2.1rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.buy-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .92rem; color: var(--ink-2); }
.seat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .85rem; border: 1px solid var(--primary-ring); }
.seat-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
p.seat-pill { margin: 0 0 14px; }
.waitlist-lead { margin: 0; }
.full-link { margin: 0; }
/* "Which computer will you use?": one big tap target per option */
.device-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.device-field legend { padding: 0; margin: 0 0 4px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.device-options { display: grid; gap: 8px; margin-top: 10px; }
.device-option {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--r);
  font-size: .95rem; line-height: 1.35; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.device-option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.device-option:hover { border-color: var(--primary-text); }
.device-option:has(input:checked) { border-color: var(--primary-text); background: var(--primary-wash); box-shadow: inset 0 0 0 1px var(--primary-text); font-weight: 600; }
.device-option:has(input:focus-visible) { outline: 2px solid var(--primary-text); outline-offset: 2px; }
.device-option input:focus, .device-option input[aria-invalid="true"] { outline: none; box-shadow: none; }
.device-field.is-invalid .device-option { border-color: var(--coral-text); }
.field-error { margin: 8px 0 0; color: var(--coral-text); font-weight: 600; font-size: .92rem; }
.device-msg:not(:empty) { margin-top: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); font-size: .92rem; line-height: 1.5; color: var(--ink); }
.device-msg p { margin: 0; }
.device-msg .btn { margin-top: 12px; }
.device-msg.is-none { background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.device-msg.is-chromebook { background: var(--cyan-wash); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.btn[disabled]:not([aria-busy="true"]) { cursor: not-allowed; opacity: .5; }
.btn[disabled]:not([aria-busy="true"]):hover { background: var(--primary); border-color: var(--primary); }
.btn[disabled]:active { transform: none; }

/* ---- Panels, flashes, badges --------------------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.panel > :last-child { margin-bottom: 0; }
.panel h2 { font-size: 1.4rem; }
.flashes { padding-top: 16px; }
.flash { border-radius: var(--r); padding: 12px 16px; margin: 0 0 12px; border: 1px solid var(--border); background: var(--surface); }
.flash-success { border-color: var(--primary-ring); background: var(--primary-wash); }
.flash-error { border-color: color-mix(in srgb, var(--coral) 45%, transparent); background: var(--coral-wash); }
.flash-dev { border-style: dashed; border-color: var(--border-strong); background: var(--amber-wash); font-family: var(--mono); font-size: .9rem; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font: 600 .78rem/1.5 var(--font); white-space: nowrap; vertical-align: middle;
  background: var(--primary-wash); color: var(--primary-text);
}
.badge-done { background: var(--cyan-wash); color: var(--cyan-text); }
.badge-warn { background: var(--amber-wash); color: var(--amber-text); }
mark.placeholder {
  background: var(--amber-wash); color: var(--amber-text); font-family: var(--mono); font-size: .85em;
  border: 1.5px dashed var(--amber); border-radius: 4px; padding: 0 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 820px) { .section { padding: 84px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }
.section-head p { margin: 0; max-width: 46em; }
.empty-state { padding: 24px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--ink-2); }
.two-col { display: grid; gap: 40px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.list-head { font-size: 1.1rem; margin: 26px 0 12px; color: var(--ink); }
.pricing-copy .section-title + .list-head { margin-top: 0; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--bg-alt); padding: 28px 0 44px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 32px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 12px;
  border-radius: 999px; background: var(--primary-wash); border: 1px solid var(--primary-ring);
  color: var(--primary-text); font-size: .875rem; font-weight: 600; line-height: 1.35;
}
.chip-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }
.hero-chip.is-full { background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 50%, transparent); color: var(--amber-text); }
.hero-chip.is-full .chip-dot { background: var(--amber); box-shadow: none; }
.hero-title {
  font-size: clamp(2.35rem, 1.45rem + 4.1vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em;
  margin: 0 0 18px; text-wrap: balance; max-width: 13em;
}
.hero-sub { font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.hero-by { margin: 0; color: var(--muted); font-size: .98rem; }
.hero-by a { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .hero-actions .btn { width: 100%; } }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; }
  .hero-sub { font-size: 1.15rem; }
}

/* The batch card: a ticket for one seat. */
.batch-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px 22px 0; box-shadow: var(--lift);
}
.batch-card-title { font-size: 1.35rem; margin: 0 0 14px; }
.batch-facts { margin: 0 0 18px; display: grid; gap: 10px; }
.batch-facts div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.batch-facts dt { font-size: .85rem; color: var(--muted); }
.batch-facts dd { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.45; }
.batch-seats { padding: 16px 0 18px; border-top: 1px solid var(--border); }
.seats-text { margin: 10px 0 0; color: var(--ink-2); font-size: .95rem; }
.seats-text strong { color: var(--ink); }
.batch-price {
  position: relative; margin: 0 -22px; padding: 18px 22px 20px;
  border-top: 2px dashed var(--border); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
}
/* ticket notches */
.batch-price::before, .batch-price::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.batch-price::before { left: -12px; clip-path: inset(0 0 0 50%); }
.batch-price::after { right: -12px; clip-path: inset(0 50% 0 0); }
.price { font: 700 2.6rem/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.price-unit { color: var(--muted); font-size: .95rem; }

/* The seat map: real seats, filled when taken. The one animated moment. */
.seat-map { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 360px; }
.seat {
  display: block; aspect-ratio: 1 / .86; border-radius: 7px 7px 3px 3px;
  border: 1.5px solid var(--primary-ring); background: var(--primary-wash);
}
.seat.is-taken { background: var(--primary); border-color: var(--primary); animation: seat-fill .35s ease-out both; animation-delay: calc(.25s + var(--i) * 40ms); }
@keyframes seat-fill { from { background: var(--primary-wash); border-color: var(--primary-ring); transform: scale(.85); } to { transform: none; } }
@media (prefers-color-scheme: dark) { .seat { border-color: #4f46e5; background: transparent; } .seat.is-taken { background: #818cf8; border-color: #818cf8; } }

/* ---- The live band ------------------------------------------------------- */
.band {
  --b-ink: #e0e7ff; --b-muted: #c7d2fe; --b-line: rgba(199, 210, 254, .28);
  background: #1e1b4b; color: var(--b-ink); padding: 52px 0;
}
@media (prefers-color-scheme: dark) { .band { background: #1b1846; border-block: 1px solid #312e81; } }
.band .section-title, .band h3 { color: #ffffff; }
.band a:not(.btn) { color: #ffffff; }
.band :focus-visible { outline-color: #ffffff; }
.band-grid { display: grid; gap: 40px; }
.band-lead { font-size: 1.15rem; color: #ffffff; }
.band-intro > p { color: var(--b-ink); max-width: 36em; }
.band-cta { margin: 26px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.band-seats { margin: 0; font-weight: 600; color: #ffffff; }
.band-note { font-size: .92rem; color: var(--b-muted) !important; }
.band-sub { font-size: 1.1rem; margin: 0 0 18px; }
@media (max-width: 560px) { .band-cta .btn { width: 100%; } }
@media (min-width: 960px) {
  .band { padding: 88px 0; }
  .band-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
}

/* Ticks and crosses (Axonova's check-circle) */
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 34px; }
.ticks li::before, .crosses li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; background: var(--primary-text);
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
}
.ticks li::before { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.3l2.7 2.7L16.2 9.4'/%3E%3C/svg%3E"); }
.crosses li::before { background: var(--faint); --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E"); }
.crosses li { color: var(--ink-2); }
.ticks-band li::before { background: var(--coral); }

/* ---- Timeline (landing band and dashboard) ------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: 14px; }
.tl-date { display: grid; align-content: start; padding-top: 1px; text-align: right; }
.tl-dow { font-size: .8rem; line-height: 1.3; }
.tl-dm { font: 700 1.12rem/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.tl-body { position: relative; padding: 0 0 22px 22px; border-left: 2px solid var(--tl-line); }
.tl-row:last-child .tl-body { border-left-color: transparent; padding-bottom: 0; }
.tl-body::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--tl-dot); box-shadow: 0 0 0 4px var(--tl-bg);
}
.tl-body p { margin: 0; }
.tl-label { font-size: .85rem; font-weight: 600; color: var(--tl-label); }
.tl-title { font-weight: 500; line-height: 1.45; margin-top: 2px !important; }
.tl-mod { font-size: .875rem; color: var(--tl-muted); margin-top: 2px !important; }
.tl-row.is-off .tl-body { border-left-style: dashed; }
.timeline .tl-row.is-off .tl-body::before { background: var(--tl-bg); border: 2px dashed var(--amber); }
.tl-row.is-off .tl-label { color: var(--tl-off); }
.tl-row.is-next .tl-body::before, .tl-row.is-live .tl-body::before { background: var(--cyan); box-shadow: 0 0 0 4px var(--tl-bg), 0 0 0 7px color-mix(in srgb, var(--cyan) 40%, transparent); }

.timeline-band { --tl-line: var(--b-line); --tl-dot: var(--coral); --tl-bg: #1e1b4b; --tl-label: var(--b-muted); --tl-muted: var(--b-muted); --tl-off: #fbbf24; }
.timeline-band .tl-date { color: #ffffff; }
.timeline-band .tl-dow { color: var(--b-muted); }
.timeline-band .tl-title { color: #ffffff; }
.timeline-band .is-gone .tl-title, .timeline-band .is-gone .tl-dm { color: var(--b-muted); }
.timeline-band .is-gone .tl-body::before { background: #6366f1; }
@media (prefers-color-scheme: dark) { .timeline-band { --tl-bg: #1b1846; } }

.timeline-dash { --tl-line: var(--border); --tl-dot: var(--primary); --tl-bg: var(--surface); --tl-label: var(--primary-text); --tl-muted: var(--muted); --tl-off: var(--amber-text); }
.timeline-dash .tl-dow { color: var(--muted); }
.timeline-dash .is-gone .tl-title, .timeline-dash .is-gone .tl-dm, .timeline-dash .is-past .tl-label { color: var(--muted); }
.timeline-dash .is-gone .tl-body::before { background: var(--border-strong); }
.timeline-dash .is-next .tl-title, .timeline-dash .is-live .tl-title { font-weight: 700; }

/* ---- Landing sections ---------------------------------------------------- */
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; }
.outcomes li { position: relative; padding-top: 18px; border-top: 1px solid var(--border); }
.outcomes li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--primary); }
.outcomes h3 { font-size: 1.22rem; margin-bottom: 8px; }
.outcomes p { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) { .outcomes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .outcomes { grid-template-columns: repeat(3, 1fr); } }

/* The prompt recipe, marked up by hand in coral */
.recipe-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .recipe-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.worked { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 18px 6px; }
.worked-list { list-style: none; margin: 0; padding: 0; }
.worked-list li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 10px 0 12px; border-bottom: 1px solid var(--border); }
.worked-list li:last-child { border-bottom: 0; }
.worked-tag { font: 700 1.75rem/1 var(--hand); color: var(--coral-text); text-align: right; transform: rotate(-4deg); transform-origin: right center; }
.worked-line { margin: 0; padding-left: 14px; border-left: 2px solid var(--coral); font: 400 .95rem/1.6 var(--mono); color: var(--ink); }
@media (min-width: 560px) { .worked { padding: 24px 28px 10px; } .worked-list li { grid-template-columns: 5.2rem minmax(0, 1fr); } }

/* Teachers */
.teachers { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .teachers { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; } }
.teacher { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.teacher-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.teacher-photo, .teacher-initials { width: 64px; height: 64px; border-radius: 18px; }
.teacher-photo { object-fit: cover; background: var(--surface-2); }
.teacher-initials { display: grid; place-items: center; background: var(--primary-wash); color: var(--primary-text); font: 700 1.4rem/1 var(--display); letter-spacing: -.02em; }
.teacher-name { font-size: 1.35rem; margin: 0 0 2px; }
.teacher-role { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.4; }
.teacher-bio p { color: var(--ink-2); margin-bottom: .75em; }
.teacher-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.teacher-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .92rem; }
.teacher-links a:hover { background: var(--primary-wash); border-color: var(--primary-ring); }

/* Pricing */
.pricing { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--lift); }
@media (min-width: 900px) { .price-card { position: sticky; top: 88px; } }
.price-label { font: 700 1.1rem/1.3 var(--display); margin: 0 0 8px; }
.price-line { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; }
.price-line .price { font-size: 3.4rem; }
.price-terms { color: var(--muted); font-size: .92rem; }
.price-seats { margin: 0 0 20px; padding: 16px 0; border-block: 1px solid var(--border); }
.pay-note { margin: 12px 0 0; }
.guarantee { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: .92rem; color: var(--ink-2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--primary-text); border-bottom: 2px solid var(--primary-text); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--primary-text); }
.faq-a { padding-bottom: 16px; color: var(--ink-2); max-width: var(--measure); }
.final-cta { border-top: 1px solid var(--border); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .4);
  transform: translateY(110%); transition: transform .2s;
}
.sticky-cta.is-visible { transform: none; }
.sticky-info { margin: 0; display: grid; line-height: 1.2; }
.sticky-price { font: 700 1.4rem/1.1 var(--display); letter-spacing: -.03em; }
.sticky-seats { font-size: .82rem; color: var(--muted); }
@media (min-width: 820px) { .sticky-cta { display: none; } }

/* ---- Curriculum ---------------------------------------------------------- */
.curriculum { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.curriculum .module + .module { border-top: 1px solid var(--border); }
.curriculum summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 14px; grid-template-areas: "num title meta chev";
  align-items: center; gap: 2px 12px; padding: 12px 16px 12px 14px; min-height: 56px;
}
.curriculum summary:hover { background: var(--bg-alt); }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary::after {
  grid-area: chev; content: ""; width: 8px; height: 8px; justify-self: center;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg);
}
.curriculum details[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
@media (max-width: 699px) {
  .curriculum-landing summary { grid-template-columns: 40px minmax(0, 1fr) 14px; grid-template-areas: "num title chev" "num meta chev"; }
  .curriculum-landing .module-meta { text-align: left; }
}
.module-num {
  grid-area: num; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-wash); color: var(--primary-text); font: 700 .95rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.module.is-done .module-num { background: var(--primary); color: #ffffff; }
.module-title { grid-area: title; font-weight: 600; line-height: 1.3; }
.module-meta { grid-area: meta; white-space: nowrap; text-align: right; }
.module-summary { margin: 0 16px 8px 66px; color: var(--ink-2); font-size: .95rem; max-width: 60ch; }
.lessons { list-style: none; margin: 0; padding: 0 10px 12px 52px; }
.lesson-link {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
  padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); min-height: 44px;
}
a.lesson-link:hover { background: var(--primary-wash); color: var(--primary-text); }
.lesson-link .badge { grid-column: 2; justify-self: start; }
.lesson-dur { grid-column: 3; grid-row: 1; }
@media (min-width: 700px) {
  .curriculum-landing .lesson-link, .curriculum-dashboard .lesson-link { grid-template-columns: 22px auto 1fr auto; }
  .curriculum-landing .lesson-link .badge, .curriculum-dashboard .lesson-link .badge { grid-column: 3; grid-row: 1; }
  .curriculum-landing .lesson-dur, .curriculum-dashboard .lesson-dur { grid-column: 4; }
}
.lesson-status { width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.lesson-status:empty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.lesson-status svg { width: 20px; height: 20px; }
.is-done > .lesson-link .lesson-status { background: var(--primary); color: #ffffff; }
.is-done > .lesson-link .lesson-status svg { width: 13px; height: 13px; }
.is-locked .lesson-status svg { width: 16px; height: 16px; }
.is-locked .li-title { color: var(--ink-2); }
.is-current > .lesson-link { background: var(--primary-wash); box-shadow: inset 3px 0 0 var(--primary); font-weight: 600; }
.toggle-all { margin: 0 0 12px; }

/* ---- Dashboard ----------------------------------------------------------- */
.dash .section-title { margin-top: 44px; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.welcome { border-color: var(--primary-ring); background: var(--primary-wash); }
.live { margin: 8px 0 28px; padding: 16px; border-radius: var(--r-xl); background: var(--bg-alt); border: 1px solid var(--border); }
.live-head h2 { font-size: 1.5rem; margin-bottom: 4px; }
.live-head p { margin: 0 0 16px; }
.live-grid { display: grid; gap: 14px; }
@media (min-width: 820px) { .live { padding: 26px; } .live-grid { grid-template-columns: 1.5fr 1fr; } }
.next-class, .wa-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.next-class.is-live { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }
.countdown { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--cyan-wash); color: var(--cyan-text); font-weight: 700; font-size: .9rem; }
.next-label { font-weight: 600; color: var(--muted); margin: 0 0 2px; font-size: .95rem; }
.next-when { font: 700 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 4px; }
.next-time { margin: 0 0 12px; color: var(--ink-2); font-weight: 500; }
.next-title { margin: 0 0 2px; font-weight: 600; }
.next-actions { margin: 16px 0 8px; gap: 10px; }
@media (max-width: 560px) { .next-actions .btn { width: 100%; } }
.wa-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.wa-number { font: 700 1.4rem/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.wa-edit summary { cursor: pointer; color: var(--primary-text); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.wa-form { margin-top: 6px; }
.schedule-box { margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 20px; }
.schedule-box > summary { cursor: pointer; font: 700 1.05rem/1.2 var(--display); min-height: 56px; display: flex; align-items: center; }
.schedule-box[open] > summary { margin-bottom: 8px; }
.schedule-box .timeline { padding-bottom: 20px; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); min-width: 6px; border-radius: 999px; }
.progress-sm { height: 6px; margin: 0 14px 12px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.progress-head p { margin: 0; }
.progress-pct { font: 700 2rem/1 var(--display); letter-spacing: -.03em; color: var(--primary-text); }
.continue { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.continue-label { margin: 0 0 2px; }
.continue-title { font: 700 1.5rem/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.continue .btn { margin-top: 14px; }
.certificate-panel { border-color: var(--primary-ring); }
.cert-form { max-width: 420px; }
.link-list { padding-left: 1.2em; }
.link-list li { margin: 8px 0; }
.orders-list { list-style: none; padding: 0 20px; margin: 0; }
.orders-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.orders-list li:last-child { border-bottom: 0; }
.orders-list a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }

/* ---- Lesson reader ------------------------------------------------------- */
.lesson-layout { display: grid; gap: 8px; padding-top: 16px; padding-bottom: 56px; }
.course-nav { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.course-nav > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; font-weight: 600; min-height: 52px; }
.course-nav > summary::-webkit-details-marker { display: none; }
.course-nav > summary::after { content: ""; width: 8px; height: 8px; margin: 0 4px 4px 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.course-nav[open] > summary::after { transform: translateY(4px) rotate(-135deg); }
.course-nav > summary > span:first-child { flex: 1; }
.course-nav .curriculum { border: 0; border-top: 1px solid var(--border); border-radius: 0; margin: 0 0 6px; background: transparent; }
.course-nav .curriculum summary { grid-template-columns: 30px minmax(0, 1fr) auto 12px; gap: 2px 10px; padding: 8px 12px 8px 10px; font-size: .92rem; min-height: 48px; }
.course-nav .module-num { width: 28px; height: 28px; font-size: .8rem; border-radius: 8px; }
.course-nav .module-meta { font-size: .78rem; }
.course-nav .lessons { padding: 0 6px 8px 22px; }
.course-nav .lesson-link { font-size: .92rem; padding: 6px 8px; min-height: 44px; }
@media (min-width: 980px) {
  .lesson-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
  .lesson-sidebar { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.lesson { min-width: 0; max-width: 46rem; }
.lesson-head { margin: 22px 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.lesson-module { display: inline-flex; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--primary-wash); color: var(--primary-text); font-weight: 600; font-size: .875rem; }
.lesson-title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 14px; text-wrap: balance; }
.lesson-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: .92rem; }
.lesson-actions { margin: 48px 0 8px; max-width: var(--measure); }
.done-note { color: var(--primary-text); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.done-note svg { width: 24px; height: 24px; flex: none; }
.upsell { border-color: var(--primary-ring); background: var(--primary-wash); }
.paywall { margin-top: 8px; max-width: var(--measure); border-radius: var(--r-xl); box-shadow: var(--lift); padding: 26px; }
.paywall-free { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.paywall-free p { margin: 0 0 4px; }
.paywall-free ul { list-style: none; margin: 0; padding: 0; }
.paywall-free a { display: inline-flex; align-items: center; min-height: 44px; }
.paywall-summary { font-size: 1.12rem; color: var(--ink-2); padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; max-width: var(--measure); }
.pager-link {
  display: grid; gap: 2px; align-content: start; padding: 14px 16px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); line-height: 1.35; font-weight: 500;
}
.pager-link:hover { border-color: var(--primary-ring); background: var(--primary-wash); color: var(--primary-text); }
.pager-dir { color: var(--muted); font-size: .85rem; font-weight: 400; }
.pager-next { text-align: right; grid-column: 2; }

/* ---- Prose (lessons and pages) ------------------------------------------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); max-width: var(--measure); }
.prose .nb { white-space: nowrap; }
@media (min-width: 700px) { .prose { font-size: 1.125rem; } }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.025em; margin: 2.2em 0 .6em; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.22rem; line-height: 1.3; margin: 1.8em 0 .5em; scroll-margin-top: 84px; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--primary-text); }
.prose ol > li::marker { font-weight: 700; font-family: var(--display); }
.prose li > p { margin: 0 0 .5em; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--border-strong); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose :not(pre) > code {
  font-family: var(--mono); font-size: .86em;
  background: var(--surface-2); border: 1px solid var(--border); padding: .1em .38em; border-radius: 6px; overflow-wrap: break-word;
}
.prose a { overflow-wrap: anywhere; }
.prose code.nobreak { white-space: nowrap; }

.table-wrap {
  overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r);
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left / 24px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, .2), transparent) left / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, .2), transparent) right / 10px 100% no-repeat scroll,
    var(--surface);
}
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose table:has(tr > :nth-child(3)) { min-width: 34rem; }
.prose table:has(tr > :nth-child(4)) { min-width: 44rem; }
.prose td code { overflow-wrap: normal; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 700; font-family: var(--display); color: var(--ink); background: var(--surface-2); }
.prose td + td, .prose th + th { border-left: 1px solid var(--border); }

/* Code: a dark slate well, the one place mono lives. */
.code-block, .prompt-box { margin: 1.6em 0; border-radius: var(--r); overflow: hidden; }
.code-block { background: var(--code-bg); border: 1px solid var(--code-bg); }
@media (prefers-color-scheme: dark) { .code-block { border-color: var(--border); } }
.code-block figcaption, .prompt-box figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 4px 4px 4px 16px; font: 600 .82rem/1.2 var(--font);
}
.code-block figcaption { background: var(--code-head); color: var(--code-muted); }
.prose pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 .9rem/1.7 var(--mono); tab-size: 2; -webkit-overflow-scrolling: touch; }
.prose pre code { font: inherit; background: none; border: 0; padding: 0; color: inherit; }
.code-block pre { color: var(--code-ink); }
.code-block pre:focus-visible { outline-color: #a5b4fc; outline-offset: -3px; }

/* A prompt is something you say: plain sentences on indigo paper. */
.prompt-box { background: var(--primary-wash); border: 1px solid var(--primary-ring); }
.prompt-box figcaption { color: var(--primary-text); border-bottom: 1px solid var(--primary-ring); }
.prompt-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.prompt-label::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 3.5A1.5 1.5 0 013.5 2h9A1.5 1.5 0 0114 3.5v6a1.5 1.5 0 01-1.5 1.5H7l-3 3v-3h-.5A1.5 1.5 0 012 9.5z' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 3.5A1.5 1.5 0 013.5 2h9A1.5 1.5 0 0114 3.5v6a1.5 1.5 0 01-1.5 1.5H7l-3 3v-3h-.5A1.5 1.5 0 012 9.5z' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose .prompt-box pre {
  white-space: pre-wrap; word-break: break-word; overflow-x: visible;
  font: 400 1rem/1.65 var(--font); color: var(--ink); padding: 14px 18px 16px;
}

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 44px; padding: 6px 14px; border-radius: var(--r-sm); cursor: pointer;
  font: 600 .86rem/1 var(--font);
}
.copy-btn::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5' y='5' width='9' height='9' rx='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M11 3V2.5A.5.5 0 0010.5 2h-8a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H3' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5' y='5' width='9' height='9' rx='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M11 3V2.5A.5.5 0 0010.5 2h-8a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H3' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.code-block .copy-btn { color: #e2e8f0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(226, 232, 240, .28); }
.code-block .copy-btn:hover { background: rgba(255, 255, 255, .14); }
.code-block .copy-btn:focus-visible { outline-color: #a5b4fc; }
.prompt-box .copy-btn { color: #ffffff; background: #4f46e5; border: 1px solid #4f46e5; }
.prompt-box .copy-btn:hover { background: #4338ca; border-color: #4338ca; }
.copy-btn.is-copied::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.code-block .copy-btn.is-copied { color: #67e8f9; border-color: #67e8f9; }
.prompt-box .copy-btn.is-copied { background: #ffffff; color: #4338ca; border-color: #4338ca; }

/* Callouts */
.callout { margin: 1.7em 0; padding: 14px 18px 2px; border-radius: var(--r); border: 1px solid var(--primary-ring); border-left: 4px solid var(--primary); background: var(--primary-wash); }
.callout > :last-child { margin-bottom: 14px; }
.prose .callout-title { font: 700 1.02rem/1.3 var(--display); color: var(--primary-text); margin: 0 0 .35em; }
.callout-tip { border-color: color-mix(in srgb, var(--cyan) 35%, transparent); border-left-color: var(--cyan); background: var(--cyan-wash); }
.prose .callout-tip .callout-title { color: var(--cyan-text); }
.callout-warning { border-color: color-mix(in srgb, var(--amber) 40%, transparent); border-left-color: var(--amber); background: var(--amber-wash); }
.prose .callout-warning .callout-title { color: var(--amber-text); }
.callout-caution { border-color: color-mix(in srgb, var(--coral) 40%, transparent); border-left-color: var(--coral); background: var(--coral-wash); }
.prose .callout-caution .callout-title { color: var(--coral-text); }
.callout-important { border-color: var(--border); border-left-color: var(--ink); background: var(--surface-2); }
.prose .callout-important .callout-title { color: var(--ink); }
.callout .code-block { background: var(--code-bg); }

/* Task lists */
.prose .task-list { list-style: none; padding-left: 0; }
.task-item label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.task-check {
  appearance: none; -webkit-appearance: none; margin: .25em 0 0; width: 24px; height: 24px; cursor: pointer;
  border: 1.5px solid var(--border-strong); border-radius: 7px; background: var(--surface); display: grid; place-items: center;
}
.task-check::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .12s; }
.task-check:checked { background: var(--primary); border-color: var(--primary); }
.task-check:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.task-check:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; }
.task-item:has(.task-check:checked) span { color: var(--muted); }

/* ---- Buy dialog ---------------------------------------------------------- */
.buy-dialog {
  width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px 22px 22px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .5);
}
.buy-dialog::backdrop { background: rgba(15, 23, 42, .6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 1.55rem; margin: 0; letter-spacing: -.03em; }
.dialog-head .icon-btn { margin-right: -10px; }

/* ---- Auth pages ---------------------------------------------------------- */
.auth form.panel, .panel-form { margin-top: 20px; }

/* ---- Certificate (always paper) ------------------------------------------ */
.cert-toolbar { margin-bottom: 18px; }
.cert-summary { max-width: 40em; }
.certificate {
  --c-ink: #0f172a; --c-muted: #475569; --c-indigo: #4f46e5; --c-rule: #e2e8f0; --c-coral: #ef6461; --c-deep: #1e1b4b;
  background: #ffffff; color: var(--c-ink);
  aspect-ratio: 297 / 210; width: 100%; max-width: 1060px; margin: 0 auto;
  border-radius: 6px; box-shadow: 0 0 0 1px var(--border), var(--lift);
  container-type: inline-size; position: relative; overflow: hidden;
}
.certificate::before { /* Axonova coral edge and indigo corner */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 1.6cqi;
  background: linear-gradient(var(--c-indigo) 0 38%, var(--c-coral) 38% 100%);
}
.cert-inner { position: absolute; inset: 4cqi 5cqi 3.4cqi 7.6cqi; display: flex; flex-direction: column; }
.cert-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqi; }
.cert-brand { display: inline-flex; align-items: center; gap: 1.1cqi; margin: 0; font: 700 1.9cqi/1.1 var(--display); letter-spacing: -.02em; color: var(--c-ink); }
.cert-brand > span { display: grid; }
.cert-by { font: 500 1.25cqi/1.3 var(--font); color: var(--c-muted); letter-spacing: 0; }
.cert-brand .brand-mark { width: 4.2cqi; height: 4.2cqi; }
.cert-id { margin: 0; font: 400 1.3cqi/1 var(--mono); color: var(--c-muted); }
.cert-main { margin: auto 0; }
.cert-kicker { font: 700 1.7cqi/1 var(--display); color: var(--c-indigo); margin: 0 0 2.6cqi; }
.cert-presented { font-size: 1.7cqi; color: var(--c-muted); margin: 0 0 .6cqi; }
.cert-name { font: 700 6.4cqi/1.05 var(--display); letter-spacing: -.045em; color: var(--c-deep); margin: 0 0 2.2cqi; overflow-wrap: anywhere; max-width: 18em; }
.cert-text { font-size: 1.75cqi; line-height: 1.55; max-width: 44em; color: var(--c-ink); margin: 0; }
.cert-foot { display: flex; align-items: flex-end; gap: 4cqi; margin-top: 2cqi; }
.cert-cell { flex: 0 1 22cqi; min-width: 0; }
.cert-sign { font: 700 3.6cqi/1 var(--hand); color: var(--c-deep); margin: 0 0 .5cqi; padding-bottom: .7cqi; border-bottom: .14cqi solid var(--c-ink); overflow-wrap: anywhere; transform: rotate(-2deg); transform-origin: left bottom; }
.cert-date { font: 600 1.7cqi/1.2 var(--display); margin: 0 0 .5cqi; padding-bottom: .9cqi; border-bottom: .14cqi solid var(--c-ink); }
.cert-small { font-size: 1.2cqi; color: var(--c-muted); margin: 0; }
.cert-verify { margin-top: 2.2cqi; }
.certificate mark.placeholder { font-size: .6em; }
@supports not (container-type: inline-size) {
  .cert-brand { font-size: 1rem; } .cert-kicker { font-size: 1rem; } .cert-presented, .cert-text { font-size: .95rem; }
  .cert-name { font-size: 2.8rem; } .cert-sign { font-size: 1.8rem; } .cert-small, .cert-id, .cert-by { font-size: .7rem; }
}

@media print {
  html, body { background: #fff !important; color: #000; }
  .site-header, .site-footer, .env-banner, .flashes, .no-print, .skip-link, .sticky-cta, .buy-dialog, body > .visually-hidden { display: none !important; }
  .page-certificate .section { padding: 0; border: 0; }
  .page-certificate .wrap { max-width: none; padding: 0; }
  .page-certificate .certificate {
    width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; box-shadow: none; border-radius: 0;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .page-certificate main { break-after: avoid; }
  .lesson-sidebar, .lesson-actions, .pager, .copy-btn, .paywall .row-actions { display: none !important; }
  .prose pre { white-space: pre-wrap; }
  .code-block { background: #f1f5f9 !important; border: 1px solid #cbd5e1; }
  .code-block figcaption { background: #e2e8f0 !important; color: #0f172a !important; }
  .code-block pre { color: #0f172a !important; }
  .code-block, .prompt-box, .callout, .prose tr, .task-item, .panel, .receipt-table { break-inside: avoid; }
  .prose h2, .prose h3, .lesson-head { break-after: avoid; }
  .table-wrap { overflow: visible; background: none; }
  .prose table { min-width: 0 !important; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #475569; overflow-wrap: anywhere; }
}

/* ---- Admin --------------------------------------------------------------- */
.admin .section-title { margin-top: 48px; font-size: 1.8rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; }
.admin-nav a:hover { background: var(--primary-wash); color: var(--primary-text); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.stat-seats { grid-column: 1 / -1; background: var(--primary-wash); border-color: var(--primary-ring); }
@media (min-width: 700px) { .stat-seats { grid-column: span 2; } }
.stat-seats.is-over { background: var(--amber-wash); border-color: var(--amber); }
.stat-label { font-size: .85rem; color: var(--muted); margin: 0; }
.stat-value { font: 700 2rem/1.1 var(--display); letter-spacing: -.03em; margin: 4px 0 0; color: var(--ink); }
.stat-of { color: var(--muted); font-size: .6em; letter-spacing: 0; }
.stat .small { margin: 4px 0 0; }
table.data { border-collapse: collapse; width: 100%; min-width: 48rem; font-size: .9rem; }
table.data td:first-child { white-space: nowrap; }
.copy-area + .table-wrap table.data { min-width: 0; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data th { font-weight: 700; font-size: .82rem; color: var(--ink-2); white-space: nowrap; background: var(--surface-2); }
table.data tbody tr:hover { background: var(--bg-alt); }
table.data tr.row-warn { background: var(--amber-wash); }
.admin .table-wrap { margin-top: 12px; }
.admin-form { display: grid; gap: 14px; }
@media (min-width: 820px) {
  .admin-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .coupon-form { grid-template-columns: 1.4fr .7fr .8fr 1fr auto auto; }
}
.input-sm { min-height: 40px !important; padding: 6px 10px !important; font-size: .9rem !important; min-width: 7em; }
.input-xs { min-height: 40px !important; padding: 6px 8px !important; font-size: .9rem !important; width: 5.4em !important; }
.wa-admin { display: flex; gap: 6px; align-items: center; margin: 0; }
.wa-admin .input-sm { width: 10.5em; }
.wa-admin select.input-sm { width: auto; min-width: 0; }
.wa-admin .btn-sm { min-height: 40px; padding: 4px 12px; }
.mini-progress { display: inline-block; width: 60px; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.mini-progress > span { display: block; height: 100%; background: var(--primary); }
.copy-area { margin: 10px 0 12px; font-size: .88rem; }
.group-panel p:first-child { margin-bottom: 4px; }
.admin summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.admin input[type=checkbox], .check input { width: 20px; height: 20px; accent-color: var(--primary); }

/* ---- Receipt (always paper) ---------------------------------------------- */
.receipt-toolbar { margin-bottom: 16px; }
.receipt {
  --r-ink: #0f172a; --r-muted: #475569; --r-rule: #e2e8f0;
  background: #fff; color: var(--r-ink); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; font-size: .95rem; box-shadow: var(--lift);
}
.receipt a { color: #4f46e5; }
.receipt .muted { color: var(--r-muted); }
.receipt :focus-visible { outline-color: #4f46e5; }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--r-ink); }
.receipt-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 1.05rem/1.1 var(--display); color: var(--r-ink); }
.receipt-brand .brand-mark { width: 30px; height: 30px; }
.receipt-brand .bm-ring { fill: #c7d2fe; }
.receipt-seller { font: 700 1.3rem/1.15 var(--display); margin: 0 0 6px; }
.receipt-addr { margin: 0; color: var(--r-muted); font-size: .9rem; }
.receipt-title { text-align: right; }
@media (max-width: 520px) { .receipt-head { flex-direction: column-reverse; } .receipt-title { text-align: left; } }
.receipt-title h1 { font-size: 2rem; margin: 0 0 6px; color: #4f46e5; letter-spacing: -.03em; }
.receipt-parties { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 600px) { .receipt-parties { grid-template-columns: 1fr 1fr; } }
.receipt-parties p { margin: 0; overflow-wrap: anywhere; }
.receipt-label { font-size: .85rem !important; font-weight: 700; color: var(--r-muted); margin-bottom: 4px !important; }
.receipt-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.receipt-table th, .receipt-table td { padding: 10px 8px; border-bottom: 1px solid var(--r-rule); text-align: left; vertical-align: top; }
.receipt-table th { font-size: .85rem; color: var(--r-muted); border-bottom: 2px solid var(--r-ink); }
.receipt-table .num { text-align: right; white-space: nowrap; }
.receipt-total td { font-weight: 700; font-size: 1.1rem; border-bottom: 3px double var(--r-ink); }
@media print {
  .page-receipt .section { padding: 0; border: 0; }
  .page-receipt .receipt { border: 0; box-shadow: none; padding: 0; }
}

/* ---- 404 / errors -------------------------------------------------------- */
.error-page .hero-actions { justify-content: center; }
.error-code { display: inline-block; font: 700 6rem/1 var(--hand); color: var(--coral-text); margin: 0 0 4px; transform: rotate(-4deg); }
