/* Loaded after pages.css by the pages that carry <body class="v2">. */
/* ==========================================================================
   CMDLearn design system on the inner pages (design pass, 11 Nov 2026).
   The tokens are the same block as :root in index.html: change both together.
   Batch 1: this file is loaded only by the pages that opt in with <body class="v2"> (the waitlist, its thank-you page
   and the government pilot page), so pages.css and every other inner page are byte for byte as before. Batch 2 moves
   this block into pages.css when the guide template adopts it.
   Colour rules: orange-deep = an action; marigold = a highlight; ink = structure. Display type for headings and labels.
   ========================================================================== */
:root {
  --ink: #0e1b2e; --ink-2: #16273d; --ink-3: #22324a; --ink-muted: #4a5b70; --ink-soft: #5b6b80;
  --paper: #fbf7f1; --paper-2: #f4ede2; --paper-3: #ece2d2; --white: #fffdf9;
  --orange: #e64a19; --orange-deep: #b93d0b; --orange-press: #9c3208; --orange-light: #ff8a5b; --orange-tint: #ffe3d6;
  --marigold: #ffc53d; --marigold-tint: #fff1c8;
  --sky: #e3f0f4; --sky-2: #cfe3ea;
  --green: #166a4b; --green-tint: #d9efe4; --red: #b91c1c; --red-tint: #fde8e4;
  --line: #e4d9c8; --line-2: #cdbfa8; --line-navy: #2a3f5c; --field-line: #857b6b;
  --on-navy: #dbe4ee; --on-navy-muted: #b7c4d3; --on-orange: #fff1ea;
  --focus: #0a63c4;
  /* no "Segoe UI Variable Display" in this stack: as a fallback it held the first paint back on Windows (see docs/learnings) */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  --t-xs:  clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --t-sm:  clamp(0.90rem, 0.87rem + 0.14vw, 0.98rem);
  --t-md:  clamp(1.02rem, 0.98rem + 0.18vw, 1.125rem);
  --t-lg:  clamp(1.14rem, 1.06rem + 0.36vw, 1.36rem);
  --t-xl:  clamp(1.36rem, 1.22rem + 0.62vw, 1.75rem);
  --t-2xl: clamp(1.70rem, 1.42rem + 1.24vw, 2.50rem);
  --t-3xl: clamp(2.05rem, 1.56rem + 2.20vw, 3.50rem);
  --t-4xl: clamp(2.45rem, 1.42rem + 5.20vw, 5.50rem);
  --t-num: clamp(3.40rem, 2.30rem + 4.80vw, 6.00rem);
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --container: 76rem;
  --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 3.5rem);
  --sec-y: clamp(3.5rem, 2.4rem + 5.2vw, 7rem);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(14 27 46 / 0.06), 0 8px 24px -12px rgb(14 27 46 / 0.18);
  --shadow-2: 0 2px 4px rgb(14 27 46 / 0.08), 0 24px 48px -20px rgb(14 27 46 / 0.32);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;
}
.v2 { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink-3); font-family: var(--font-body); font-size: var(--t-md); line-height: 1.65; }
.v2 main { flex: 1 0 auto; padding-block: clamp(1.4rem, 0.9rem + 2.6vw, 3.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.v2 .wrap { max-width: var(--container); padding-inline: var(--gutter); }
.v2 a { color: var(--orange-deep); text-decoration-thickness: 1px; }
.v2 a:hover { color: var(--ink); }
/* header: the mark beside the name, the links as one rail that wraps under the name when it must, the waitlist as a button */
.v2 .site-head { padding-block: 0.45rem; border-bottom-color: var(--line); }
.v2 .site-head .wrap { gap: 0 0.75rem; }
.v2 .brand, .v2 .brand:hover { gap: 0.55rem; font-size: 1.3rem; color: var(--ink); }
.v2 .brand::before { content: ""; flex: none; width: 1.9rem; height: 1.9rem; background: url(/assets/favicon.svg) center / contain no-repeat; }
.v2 .site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.35rem; margin-inline: -0.6rem; }
.v2 .site-head nav a { position: relative; margin: 0; padding: 0 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); color: var(--ink-muted); }
.v2 .site-head nav a:hover { color: var(--ink); }
.v2 .site-head nav a[aria-current="page"] { color: var(--ink); }
.v2 .site-head nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0.6rem; bottom: 0.3rem; height: 3px; border-radius: 2px; background: var(--orange); }
.v2 .site-head nav a[href^="/waitlist/"]:not([aria-current]) { margin-inline: 0.25rem 0.6rem; padding-inline: 1.05rem; border-radius: var(--r-pill); background: var(--orange-deep); color: var(--white); transition: background var(--dur) var(--ease-out); }
.v2 .site-head nav a[href^="/waitlist/"]:not([aria-current]):hover { background: var(--orange-press); color: var(--white); }
/* a 360 px phone: three links still share one row under the name */
@media (max-width: 26rem) {
  .v2 .site-head nav { gap: 0; margin-inline: -0.45rem; }
  .v2 .site-head nav a { padding-inline: 0.45rem; font-size: 0.86rem; }
  .v2 .site-head nav a[aria-current="page"]::after { inset-inline: 0.45rem; }
  .v2 .site-head nav a[href^="/waitlist/"]:not([aria-current]) { margin-inline: 0.1rem 0.45rem; padding-inline: 0.8rem; }
}
/* type */
.v2 .kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.14em; color: var(--orange-deep); }
.v2 .kicker::before { content: ""; flex: none; width: 1.5rem; height: 2px; background: currentColor; }
.v2 h1, .v2 h2, .v2 h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
.v2 h1 { font-size: var(--t-3xl); font-weight: 800; line-height: 1.04; letter-spacing: -0.032em; margin-block: 0.7rem 1.1rem; }
.v2 h2 { font-size: var(--t-xl); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.v2 .prose { max-width: 44rem; }
.v2 .prose p, .v2 .prose li { text-wrap: pretty; }
.v2 article.prose h2 { margin-block: 2.4rem 0.8rem; padding-block-start: 1.5rem; border-top: 1px solid var(--line-2); }
.v2 .prose ul, .v2 .prose ol { padding-left: 1.5rem; }
.v2 .prose li { margin-block: 0.45rem; padding-left: 0.25rem; }
.v2 .prose ul > li::marker { color: var(--orange); }
.v2 .prose ol > li::marker { font-family: var(--font-display); font-weight: 800; color: var(--orange-deep); }
.v2 .prose strong { color: var(--ink); }
/* the callout: "status, stated plainly" and every other note (the home page's early-stage notice is the same object) */
.v2 .note { padding: 0.9rem 1.1rem; border: 0; border-inline-start: 4px solid var(--marigold); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--marigold-tint); color: var(--ink-2); }
.v2 .note > p:last-child { margin-bottom: 0; }
.v2 .note a { color: var(--ink); font-weight: 600; }
/* buttons: the home page's solid button */
.v2 .btn { min-height: 3.25rem; padding: 0.75rem 1.5rem; border-radius: var(--r-pill); background: var(--orange-deep); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); line-height: 1.2; transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.v2 .btn:hover { background: var(--orange-press); color: var(--white); }
.v2 .btn:active { transform: translateY(1px); }
/* footer: the home page's dark foot */
.v2 .site-foot { border-top: 0; background: #0a1424; color: #a9b8c9; padding-block: 1.75rem; font-size: var(--t-sm); }
.v2 .site-foot .wrap { align-items: center; gap: 0.25rem 1.5rem; }
.v2 .site-foot a { color: #c3d0dd; font-weight: 600; text-decoration: none; padding-inline: 0.15rem; }
.v2 .site-foot a:hover { color: var(--marigold); }
.v2 .site-foot :focus-visible { outline-color: var(--marigold); }
/* an action panel at the end of a page (the pilot page's contact) */
.v2 .cta-panel { margin-block-start: 2.6rem; padding: clamp(1.3rem, 1rem + 1.6vw, 2rem); border-radius: var(--r-lg); background: var(--ink); color: var(--on-navy); }
.v2 article.prose .cta-panel h2 { margin: 0 0 0.5rem; padding: 0; border: 0; color: var(--white); }
.v2 .cta-panel p { margin: 0; }
.v2 .cta-panel a { color: var(--marigold); font-weight: 700; }
.v2 .cta-panel a:hover { color: var(--white); }
.v2 .cta-panel :focus-visible { outline-color: var(--marigold); }

/* ---------- the waitlist: what it is on the left, the form as a card on the right (under it on a phone) ---------- */
.v2 .wl { max-width: var(--container); display: grid; gap: 1.25rem clamp(2rem, 1rem + 5vw, 5rem); align-items: start; }
.v2 .wl-intro p { margin-block: 0 0.8rem; font-size: var(--t-sm); line-height: 1.6; color: var(--ink-muted); }
.v2 .wl-intro h1 + p { font-size: var(--t-md); color: var(--ink-2); }
.v2 .wl-intro p.kicker { margin: 0; font-size: var(--t-xs); line-height: 1.5; color: var(--orange-deep); }
.v2 .wl-card { padding: clamp(1.1rem, 0.8rem + 1.6vw, 1.75rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
@media (min-width: 60rem) {
  .v2 .wl { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); }
  .v2 .wl-intro { padding-block-start: 1rem; }
  .v2 .wl-intro p { font-size: var(--t-md); max-width: 34rem; }
  .v2 .wl-intro h1 + p { font-size: var(--t-lg); line-height: 1.5; }
  .v2 .wl-card { position: sticky; top: 1.25rem; }
}
/* the plan that was picked on the home page: a ticket on top of the form */
.v2 .wl-card > .note { margin-block-end: 1rem; font-size: var(--t-sm); line-height: 1.45; font-weight: 600; color: var(--ink); }
.v2 .wl-card > .note:last-child { margin-block-end: 0; font-weight: 400; }
.v2 form.waitlist { gap: 0.35rem; max-width: none; margin-top: 0; }
.v2 form.waitlist label { font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.v2 form.waitlist label:not(.check):not(:first-child) { margin-block-start: 0.65rem; }
/* a field edge of 4.1:1 on white (it was 1.4:1; WCAG 1.4.11 asks 3:1); 16 px text so iOS does not zoom the page */
.v2 form.waitlist input, .v2 form.waitlist select { min-height: 3rem; padding: 0.6rem 0.85rem; border: 1.5px solid var(--field-line); border-radius: var(--r-md); background-color: #fff; color: var(--ink); font-size: 1rem; line-height: 1.3; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.v2 form.waitlist input:hover, .v2 form.waitlist select:hover { border-color: var(--ink); }
.v2 form.waitlist input:focus-visible, .v2 form.waitlist select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); border-radius: var(--r-md); }
.v2 form.waitlist select { -webkit-appearance: none; appearance: none; padding-inline-end: 2.6rem; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; }
@media (forced-colors: active) { .v2 form.waitlist select { -webkit-appearance: auto; appearance: auto; } } /* the drawn arrow is a background: gone in forced colours */
/* a field the visitor left wrong, once they have tried to send or have left it (no script: the browser's own state) */
.v2 form.waitlist input:user-invalid, .v2 form.waitlist select:user-invalid { border-color: var(--red); background-color: var(--red-tint); }
.v2 form.waitlist .check { margin-block-start: 0.9rem; gap: 0.7rem; font-size: var(--t-sm); font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.v2 form.waitlist .check input { min-height: 0; padding: 0; margin-top: 0; accent-color: var(--orange-deep); }
.v2 form.waitlist .check input:user-invalid { outline: 2px solid var(--red); outline-offset: 2px; }
.v2 form.waitlist .meta { margin: 0 0 0.2rem; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-muted); }
.v2 form.waitlist .check + .meta { margin-block-start: 0.6rem; padding-block-start: 0.8rem; border-top: 1px solid var(--line); }
.v2 form.waitlist .btn { width: 100%; margin-block-start: 0.7rem; }
/* the message under the button stays in the page (it is a live region) and takes its box only when it has words;
   it turns red while a field is still wrong */
.v2 .status { margin: 0; font-size: var(--t-sm); line-height: 1.45; font-weight: 600; color: var(--ink); }
.v2 .status:not(:empty) { margin-block-start: 0.5rem; padding: 0.7rem 0.9rem; border-inline-start: 4px solid var(--ink); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--paper-2); }
.v2 form.waitlist:has(:user-invalid) .status:not(:empty) { border-color: var(--red); background: var(--red-tint); color: #7f1414; }
/* the thank-you page: a tick, then the words */
.v2 .done { max-width: 38rem; }
.v2 .done-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-block-end: 1.25rem; border-radius: 50%; background: var(--green); color: var(--white); }
.v2 .done-mark svg { width: 1.75rem; height: 1.75rem; }
.v2 .done h1 + p { font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .v2 * { transition: none !important; } }
