/* Havstock Members. Light, to match the havstock.com homepage (white sections, near-black
   text, Geist + Geist Mono labels, greyscale only). The login page's picture panel stays dark,
   like the homepage hero. */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --subtle: #f5f5f5;
  --text: #0a0a0a;
  --muted: #525252;
  --faint: #737373;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --btn: #0a0a0a;
  --btn-text: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.6 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--text); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
/* Top bar. Logged in it looks like Skool: logo, search, account. */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
/* First row of every header (checkout, offer and thanks pages too). */
.top > .wrap:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
/* Logged-in top bar, sized like Skool's: 64px row, 40px logo and avatar, 20px name. */
.top > .wrap.top-row { gap: 24px; height: 64px; }
.top-row .brand { font-size: 20px; gap: 12px; }
.top-row .mark { width: 40px; height: 40px; padding: 6px; border-radius: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
/* Black square, white H: the logo file is a black H, so the whole tile is inverted. */
.mark { width: 28px; height: 28px; padding: 4px; background: #fff; border-radius: 6px; filter: invert(1); flex: none; }
.top-right { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); min-width: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--subtle); color: var(--text); }
.search { position: relative; flex: 1; max-width: 560px; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 44px; background: var(--subtle); border: 1px solid transparent; border-radius: 10px; padding: 0 44px 0 42px; font: inherit; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; background: var(--bg); border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06); }
.search-close, .search-open { display: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; }
.sr { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.sr:hover, .sr.on { background: var(--subtle); }
.sr-label { display: flex; align-items: center; gap: 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sr-lock { display: inline-flex; align-items: center; gap: 4px; }
.sr-title { display: block; font-weight: 500; font-size: 15px; margin-top: 2px; }
.sr-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.sr b { color: var(--text); font-weight: 600; }
.sr-none { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--muted); }
.me { position: relative; }
.me summary { list-style: none; width: 40px; height: 40px; border-radius: 50%; background: var(--btn); color: var(--btn-text); display: grid; place-items: center; font-weight: 600; font-size: 15px; cursor: pointer; user-select: none; }
.me summary::-webkit-details-marker { display: none; }
.me summary:focus-visible { outline: 2px solid var(--btn); outline-offset: 2px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 224px; max-width: calc(100vw - 32px); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); padding: 0 0 6px; }
.me-email { padding: 16px 15px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-item { display: block; width: 100%; padding: 10.5px 15px; line-height: 1.5; background: none; border: 0; font: inherit; font-weight: 600; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.me-item:hover { background: var(--subtle); }
.me-item.quiet { font-weight: 400; color: var(--faint); }
.me-item.quiet:hover { color: var(--text); }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .search { display: none; }
  .search-open { display: grid; }
  .top.searching .brand, .top.searching .top-right { display: none; }
  .top.searching .search { display: block; max-width: none; }
  .top.searching .search-close { display: grid; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
}

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: var(--btn-text); border: 0; border-radius: 6px;
  padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #262626; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.full { width: 100%; }
.btn.big { padding: 16px 24px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--subtle); border-color: var(--text); }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }
.linkbtn:hover { color: var(--text); }
label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
input[type=email], input[type=text] {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 12px 14px; font: inherit;
}
input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--btn); }
.field { margin-bottom: 14px; }
.msg { font-size: 14px; margin-top: 10px; min-height: 1em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

/* Cards */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
/* Course cards, laid out like a Skool classroom. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.course-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.course-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }
.course-card .cover { aspect-ratio: 16 / 9; background: var(--subtle); position: relative; }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.course-card.locked .cover img { filter: saturate(0.5); }
.unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(10, 10, 10, 0.55); color: #fff; font-size: 20px; letter-spacing: -0.01em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transition: background 0.15s; }
.unlock b { font-weight: 600; }
.course-card.locked:hover .unlock { background: rgba(10, 10, 10, 0.68); }
.course-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { margin: 0; font-size: 19px; }
.course-card .body p { color: var(--muted); font-size: 15px; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prog { position: relative; margin-top: auto; height: 26px; border-radius: 9999px; background: #ececec; overflow: hidden; }
.prog i { display: block; height: 100%; min-width: 56px; background: var(--ok); border-radius: 9999px; }
.prog.zero i { display: none; }
.prog span { position: absolute; left: 14px; top: 0; line-height: 26px; font-size: 13px; font-weight: 600; color: #fff; }
.prog.zero span { color: var(--text); }
/* Section label, same as the homepage eyebrow. */
.pill { display: inline-block; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* Course page */
/* Logged-in pages sit on light grey with white cards, like Skool. */
/* html too, or the space under short pages shows white. */
html:has(body.portal), body.portal { background: #f7f7f5; }
body.portal { min-height: 100vh; }
.course { display: grid; grid-template-columns: 320px 1fr; gap: 36px; padding: 28px 0 60px; align-items: start; }
.course-name { font-size: 20px; margin: 4px 0 12px; }
.course-side .prog { margin: 0 0 16px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lessons a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 16px; line-height: 1.4; }
.lessons a:hover { background: #efefec; }
.lessons a.on { background: #e7e7e3; font-weight: 500; }
.lesson-done { flex: none; display: grid; color: var(--ok); }
.lesson-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px 36px 36px; min-width: 0; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.lesson-head h1 { font-size: 28px; margin: 0; }
.done-btn { flex: none; width: 40px; height: 40px; margin: -4px -6px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #909090; cursor: pointer; transition: color 0.15s, background 0.15s; }
.done-btn:hover { color: var(--text); background: var(--subtle); }
.done-btn.on { color: var(--ok); }
.video { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.video iframe { width: 100%; height: 100%; border: 0; }
.lesson-body { max-width: 720px; }
.lesson-body h2 { margin-top: 28px; }
.lesson-body li { margin-bottom: 6px; }
.lesson-body a { text-decoration: underline; }
.resources { margin-top: 32px; }
.resources h3 { font-size: 17px; margin: 0 0 12px; }
.res { display: flex; align-items: center; gap: 12px; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 16px; color: var(--text); text-align: left; cursor: pointer; }
.res + .res { margin-top: 8px; }
.res:hover .res-name { text-decoration: underline; }
.res:disabled { opacity: 0.6; cursor: progress; }
.res-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: #8f8f8f; color: #fff; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 440px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.product-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.product-head img { width: 160px; border-radius: 6px; border: 1px solid var(--line); }
.bump { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 16px; margin-bottom: 12px; cursor: pointer; }
.bump.on { border-style: solid; border-color: var(--text); }
.bump input { margin-top: 4px; width: 20px; height: 20px; accent-color: #0a0a0a; flex: none; }
.bump img { width: 72px; border-radius: 4px; flex: none; }
.bump .t { font-weight: 600; }
.bump .d { color: var(--muted); font-size: 14px; }
.lines { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: 15px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted); }
.lines .total { color: var(--text); font-weight: 600; font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
#payment-element { margin: 6px 0 16px; }
.consent { font-size: 13px; color: var(--faint); margin-top: 12px; }
.trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin-top: 14px; }

/* Buy pop-up in the members area (assets/buy.js) */
body.buy-open { overflow: hidden; }
.buy-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, 0.5); display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; animation: buy-fade 0.15s ease-out; }
/* Like Skool's unlock box: the cover on top with the lock, name and price, then the form. */
.buy { position: relative; width: 100%; max-width: 480px; background: var(--bg); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25); animation: buy-up 0.2s ease-out; }
.buy-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(10, 10, 10, 0.35); border: 0; border-radius: 50%; color: #fff; cursor: pointer; }
.buy-x:hover { background: rgba(10, 10, 10, 0.6); }
.buy-hero { position: relative; aspect-ratio: 16 / 9; background: #0a0a0a; color: #fff; }
.buy-hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5); }
.buy-hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; background: rgba(10, 10, 10, 0.6); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.buy-hero-text svg { margin-bottom: 6px; }
.buy-hero h2 { margin: 0; font-size: 24px; color: #fff; text-wrap: balance; }
.buy-hero p { margin: 0; font-size: 18px; }
.buy-body { padding: 24px 28px 28px; }
.buy-blurb { color: var(--muted); font-size: 15px; margin: 0 0 20px; text-wrap: pretty; }
.buy-blurb:has(+ .buy-points) { margin-bottom: 12px; }
.buy-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.buy-points li { display: flex; gap: 8px; align-items: flex-start; text-wrap: pretty; }
.buy-points svg { flex: none; margin-top: 2px; color: var(--ok); }
.buy-express { margin-bottom: 16px; }
.buy-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 13px; color: var(--faint); }
.buy-or::before, .buy-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#buy-element { min-height: 120px; }
#buy-element .spinner { margin-top: 40px; }
.buy-total { display: flex; justify-content: space-between; margin: 16px 0 14px; font-size: 14px; color: var(--faint); }
.buy #buy-msg:empty { display: none; }
/* Card boxes, same as the Builder OS checkout: 48px tall, 12px corners, grey hint, no label. */
.buy-card { display: grid; gap: 10px; }
.buy-cf { position: relative; height: 48px; box-sizing: border-box; padding: 0 12px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #dfdfdf; border-radius: 12px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.buy-cf:focus-within { border-color: #000; box-shadow: 0 0 0 1px #000; }
.buy-cf:has(svg) { padding-right: 42px; }
.buy-cf svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #707070; }
.buy-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-cf.buy-cf-number { padding-right: 124px; }
.buy-brands { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.buy-brands svg { position: static; transform: none; display: block; }
.buy-note { margin: 12px 0 0; font-size: 12px; color: var(--faint); text-align: center; text-wrap: pretty; }
.buy-note .buy-lock { display: inline-block; vertical-align: -1px; margin-right: 5px; }
.buy-note .stripe-mark { height: 1.15em; width: auto; display: inline-block; vertical-align: -0.2em; margin-left: 2px; }
.buy-done { text-align: center; padding-top: 36px; }
.buy-done h2 { font-size: 26px; margin-bottom: 8px; }
.buy-done p { color: var(--muted); margin-bottom: 24px; text-wrap: pretty; }
.buy-done .linkbtn { margin-top: 8px; }
.buy-tick { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
@keyframes buy-fade { from { opacity: 0; } }
@keyframes buy-up { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .buy-overlay, .buy { animation: none; } }
@media (max-width: 520px) {
  .buy-overlay { place-items: end center; padding: 0; }
  .buy { max-width: none; border-radius: 14px 14px 0 0; max-height: 92dvh; overflow-y: auto; }
  .buy-hero { aspect-ratio: 2 / 1; }
  .buy-body { padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
}

/* Offer page */
.offer { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; text-align: center; }
.offer .eyebrow { margin-bottom: 18px; }
.offer .sub { color: var(--muted); font-size: 20px; margin-bottom: 28px; }
.offer img.hero { border-radius: var(--r); border: 1px solid var(--line); margin: 0 auto 28px; }
.offer .points { text-align: left; max-width: 520px; margin: 0 auto 24px; }
.offer .price { font-size: 22px; font-weight: 600; margin: 8px 0 18px; }
.offer .actions { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* Login */
.login { min-height: calc(100vh - 61px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-side { display: flex; flex-direction: column; justify-content: center; padding: 64px 48px; }
.login-form { width: 100%; max-width: 400px; margin: 0 auto; }
.login-form h1 { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -0.03em; margin-bottom: 14px; text-wrap: balance; }
.login-form .lead { color: var(--muted); font-size: 17px; margin-bottom: 32px; text-wrap: pretty; }
.login-form .pill { margin-bottom: 20px; }
.login-form .btn { padding: 14px 22px; margin-top: 4px; }
.login-form .btn svg { transition: transform 0.15s ease; }
.login-form .btn:not(:disabled):hover svg { transform: translateX(2px); }
.login-form input::placeholder { color: var(--faint); }
.login-note { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: 14px; color: var(--faint); text-wrap: pretty; }
.login-note svg { flex: none; margin-top: 2px; }
.sent-again { margin: 16px 0 0; font-size: 14px; color: var(--faint); }
.sent-again .linkbtn { padding: 0; font-size: 14px; }
.sent-icon { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; color: var(--text); }
.login-art { --card: #0a0a0a; --line: rgba(255, 255, 255, 0.08); --muted: #a3a3a3;
  position: relative; overflow: hidden; display: flex; align-items: center;
  background: radial-gradient(55% 45% at 45% 50%, rgba(255, 255, 255, 0.07), transparent 70%), var(--card); }
.login-art::before { content: ''; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); }
.login-art .caption { position: absolute; left: 0; right: 0; bottom: 32px; margin: 0; text-align: center; font-size: 14px; color: var(--muted); padding: 0 24px; }

/* Portal mockup on the login page. Pure HTML, no real data. */
.mock { --bg: #fff; --card: #fff; --subtle: #f4f4f5; --text: #0a0a0a; --muted: #52525b; --faint: #8b8b93; --line: #ececee; --line-strong: #e2e2e5; --ok: #16a34a;
  position: relative; flex: none; width: 680px; margin-left: 56px; background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); font-size: 12px; color: var(--muted); }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fafafa; border-radius: 12px 12px 0 0; }
.mock-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #dcdce0; }
.mock-url { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; transform: translateX(-20px); padding: 3px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.mock-url svg { width: 11px; height: 11px; }
.mock-body { display: grid; grid-template-columns: 196px 1fr; }
.mock-side { padding: 18px 12px; border-right: 1px solid var(--line); background: #fcfcfc; border-radius: 0 0 0 12px; }
.mock-course { color: var(--text); font-weight: 600; font-size: 13px; padding: 0 8px; }
.mock-prog { height: 3px; background: var(--subtle); border-radius: 3px; margin: 10px 8px 6px; overflow: hidden; }
.mock-prog b { display: block; height: 100%; width: 34%; background: var(--text); animation: mock-fill 1.2s 0.4s ease-out both; }
.mock-meta { font-size: 11px; color: var(--faint); padding: 0 8px; margin-bottom: 14px; }
.mock-side ul { list-style: none; margin: 0; padding: 0; }
.mock-side li { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 6px; }
.mock-side li.on { background: var(--subtle); color: var(--text); }
.mock-side .dot { flex: none; width: 14px; height: 14px; display: grid; place-items: center; }
.mock-side .dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); }
.mock-side li.on .dot::after { background: var(--text); border-color: var(--text); width: 7px; height: 7px; }
.mock-side li.done .dot { color: var(--ok); }
.mock-side li.done .dot::after { display: none; }
.mock-main { padding: 18px; }
.mock-video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 40%, #262626, #0f0f0f); display: grid; place-items: center; }
.mock-play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; color: #0a0a0a; }
.mock-time { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.mock-time b { display: block; height: 100%; width: 38%; background: #fff; }
.mock-title { color: var(--text); font-size: 15px; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.01em; }
.mock-lines i { display: block; height: 6px; border-radius: 3px; background: var(--subtle); margin-bottom: 8px; }
.mock-dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); }
.mock-toast { position: absolute; left: -28px; bottom: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); animation: mock-in 0.5s 1.4s ease-out both; }
.mock-toast svg { color: var(--ok); flex: none; }
.mock-toast b { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.mock-toast span { font-size: 12px; color: var(--faint); }
@keyframes mock-fill { from { width: 0; } }
@keyframes mock-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .mock-prog b, .mock-toast { animation: none; } }
@media (max-width: 1180px) { .mock { width: 600px; margin-left: 40px; } .mock-body { grid-template-columns: 168px 1fr; } }

.center { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px; }
.narrow { width: 100%; max-width: 420px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-top-color: var(--text); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .checkout, .course { grid-template-columns: 1fr; gap: 24px; }
  .course-side { order: 2; }
  .lesson-card { padding: 20px 16px 24px; }
  .lesson-head h1 { font-size: 24px; }
  .product-head img { width: 110px; }
  .offer .sub { font-size: 17px; }
  .login { grid-template-columns: 1fr; min-height: 0; }
  .login-side { padding: 56px 16px 72px; justify-content: flex-start; }
  .login-art { display: none; }
}

/* Community invite above the classroom (Claude for Creators on Skool). A card, X top right. */
.skool-bar { position: relative; display: flex; align-items: center; gap: 20px; padding: 20px 56px 20px 22px; margin-bottom: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.skool-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.skool-text strong { font-size: 18px; font-weight: 600; text-wrap: balance; }
.skool-text span { font-size: 16px; color: var(--muted); text-wrap: pretty; }
.skool-join { flex: none; width: auto; padding: 10px 20px; }
.skool-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }
@media (max-width: 600px) {
  .skool-bar { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .skool-text { padding-right: 28px; }
  .skool-join { width: 100%; }
}
