/* ==========================================================================
   theme-carbon.css : saptarishiai.com, direction "Carbon"
   SOP-010 Lane C (Web), REQ-81.

   Styles the markup contract website/src/page.sample.html and never changes
   it. Every colour is a sealed value from design-system/tokens.json.
   Mobile first: base rules are the 360px phone; wider screens add to them.
   ========================================================================== */

/* ---------- 1. Fonts (vendored OFL files; build rewrites these urls) ------ */

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/playfair.0b50a068.woff2') format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anek Latin";
  src: url('fonts/anek-latin.0a725817.woff2') format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url('fonts/plex-mono-medium.f47e7768.woff2') format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens --------------------------------------------------- */

:root {
  /* Frame: tokens.json web.frames.carbon (true black since 2026-09-26, REQ-82) */
  --ground: #000000;
  --ink: #F5F8F0;
  --sub: rgba(245, 248, 240, 0.74);
  --dim: rgba(245, 248, 240, 0.50);   /* graphics only, never text */
  --rule: rgba(245, 248, 240, 0.18);
  --panel: rgba(245, 248, 240, 0.06);
  --focus: #F5F8F0;

  /* Ember: tokens.json palettes.ember (Claude programs) */
  --ember-accent: #FF3A1D;            /* accent, cta_bg */
  --ember-accent2: #FFD60A;           /* accent2, chip_bg, promote_roles.price + highlight */
  --ember-glow: rgba(255,58,29,.50);  /* glow */

  /* Signal: tokens.json palettes.signal (Orderflow Academy) */
  --signal-accent: #CCFF00;           /* accent, chip_ink, promote_roles.bar */
  --signal-accent2: #00E5FF;          /* accent2, promote_roles.price + highlight */
  --signal-glow: rgba(204,255,0,.55); /* glow */

  /* Type: tokens.json type.families; sizes obey web.type_px */
  --font-display: "Playfair Display", Georgia, serif;
  --font-text: "Anek Latin", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Mark, tap and layout: tokens.json mark.opacity, web.tap_min_px,
     web.layout_max_px */
  --mark-opacity: 0.78;
  --tap: 44px;
  --max: 1200px;

  /* Layout helpers (derived, not colours) */
  --gutter: 16px;
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2));
  --bleed: 16px;
  --speed: 0.15s;
}

/* ---------- 3. Reset and base ------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  color: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  font-synthesis: none;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; }
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

::selection { background: var(--ink); color: var(--ground); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

[id] { scroll-margin-top: 24px; }

/* ---------- 4. Skip link and demo banner -------------------------------- */

.skip {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible, .skip:focus { transform: none; }

.demo-banner {
  padding: 10px var(--pad);
  background: var(--panel);
  border-bottom: 1px dashed var(--dim);
  color: var(--sub);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
}

/* ---------- 5. Header ---------------------------------------------------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--rule);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  min-width: 48px;
}
.site-header__mark { width: 168px; opacity: var(--mark-opacity); }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 -10px;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  color: var(--sub);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--speed) ease;
}
.site-nav__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- 6. Hero ------------------------------------------------------ */

.hero { padding: 44px var(--pad) 48px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 1.75rem + 4vw, 5rem);   /* a sentence since REQ-94 F-024 */
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

.hero__pitch {
  margin-top: 22px;
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* One line per course (REQ-94 F-024 A). */
.hero__line { display: block; }

.hero__sub {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--sub);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}

/* The animation (layers.js). Phones and tablets: a full-bleed band straight
   under the header. Wide screens: a framed panel beside the headline. It never sits
   under text (SOP-010 14.6); the pause control is an opaque icon button. */
.hero__visual {
  --layers-ground: #000000;
  --layers-ink: #F5F8F0;
  --layers-dim: rgba(245,248,240,0.5);
  --layers-of-a: #CCFF00;
  --layers-of-b: #00E5FF;
  --layers-cl-a: #FF3A1D;
  --layers-cl-b: #FFD60A;
  position: relative;
  margin: -44px calc(-1 * var(--pad)) 36px;
  border-bottom: 1px solid var(--rule);
  background: var(--layers-ground);
}
.hero__canvas {
  width: 100%;
  height: clamp(208px, 58vw, 360px);
  background: var(--layers-ground);
}
.hero__toggle {
  position: absolute;
  left: var(--pad);
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--speed) ease;
}
.hero__toggle[hidden] { display: none; }
.hero__toggle:hover { border-color: var(--ink); }
.hero__toggle svg { width: 16px; height: 16px; }
.hero__toggle .icon-play { display: none; }
.hero__toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero__toggle[aria-pressed="true"] .icon-play { display: block; }

/* Buttons: square, >= 44px, one family */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: var(--tap);
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}
.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}
.btn--primary:hover { background: transparent; color: var(--ink); }

.hero__cta { display: flex; margin-top: 28px; }

/* Doors: full-width rows, each lit in its program colour */
.doors {
  list-style: none;
  margin: 44px calc(-1 * var(--bleed)) 0;
}
.door[data-palette="ember"] { --p-accent: var(--ember-accent); --p-highlight: var(--ember-accent2); }
.door[data-palette="signal"] { --p-accent: var(--signal-accent); --p-highlight: var(--signal-accent2); }

.door {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name arrow" "when arrow";
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  min-height: 96px;
  padding: 18px var(--bleed);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--speed) ease, color var(--speed) ease;
}
.door::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--bleed);
  right: var(--bleed);
  height: 3px;
  background: var(--p-accent);
}
.doors__item:last-child .door::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--bleed);
  right: var(--bleed);
  height: 1px;
  background: var(--rule);
}
.door__name {
  grid-area: name;
  font-weight: 700;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.door__when {
  grid-area: when;
  color: var(--p-highlight);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}
.door__arrow {
  grid-area: arrow;
  width: 52px;
  height: 52px;
  padding: 13px;
  background: var(--p-accent);
  color: var(--ground);
  transition: transform var(--speed) ease, background-color var(--speed) ease, color var(--speed) ease;
}
.door:hover, .door:focus-visible { background: var(--p-accent); color: var(--ground); }
.door:hover .door__when, .door:focus-visible .door__when { color: var(--ground); }
.door:hover .door__arrow, .door:focus-visible .door__arrow {
  background: var(--ground);
  color: var(--p-accent);
  transform: translateX(4px);
}
.door:focus-visible { outline: 3px solid var(--ground); outline-offset: -8px; transition: none; }
.door:focus-visible .door__arrow { transition: none; }

/* ---------- 7. Courses ---------------------------------------------------- */

.courses { padding: 56px var(--pad) 88px; }

.section-title {
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.courses__list {
  display: grid;
  gap: 48px;
  margin-inline: calc(-1 * var(--gutter));
}

/* Program roles, scoped to the card (web._frame_rule) */
.course[data-palette="ember"] {
  --p-accent: var(--ember-accent);
  --p-highlight: var(--ember-accent2);
  --p-chip-bg: var(--ember-accent2);
  --p-chip-ink: var(--ground);
  --p-chip-line: var(--ember-accent2);
  --p-cta: var(--ember-accent);
  --p-cta-hover: var(--ember-accent2);
  --p-price: var(--ember-accent2);
  --p-glow: var(--ember-glow);
}
.course[data-palette="signal"] {
  --p-accent: var(--signal-accent);
  --p-highlight: var(--signal-accent2);
  --p-chip-bg: var(--ground);
  --p-chip-ink: var(--signal-accent);
  --p-chip-line: var(--signal-accent);
  --p-cta: var(--signal-accent);
  --p-cta-hover: var(--signal-accent2);
  --p-price: var(--signal-accent2);
  --p-glow: var(--signal-glow);
}

.course {
  display: flex;
  flex-direction: column;
  padding: 32px var(--gutter) 36px;
  background: var(--panel);
  border-top: 6px solid var(--p-accent);
  border-bottom: 1px solid var(--rule);
}
.course__body { display: contents; }

/* Visual order: the artefact (the prompt card) follows the hook */
.chip { order: 1; }
.course__name { order: 2; }
.course__hook { order: 3; }
.prompt-card { order: 4; }
.course__pitch { order: 5; }
.facts { order: 6; }
.price { order: 7; }
.course__cta { order: 8; }
.course__block { order: 9; }
.course__independence, .disclaimer { order: 10; }

.chip {
  align-self: start;
  justify-self: start;
  padding: 5px 12px 4px;
  background: var(--p-chip-bg);
  border: 1px solid var(--p-chip-line);
  color: var(--p-chip-ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.course__name {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.course__hook {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.course__pitch {
  margin-top: 28px;
  max-width: 64ch;
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* The Claude prompt card: Teach PromptCard (panel + full rule border) */
.prompt-card {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--rule);
}
.prompt-card__label {
  display: block;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--p-highlight);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}
.prompt-card__text {
  padding: 18px 18px 20px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-card__text code { font: inherit; }

/* Facts: the fact bar as a definition list */
.facts { margin-top: 32px; border-top: 1px solid var(--rule); }
.facts__row {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.facts__term {
  padding-top: 2px;
  color: var(--p-highlight);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts__value { font-weight: 500; font-size: 1.125rem; line-height: 1.45; }

/* Price stamp: promote_roles.price (accent2 on ground) */
.price {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 32px;
  padding: 12px 18px 11px;
  background: var(--p-price);
  color: var(--ground);
  transform: rotate(-2deg);
  transform-origin: left center;
  box-shadow: 0 0 22px var(--p-glow);
}
.price__amount {
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.price__note { font-weight: 600; font-size: 1rem; line-height: 1.25; }

/* CTA */
.course__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.course .btn--cta:not(.btn--soon) {
  background: var(--p-cta);
  border-color: var(--p-cta);
  color: var(--ground);
}
.course .btn--cta:not(.btn--soon):hover {
  background: var(--p-cta-hover);
  border-color: var(--p-cta-hover);
}
.btn--soon {
  background: transparent;
  border: 2px dashed var(--dim);
  color: var(--sub);
  cursor: default;
}
.course__cta-note { max-width: 44ch; color: var(--sub); font-size: 1rem; line-height: 1.45; }
/* A started course's "email us about the next batch" link, on its card and in
   "Pick your course" (REQ-94 F-018). Hidden until the course has started. */
.course__mail,
.final__mail {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.course__mail:hover,
.final__mail:hover { text-decoration-thickness: 2px; }
.course__mail[hidden],
.final__mail[hidden] { display: none; }
.final__mail { grid-column: 1 / -1; }

/* Details */
.course__block {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--sub);
}
.course__block p { max-width: 64ch; text-wrap: pretty; }
.course__block-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}
.ticks { display: grid; gap: 10px; list-style: none; }
.ticks__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.ticks__item .tick { width: 22px; height: 22px; margin-top: 3px; color: var(--p-highlight); }

/* Legal lines (data-web-small) */
.course__independence, .disclaimer {
  margin-top: 36px;
  padding-top: 16px;
  padding-right: max(0px, calc(100% - 72ch));
  border-top: 1px solid var(--rule);
  color: var(--sub);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---------- 8. Statement (the line the animation illustrates) ------------ */

.statement {
  padding: 64px var(--pad) 72px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.statement__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.statement__text { margin-top: 16px; max-width: 46ch; color: var(--sub); font-size: 1.1875rem; }

/* ---------- 9. Trust strip ----------------------------------------------- */

.trust { padding: 88px var(--pad); }
.trust__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 32px; list-style: none; }
.trust__item { padding-top: 24px; border-top: 1px solid var(--rule); }
.trust__item .tick {
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.trust__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.1;
}
.trust__text { margin-top: 10px; max-width: 40ch; color: var(--sub); }
/* 44px tall to the pointer (REQ-94 F-020): the padding grows the hit area, the
   equal negative margin keeps the line where it was. */
.trust__link { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.trust__link:hover { text-decoration-thickness: 2px; }

/* ---------- 10. Final CTA and next steps ---------------------------------- */

.final { padding: 88px var(--pad) 96px; border-top: 1px solid var(--rule); }
.final__list { list-style: none; border-top: 2px solid var(--ink); }
.final__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 24px;
  align-items: center;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.final__name { font-weight: 700; font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem); line-height: 1.15; }
.final__when { color: var(--sub); font-weight: 500; font-size: 1.125rem; }
.final__cta { margin-top: 10px; }
.final .btn--cta:not(.btn--soon) { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.final .btn--cta:not(.btn--soon):hover { background: transparent; color: var(--ink); }
.final__soon { margin-top: 16px; color: var(--sub); font-size: 0.9375rem; }

.next { margin-top: 72px; }
.next__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1;
}
.next__steps { display: grid; margin-top: 24px; list-style: none; counter-reset: step; }
.next__step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  /* Rows pack at the top, so every step's text starts at the same height when a
     taller neighbour stretches the row (REQ-94 F-032). */
  align-content: start;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.next__step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.25rem;
  line-height: 0.85;
  font-variant-numeric: lining-nums;
}

/* ---------- 11. Demo form stub (demo builds only) ------------------------- */

.demo-form {
  margin: 0 var(--pad) 96px;
  padding: 28px 24px;
  border: 2px dashed var(--dim);
  background: var(--panel);
}
.demo-form__title { font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.demo-form__text { margin-top: 10px; max-width: 64ch; color: var(--sub); }

/* ---------- 12. Footer --------------------------------------------------- */

.site-footer {
  display: grid;
  gap: 12px;
  padding: 56px var(--pad) 40px;
  border-top: 1px solid var(--rule);
}
.site-footer__mark img { width: 200px; opacity: var(--mark-opacity); }
.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 32px;
  margin-top: 20px;
  list-style: none;
}
.site-footer__item { color: var(--sub); font-size: 1.0625rem; }
.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer__link:hover { text-decoration-thickness: 2px; }
.site-footer__email {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer__email:hover { text-decoration-thickness: 2px; }
.site-footer__small { color: var(--sub); font-size: 0.9375rem; }

/* ---------- 13. Wider screens -------------------------------------------- */

@media (min-width: 600px) {
  :root { --gutter: 24px; --bleed: 24px; }
  .site-footer__mark img { width: 480px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .site-header__mark { width: 200px; }
  .site-header { flex-wrap: nowrap; }

  .hero__cta { display: inline-flex; min-width: 240px; }
  .hero__visual { margin-bottom: 44px; }
  .hero__canvas { height: clamp(300px, 40vw, 420px); }

  .courses__list { margin-inline: 0; }
  .course {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    padding: 40px 40px 44px;
    border: 1px solid var(--rule);
    border-top: 8px solid var(--p-accent);
  }
  .course > *, .course__body > * { grid-column: 1 / -1; }
  .course .price { grid-column: 1 / 2; align-self: center; }
  .course .course__cta { grid-column: 2 / 3; }

  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .final__row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; min-height: 104px; }
  .final__cta { margin-top: 0; min-width: 200px; }
}

@media (min-width: 1080px) {
  :root { --gutter: 40px; }

  /* Hero: the headline and the course lines on the left, the animation beside them */
  .hero { padding: 72px var(--pad) 80px; }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas: "title visual" "pitch visual" "sub visual" "cta visual" "doors doors";
    column-gap: 48px;
  }
  .hero__title { grid-area: title; font-size: clamp(4rem, 1rem + 4.6vw, 5.75rem); }
  .hero__pitch { grid-area: pitch; margin-top: 28px; }
  .hero__sub { grid-area: sub; margin-top: 20px; }
  .hero__cta { grid-area: cta; align-self: start; justify-self: start; margin-top: 32px; }
  .hero__visual {
    grid-area: visual;
    align-self: stretch;
    min-height: 460px;
    margin: 6px 0 0;
    border: 1px solid var(--rule);
  }
  .hero__visual::before, .hero__visual::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
  }
  .hero__visual::before { top: -1px; left: -1px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
  .hero__visual::after { right: -1px; bottom: -1px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .hero__canvas { position: absolute; inset: 0; height: 100%; }
  .hero__toggle { left: 14px; bottom: 14px; }
  .doors { grid-area: doors; margin-top: 72px; }
  .door {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "name when";
    column-gap: 40px;
    min-height: 112px;
  }
  .door__arrow { grid-area: when; justify-self: end; width: 60px; height: 60px; padding: 15px; }
  .door__when { padding-right: 84px; }

  /* Course cards: full-width spreads on a 12-column grid */
  .courses { padding-top: 96px; padding-bottom: 128px; }
  .section-title { margin-bottom: 48px; }
  .courses__list { gap: 72px; }
  .course {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto 1fr auto auto auto;
    padding: 56px 56px 48px;
  }
  .course > *, .course__body > * { grid-column: auto; }
  .chip { grid-area: 1 / 1 / 2 / 8; }
  .course__name { grid-area: 2 / 1 / 3 / 8; }
  .course__hook { grid-area: 3 / 1 / 4 / 8; }
  .course__pitch { grid-area: 4 / 1 / 5 / 8; }
  .course .prompt-card { grid-area: 2 / 8 / 5 / 13; align-self: start; margin-top: 10px; }
  /* A card with no picture (Orderflow, since REQ-84) sets its pitch in that column instead */
  .course:not(:has(> figure)) .course__pitch { grid-area: 2 / 8 / 5 / 13; align-self: end; margin-top: 10px; }
  .prompt-card__label { padding: 16px 24px 14px; font-size: 1.0625rem; }
  .prompt-card__text { padding: 22px 24px 26px; font-size: 1.1875rem; }
  .course .facts { grid-area: 5 / 1 / 7 / 7; margin-top: 44px; }
  .course .price { grid-area: 5 / 8 / 6 / 13; align-self: start; margin-top: 52px; }
  .course .course__cta { grid-area: 6 / 8 / 7 / 13; align-self: start; }
  .course .btn--cta { align-self: start; min-width: 280px; }
  .course__block:nth-of-type(1) { grid-area: 7 / 1 / 8 / 7; }
  .course__block:nth-of-type(2) { grid-area: 7 / 7 / 8 / 13; }
  .course__block:nth-of-type(3) { grid-area: 8 / 1 / 9 / 7; }
  .course__block:nth-of-type(4) { grid-area: 8 / 7 / 9 / 13; }
  .course__block { margin-top: 44px; }
  .course__independence, .disclaimer { grid-area: 9 / 1 / 10 / 13; margin-top: 44px; }

  /* Statement: the line and its gloss side by side */
  .statement {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 48px;
    align-items: start;
    padding-block: 96px;
  }
  .statement__text { margin-top: 8px; }

  .trust { padding-block: 120px; }
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .final { padding-block: 120px; }
  .next__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .next__step { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding-top: 24px; }
  .next__step::before { font-size: 5rem; }

  .site-footer {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 64px;
    align-items: start;
    padding-top: 72px;
  }
  .site-footer__mark { grid-row: 1 / 4; }
  .site-footer__list { margin-top: 0; }
}

/* ---------- 14. Motion preference ---------------------------------------- */

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