/* ROS2Lab design system (V55). Loaded LAST on every public page (tools/build-chrome.mjs, PUBLIC list); docs/DESIGN-SYSTEM.md.
   1 fonts  2 tokens (+ the theme.css variables re-pointed, so older page styles follow)  3 base type  4 header / footer
   5 components (buttons, links, forms, accordion, table, card, figure)  6 page sections (home, course pages)  7 print, motion */

/* ---------- 1 fonts: self-hosted OFL, latin subset, variable weight 400-700 ---------- */
/* V62: Inter (variable 400-700, opsz 14) for text, Space Grotesk 600 for headings, JetBrains Mono for code and labels */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/Inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/SpaceGrotesk-600-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2"); }
/* the practice desktop copies Ubuntu's own faces; fetched only when the lab draws text */
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/UbuntuSans-Lab.woff2") format("woff2"); }   /* V59: all 201 glyphs, weights 400-700, normal width only (88 -> 21 KB); app.css keeps the full font for its width axis */
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/UbuntuMono-Regular-latin.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/UbuntuMono-Bold-latin.woff2") format("woff2"); }

/* ---------- 2 tokens ---------- */
:root {
  --paper: #FFFFFF; --paper-2: #F8FAFC; --card: #FFFFFF; --ink: #0F172A; --ink-2: #475569; --hair: #E5E7EB; --hair-2: #CBD5E1;
  --accent: #C2410C; --accent-dk: #9A3412; --accent-lt: #FFF7ED; --night: #0B1220; --night-line: #1E293B;   /* V62 approved design */
  --term: #14181C; --term-ink: #E6E9EC;
  --ax-x: #E5494D; --ax-y: #46B35A; --ax-z: #4A8DF8;          /* ROS axis colours (img/logo-axes.svg): marks only, never text */
  --good: #1B6B3C; --good-lt: #E5F2E9; --warn: #7A5300; --warn-lt: #FBF1D6;
  --serif: "Space Grotesk", "Segoe UI", Arial, sans-serif;   /* the heading face (name kept: every page uses var(--serif)) */
  --sans: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --code: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  /* type scale, ratio 1.25 (phone values; desktop from 1024px below) */
  --t-display: 2.25rem; --t-h1: 2rem; --t-h2: 1.625rem; --t-h3: 1.3125rem; --t-lead: 1.1875rem; --t-body: 1.0625rem; --t-small: .9375rem; --t-min: .875rem; --t-code: .9375rem;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --sec: 48px;   /* V59: section padding from the research (v59-work/RESEARCH.md rule 5) */
  --r: 8px; --r-sm: 6px; --measure: 66ch; --page: 1200px;
  --shadow: 0 1px 2px rgba(31, 36, 42, .06), 0 8px 24px -12px rgba(31, 36, 42, .18);
  /* theme.css / app.css variables re-pointed to the tokens */
  --navy: var(--accent); --navy-dk: var(--accent-dk); --navy-2: var(--accent);
  --bg: var(--paper); --tint: var(--paper-2); --text: var(--ink); --text-2: var(--ink-2); --rule: var(--hair); --rule-2: var(--hair-2);
  --link: var(--accent); --ok: var(--good); --ok-lt: var(--good-lt); --radius: var(--r);
  --font: var(--sans); --mono: var(--code); --font-head: var(--serif); --font-body: var(--sans);
  --fs-xs: .875rem; --fs-label: .875rem; --fs-sm: var(--t-small); --fs-btn: 1.0625rem; --fs-base: var(--t-body); --fs-lg: var(--t-lead);
  --fs-card: var(--t-h3); --fs-xl: var(--t-h2); --fs-2xl: var(--t-h1); --fs-hero: var(--t-display);
  --page-max: var(--page); --v48-ink: var(--ink); --v48-hair: var(--hair);
  color-scheme: light;
}
@media (min-width: 1024px) {
  :root { --t-display: 3.5rem; --t-h1: 2.75rem; --t-h2: 2.125rem; --t-h3: 1.5rem; --t-lead: 1.3125rem; --t-body: 1.125rem; --t-code: 1rem; --sec: 72px; --fs-base: var(--t-body); }
}
@media (min-width: 1920px) { :root { --fs-base: var(--t-body); } }
@media (min-width: 1600px) { :root { --page: 1320px; } }   /* large screens: wider layout; text keeps its measure (66ch) */

/* ---------- 3 base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.012em; text-wrap: balance; }
:where(main) :where(h1, h2, h3, h4) { color: var(--ink); }
h1 { font-size: var(--t-h1); line-height: 1.15; } h2 { font-size: var(--t-h2); line-height: 1.2; } h3 { font-size: var(--t-h3); line-height: 1.3; }
h4 { font-family: var(--sans); font-size: var(--t-body); font-weight: 700; }
main p, main li, main dd { text-wrap: pretty; }
main :where(p, li, dd, td, th, label, summary, figcaption, small, .small, .meta, .muted):where(:not(.r2c *, #lab *, .plab *)) { font-size: max(var(--t-min), 1em); }
main :where(.small, small, .meta, figcaption):where(:not(.r2c *, #lab *, .plab *)) { font-size: var(--t-small); }
main p.small { max-width: var(--measure); }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dk); text-decoration-thickness: 2px; }
:not(pre) > code, kbd { font-family: var(--code); font-size: max(.9em, 14px); }
:not(pre) > code { background: var(--paper-2); border-radius: 4px; padding: .08em .3em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: #FED7AA; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); }
.muted { color: var(--ink-2); }

/* ---------- 4 header and footer ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--hair); }
.top .wrap { min-height: 64px; gap: 8px; }
.top .search { display: none; }
.brand b { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.brand small { color: var(--ink-2); }
#nav > ul > li > a { color: var(--ink); font-weight: 500; font-size: 1rem; }
#nav > ul > li > a:hover { color: var(--accent); }
#nav > ul > li > a[aria-current="page"] { color: var(--ink); font-weight: 700; }
#nav > ul > li > a[aria-current="page"]::after { background: var(--ink); }
#who .login { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { #nav { background: var(--paper); } #nav > ul > li > a { font-size: 1.0625rem; } }
.skip { color: var(--accent); border-color: var(--accent); }

.site-foot { background: var(--paper-2); border-top: 1px solid var(--hair); color: var(--ink-2); }
.site-foot .wrap { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); padding-top: 56px; }
.site-foot .fh { font-family: var(--sans); color: var(--ink); font-size: var(--t-small); }
.site-foot a { color: var(--ink); min-height: 28px; }
.site-foot a:hover { color: var(--accent); }
.site-foot .chan { color: var(--ink); }
.site-foot .bottom { color: var(--ink-2); border-top-color: var(--hair-2); }
.site-foot .bottom span:last-child { max-width: 62ch; }
@media (max-width: 960px) { .site-foot a { display: flex; align-items: center; min-height: 44px; padding: 0; } .site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .brand { min-height: 44px; display: inline-flex; align-items: center; } }

/* ---------- 5 components ---------- */
/* buttons: one filled accent (primary), one outlined (secondary); 48px on public pages */
.btn, .btn-main, .v48-cta, .btn.v48-cta { min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); background: var(--accent); border: 1px solid var(--accent); color: #FFFFFF; font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; transition: background-color .15s ease; }
.btn:hover, .btn-main:hover, .v48-cta:hover, .btn.v48-cta:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #FFFFFF; }
.btn-sec, .btn-white, .btn-google, .btn-ghost, .btn.btn-sec, .btn.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-sec:hover, .btn-white:hover, .btn-google:hover, .btn-ghost:hover, .btn.btn-sec:hover, .btn.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-small { min-height: 44px; }
.top .btn { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.arrow { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.arrow::after { content: none; }
.arrow:hover { text-decoration-thickness: 2px; }
@media (max-width: 767px) { main .arrow, main .d-acts > a:not(.btn), .d-route h3 a, main .d-refund a { display: inline-flex; align-items: center; min-height: 44px; white-space: normal; } main select { min-height: 44px; } }
/* forms */
main :where(input:not([type=checkbox], [type=radio], [type=range]), select, textarea) { min-height: 48px; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r-sm); padding: 0 12px; }
main textarea { padding: 10px 12px; }
main :where(input, select, textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
main label { font-weight: 600; }
/* accordion (details) */
.d-acc { border-top: 1px solid var(--hair-2); }
.d-acc > details { border-bottom: 1px solid var(--hair-2); }
.d-acc summary { display: flex; align-items: baseline; gap: 12px; min-height: 56px; padding: 14px 40px 14px 0; position: relative; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--t-body); }
.d-acc summary::-webkit-details-marker { display: none; }
.d-acc summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .18s ease; }
.d-acc details[open] > summary::after { transform: rotate(-135deg); top: 28px; }
.d-acc summary:hover { color: var(--accent); }
.d-acc details > :not(summary) { max-width: var(--measure); }
.d-acc details > p:last-child, .d-acc details > ul:last-child, .d-acc details > table:last-child { margin-bottom: 20px; }
/* tables */
.d-dtable { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.d-dtable th, .d-dtable td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); }
.d-dtable thead th { font-size: var(--t-small); color: var(--ink-2); font-weight: 600; border-bottom-color: var(--hair-2); }
.d-dtable tbody th { font-weight: 600; }
.d-tscroll { overflow-x: auto; }
/* card: white on paper, hairline, no shadow unless it floats */
.d-card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: var(--s3); }
/* figure with a real capture: thin frame, caption says what and when */
.d-shot { margin: 0; }
.d-shot img, .d-shot video { display: block; width: 100%; height: auto; border: 1px solid var(--hair-2); border-radius: var(--r); background: var(--term); }
.d-shot figcaption { margin-top: 10px; color: var(--ink-2); font-size: var(--t-small); max-width: 60ch; }
/* terminal block (real output only) */
.d-termbox { margin: 0; background: var(--term); color: var(--term-ink); border-radius: var(--r); padding: 18px 20px; font: var(--t-code)/1.55 var(--code); overflow-x: auto; white-space: pre; }
.d-termbox .ok { color: #7BD88F; } .d-termbox .dim { color: #9AA7B4; }
/* tag */
.d-tag { display: inline-block; font-size: var(--t-min); font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--hair-2); color: var(--ink); background: var(--card); white-space: nowrap; }
.d-tag.free { background: var(--good-lt); border-color: #B9DCC4; color: var(--good); }
/* the axis mark: three short strokes in the ROS x/y/z colours, the site's one signature (section openers only) */
.axmark { display: block; width: 54px; height: 4px; margin: 0 0 20px; border-radius: 2px; background: linear-gradient(90deg, var(--ax-x) 0 18px, var(--ax-y) 18px 36px, var(--ax-z) 36px 54px); }

/* ---------- 6 page sections ---------- */
.dsec { padding-block: var(--sec); }
.dsec.alt { background: var(--paper-2); }
.dsec.dark { background: var(--term); color: var(--term-ink); }
.dsec.dark :where(h2, h3) { color: #FFFFFF; }
.dsec > .wrap > h2:first-of-type, .dhead h2 { margin: 0 0 var(--s2); max-width: 22em; }
.dhead { margin-bottom: var(--s5); }
.dhead p, .d-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 0; }
.d-prose > * { max-width: var(--measure); }
.d-prose > p + p { margin-top: 18px; }
.d-onramp { margin-top: var(--s4) !important; }
.d-split { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .d-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } .d-split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.d-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: var(--s3) 0 0; }
.d-plain { list-style: none; margin: 0; padding: 0; }
.d-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.d-ticks li { position: relative; padding-left: 28px; max-width: var(--measure); }
.d-ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.d-ticks.no li::before { width: 12px; height: 0; border-left: 0; border-bottom: 2px solid var(--ink-2); transform: none; top: .8em; }
.d-laptop-note { font-size: var(--t-small); color: var(--ink-2); margin: 12px 0 0; max-width: 46ch; }

/* hero */
.d-hero { padding: 40px 0 28px; }
.d-hero > .wrap:first-child { display: grid; gap: 20px 64px; align-items: end; }
@media (min-width: 1024px) { .d-hero > .wrap:first-child { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.d-hero h1 { margin: 0; font-size: var(--t-display); line-height: 1.06; letter-spacing: -.022em; font-weight: 600; }
.d-hero h1 span { display: block; margin-top: 14px; font-family: var(--sans); font-size: var(--t-lead); line-height: 1.4; letter-spacing: 0; font-weight: 400; color: var(--ink-2); max-width: 30em; }
.d-hero .d-stack { font: 600 var(--t-small)/1.3 var(--sans); color: var(--ink-2); margin: 0 0 18px; }
.d-hero .lede { margin: 0; font-size: var(--t-body); max-width: 34em; }
.d-hero .launchcta { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.d-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--hair-2); }
.d-facts li { padding: 12px 28px 0 0; margin-right: 28px; font-size: var(--t-small); color: var(--ink-2); line-height: 1.3; }
.d-facts b { display: block; font: 600 1.5rem/1.1 var(--serif); color: var(--ink); }
.d-onramp { margin: 0; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-size: var(--t-small); }

/* try-it demo (the lab itself is css/lab.css + v50-home.css) */
.v50-try.labsec { padding: 24px 0 var(--sec); background: none; }
.v50-try .sec-head { margin-bottom: 20px; }
.v50-try .sec-head h2 { margin: 0 0 8px; font-size: var(--t-h3); }
.v50-try .sec-head p { margin: 0; color: var(--ink-2); font-size: var(--t-body); max-width: 60ch; }
.v50-cover { background: rgba(20, 24, 28, .92); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: var(--r); padding-top: 48px; }
.v50-cover .btn { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; min-height: 56px; }
.v50-cover .btn:hover { background: var(--accent-lt); color: var(--ink); border-color: var(--accent-lt); }
.v50-steps code { background: var(--paper-2); border-color: var(--hair); font-size: var(--t-min); }
.v50-steps li::before { background: var(--card); font-size: var(--t-min); }
.v50-clip figcaption, .labnote, .labnote p { font-size: var(--t-small); }
.lbtn { min-height: 36px; font-size: var(--t-min); }
@media (max-width: 767px) { .v50-demo { display: none; } .v50-phone { display: block; } .lbtn { min-height: 44px; } }


/* route map: five levels on one line (a column on phones) */
.d-route { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.d-route > li { position: relative; padding: 0 0 var(--s4) 44px; }
.d-route > li::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: -14px; width: 2px; background: var(--hair-2); }.d-route > li:last-child::before { display: none; }
.d-route .n { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 var(--t-min)/1 var(--code); color: var(--ink); }
.d-route li.free .n { background: var(--ink); color: var(--paper); }
.d-route h3 { margin: 0 0 6px; font-size: 1.25rem; }
.d-route h3 a { color: inherit; text-decoration: none; } .d-route h3 a:hover { text-decoration: underline; }
.d-route p { margin: 0 0 8px; color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
.d-route .d-cnt { font: 400 var(--t-min)/1.4 var(--sans); color: var(--ink-2); margin: 8px 0 0; }
.d-route .d-proj { color: var(--ink); }
@media (min-width: 1024px) {
  .d-route { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .d-route > li { padding: 44px 24px 0 0; }
  .d-route > li::before { left: 12px; right: -12px; top: 11px; bottom: auto; width: auto; height: 2px; }
}

/* project rows: big real capture + what is checked */
.d-proj-row { display: grid; gap: var(--s4); align-items: center; padding-block: var(--s5); border-top: 1px solid var(--hair-2); }
.dhead + .d-proj-row, h2 + .d-proj-row { border-top: 0; padding-top: 0; }
.d-proj-row h3 { margin: 0 0 10px; }
.d-proj-row .d-lvl { font: 600 var(--t-small)/1 var(--sans); color: var(--ink-2); margin: 0 0 12px; }
@media (min-width: 960px) { .d-proj-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } .d-proj-row.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .d-proj-row.flip > .d-shot { order: 2; } }

/* for / not for */
.d-fornot { display: grid; gap: var(--s5); }
@media (min-width: 800px) { .d-fornot { grid-template-columns: 1fr 1fr; gap: 72px; } }
.d-fornot h3 { margin: 0 0 var(--s2); }

/* teacher's note: a letter */
.d-letter-side h3 { margin: 0 0 var(--s2); }
.d-letter { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: clamp(24px, 5vw, 56px); max-width: 780px; box-shadow: var(--shadow); }
.d-letter h2 { margin-top: 0; }
.d-letter p { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.6; max-width: 34em; }
.d-letter .d-sig { font-family: var(--sans); font-size: var(--t-body); color: var(--ink-2); margin-bottom: 0; }
.d-letter .d-sig b { display: block; font: italic 600 1.5rem/1.3 var(--serif); color: var(--ink); }

/* pricing: two unequal columns, the Pass is the big one */
.d-plans { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 860px) { .d-plans { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s4); } }
.d-plan { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: var(--s4); }
.d-plan.main { border: 2px solid var(--ink); }
.d-plan h3 { margin: 0 0 4px; font-size: 1.25rem; }
.d-plan .d-amount { font: 600 2.5rem/1.1 var(--serif); margin: 12px 0 4px; }
.d-plan .d-amount small { font: 400 var(--t-small)/1.3 var(--sans); color: var(--ink-2); display: block; margin-top: 6px; }
.d-plan p { margin: 12px 0 0; }
.d-plan select { min-height: 44px; }
.d-paymarks { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.d-paymarks li { font: 600 var(--t-min)/1 var(--sans); border: 1px solid var(--hair-2); border-radius: 4px; padding: 7px 10px; background: var(--paper); }
.d-refund { border-left: 4px solid var(--good); padding: 4px 0 4px 20px; margin: var(--s4) 0 0; max-width: var(--measure); }
.d-refund b { display: block; }
.d-refund p { margin: 4px 0 0; }

/* certificate */
.certmini { margin: 0; max-width: 560px; }
.certmini #cert-mini { display: block; min-height: 120px; }
.certmini .r2c { box-shadow: none; }
.certmini figcaption { margin-top: 10px; color: var(--ink-2); }

/* changelog preview */
.d-clog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-2); }
.d-clog li { display: grid; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.d-clog time { font: 400 var(--t-body)/1.6 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 720px) { .d-clog li { grid-template-columns: 11em minmax(0, 1fr); } }

/* two courses: one wide main card, one narrow on-ramp */
.d-courses2 { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .d-courses2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); } }
.d-course { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.d-course img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--hair); }
.d-course .in { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.d-course h3 { margin: 0; }
.d-course p { margin: 0; }
.d-course .d-cnt { font: 400 var(--t-small)/1.5 var(--sans); color: var(--ink-2); }
.d-course .d-acts { margin-top: auto; padding-top: 12px; }
.d-course.side { align-self: start; border-color: var(--hair-2); }

/* final call */
.d-final { text-align: left; }
.d-final h2 { font-size: var(--t-h1); margin: 0 0 var(--s2); }

/* phone sticky bar (home + course page) */
.mcta { display: none; }
@media (max-width: 640px) {
  .mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px max(16px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--hair-2); transition: transform .2s ease; }
  .mcta span { font-size: var(--t-min); line-height: 1.25; color: var(--ink-2); }
  .mcta span b { display: block; color: var(--ink); font-size: var(--t-small); }
  .mcta .btn { min-height: 44px; padding: 0 14px; font-size: 1rem; }
  .mcta.v48-off { transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
  html:has(.mcta) { scroll-padding-bottom: 72px; }
  .mcta[hidden] { display: none; }
  body:has(.mcta) .site-foot { padding-bottom: 64px; }
  html.mcta-on:has(.mcta:not([hidden])) #who .btn-main { visibility: hidden; }   /* visibility, not display: the header never shifts (CLS) */   /* V71: one CTA at a time (js/v48-home.js) */
}

/* connect screenshot with numbered pins (kept from V48b) */
.v48-frame { position: relative; }
.v48-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--hair-2); border-radius: var(--r); }
.v48-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #FFFFFF; border: 2px solid #FFFFFF; display: grid; place-items: center; font: 700 var(--t-min)/1 var(--code); }
@media (max-width: 600px) { .v48-pin { display: none; } }
.d-legend { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 10px; }
.d-legend li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.d-legend b { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; font: 700 var(--t-min)/1 var(--code); }

/* course page: main column + sticky price card */
.d-cgrid { display: grid; gap: var(--s5); }
@media (min-width: 1080px) { .d-cgrid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; } .d-pricecard { position: sticky; top: calc(var(--top-h, 65px) + 24px); } }
.d-pricecard { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s3); }
.d-pricecard h2 { font-size: 1.25rem; margin: 0 0 4px; }
.d-pricecard .d-amount { font: 600 2.25rem/1.1 var(--serif); margin: 8px 0 2px; }
.d-pricecard p { margin: 10px 0 0; font-size: var(--t-small); }
.d-pricecard .btn { width: 100%; margin-top: 14px; }
.d-pricecard ul { margin: 12px 0 0; padding-left: 20px; font-size: var(--t-small); }
.d-pricecard select { min-height: 44px; }
.d-chead { padding: 48px 0 0; }
.d-chead h1 { margin: 0 0 var(--s2); max-width: 20em; }
.d-metarow { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: var(--s3) 0 0; padding: 0; font-size: var(--t-small); color: var(--ink-2); }
.d-metarow li { padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--hair-2); }
.d-metarow li:last-child { border: 0; }
.d-csec { padding-top: var(--s6); }
.d-csec > h2 { margin: 0 0 var(--s3); }
.d-csec > p { max-width: var(--measure); }
.d-outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: oc; border-top: 1px solid var(--hair-2); }
.d-outcomes li { counter-increment: oc; display: grid; grid-template-columns: 2.4em 1fr; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.d-outcomes li::before { content: counter(oc); font: 600 var(--t-body)/1.6 var(--serif); color: var(--ink-2); }
/* syllabus accordion */
.d-syl-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 var(--s2); }
.d-syl-tools .btn { min-height: 44px; font-size: 1rem; padding: 0 14px; }
.d-syl summary { flex-wrap: wrap; }
.d-syl summary .t { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; flex: 1 1 14em; }
.d-syl summary .c { font: 400 var(--t-small)/1.4 var(--sans); color: var(--ink-2); font-weight: 400; }
.d-syl .out { color: var(--ink-2); margin: 0 0 var(--s2); }
.d-syl-secs { display: grid; gap: 20px 40px; margin: 0 0 var(--s3); max-width: none !important; }
@media (min-width: 700px) { .d-syl-secs { grid-template-columns: 1fr 1fr; } }
.d-syl-secs h3 { font: 700 var(--t-small)/1.3 var(--sans); letter-spacing: 0; margin: 0 0 6px; color: var(--ink); }
.d-syl-secs ul { list-style: none; margin: 0; padding: 0; }
.d-syl-secs li { display: grid; grid-template-columns: 3.6em 1fr auto; gap: 8px; padding: 4px 0; font-size: var(--t-small); line-height: 1.45; }
.d-syl-secs .id { font: 400 var(--t-small)/1.45 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.d-syl-secs .optl { color: var(--ink-2); }
.d-updated { font-size: var(--t-small); color: var(--ink-2); }

/* ---------- 7 print and motion ---------- */
@media print {
  .top, .site-foot, .mcta, .d-pricecard, .d-syl-tools, .skip, .v50-try { display: none !important; }
  body { background: #FFFFFF; font-size: 11pt; }
  .d-acc details > :not(summary) { display: block !important; }
  .dsec, .d-csec { padding-block: 16pt; break-inside: auto; }
  details { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* course page: the main column is narrower than the home page */
.d-cgrid > * { min-width: 0; }
@media (min-width: 960px) { .dscourse .d-proj-row, .dscourse .d-proj-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
@media (max-width: 700px) { .d-facts { display: grid; grid-template-columns: 1fr 1fr; } .d-facts li { margin: 0; padding-right: 12px; } .d-metarow li { border: 0; padding-right: 0; margin-right: 18px; } }

/* ---------- 8 older public pages (pricing, register, legal, courses ...) on the same system ---------- */
main#main :is(h1, h2, h3):not(.r2c *, #lab *) { color: var(--ink); font-family: var(--serif); font-weight: 600; }
main#main :is(dt, th, .lbl, .navlabel, .crumbs, .pill):not(.r2c *, #lab *) { text-transform: none; letter-spacing: 0; }
:where(main#main) :where(p, li, dd):where(:not(.r2c *, #lab *, .plab *)) { max-width: 70ch; }
.d-clog li, .d-how > li, .d-route > li, .d-outcomes li, .d-syl-secs li, .d-facts li, .d-metarow li, .d-paymarks li, .d-legend li { max-width: none; }
/* one primary colour: the amber buttons of V48 become the accent */
main#main :is(.btn-main, .v48-cta, .pay-actions .btn-main), .mcta .btn { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
main#main :is(.btn-main, .v48-cta, .pay-actions .btn-main):hover, .mcta .btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #FFFFFF; }
main#main :is(.btn, .btn-main):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main#main .v50-cover .btn { background: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; }
main#main .v50-cover .btn:hover { background: rgba(255, 255, 255, .12); border-color: #FFFFFF; color: #FFFFFF; }
.lbl { font-size: var(--t-min); border-radius: 999px; }
.panel, .pay-plan, .prog2 { border-radius: var(--r); border-color: var(--hair); box-shadow: none; }
.pay-plan.main { border: 2px solid var(--ink); }
pre.code { border-radius: var(--r); font-family: var(--code); }
main#main :is(.crumbs a, td a, .cmp a, .pfacts a, th a) { text-decoration: underline; }
.d-nf { padding-block: var(--s6); }

/* ---------- 9 touch: on phones every stand-alone control is at least 44 px high (links inside a sentence are exempt, WCAG 2.5.8) ---------- */
.solo { display: inline-block; min-height: 24px; }
@media (max-width: 767px) {
  main :is(.solo, .crumbs a, .arrow, .pay-link, .q-actions a, td > a, th > a, .wk-list a, .lessons a, .d-route h3 a, .v50-save-act a), main p > a.btn { display: inline-flex; align-items: center; min-height: 44px; }
  main :is(select, button, .pw-eye, .btn, .lbtn) { min-height: 44px; }
  main details > summary { min-height: 44px; display: flex; align-items: center; }
  main :is(.pay-faq, .faq) details > summary { padding-block: 8px; }
  main label:has(> input[type=checkbox]), main label:has(> input[type=radio]) { display: flex; align-items: center; gap: 12px; min-height: 44px; }
  main :is(input[type=checkbox], input[type=radio]) { width: 22px; height: 22px; flex: none; }
  .mcta .btn { min-height: 44px; }
}
@media (max-width: 767px) {
  main :is(li > a:only-child, .v3auth p > a, .pay-actions > a, .v3plan .main-col a, .v3plan .aside a) { display: inline-flex; align-items: center; min-height: 44px; }
  main :is(.crumbs a, .solo, .v3plan .aside a) { min-width: 44px; }
  main#main .pw-eye { min-height: 44px; }
}
main input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.v3verify :is(label, form, div) { max-width: 100%; box-sizing: border-box; }
.v3verify div:has(> input) { flex-wrap: wrap; }
/* pages whose form is drawn by a script: hold the space, so the footer does not jump (CLS) */
main.v3auth, main.v3verify { min-height: 78vh; }

/* ---------- 10 V55 panel round 1 ---------- */
.d-route .d-tag { white-space: normal; line-height: 1.3; }
.d-salesline { padding: 10px 14px; background: var(--warn-lt); border-radius: var(--r-sm); color: var(--ink); }
.d-salesline b { color: var(--ink); }
.d-batch { max-width: 720px; }
.d-batch h3 { margin: 0 0 6px; font-size: var(--t-h3); }
.d-batch p { margin: 0; }
.d-syl-secs .min { font-size: var(--t-min); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.d-quote { margin: var(--s3) 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); max-width: var(--measure); }
.d-quote p { font: italic 400 var(--t-lead)/1.5 var(--serif); margin: 0 0 8px; }
.d-quote footer { font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 1079px) { .d-pricecard { display: none; } }   /* phones and tablets: the price table and the bottom bar carry the price */
@media (max-width: 480px) { main .d-hero .launchcta .btn, main .d-chead .d-acts .btn { width: 100%; justify-content: center; } }

/* ---------- 11 V55 panel round 2 (visual craft) ---------- */
/* the rupee sign is not in the latin subsets: a 1 KB face per family, fetched only where a price in INR is shown */
:root { --field: #64748B; }   /* form-field border: 3.3:1 or more on card, paper and paper-2 (WCAG 1.4.11) */
main :where(input:not([type=checkbox], [type=radio], [type=range]), select, textarea) { border-color: var(--field); }
main input[type=checkbox], main input[type=radio] { accent-color: var(--accent); }
/* no faux italic: Source Serif 4 ships upright only */
.d-quote p, .d-letter .d-sig b { font-style: normal; }
/* grid columns may shrink below their content (the 1040 px sample certificate is scaled to its slot by js/index.js) */
.d-split > *, .d-plans > *, .d-fornot > *, .d-courses2 > * { min-width: 0; }
.certmini { min-width: 0; } .certmini #cert-mini { max-width: 100%; overflow: hidden; }
/* tags never push the page sideways; the lab block cannot either */
.d-tag { white-space: normal; max-width: 100%; }
.v50-try { overflow-x: clip; }
/* links that are titles look like links */
.d-route h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--hair-2); }
.d-route h3 a:hover { text-decoration-color: currentColor; }
/* the brand mark sits once, on the hero eyebrow */
.d-hero .d-stack::before { content: ""; display: block; width: 54px; height: 4px; margin: 0 0 14px; border-radius: 2px; background: linear-gradient(90deg, var(--ax-x) 0 18px, var(--ax-y) 18px 36px, var(--ax-z) 36px 54px); }
/* home hero: both columns start at the top; the lede lines up with the headline */
.d-hero > .wrap:first-child { align-items: start; }
@media (min-width: 1024px) { .d-hero .v50-hero-side { padding-top: 52px; } }
/* the lab cover: the real desktop shows through; the button sits in the middle on a solid plate */
main#main .v50-cover { background: rgba(20, 24, 28, .5); place-content: start center; padding-top: 56px; }   /* V50: the button stays above the fold */
main#main .v50-cover .btn { background: var(--term); border: 2px solid #FFFFFF; color: #FFFFFF; }
main#main .v50-cover .btn:hover { background: #000000; }
.v50-cover p { background: rgba(20, 24, 28, .92); padding: 6px 12px; border-radius: var(--r-sm); }
.v50-cover :focus-visible, .dsec.dark :focus-visible, main#main .v50-cover .btn:focus-visible { outline-color: #FFFFFF; }
/* stats: four in a row from 701 px (no orphan) */
@media (min-width: 701px) and (max-width: 1023px) { .d-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .d-facts li { margin-right: 0; } }
/* meta row: gaps instead of bars, so a wrapped line never ends in a bar */
.d-metarow { gap: 6px 24px; } .d-metarow li, .d-metarow li:last-child { border: 0; padding: 0; margin: 0; }
/* captions run to the width of their picture */
.d-shot figcaption { max-width: none; }
/* terminal output wraps instead of being cut */
.d-termbox { white-space: pre-wrap; overflow-wrap: anywhere; }
/* prices: the founding price is a second price line, not a sentence */
.d-found { font: 600 var(--t-lead)/1.35 var(--serif); color: var(--ink); margin: 8px 0 0; }
.d-found small { display: block; font: 400 var(--t-small)/1.4 var(--sans); color: var(--ink-2); margin-top: 2px; }
.d-cur { margin: 12px 0 0; }
/* home price section: refund note and colleges card on the same two columns as the plans */
.d-plans-foot { margin-top: var(--s4); }
.d-plans-foot .d-refund { margin: 0; }
.d-plans-foot .d-batch { max-width: none; }
.d-batch p.d-acts { margin-top: var(--s2); }
/* two courses: equal cards */
.d-course.side { align-self: stretch; }
/* teacher's letter: the side column stays beside the letter while it is read */
@media (min-width: 960px) { #made .d-letter-side { position: sticky; top: 96px; } }
@media (max-width: 480px) { .d-letter { padding: 24px 16px; } .d-letter p { font-size: var(--t-body); } }
/* course page: the price card starts level with the breadcrumb; projects show their pictures at column width */
@media (min-width: 1080px) { .d-cgrid > .d-pricecard { margin-top: 48px; } .d-midcta { display: none !important; } }
.d-cgrid .d-chead { padding-top: 48px; }
/* V59: phones get a 4:3 crop of the same Level 4 frame (img/v59/pick-place-phone.webp), so the first screen has a real picture */
@media (min-width: 960px) { .dscourse .d-proj-row, .dscourse .d-proj-row.flip { grid-template-columns: minmax(0, 1fr); gap: 20px; } .dscourse .d-proj-row.flip > .d-shot { order: 0; } }
/* tables become one block per row on phones (labels from the header: tools/v55/build-pages.mjs rowLabels) */
@media (max-width: 600px) {
  .d-rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .d-rows, .d-rows tbody, .d-rows tr, .d-rows th, .d-rows td { display: block; width: auto; }
  .d-rows tr { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .d-rows th, .d-rows td { border: 0; padding: 2px 0; }
  .d-rows tbody th { font: 600 var(--t-body)/1.4 var(--serif); margin-bottom: 4px; }
  .d-rows td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .d-rows td:empty { display: none; }
}
/* phones: links inside a sentence stay inline (the line height no longer jumps); padding keeps a 44 px tap area */
@media (max-width: 767px) {
  main :is(li > a:only-child, td > a, .solo):not(.btn) { display: inline; min-height: 0; padding-block: 13px; }
  main#main .crumbs a { display: inline-flex; min-width: 44px; }
  main :is(.d-acts .btn, .q-actions .btn, .pay-actions .btn, .pay-code .btn) { width: 100%; justify-content: center; }
  .site-foot a { line-height: 1.3; padding-block: 8px; }
}
#who .btn { min-height: 44px; height: auto; }
/* register: the step pills fit one line on a phone (only the current step keeps its label) */
@media (max-width: 480px) { .wizard-steps li:not(.now) > span:not(.n) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
body:has(.wizard-steps) #who .btn { display: none; }   /* the header button leads to this page */
.form-row .hint { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--t-small); }

/* pricing (and the pages that share .pay-wrap): the home page's container, cards, price, chips and accordion */
main.pay-wrap { max-width: calc(var(--page) + 2 * var(--gutter, 20px)); margin-inline: auto; padding-inline: var(--gutter, 20px); }
.pay-wrap h1 { font: 600 var(--t-h1)/1.15 var(--serif); color: var(--ink); letter-spacing: -.012em; }
.pay-wrap .pay-lead { font-size: var(--t-lead); color: var(--ink-2); }
.pay-wrap .pay-plans { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s4); }
@media (max-width: 860px) { .pay-wrap .pay-plans { grid-template-columns: minmax(0, 1fr); } }
.pay-wrap .pay-plan { border: 1px solid var(--hair); border-radius: var(--r); padding: var(--s4); background: var(--card); gap: 0; }
.pay-wrap .pay-plan.main { border: 2px solid var(--ink); }
.pay-wrap .pay-plan h2 { font: 600 1.25rem/1.3 var(--serif); color: var(--ink); margin: 0 0 4px; }
.pay-wrap .pay-plan h3 { font: 700 var(--t-small)/1.3 var(--sans); color: var(--ink); margin: var(--s3) 0 0; }
.pay-wrap .pay-amount { font: 600 2.5rem/1.1 var(--serif); color: var(--ink); margin: 12px 0 4px; letter-spacing: 0; }
.pay-wrap .pay-amount small { display: block; font: 400 var(--t-small)/1.3 var(--sans); color: var(--ink-2); margin-top: 6px; }
.pay-wrap .pay-plan p { margin: 12px 0 0; }
.pay-wrap .pay-plan ul { border-top-color: var(--hair); }
.pay-wrap .pay-plan li { border-bottom-color: var(--hair); }
.pay-wrap .pay-plan .d-paymarks { border-top: 0; margin: 16px 0 0; }
.pay-wrap .pay-plan .d-paymarks li { padding: 7px 10px; border: 1px solid var(--hair-2); }
.pay-wrap #payOpens { padding: 10px 14px; background: var(--warn-lt); border-radius: var(--r-sm); font-size: var(--t-body); font-weight: 400; }
.pay-wrap #payOpens b { font-weight: 700; }
.pay-wrap .pay-plan:not(.main) .pay-actions .btn { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.pay-wrap .pay-plan:not(.main) .pay-actions .btn:hover { background: var(--ink); color: var(--paper); }
.pay-wrap .pay-actions { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pay-wrap .pay-sec { max-width: none; border-top-color: var(--hair-2); }
.pay-wrap .pay-sec > :not(.d-acc, .d-batch, form) { max-width: var(--measure); }
.pay-wrap .pay-sec h2 { color: var(--ink); }
.pay-wrap #payBatch { margin: var(--s3) 0; max-width: 720px; }
.pay-code { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.pay-code label { display: grid; gap: 6px; }
.pay-code input, .pay-code .btn { min-height: 48px; }

/* ---------- V59: home, second pass (real captures, no empty quarter, full width) ---------- */
/* hero: text left, the real lab clip right; on phones: headline, button, picture, then the rest */
.d-hero2 { padding: 28px 0 8px; }
.d-hero2 > .wrap:first-child { display: grid; gap: 20px; align-items: center; }
.d-hero2 .d-hero-text { display: contents; }
.d-hero2 .d-stack { order: 1; margin: 0; } .d-hero2 h1 { order: 2; } .d-hero2 .launchcta { order: 3; margin: 0; }
.d-hero2 .d-herofig2 { order: 4; } .d-hero2 .lede { order: 5; } .d-hero2 .d-laptop-note { order: 6; margin: 0; }
.d-hero2 h1 span { max-width: 34em; }
.d-herofig2 { margin: 0; }
.d-heroframe { position: relative; }
.d-play { position: absolute; right: 14px; bottom: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 2px solid #FFFFFF; border-radius: 999px; background: rgba(20, 24, 28, .88); color: #FFFFFF; font: 600 var(--t-small)/1.2 var(--sans); cursor: pointer; }
.d-play:hover { background: #000000; }
.d-play:focus-visible { outline-color: #FFFFFF; outline-offset: 3px; }
.d-play .d-play-len { font-weight: 400; color: #D5DBE1; }
main .d-heroframe { position: relative; }
.d-herofig2 :is(img, video), .d-steps video { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--hair-2); background: var(--term); }
@media (min-width: 1024px) {
  .d-hero2 { padding-top: 40px; }
  .d-hero2 > .wrap:first-child { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .d-hero2 .d-hero-text { display: flex; flex-direction: column; gap: 20px; }
  .d-hero2 h1 { font-size: 3.25rem; }
}
/* the four numbers use the whole width */
@media (min-width: 701px) { .d-hero2 .d-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .d-hero2 .d-facts li { margin-right: 0; } }
/* how a lesson works: three numbered rows, each a real capture */
.d-steps { list-style: none; margin: 0; padding: 0; }
.d-steps > li { max-width: none; }
.d-steps > li:first-child { border-top: 0; padding-top: 0; }
.d-steps > li:last-child { padding-bottom: 0; }
.d-steps p { margin: 0 0 12px; }
.d-term { margin: 4px 0 12px; padding: 14px 16px; background: var(--term); color: var(--term-ink); border-radius: var(--r-sm); font: 400 var(--t-min)/1.55 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }
.d-term .ok { color: #7FD48F; } .d-term .p { color: #9AA7B4; }
/* fundamentals: the course's status sits beside its title, not under it */
.d-fundhead #status h2 { font-size: var(--t-h3); margin: 0 0 var(--s2); }
@media (min-width: 960px) { .d-fundhead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } .d-fundhead #status { padding-top: 40px; } }
/* what you will build: three real captures side by side (a column on phones) */
.d-build3 { display: grid; gap: var(--s5); }
.d-build3 > article { max-width: none; min-width: 0; }
.d-build3 .d-shot { margin: 0 0 var(--s3); }
.d-build3 video { display: block; width: 100%; height: auto; border-radius: var(--r); }
.d-build3 h3 { margin: 0 0 8px; font-size: 1.25rem; }
.d-build3 .d-lvl { font: 600 var(--t-small)/1 var(--sans); color: var(--ink-2); margin: 0 0 10px; }
.d-build3 p { margin: 0 0 10px; }
@media (min-width: 960px) { .d-build3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
/* V59 phones (owner: home <= 11,000 px at 360): the three projects become one sideways row; text that is repeated on the
   course or pricing page (a link to it stays) is left out */
.d-swipe { display: none; }
@media (min-width: 701px) and (max-width: 959px) { .d-build3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); } .d-build3 > article:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .d-swipe { display: block; margin: 0 0 var(--s2); font: 600 var(--t-small)/1.4 var(--sans); color: var(--ink-2); }
  .d-build3 { grid-auto-flow: column; grid-auto-columns: min(86%, 420px); gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--s2); margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .d-build3 > article { scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .d-steps > li { display: block; }
  .d-steps .d-shot { margin: 0 0 var(--s2); }
  /* the changelog keeps its newest entry on phones */
  #made .d-clog li:nth-child(n+2) { display: none; }
  /* "Try it here": the hero already plays the same lesson; keep the laptop note and the email action */
  #try .v50-clip { display: none; }
  /* course and Fundamentals headers: no empty band above the crumbs */
  .d-chead, .d-cgrid .d-chead { padding-top: 20px; }
  main .d-shot figcaption a { display: inline-block; padding-block: 10px; }
  .d-route > li { padding-bottom: var(--s3); display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  #made .d-split, #made.d-split { gap: var(--s4); } .d-letter { padding: 20px; } .d-letter p { font-size: var(--t-body); }
  .d-route > li > h3 { margin: 0; } .d-route > li > p { margin: 0; } .d-route .d-cnt { flex-basis: 100%; margin-top: 4px; }
}
@media (max-width: 700px) { main .d-ph-hide { display: none; } }
/* teacher's note + the latest changelog entries side by side; the dates sit above their line in the narrow column */
#made .d-clog li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
#made .d-letter-side .d-acts { margin-top: var(--s2); }
/* FAQ: heading on the left, answers on the right (no half-empty row) */
@media (min-width: 1024px) { .d-faq2 .d-acc { columns: 2; column-gap: 56px; } .d-faq2 .d-acc > details { break-inside: avoid; } }
/* final call: heading and button on one line */
@media (min-width: 800px) { .d-final2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: center; } .d-final2 .d-acts { margin: 0; } .d-final2 .d-lead { margin: 0; } }
.d-final2 .d-laptop-note { margin: 8px 0 0; }
/* V59 panel round 1 */
/* price: Level 1 and the refund promise share the left column beside the Pass card; colleges full width below */
.d-plans-l { display: grid; gap: var(--s4); align-content: start; }
.d-plans-l .d-refund { margin: 0; }
#price .d-batch { max-width: none; margin-top: var(--s4); }
/* "what you type / see / is checked" */
.d-tsc { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.d-tsc li { max-width: none; }
.d-tsc b { margin-right: .35em; font-family: var(--sans); color: var(--ink); }
@media (max-width: 700px) { .d-steps > li { padding-top: var(--s4); padding-bottom: var(--s4); } .d-steps > li:first-child { padding-top: 0; } }
@media (max-width: 480px) { main .d-play { padding: 6px 14px; text-align: left; line-height: 1.25; } main .d-play .d-play-len { display: block; font-size: 14px; } main .d-play > span[aria-hidden] { float: left; margin: 6px 8px 0 0; } }
/* code inside headings: no chip (it made "ros2lab doctor , then") */
:is(h2, h3) code { padding: 0; background: none; font-size: .92em; }
/* one Play button, centred, solid (text contrast does not depend on the picture), visible focus on any poster */
main .d-play { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); background: #14181C; white-space: nowrap; }
main .d-play:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 7px #14181C; }
/* the lab demo: step cards start at the top; the shortcuts note clears the card edge */
.v50-steps li { align-content: start; }
#try .labnote { margin-top: 12px; }
/* Fundamentals: the Day 1 capture sits under the title (no empty band beside the status column) */
.d-fundshot { margin: var(--s4) 0 0; }
/* V59 pricing: what the Pass includes, full width under the two plans, in two columns on wide screens */
.pay-incl2 { display: grid; gap: var(--s3) var(--s6); }
.pay-incl2 ul { margin: 0; padding-left: 1.2em; }
.pay-incl2 h3 { margin: 0 0 8px; font: 700 var(--t-body)/1.3 var(--sans); }
@media (min-width: 860px) { .pay-incl2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
main.pay-wrap .pay-sec > .pay-incl2 { max-width: none; }
@media (min-width: 860px) {
  .pay-incl2 > ul { columns: 2; column-gap: 40px; } .pay-incl2 > ul > li { break-inside: avoid; }
  .pay-wrap .pay-plans { grid-template-rows: auto 1fr; }
  .pay-wrap .pay-plans > .pay-plan.main { grid-column: 2; grid-row: 1 / span 2; }
  .pay-wrap .pay-plans > .pay-ref2 { grid-column: 1; grid-row: 2; align-self: start; }
}
.pay-wrap .pay-plans > .pay-ref2 { margin: 0; padding: 4px 0 4px 20px; border: 0; border-left: 4px solid var(--good); }
.pay-wrap .pay-ref2 h2 { font: 700 var(--t-body)/1.3 var(--sans); margin: 0 0 6px; }
/* V59 panel round 2 */
.d-chkl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.d-chkl li { max-width: none; font-size: var(--t-small); color: var(--ink); }
.d-route .d-tag { border: 0; background: none; padding: 0; font-weight: 600; }
.d-route .d-tag.free { color: var(--good); }
#price .d-found small { color: var(--ink); }
@media (min-width: 860px) { #price .d-batch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; } #price .d-batch h3 { grid-column: 1 / -1; } #price .d-batch .d-acts { margin: 0; } }
@media (max-width: 859px) { #price .d-plans-l { display: contents; } #price .d-plans-l .d-refund { order: 3; } }
main .d-play { max-width: calc(100% - 16px); }
@media (max-width: 480px) { main .d-play { white-space: normal; } }
@media (min-width: 701px) { #how .d-steps > li { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s4); align-items: start; } }
.d-fundh3 { margin: var(--s4) 0 8px; font-size: 1.25rem; }
@media (min-width: 860px) { .d-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 860px) { .pay-code2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 48px; align-items: start; }
  .pay-code2 > * { grid-column: 1; } .pay-code2 > .d-batch { grid-column: 2; grid-row: 1 / span 4; margin: 0; } }
/* pricing FAQ rows: the same height as on the home page (rim3-pay.css adds 12 px around each) */
.pay-wrap .pay-faq .d-acc details { padding: 0; }

/* ---------- V62: the approved design v2 (owner, 20 Nov 2026): shared header and footer, then the home page (.h-*) ---------- */
.top { background: #FFFFFF; border-bottom-color: var(--hair); }
.top .wrap { min-height: 60px; }
.wm { font-family: var(--code); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.wm:hover { color: var(--ink); }
.wm img { width: 30px; height: 30px; border-radius: 7px; margin-right: 9px; flex: none; }
@media (min-width: 961px) { #nav { justify-content: center; } #nav > ul { gap: 6px; } }
#nav > ul > li > a { color: #334155; font-size: 15px; font-weight: 500; }
#nav > ul > li > a:hover { color: var(--accent); }
#who .login { color: #334155; font-size: 15px; font-weight: 500; padding: 0 10px; }
.top #who .btn { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 8px; white-space: nowrap; }
.hdr-short { display: none; }
@media (max-width: 960px) { .hdr-long { display: none; } .hdr-short { display: inline; } #nav { background: #FFFFFF; } }
@media (max-width: 480px) { #who .btn { display: inline-flex; } #nav .nav-reg { display: none; } #who .login { padding: 0 6px; } }
.btn, .btn-main, .v48-cta, .btn.v48-cta { border-radius: 8px; }
.btn-sec, .btn.btn-sec { border-color: #64748B; }
/* footer: dark, as the design */
.site-foot { background: var(--night); border-top: 1px solid var(--night-line); color: #94A3B8; }
.site-foot .fh { color: #FFFFFF; }
.site-foot a, .site-foot .chan { color: #CBD5E1; }
.site-foot a:hover { color: #FFFFFF; }
.site-foot .bottom { color: #94A3B8; border-top-color: var(--night-line); }
.site-foot :focus-visible { outline-color: #FDBA74; }

/* home */
html:has(main.h-home) { scroll-padding-top: 72px; }
main.h-home { font-size: 17px; line-height: 1.6; color: var(--ink); }
.h-home h1, .h-home h2 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.h-home h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.h-home .h-h2s { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.02em; margin-top: 16px; }
.h-home p { margin: 0; }
.h-home code { font-family: var(--code); font-size: 14px; background: #F1F5F9; padding: 1px 5px; border-radius: 4px; }
.h-home figure { margin: 0; }
.h-home figcaption { margin-top: 10px; font-family: var(--code); font-size: 14px; color: var(--ink-2); }
.h-home img { display: block; width: 100%; height: auto; }
.h-sec { padding: 88px 0; }
.h-line { border-top: 1px solid var(--hair); }
.h-alt { background: var(--paper-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.h-kick { font-family: var(--code); font-size: 14px; font-weight: 600; color: #64748B; letter-spacing: .06em; }
.h-home .h-lead { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.h-mono { font-family: var(--code); font-size: 14px; }
.h-btn-l { min-height: 52px; padding: 0 24px; font-size: 17px; }
.h-link { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.h-link:hover { color: var(--accent); }
.h-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* hero */
.h-hero { padding: 48px 0 72px; overflow-x: clip; }
.h-home .h-stack { margin-bottom: 18px; font-family: var(--code); font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.h-hero h1 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.03em; }
.h-home .h-sub { margin-top: 22px; font-size: 19px; line-height: 1.55; color: #334155; max-width: 38ch; }
.h-hero .h-ctas { margin-top: 30px; }
.h-home .h-meta { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.h-home .h-found { margin-top: 22px; font-size: 15px; color: #1E293B; border-left: 2px solid var(--accent); padding: 2px 0 2px 14px; max-width: 44ch; }
.h-ok { color: #15803D; }

/* 01 how it works */
.h-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; margin-top: 16px; }
.h-how .h-lead { margin-top: 16px; font-size: 18px; }
.h-steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.h-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; }
.h-steps li > span { font-family: var(--code); font-size: 15px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.h-steps h3 { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0; }
.h-home .h-steps p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.h-need { margin-top: 28px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 10px; padding: 16px 18px; font-size: 15px; color: #334155; }
.h-home .h-need p + p { margin-top: 6px; }
.h-need b { color: var(--ink); }
.h-try { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.h-try:hover { text-decoration: underline; }
.h-figs { display: flex; flex-direction: column; gap: 20px; }
.h-figs img { border-radius: 10px; border: 1px solid var(--hair); }
.h-figs img.h-dark { border-color: var(--night-line); }

/* 02 syllabus (dark) */
.h-darksec { background: var(--night); color: #E2E8F0; }
.h-darksec .h-kick { color: #94A3B8; }
.h-home .h-darksec h2, .h-home .h-darksec h3 { color: #FFFFFF; }
.h-sylhead { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.h-home .h-sylhead h2 { max-width: 20ch; }
.h-sylhead .h-mono { color: #CBD5E1; }
.h-levels { list-style: none; margin: 36px 0 0; padding: 0; border-bottom: 1px solid var(--night-line); }
.h-lvl { display: grid; grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1.6fr) 220px; gap: 28px; align-items: center; padding: 24px 0; border-top: 1px solid var(--night-line); }
.h-n { font-family: var(--code); font-size: 34px; font-weight: 600; color: #FDBA74; }
.h-n.h-n1 { color: #4ADE80; }
.h-lvl h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.h-home .h-lvl div > p, .h-home .h-proj { margin-top: 6px; font-size: 15px; color: #CBD5E1; }
.h-free, .h-opt { font-family: var(--code); font-size: 14px; border-radius: 4px; padding: 2px 6px; vertical-align: middle; letter-spacing: .02em; }
.h-free { color: var(--night); background: #4ADE80; }
.h-opt { color: #94A3B8; padding: 0; }
.h-tag { font-family: var(--code); font-size: 14px; color: #94A3B8; }
.h-home .h-lvl .h-note { margin-top: 10px; font-size: 14px; color: #94A3B8; }
.h-darksec a:not(.btn) { color: #FDBA74; }
.h-darksec a:not(.btn):hover { color: #FFFFFF; }
.h-btn-s { min-height: 44px; padding: 0 16px; font-size: 15px; }
.h-home img.h-thumb { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: 8px; border: 1px solid var(--night-line); }
.h-home .h-foot { margin-top: 22px; font-size: 14px; color: #94A3B8; }
.h-darksec :focus-visible { outline-color: #FDBA74; }

/* 03 fit */
.h-home #fit { padding: 80px 0; }
.h-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; margin-top: 20px; }
.h-yes, .h-no { font-family: var(--code); font-size: 14px; font-weight: 600; }
.h-yes { color: #15803D; } .h-no { color: #B91C1C; }
.h-fit ul { margin: 12px 0 0; padding-left: 18px; font-size: 16px; color: #1E293B; line-height: 1.65; }
.h-quote { margin: 0; border-left: 2px solid var(--accent); padding: 2px 0 2px 22px; }
.h-home .h-quote p { font-family: var(--serif); font-size: 21px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.h-quote footer { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* 04 pricing */
.h-home .h-alt h2 { margin-top: 16px; max-width: 24ch; }
.h-price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.h-card { background: #FFFFFF; border: 1px solid var(--hair); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.h-card.h-main { border: 2px solid var(--accent); }
.h-home .h-card h3 { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.h-home .h-main h3 { color: var(--ink); }
.h-main h3 > span { display: block; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.h-amt { font-family: var(--serif); font-size: 42px; font-weight: 600; line-height: 1; color: var(--ink); }
.h-small { font-size: 15px; color: var(--ink-2); }
.h-home .h-fp { font-size: 15px; color: #1E293B; }
.h-card ul { margin: 0; padding-left: 18px; font-size: 15px; color: #334155; line-height: 1.7; }
.h-cardbtn { margin-top: auto; justify-content: center; text-align: center; }
.h-card .btn-sec { color: var(--ink); background: transparent; }
.h-card .btn-sec:hover { color: #FFFFFF; background: var(--ink); }
.h-home .h-under { margin-top: -4px; font-size: 14px; color: var(--ink-2); text-align: center; }
.h-home .h-certline { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.h-lead .cur-switch { font-size: 14px; margin-left: 6px; }
/* V83: the short waitlist form (js/wl-inline.js) on the home Pass card and pricing.html */
.wl-in { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--hair); border-radius: 10px; background: #F8FAFC; font-size: 14px; color: #1E293B; }
.wl-in[hidden] { display: none; }
.wl-in p { margin: 0; }
.wl-in-h b { display: block; font-size: 16px; color: var(--ink); }
.wl-in-h span { color: var(--ink-2); }
.wl-in-f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; min-width: 0; }
.wl-in-f input, .wl-in-f select { font: inherit; font-weight: 400; font-size: 16px; min-height: 44px; padding: 8px 10px; border: 1px solid #94A3B8; border-radius: 8px; background: #FFFFFF; color: var(--ink); width: 100%; box-sizing: border-box; }
.wl-in-two { display: grid; grid-template-columns: 1fr; gap: 10px; }
.wl-in-c { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.wl-in-c input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.wl-in-age a { margin-left: 4px; }
.wl-in.wl-in-one .wl-in-two, .wl-in.wl-in-one .wl-in-age { display: none; }
.wl-in .btn { justify-content: center; text-align: center; }
.wl-in-msg:empty { display: none; }
.wl-in-msg { color: #9A3412; font-weight: 600; }
.wl-in-more { font-size: 13px; color: var(--ink-2); }
.wl-in-done { padding: 14px; border: 2px solid #15803D; border-radius: 10px; background: #F0FDF4; font-size: 15px; }
.wl-in-done p { margin: 0 0 6px; }
.wl-in .wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 05 faq */
.h-home #faq { padding: 72px 0; }
.h-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 24px; }
.h-faq details { border-top: 1px solid #E2E8F0; padding: 16px 0; }
.h-faq > div > details:last-child { border-bottom: 1px solid #E2E8F0; }
.h-faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; list-style: none; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-pm::after { content: "+"; font-family: var(--code); color: var(--accent); font-size: 20px; }
.h-faq details[open] .h-pm::after { content: "\2212"; }
.h-home .h-faq details p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* final */
.h-final { padding: 72px 0; background: var(--night); }
.h-final .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.h-home .h-final h2 { color: #FFFFFF; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.h-home .h-final p { color: #CBD5E1; }
.h-home .h-final h2 + p { margin-top: 10px; }
.h-final .h-ctas { gap: 18px; }
.h-wa { color: #CBD5E1; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.h-wa:hover { color: #FFFFFF; }
.h-final :focus-visible { outline-color: #FDBA74; }

/* phone sticky bar: the shared .mcta (fixed under 640 px); on the home page from 900 px down */
@media (max-width: 900px) {
  main.h-home .mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #FFFFFF; border-top: 1px solid var(--hair); box-shadow: 0 -8px 20px -12px rgba(15, 23, 42, .3); transition: transform .2s ease; }
  main.h-home .mcta.v48-off { transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
  main.h-home .mcta[hidden] { display: none; }
  main.h-home .mcta span { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
  main.h-home .mcta span b { display: block; font-weight: 400; color: #334155; font-size: 14px; }
  main.h-home .mcta .btn { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
  html:has(main.h-home) { scroll-padding-bottom: 80px; }
  body:has(main.h-home) .site-foot { padding-bottom: 72px; }
}

@media (max-width: 900px) {
  .h-sec { padding: 64px 0; }
  .h-hero { padding: 28px 0 48px; }
  .h-hero-g, .h-how, .h-fit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .h-home .h-sub { font-size: 17px; }
  .h-lvl { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; }
  .h-home img.h-thumb { grid-column: 1 / -1; max-height: 190px; }
  .h-lvl .h-proj { grid-column: 2; }
  .h-n { font-size: 28px; }
  .h-price, .h-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { main.h-home .mcta { transition: none; } }
/* review round 1 */
.top .wm { gap: 0; margin-right: 10px; }
.h-home .h-stack { letter-spacing: .02em; }
.h-home .h-opens { margin-top: 2px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.d-csec .h-kick { margin: 0 0 8px; }
/* review round 2: the Pass button and its note stay together at the card foot */
.h-cardend { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.h-home .h-cardend .h-under { margin-top: 0; }
@media (max-width: 900px) { .h-home img.h-thumb-lt { object-position: left bottom; } .h-home .h-quote p { font-size: 19px; } }
/* beat the older id-level rules (main#main headings, 70ch list items) on the home page only */
main#main.h-home li { max-width: none; }
main#main.h-home .h-darksec :is(h2, h3):not(#lab *), main#main.h-home .h-final h2:not(#lab *) { color: #FFFFFF; }   /* :not(#lab *) matches the id weight of the rule at section 8 */
main#main.h-home :is(.h-steps, .h-card) h3:not(#lab *) { font-family: var(--sans); }
main#main.h-home .h-card h3:not(#lab *) { color: var(--ink-2); }
main#main.h-home .h-card.h-main h3:not(#lab *) { color: var(--ink); }

/* V67: the V63 hero challenge and "Run it two ways" rules went with them; the hero lab is css/v67-home.css. Kept below: the OS tabs and the Copy box. */
.h-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--hair); }
.h-tabs button { min-height: 44px; padding: 0 14px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ink-2); font: 600 15px/1 var(--sans); cursor: pointer; }
.h-tabs button:hover { color: var(--ink); }
.h-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.h-new { font: 600 14px/1 var(--code); color: var(--accent); }
.h-home .h-os-where { margin: 12px 0 8px; font-size: 15px; color: #334155; }
.h-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.h-home .h-copy pre { margin: 0; padding: 12px 14px; background: var(--night); border: 0; border-radius: 8px; color: #E5E7EB; font: 14px/1.5 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }
.h-home .h-copy code { background: none; padding: 0; color: inherit; font: inherit; }
.h-copybtn { min-width: 128px; min-height: 44px; padding: 0 14px; border-radius: 8px; background: var(--ink); border: 1px solid var(--ink); color: #FFFFFF; font: 600 15px/1 var(--sans); cursor: pointer; }
.h-copybtn:hover { background: #1E293B; }
.h-home .h-os-read { margin: 8px 0 0; font-size: 14px; }
.h-os-read a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
/* V63: the symbol + the word + Log in + Start free + the menu button fit a 360 px phone */
@media (max-width: 420px) { .top .wm { font-size: 18px; margin-right: 0; } .top .wm img { width: 26px; height: 26px; margin-right: 6px; } .top #who .btn-main { padding: 0 12px; } .top .burger { margin-left: 0; } }
