/* Subpages (/how-it-works/, /lessons/, /privacy/, /credits/). Loaded after home.css (reveals, hills ending) and
   build.css where the demo appears. Page layouts follow the getedge.cc subpage guides (docs sidebar, explore search,
   privacy table, chaptered document), drawn in Zeppro's own palette, type and art. */

/* ================= shared chrome ================= */
/* sticky translucent header on paper */
.subnav { position: sticky; top: 0; z-index: 30; background: rgba(245, 241, 234, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.subnav .header { height: 64px; }
.page--sub .header .brand, .page--sub .nav a:not(.btn) { color: var(--ink); }
.page--sub .header .nav .soon { color: var(--ink); opacity: .6; }
.page--sub .header .nav .soon small { background: rgba(27, 22, 38, .08); }
.side-list .soon { padding: 7px 12px; font-size: 14px; color: var(--muted); }
.page--sub .menu-btn { background: rgba(27, 22, 38, .07); color: var(--ink); }
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.page--sub main { position: relative; isolation: isolate; z-index: 1; }

/* the sky as a dome cut off by the right edge of the window, with Zeppro's clouds along its foot */
.dome { position: absolute; z-index: -1; top: 12px; right: calc(-1 * clamp(60px, 7vw, 120px)); width: clamp(300px, 34vw, 520px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; pointer-events: none; background: url(../art/sky.webp) center 40% / cover, #4a3a8e; }
.dome::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -12%; height: 48%; background: url(../art/cloud-bank.webp) center bottom / cover no-repeat; }
.dome img { position: absolute; left: 30%; bottom: 26%; width: 22%; z-index: 1; animation: bob 1.9s ease-in-out infinite alternate; }

.eyebrow { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.sub-h1 { margin: 10px 0 0; font-size: clamp(42px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.045em; font-weight: var(--weight-display); max-width: 11.5em; text-wrap: balance; }
.sub-h1 .zep-mini { display: inline-block; width: .55em; height: .55em; margin-left: .18em; vertical-align: .02em; }
.sub-lede { margin-top: 16px; max-width: 36em; font-size: 18px; line-height: 1.55; color: var(--muted); }
.updated { margin-top: 40px; font-size: 13px; color: var(--muted); }
.updated a { color: inherit; text-underline-offset: 3px; }
.quiet { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgba(27,22,38,.06); }
.quiet:hover { box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(27,22,38,.4); }
.center { display: flex; justify-content: center; margin-top: 44px; }

/* closing band: a Zep tile, one line, the waitlist, clouds that run into the hills */
.close-band { position: relative; isolation: isolate; margin-top: 140px; padding: 40px var(--gutter) 150px; display: grid; justify-items: center; text-align: center; }
.close-band::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -40px; height: 300px; pointer-events: none;
  background: url(../art/cloud-dawn.webp) center bottom / max(100%, 1300px) auto no-repeat; opacity: .75; }
.close-tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); box-shadow: 0 8px 20px -12px rgba(27,22,38,.5); }
.close-tile img { width: 40px; height: 40px; }
.close-band h2 { margin-top: 20px; font-size: clamp(36px, 4.4vw, 64px); max-width: 13em; }
.close-band .lede-sm { margin-top: 12px; color: var(--muted); font-size: 17px; }
.close-band .waitlist { margin: 26px auto 0; }
.close-band .hint { margin-top: 14px; }
.page--sub .hills { margin-top: -110px; }

/* waitlist dialog (header button) */
.wl-dialog { width: min(460px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(27,22,38,.6); }
.wl-dialog::backdrop { background: rgba(27, 22, 38, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.wl-dialog[open] { animation: dlg-in .3s var(--ease); }
@keyframes dlg-in { from { opacity: 0; translate: 0 10px; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-head h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.dlg-head h2 img { width: 30px; height: 30px; }
.dlg-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f3efe9; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink); }
.wl-dialog p.dlg-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.wl-dialog .waitlist { margin-top: 22px; width: 100%; flex-direction: column; }
.wl-dialog .waitlist input { flex: none; }
.wl-dialog .waitlist .btn { width: 100%; }
.wl-dialog .waitlist .wl-status { position: static; margin-top: 4px; }
.wl-dialog .hint { margin-top: 12px; }
.dlg-tail { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dlg-tail a { color: var(--accent-text); text-decoration: none; font-weight: 500; }

/* ================= docs layout (How it works) ================= */
.docs { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: clamp(28px, 3.4vw, 48px); padding-top: 26px; }
.docs-side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: none; }
.docs-side > summary { display: none; }
.side-title { margin: 0 0 12px 12px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.side-sub { margin: 16px 0 4px; padding-left: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: block; padding: 7px 12px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 0 12px 12px 0; }
.side-list a:hover { color: var(--ink); }
.side-pages a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; }
.side-sections { padding: 4px 0 8px 12px; }
.side-sections a { padding: 5px 10px; font-size: 13px; font-weight: 500; border-radius: 8px; }
.side-sections a[aria-current="true"] { color: var(--accent-text); }
.side-out { display: block; margin: 22px 0 0 12px; font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.docs-main { min-width: 0; }
.doc-hero { padding: 26px clamp(0px, 24vw, 360px) 8px 0; min-height: 300px; }   /* text stays clear of the sky dome */
.doc-sec { margin-top: 100px; scroll-margin-top: 90px; }
.doc-sec > h2, .sec-h h2 { font-size: clamp(30px, 3vw, 44px); max-width: 16em; }
.sec-p { margin-top: 12px; max-width: 40em; color: var(--muted); font-size: 16px; }

/* numbered steps joined by a line: no boxes, the line says "this is a sequence" (How it works, Lessons) */
.steps { --gap: 22px; list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); counter-reset: st; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.steps li { position: relative; counter-increment: st; display: grid; align-content: start; gap: 4px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 13.5px; left: 38px; right: calc(-1 * var(--gap) + 10px); height: 1.5px; background: #d6cfc4; }
.steps b { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }

/* the live demo sits on its own patch of sky, the one big panel on the page */
.sky-stage { position: relative; isolation: isolate; margin: 40px -28px 0; padding: 36px 28px 170px; }
.sky-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 28px; pointer-events: none;
  background: url(../art/cloud-bank.webp) center bottom -30px / max(100%, 1500px) auto no-repeat, url(../art/card-sky.webp) center / cover no-repeat, var(--dusk-violet); }
/* speech bubble (Zep on the Lessons "Start here" art) */
.bub { max-width: 190px; padding: 8px 11px; border-radius: 14px; border-bottom-left-radius: 4px; background: var(--surface); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left;
  box-shadow: 0 1px 0 rgba(27,22,38,.06), 0 6px 16px rgba(27,22,38,.08); }
.sky-note { display: inline-block; margin-top: 18px; padding: 5px 12px; border-radius: 99px; background: rgba(27,22,38,.55); color: #fff; font-size: 13px; }

/* FAQ as cards; sub.js turns them into an accordion (every answer stays readable without JS) */
.qa { display: grid; gap: 8px; margin-top: 26px; }
.qa .q { border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(27,22,38,.05); scroll-margin-top: 90px; }
.qa .q h3 { margin: 0; padding: 16px 18px 6px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.qa .q > p { padding: 0 18px 16px; font-size: 14.5px; color: var(--muted); max-width: 62ch; }
.qa.is-acc .q h3 { padding: 0; }
.qa.is-acc .q > p { display: none; }
.qa.is-acc .q.open > p { display: block; }
.q-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 0; background: none; border-radius: inherit;
  font: 600 16px/1.35 var(--font-ui); letter-spacing: -.015em; color: var(--ink); text-align: left; cursor: pointer; }
.q-toggle::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s; opacity: .55; }
.q.open .q-toggle::after { transform: rotate(-135deg) translateY(-1px); }
.q-toggle:focus-visible { outline-offset: -2px; }

/* ================= content blocks (shared) ================= */
/* plain text columns, each marked by a short orange rule instead of a box */
.rule-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; margin-top: 44px; }
.rule-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.rule-cols > div { min-width: 0; }
.rule-cols > div::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; border-radius: 1px; background: var(--accent); }
.rule-cols h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.rule-cols p { margin-top: 6px; font-size: 14.5px; color: var(--muted); max-width: 40ch; }
/* hairline definition lists (the studio panels and exports) */
.hl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin-top: 36px; }
.hl-cols > div { min-width: 0; }
.list-h { margin-bottom: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hl-list { margin: 0; }
.hl-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.hl-list dt { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.hl-list dt kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 12px var(--font-ui); }
.hl-list dd { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 10px; }
.split > * { min-width: 0; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ladder { --gap: 24px; list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ladder li { position: relative; display: grid; justify-items: start; align-content: start; gap: 8px; }
.ladder li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 52px; right: calc(-1 * var(--gap) + 10px); height: 1.5px; background: #d6cfc4; }
.ladder img { width: 38px; height: 38px; margin-bottom: 4px; }
.ladder li:nth-child(1) img { opacity: .55; }
.ladder li:nth-child(2) img { opacity: .8; }
.ladder .lv { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ladder .say { padding: 8px 12px; border-radius: 4px 12px 12px 12px; background: #ebe5dc; font-size: 14.5px; font-weight: 500; }
.mock { border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(27,22,38,.05), 0 30px 60px -40px rgba(27,22,38,.5); padding: 18px; font-size: 14px; }
.mock-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mock-h small { font-weight: 500; font-size: 12px; color: var(--muted); }
.facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.facts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #f6f3ee; }
.facts li i { font-style: normal; color: var(--muted); font-size: 16px; line-height: 1; }
.facts .add { background: none; outline: 1px dashed var(--line); color: var(--muted); }
.mock-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.switch-ui { display: inline-flex; align-items: center; gap: 8px; }
.switch-ui::before { content: ""; width: 30px; height: 18px; border-radius: 99px; background: var(--accent) radial-gradient(circle at 21px 9px, #fff 6px, transparent 6.5px); }
.danger { color: #b42222; font-weight: 500; }
.chat-mock { display: grid; gap: 8px; }
.chat-mock p { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; }
.chat-mock .me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-mock .ai { background: #f3efe9; border-bottom-left-radius: 4px; }
.mini-roll { position: relative; height: 92px; border-radius: 10px; overflow: hidden; background:
  linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px) 0 0 / 25% 100%, linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 11.5px, #17121f; }
.mini-roll i { position: absolute; height: 9px; border-radius: 2px; background: var(--accent); }
.mini-roll i.b { background: #ffb08c; }
.mini-roll span { position: absolute; left: 8px; top: 6px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pillbtn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: #f3efe9; color: var(--ink); }
.pillbtn.on { background: var(--accent); }
.quote-list { list-style: none; display: grid; gap: 7px; margin: 22px 0 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--accent); font-size: 15px; }
.quote-list li::before { content: "“"; color: var(--accent-text); }
.quote-list li::after { content: "”"; color: var(--accent-text); }
.small { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ================= explore layout (Lessons) ================= */
.ex-hero { position: relative; display: grid; gap: 20px; justify-items: start; padding-block: 56px 40px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ex-hero .sub-h1 { margin: 0; }
.accent-line { display: block; color: var(--accent-text); }
.ex-hero .sub-lede { margin: 0; }
.search { display: flex; align-items: center; gap: 12px; width: min(680px, 100%); height: 64px; padding: 0 8px 0 20px; border-radius: 18px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(27,22,38,.05), 0 20px 40px -30px rgba(27,22,38,.45); }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent-text), 0 20px 40px -30px rgba(27,22,38,.45); }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 17px; color: var(--ink); }
.search input::placeholder { color: #9a93a3; }
.search .btn { width: 48px; padding: 0; }
.ex-sec { padding-block: 44px; scroll-margin-top: 80px; }
.ex-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 26px; }
.ex-head h2 { font-size: clamp(30px, 3.3vw, 46px); }
.ex-head p { margin-top: 8px; color: var(--muted); }
.link-go { font-size: 15px; font-weight: 500; color: var(--ink); text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic { display: grid; align-content: start; gap: 2px; padding: 0 0 6px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer;
  text-align: left; font-size: 16px; font-weight: 550; letter-spacing: -.015em; }
.topic .t-name, .topic small { padding-inline: 2px; transition: color .2s; }
.topic small { font-size: 13px; font-weight: 400; color: var(--muted); }
.topic:hover .t-name { color: var(--accent-text); }
/* topic pictures: the same halftone sky, clouds and object as the course cards (tools/gen_art.py section 13) */
.t-art { display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: 14px; overflow: hidden; background: var(--dusk-violet); }
.t-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.topic:hover .t-art img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .t-art img { transition: none; } .topic:hover .t-art img { transform: none; } }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.lcard { min-width: 0; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(27,22,38,.05); }
.lcard-head { display: flex; align-items: center; gap: 12px; }
.lthumb { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--dusk-violet) center / cover; }
.lcard-name { font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.lcard-sub { font-size: 13px; color: var(--muted); }
.lcard p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.lcard-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.lcard-foot b { color: var(--ink); font-weight: 600; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 44px 24px; border-radius: 18px; background: #efeae2; text-align: center; }
.empty-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: url(../art/sky.webp) center / cover; }
.empty-art img { width: 52px; height: 52px; }
.empty h3 { font-size: 22px; font-weight: var(--weight-display); letter-spacing: -.03em; }
.empty p { max-width: 34em; color: var(--muted); }
.empty .btns { margin-top: 8px; justify-content: center; }

/* lessons: featured course + course cards */
.feature { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 50px -30px rgba(27,22,38,.5); }
.feature-art { position: relative; min-height: 360px; background: url(../art/card-sky.webp) center / cover; overflow: hidden; }
.feature-art .cl { position: absolute; left: -6%; right: -6%; bottom: -70px; height: 70%; background: url(../art/cloud-bank.webp) center bottom / cover no-repeat; animation: drift 26s ease-in-out infinite alternate; }
.feature-art img { position: absolute; left: 50%; top: 44%; width: 140px; translate: -50% -50%; animation: bob 1.9s ease-in-out infinite alternate; }
.feature-art .bub { position: absolute; left: 7%; top: 9%; max-width: 74%; font-weight: 500; }
.feature-body { padding: 28px 28px 24px; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { padding: 3px 9px; border-radius: 99px; background: #f3efe9; font-size: 12px; font-weight: 600; color: var(--muted); }
.meta span:first-child { background: var(--accent-soft); color: var(--accent-text); }
.feature-body h3, .course-row h3 { margin-top: 12px; font-size: 24px; font-weight: var(--weight-display); letter-spacing: -.035em; line-height: 1.15; }
.feature-body > p, .course-row > div > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.lesson-list { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: l; }
.lesson-list li { counter-increment: l; display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.lesson-list li::before { content: counter(l); font-size: 12px; color: var(--muted); }
.lesson-list b { font-weight: 550; }
.lesson-list em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lesson-list small { grid-column: 2 / -1; font-size: 13px; color: var(--muted); }
.courses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.course-row { min-width: 0; display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.course-row > div { min-width: 0; }
.course-row .course-art { aspect-ratio: 3 / 4; border-radius: 12px; background: var(--dusk-violet); }
.course-row h3 { margin-top: 10px; font-size: 20px; }
.course-row .lesson-list li { padding: 7px 0; font-size: 14px; }
.stars { color: var(--accent); letter-spacing: 2px; }
.kbd-row { display: flex; gap: 4px; margin-top: 14px; }
.kbd-row kbd { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 6px; background: #f6f3ee; box-shadow: 0 2px 0 var(--line); font: 600 12px var(--font-ui); }

/* ================= legal (Privacy: one table · Credits: chaptered document) ================= */
.legal { padding-top: 40px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.legal .sub-h1 { margin-top: 18px; }
.legal-date { margin-top: 18px; font-size: 13px; color: var(--muted); }
.priv { max-width: 900px; }
.table-wrap { margin: 34px 0 30px; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--accent); }
.ptable th, .ptable td { vertical-align: top; text-align: left; padding: 18px 20px; border-top: 1px solid var(--line); }
.ptable tr:first-child > * { border-top: 0; }
.ptable tr { scroll-margin-top: 90px; }
.ptable th { width: 27%; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.ptable td { font-size: 15px; color: #3d3548; }
.ptable td p { margin: 0 0 .6em; }
.ptable td p:last-child { margin: 0; }
.ptable code, .prose code, .record { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.ptable code, .prose code { font-size: 13.5px; }
.prose h2 { margin-top: 44px; font-size: 24px; scroll-margin-top: 90px; }
.prose p { margin-top: 10px; max-width: 64ch; color: #3d3548; }
.prose a, .ptable a, .ldoc a { color: var(--accent-text); text-underline-offset: 3px; }
.record { margin-top: 14px; overflow-x: auto; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-nav { position: sticky; top: 90px; align-self: start; display: grid; min-width: 0; }
.legal-switch { display: flex; gap: 16px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-switch a { padding: 6px 0; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.legal-switch a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal-nav nav { display: grid; }
.legal-nav nav a { padding: 8px 0; font-size: 13px; color: var(--muted); text-decoration: none; }
.legal-nav nav a:hover, .legal-nav nav a[aria-current="true"] { color: var(--ink); }
.legal-nav nav a[aria-current="true"] { font-weight: 600; }
.ldoc section { padding-bottom: 36px; scroll-margin-top: 90px; }
.ldoc section + section { padding-top: 32px; border-top: 1px solid var(--line); }
.ldoc h2 { font-size: 28px; margin-bottom: 12px; }
.ldoc p, .ldoc li { font-size: 16px; line-height: 1.7; color: #3d3548; max-width: 66ch; }
.ldoc p + p { margin-top: 12px; }
.ldoc ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.ldoc b { color: var(--ink); }

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(3)::after { content: none; }
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--4 li:nth-child(2)::after { content: none; }
  .steps--4 li:nth-child(3)::after { content: ""; }
}
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-side > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 16px; background: var(--surface); font-size: 18px; list-style: none; cursor: pointer; }
  .docs-side > summary::-webkit-details-marker { display: none; }
  .docs-side > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5; }
  .docs-side[open] > summary::after { transform: rotate(-135deg); }
  .docs-side[open] .side-inner { margin-top: 8px; padding: 12px 8px 16px 0; border-radius: 16px; background: rgba(255,255,255,.6); }
  .side-kicker { color: var(--muted); }
  .rule-cols { grid-template-columns: 1fr; gap: 26px; }
  .hl-cols { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 290px; }
  .courses-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; }
  .legal-nav nav { display: flex; flex-wrap: wrap; gap: 0 22px; }   /* wraps, so every chapter is visible on a phone */
  .legal-nav nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .dome { display: none; }
  .doc-hero { min-height: 0; padding-right: 0; }
  /* steps and the Zep ladder run down the page, the line joining them on the left */
  .steps, .steps--4, .ladder { grid-template-columns: 1fr; --gap: 18px; }
  .steps li { grid-template-columns: 28px 1fr; column-gap: 14px; row-gap: 2px; }
  .steps li::before { grid-row: 1 / 3; margin: 0; }
  .steps li:not(:last-child)::after, .steps li:nth-child(3):not(:last-child)::after, .steps--4 li:nth-child(2)::after {
    content: ""; top: 34px; bottom: calc(-1 * var(--gap) + 6px); left: 13.25px; right: auto; width: 1.5px; height: auto; }
  .ladder li { grid-template-columns: 38px 1fr; column-gap: 14px; row-gap: 6px; }
  .ladder img { grid-row: 1 / 3; margin: 0; }
  .ladder li:not(:last-child)::after { top: 44px; bottom: calc(-1 * var(--gap) + 6px); left: 18.25px; right: auto; width: 1.5px; height: auto; }
  .sky-stage { margin-inline: -10px; padding: 24px 12px 130px; }
  .rule-cols--2 { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 96px 1fr; gap: 16px; }
  .ex-hero { padding-block: 36px 24px; }
  .search { height: 58px; padding-left: 16px; }
  .feature-body { padding: 22px 18px 20px; }
  .ptable th, .ptable td { display: block; width: auto; }
  .ptable td { border-top: 0; padding-top: 0; }
  .close-band { margin-top: 100px; padding-bottom: 120px; }
  .close-band .waitlist { width: 100%; }
}

/* touch screens: small subpage links get ~44 px to aim at */
@media (pointer: coarse) {
  .side-list a { padding-block: 11px; }
  .side-out { margin-top: 12px; padding-block: 10px; }
  .legal-switch a { padding-block: 12px; }
  .legal-nav nav a { padding-block: 13px; }
  .crumb a { position: relative; }
  .crumb a::after { content: ""; position: absolute; inset: -14px -6px; }
}

/* below-the-fold art waits for the first screen (html.bg-later, set in the head script, removed on load or first scroll) */
.bg-later .close-band::before, .bg-later .sky-stage::before, .bg-later .feature-art, .bg-later .feature-art .cl { background-image: none; }
