/*
 * Levelink Academy marketing pages: one stylesheet.
 * Consolidated from the design hand-off (site.css + redesign.css): only the
 * final effective values of rules that are still used are kept.
 * Expressive violet, sculpted orange tickets and playful mascots.
 */

/* ---------- Fonts (self-hosted, SIL OFL, see ../fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-wght-normal.woff2?v=a30ddcd349') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext-wght-normal.woff2?v=3911b66d9f') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-wght-normal.woff2?v=9fea608a94') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext-wght-normal.woff2?v=a5d38fe99f') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Manrope', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;

  /* Ink and violets */
  --ink: #28105b;
  --ink-hero: #180744;
  --heading: #38058d;
  --heading-strong: #280255;
  --heading-course: #3e069b;
  --heading-card: #44099c;
  --violet-text: #5511d0;
  --violet-label: #5820b8;
  --violet-nav: #4a2585;
  --violet-hover: #6026dc;
  --text-2: #5b4675;
  --text-3: #66517f;
  --text-4: #625075;
  --text-hero: #584378;
  --text-tag: #77628e;

  /* Orange used as text. Bright orange stays in decorative fills only
     (price tickets, step badge, footer border). Measured WCAG 2.2 ratios:
     display >=3.14:1 for large text on every light background used here,
     text/focus >=5.03:1 on white (>=3.70:1 as a focus ring), on-dark
     >=4.73:1 on the footer. See README for the full table. */
  --orange-display: #d64d00;
  --orange-text: #c44400;
  --orange-on-dark: #ffc285;

  /* Surfaces */
  --bg: #faf8ff;
  --surface: #ffffff;
  --lavender-50: #faf7ff;
  --lavender-100: #f2eaff;
  --lavender-200: #ebe0ff;
  --lavender-300: #e6d6ff;
  --border-soft: #e2d2f8;
  --border-card: #dfcff7;
  --footer-bg: #350982;
  --footer-glow: #6a20d8;

  /* Buttons */
  --btn-grad: linear-gradient(140deg, #8834ff, #5109d8);
  --btn-grad-hover: linear-gradient(140deg, #963fff, #600ee7);
  --btn-border: #a971fb;
  --btn-shadow: 0 5px 0 #3f09a3, 0 12px 25px #6822d22b;

  /* Price ticket */
  --ticket-grad: linear-gradient(145deg, #ffdb72 0%, #ffb52d 35%, #ff8a12 72%, #ffad35 100%);
  --ticket-ink: #39104f;
  --ticket-shadow: inset 0 0 0 2px #ffd76b, inset 3px 3px 9px #fff8cdab, inset -3px -4px 8px #ff760e66,
    0 0 7px 2px #fff6cc, 0 0 20px 5px #ffd36b9c, 0 0 38px 9px #ffad4247, 0 9px 18px #e785192b;

  /* Focus ring: >=3:1 against every adjacent light background. */
  --focus: #c44400;

  /* Form controls (the home page's contact form; app.css has the same values for the student
     pages). Input borders >=3:1 against white (WCAG 1.4.11). */
  --app-muted: #66517f;
  --input-border: #8a6fbd;
  --input-border-hover: #5f3fa3;
  --error-text: #a3200f;
  --error-border: #c62f1c;
  --error-bg: #fff2f0;
  --success-border: #7cc79a;

  --radius-card: 2rem;
  --radius-panel: 1.6rem;
  --shell: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { text-wrap: balance; }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 1.5rem; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: 1rem;
  top: -10rem;
  padding: .75rem 1.1rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--heading-course);
  font-weight: 800;
  box-shadow: 0 8px 25px #3a12602e;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  box-shadow: 0 5px 25px #47158508;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 96px;
  padding-block: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-height: 44px;
}
/* The logo artwork (logo.png: purple LEVELINK, orange "Academy"; 1.786 : 1), sharp on dense
   screens through image-set. The link's name comes from the visually hidden brand name. */
.brand-logo {
  display: block;
  flex: none;
  width: 100px;
  height: 56px;
  background: url('/assets/img/logo-112.webp?v=4d3e609ba7') center / contain no-repeat;
  background-image: image-set(url('/assets/img/logo-56.webp?v=7d5946dcfc') 1x, url('/assets/img/logo-112.webp?v=4d3e609ba7') 2x, url('/assets/img/logo-168.webp?v=60ddf3754f') 3x);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.4rem;
  font-size: 15px;
  font-weight: 700;
}
.site-nav a,
.signin-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--violet-nav);
}
.site-nav a:hover,
.signin-link:hover { color: var(--violet-hover); }
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 1.25rem;
}
.signin-link {
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c9b2ec;
  text-underline-offset: .3em;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 17px 24px;
  border: 1px solid var(--btn-border);
  border-radius: 15px;
  background: var(--btn-grad);
  box-shadow: var(--btn-shadow);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); background: var(--btn-grad-hover); }
.button-small { padding: 12px 16px; font-size: 14px; }
.button-secondary {
  border: 2px solid #b08be8;
  background: var(--surface);
  box-shadow: 0 4px 0 #e4d6fa;
  color: var(--violet-text);
}
.button-secondary:hover { background: #f8f3ff; }
.button-disabled,
.button-disabled:hover {
  transform: none;
  border-color: #e1d2ef;
  background: #ebe2f5;
  box-shadow: none;
  color: #66547a;
  cursor: not-allowed;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #ac87de;
  color: #4f1688;
  font-weight: 700;
}
.text-link:hover { color: var(--violet-hover); border-bottom-color: currentColor; }

/* ---------- Shared headings ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: .5rem .8rem;
  border-radius: 10px;
  background: var(--lavender-200);
  color: var(--violet-label);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 2.5rem;
}
.section-heading h2,
.steps-heading h2 {
  margin: 0;
  color: var(--heading);
  font: 800 clamp(2.5rem, 4.8vw, 4.2rem)/1.06 var(--font-display);
  letter-spacing: -.055em;
}
.section-heading em,
.steps-heading em,
.home-hero h1 em,
.notfound h1 em {
  font-style: normal;
  color: var(--orange-display);
}
.section-heading > p {
  max-width: 25rem;
  margin: 0 0 6px;
  color: var(--text-3);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Home hero (live HTML, art on the right) ---------- */
.home-hero {
  overflow: clip;
  background:
    radial-gradient(ellipse at 78% 45%, #e4d3ff 0, transparent 55%),
    linear-gradient(155deg, #fff 0%, #f7f1ff 60%, #eee1ff 100%);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem;
  min-height: 640px;
  padding-block: 2.5rem;
}
.hero-kicker {
  margin: 0 0 1.5rem;
  color: #5b1fd6;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.home-hero h1 {
  margin: 0;
  color: var(--ink-hero);
  /* Two lines from 768 px wide: "Learn design, ads / and AI for work." */
  font: 800 clamp(2.4rem, 4.6vw, 4.1rem)/1.06 var(--font-display);
  letter-spacing: -.055em;
}
.hero-lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--text-hero);
  font-size: 1.25rem;
  line-height: 1.6;
}
/* The launch price: a white pill with the cards' orange ticket as its tag, the terms beside it
   (#6b2a00 on white; the price #a33a00, 6.7:1). */
.hero-launch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .65rem;
  max-width: 100%;
  margin: 1.6rem 0 0;
  padding: .35rem 1rem .35rem .35rem;
  border: 1px solid #f6cf9f;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 8px 22px #ff8a121f;
  color: #6b2a00;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}
.hero-launch-tag {
  flex: none;
  padding: .32rem .75rem;
  border-radius: 1rem;
  background: var(--ticket-grad);
  box-shadow: inset 0 0 0 1px #ffd76b;
  color: var(--ticket-ink);
  font: 800 .75rem/1.2 var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-launch b { color: #a33a00; font-size: 1.0625rem; font-weight: 800; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 1.25rem;
}
.hero-actions .button { min-height: 52px; padding: .9rem 1.6rem; font-size: 1rem; }
/* "Read a free lesson:" and a chip per course. */
.hero-free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .5rem;
  margin: 1.1rem 0 0;
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}
/* The label on a line of its own: the three chips then share one row. */
.hero-free-label { flex-basis: 100%; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .4rem .95rem;
  border: 1.5px solid #d7c3f6;
  border-radius: 999px;
  background: #ffffffd9;
  color: var(--violet-text);
  font: 800 .9375rem/1.2 var(--font-display);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.hero-chip::after { content: '→'; content: '→' / ''; font-weight: 800; }
.hero-chip:hover { border-color: var(--violet-text); background: #fff; transform: translateY(-1px); }
.hero-chip:focus-visible { outline-offset: 3px; }
/* Who made the courses, behind a badge in the steps' violet ("10+"). */
.hero-team {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.55;
}
.hero-team-badge {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #bf92ff;
  border-radius: 1rem;
  background: linear-gradient(140deg, #ad6aff, #6915e8);
  box-shadow: -3px 4px 0 #4f0eb4;
  color: #fff;
  font: 800 1.1rem/1 var(--font-display);
  letter-spacing: -.02em;
  transform: rotate(-5deg);
}
.home-hero-art { position: relative; min-width: 0; }
.home-hero-art .hero-picture {
  width: 112%;
  max-width: none;
  margin-left: -2%;
  /* Feather the artwork edges into the hero background. */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.home-hero-art .hero-picture img { width: 100%; }

/* ---------- Courses ---------- */
.courses-section {
  position: relative;
  padding: 3.5rem 0 6rem;
  background:
    radial-gradient(ellipse at 4% 15%, var(--lavender-300) 0, transparent 37%),
    radial-gradient(ellipse at 97% 77%, #eddcff 0, transparent 30%),
    linear-gradient(155deg, var(--lavender-50), var(--lavender-100));
}
.courses-section .section-heading { margin-bottom: 3.5rem; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 2rem;
}
.course-grid > li { display: flex; flex-direction: column; gap: .9rem; }
.course-grid > li > .course-card { flex: 1; }
/* Under each card (the card itself is one link): its free preview lesson. */
.card-preview-link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.course-card {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px #5c239313;
  transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover { transform: translateY(-7px); }
@media (hover: hover) {
  .course-card:hover {
    box-shadow: 0 0 0 1px #a86cff70, 0 0 22px 5px #a15bff55, 0 0 48px 12px #853bdf30, 0 22px 45px #5c239328;
  }
}
.course-card:focus-visible,
.course-card:focus-visible:hover { box-shadow: 0 16px 40px #5c239313; }
.course-card-surface {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 5rem 1.5rem 1.5rem;
  overflow: hidden;
  border: 2px solid var(--border-card);
  border-radius: inherit;
  background: radial-gradient(ellipse at 75% 77%, #d6baff, transparent 53%), linear-gradient(150deg, #fff 20%, #f6f0ff);
  box-shadow: inset 0 0 0 3px #ffffff75;
}
.course-card--target .course-card-surface {
  background: radial-gradient(ellipse at 75% 78%, #ead5ff, transparent 52%), linear-gradient(150deg, #fff, #f8f0ff);
}
.course-card--ai .course-card-surface {
  background: radial-gradient(ellipse at 76% 80%, #d7c3ff, transparent 53%), linear-gradient(150deg, #fff, #f2ebff);
}
.course-card h3 {
  position: relative;
  z-index: 4;
  margin: .2rem 0 1rem;
  color: var(--heading-strong);
  font: 800 clamp(2.65rem, 3.7vw, 3.65rem)/1.02 var(--font-display);
  letter-spacing: -.065em;
  overflow-wrap: break-word;
}
.title-period { color: var(--orange-display); }
.course-card-surface > p {
  position: relative;
  z-index: 4;
  margin: 0 0 1rem;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.5;
}
.course-card-surface > .card-facts {
  margin-top: -.35rem;
  color: #5a1fb8;
  font-size: .9rem;
  font-weight: 700;
}
.card-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  min-height: 18rem;
  margin-top: auto;
}
.card-owl {
  position: relative;
  z-index: 2;
  order: -1;
  align-self: center;
  width: 100%;
  max-width: 19rem;
  margin-top: .5rem;
  pointer-events: none;
  filter: drop-shadow(0 12px 15px #63229a20);
  transform-origin: center bottom;
  transition: transform .35s ease;
}
.card-owl img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.course-card:hover .card-owl { transform: rotate(-2deg) translateY(-4px); }
/* A card photo (course.json "card") fills the bottom of the card edge to edge. Its empty top
   fades into the card under the subtitle, and the link sits on the photo. */
.course-card--photo .course-card-surface { padding-bottom: 0; }
.course-card--photo .course-card-surface > p { margin-bottom: .25rem; }
.course-card--photo .card-bottom {
  position: relative;
  display: block;
  min-height: 0;
  margin: auto -1.5rem 0;
}
/* The photos' top fifth is empty: it slides under the subtitle. */
.card-photo {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: -5rem;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%);
  mask-image: linear-gradient(to bottom, transparent, #000 26%);
}
.card-photo img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center bottom;
  transition: transform .35s ease;
}
.course-card--photo:hover .card-photo img { transform: scale(1.03); }
/* On the photo: as wide as the card's text, in the price ticket's colours. */
.course-card--photo .course-link {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  justify-content: center;
  border: 2px solid #fff0ae;
  background: var(--ticket-grad);
  box-shadow: inset 0 0 0 2px #ffd76b, inset 3px 3px 9px #fff8cdab, inset -3px -4px 8px #ff760e66,
    0 0 14px 2px #ffd36b8c, 0 8px 18px #e785192b;
  color: var(--ticket-ink);
}
.course-link {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 1rem 1.1rem;
  border: 1px solid #fff;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 8px 20px #6730aa1c;
  color: var(--violet-text);
  font: 800 1rem/1.3 var(--font-display);
}

/* Price ticket (cards and course page) */
.price-badge {
  position: absolute;
  z-index: 7;
  top: -1.7rem;
  right: -.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 8.7rem;
  min-height: 7.35rem;
  padding: .8rem .7rem;
  border: 2px solid #fff0ae;
  border-radius: 1.55rem;
  background: var(--ticket-grad);
  box-shadow: var(--ticket-shadow);
  color: var(--ticket-ink);
  transform: rotate(8deg);
  transition: transform .25s ease;
}
.price-badge::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #fff0b77a;
  border-radius: calc(1.55rem - 6px);
  pointer-events: none;
}
.price-badge::after {
  content: '\2726';
  content: '\2726' / '';
  position: absolute;
  right: -.4rem;
  top: -.75rem;
  color: #6820eb;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 1px 0 #e6caff;
}
.price-badge strong {
  display: flex;
  align-items: flex-start;
  font: 800 3.25rem/.98 var(--font-display);
  letter-spacing: -.07em;
  white-space: nowrap;
}
.price-currency {
  margin: .14em .06em 0 0;
  font-size: .4em;
  line-height: 1;
  letter-spacing: -.02em;
}
.price-badge small {
  margin-top: .35rem;
  font: 800 .84rem/1.2 var(--font-display);
  white-space: nowrap;
}
/* A launch price on a course card: "Launch price" above, the regular price and its first day below
   (the future price, never a struck-through earlier one). */
.price-badge--launch { width: 9.8rem; min-height: 8.1rem; padding-block: .75rem; }
.price-badge--launch strong { font-size: 3rem; }
.price-badge .price-kicker {
  margin: 0 0 .3rem;
  font: 800 .7rem/1.1 var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.price-badge--launch small:last-child { font-size: .8rem; }
.course-card:hover .price-badge { transform: rotate(3deg) translateY(-3px); }

/* ---------- Facts strip ---------- */
.facts {
  margin-block: 3rem;
  padding: 2rem;
  border: 1px solid #e2d1f6;
  border-radius: 1.75rem;
  background: linear-gradient(120deg, #fff, #f4ebff);
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.facts-list li {
  padding: .25rem 1.25rem;
  border-left: 3px solid #c39bf7;
  color: #6c597f;
  font-size: 1rem;
}
.facts-list b {
  display: block;
  color: #6820d0;
  font: 800 clamp(1.6rem, 2.6vw, 2.5rem)/1.2 var(--font-display);
  letter-spacing: -.03em;
}
.facts-note {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: #a33a00;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- What you'll learn ---------- */
.learn-section {
  position: relative;
  padding: 5rem 0 5.5rem;
  background: radial-gradient(ellipse at 85% 15%, #f0e7ff, transparent 50%), #fff;
}
.learn-section .section-heading h2 { font-size: clamp(2.5rem, 4.4vw, 3.7rem); }
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}
.learn-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 2px solid #e1d1f6;
  border-radius: 1.7rem;
  background: linear-gradient(145deg, #fff, #f2eaff);
  box-shadow: 0 7px 0 #eee3fb, 0 14px 25px #4b159d0b;
}
.learn-card--target {
  border-color: #f5dcc8;
  background: linear-gradient(145deg, #fff, #fff2e9);
  box-shadow: 0 7px 0 #faebdf, 0 14px 25px #4b159d0b;
}
.learn-card--ai { background: linear-gradient(145deg, #fff, #ece4ff); }
.learn-tag {
  margin: 0;
  color: var(--text-tag);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.learn-card h3 {
  margin: .5rem 0 1rem;
  color: #3d176d;
  font: 800 1.75rem/1.15 var(--font-display);
  letter-spacing: -.04em;
}
.learn-points {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}
.learn-points li + li { margin-top: .6rem; }
.learn-points li::marker,
.info-card li::marker { color: var(--orange-display); }
.learn-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid #e1d2ef;
  color: var(--violet-text);
  font: 800 1rem/1.3 var(--font-display);
}
.learn-link:hover { text-decoration: underline; }

/* ---------- How it works ---------- */
.steps-section { position: relative; padding: 4.5rem 0 6rem; }
.steps-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 15rem;
  margin-bottom: -.7rem;
}
.steps-visual {
  flex: none;
  align-self: flex-end;
  width: 20rem;
  height: 16rem;
  padding-top: 1rem;
  overflow: hidden;
}
.steps-visual img {
  width: 100%;
  transform: rotate(5deg);
  filter: drop-shadow(0 8px 12px #56189920);
}
.steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  counter-reset: step;
}
.steps > li {
  padding: 1.8rem;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, #fff, #f5efff);
  box-shadow: 0 7px 0 #eadefa, 0 15px 25px #602a9010;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid #bf92ff;
  border-radius: 1rem;
  background: linear-gradient(140deg, #ad6aff, #6915e8);
  box-shadow: -3px 4px 0 #4f0eb4;
  color: #fff;
  font: 800 1.35rem var(--font-display);
  transform: rotate(-5deg);
}
.steps > li:nth-child(2) { border-color: #b886f2; }
.steps > li:nth-child(2)::before {
  border-color: #ffd395;
  background: linear-gradient(140deg, #ffc45e, #ff7a0b);
  box-shadow: -3px 4px 0 #d75602;
  color: #42145b;
  transform: rotate(5deg);
}
.steps h3 {
  margin: 1.4rem 0 .6rem;
  color: #3f0d8b;
  font: 800 1.25rem/1.3 var(--font-display);
}
.steps p { margin: 0; color: var(--text-4); font-size: 1rem; line-height: 1.6; }

/* ---------- Home FAQ ----------
   The course pages' accordions with a round toggle. From 1001 px the heading and the questions
   fill the left column and "Still have a question?" (the contact form card) the right one, level
   with the heading at the top and about with the last question at the bottom; narrower, the
   heading row spans the section (the lead on the right from 701 px) and the card follows the
   questions at full width. */
.home-faq {
  padding: 4.5rem 0 5.5rem;
  background:
    radial-gradient(ellipse at 6% 12%, var(--lavender-300) 0, transparent 38%),
    linear-gradient(155deg, var(--lavender-50), var(--lavender-100));
}
.faq-layout { display: grid; gap: 2rem; }
.home-faq .faq-intro { margin: 0; }
.home-faq .faq-intro > p { max-width: 26rem; font-size: 1.125rem; }
.faq-list .accordion { transition: border-color .2s ease, box-shadow .2s ease; }
.faq-list .accordion[open] { border-color: #b886f2; box-shadow: 0 6px 0 #e3d2fa, 0 18px 32px #5c239312; }
.faq-list .accordion > summary { padding-right: 4rem; }
/* The toggle: the chevron on a circle, white on violet while the answer is open. */
.faq-list .accordion > summary::before {
  content: '';
  position: absolute;
  right: .85rem;
  top: 50%;
  width: 2.3rem;
  height: 2.3rem;
  margin-top: -1.15rem;
  border-radius: 50%;
  background: var(--lavender-200);
  transition: background-color .2s ease;
}
.faq-list .accordion > summary::after { right: 1.69rem; }
.faq-list .accordion > summary:hover::before { background: var(--lavender-300); }
.faq-list .accordion[open] > summary::before { background: var(--violet-text); }
.faq-list .accordion[open] > summary::after { border-color: #fff; }
.faq-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .15rem 1.1rem;
  padding: 1.25rem 1.4rem;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, #fff, #f5efff);
  box-shadow: 0 7px 0 #eadefa, 0 15px 25px #602a9010;
}
/* A question mark on the steps' orange badge. */
.faq-help::before {
  content: '?';
  content: '?' / '';
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid #ffd395;
  border-radius: 1rem;
  background: linear-gradient(140deg, #ffc45e, #ff7a0b);
  box-shadow: -3px 4px 0 #d75602;
  color: #42145b;
  font: 800 1.45rem/1 var(--font-display);
  transform: rotate(5deg);
}
.faq-help h3 { margin: 0; color: #3f0d8b; font: 800 1.125rem/1.3 var(--font-display); }
.faq-help p { margin: 0; color: var(--text-4); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.faq-help a {
  color: var(--violet-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #b796e8;
  text-underline-offset: .2em;
}
.faq-help a:hover { color: var(--violet-hover); text-decoration-color: currentColor; }
/* The contact form in "Still have a question?" (partials/home-contact.html, pages/home.js). The
   home page loads only this stylesheet, so the form styles of app.css are repeated here, scoped
   to the card (the student pages keep their own). The badge stays beside the heading and the
   lead line; the form, or "Message sent", fills the card's full width below them. Without
   JavaScript the form stays hidden and the email line (<noscript>) sits under the lead. */
.faq-contact > noscript { grid-column: 2; }
.faq-contact > .contact-form,
.faq-contact > .contact-sent { grid-column: 1 / -1; margin-top: 1.1rem; }
/* The failure alert and the error summary can name the support address: it wraps inside the card. */
.faq-contact > .contact-form { overflow-wrap: anywhere; }
/* This stylesheet has no global [hidden] rule (app.css has one). */
.faq-contact [hidden] { display: none !important; }
.faq-contact .field { min-width: 0; margin: 0 0 1.1rem; scroll-margin-top: 1rem; }
/* Name and email: two columns when each gets at least 10rem, one column on phones. The boxes line
   up at the bottom even when one label wraps. */
.faq-contact .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); column-gap: 1rem; }
.faq-contact .field-row > .field { display: flex; flex-direction: column; }
.faq-contact .field-row .input { margin-top: auto; }
.faq-contact .field-label {
  display: block;
  margin: 0 0 .35rem;
  color: var(--heading-strong);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}
.faq-contact .field-optional { color: var(--app-muted); font-weight: 600; }
.faq-contact .field-hint { margin: 0 0 .45rem; color: var(--app-muted); font-size: .9375rem; }
.faq-contact .field-error {
  margin: 0 0 .45rem;
  color: var(--error-text);
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.45;
  scroll-margin-top: 1rem;
}
.faq-contact .input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .7rem .95rem;
  border: 2px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.faq-contact .input:hover { border-color: var(--input-border-hover); }
.faq-contact .input:focus-visible {
  border-color: var(--input-border-hover);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.faq-contact .input[aria-invalid='true'] { border-color: var(--error-border); box-shadow: inset 0 0 0 1px var(--error-border); }
.faq-contact textarea.input { min-height: 7rem; line-height: 1.55; resize: vertical; }
.faq-contact a:focus-visible { outline-offset: 2px; border-radius: 3px; }
.faq-contact .form-note { margin: 0 0 1rem; color: var(--app-muted); font-size: .9375rem; }
/* A live region: always in the page, and no space while it is empty. */
.faq-contact .form-alert:not(:empty) {
  margin: 0 0 1rem;
  padding: .85rem 1.1rem;
  border: 2px solid var(--error-border);
  border-radius: 1rem;
  background: var(--error-bg);
  color: var(--error-text);
  font-weight: 700;
  line-height: 1.5;
}
.faq-contact .error-summary {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 3px solid var(--error-border);
  border-radius: 1rem;
  background: var(--error-bg);
}
.faq-contact .error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.faq-contact .error-summary-title { margin: 0 0 .5rem; color: var(--error-text); font: 800 1.05rem/1.3 var(--font-display); }
.faq-contact .error-summary-list { margin: 0; padding-left: 1.2rem; }
.faq-contact .error-summary-list li + li { margin-top: .35rem; }
.faq-contact .error-summary-list a { color: var(--error-text); text-decoration-color: currentColor; }
.faq-contact .contact-submit { width: 100%; }
/* Sending: the button stays focusable (aria-disabled), greyed as app.css does it. */
.faq-contact .button[aria-disabled='true'],
.faq-contact .button[aria-disabled='true']:hover {
  transform: none;
  border-color: #e1d2ef;
  background: #ebe2f5;
  box-shadow: none;
  color: #66547a;
  cursor: not-allowed;
}
.faq-contact .button[aria-busy='true'] { cursor: progress; }
/* "Message sent" in place of the form, framed in the green of the student pages' success cards. */
.faq-contact .contact-sent {
  padding: 1rem 1.15rem;
  border: 2px solid var(--success-border);
  border-radius: 1rem;
  background: var(--surface);
}
.faq-contact .contact-sent h4 { margin: 0 0 .35rem; color: #3f0d8b; font: 800 1.05rem/1.3 var(--font-display); }
.faq-contact .contact-sent h4:focus { outline: none; }
.faq-contact .contact-sent p { margin: 0 0 .85rem; }
/* The field only bots fill in (aria-hidden, out of the tab order): off screen, like .visually-hidden. */
.faq-contact .contact-extra {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 701px) {
  .faq-list .accordion > summary { padding-right: 4.6rem; }
  .faq-list .accordion > summary::before { right: 1.15rem; }
  .faq-list .accordion > summary::after { right: 1.99rem; }
}
@media (min-width: 1001px) {
  .faq-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: 'intro contact' 'list contact';
    align-items: start;
    gap: 2.25rem 3rem;
  }
  .home-faq .faq-intro { grid-area: intro; display: block; }
  .home-faq .faq-intro > p { margin: 1.1rem 0 0; }
  .faq-list { grid-area: list; }
  /* The card reaches down to the last question: the message box takes the height it has to
     spare. While an answer is open (the list grows by it) or "Message sent" shows, the card keeps
     its own height, so the box never jumps with the questions. */
  .faq-help { grid-area: contact; align-self: stretch; grid-template-rows: auto auto 1fr; padding: 1.6rem 1.75rem 1.75rem; }
  .faq-layout:has(.faq-list .accordion[open]) .faq-help,
  .faq-help:has(> .contact-sent:not([hidden])) { align-self: start; }
  .faq-contact > .contact-form { display: flex; flex-direction: column; align-self: stretch; }
  .faq-contact .field--message { display: flex; flex: 1 0 auto; flex-direction: column; }
  .faq-contact .field--message textarea.input { flex: 1 0 auto; }
}
/* Up to 1199 px the card would be too narrow for name and email side by side: equal columns. */
@media (min-width: 1001px) and (max-width: 1199px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; }
}

/* ---------- Home: closing course chooser ----------
   A violet panel: the price in the cards' ticket colours, then a tile per course with its owl.
   From 1001 px three tiles side by side, the owls looking over their top edge; narrower, one tile
   per row with the owl beside the title. */
.home-choose { padding: 4.5rem 0 5.5rem; }
.choose-panel {
  padding: 3.5rem 2.5rem 2.5rem;
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse at 88% 0%, #9b4dff 0, transparent 52%),
    radial-gradient(ellipse at 0% 100%, #6a20d8 0, transparent 55%),
    linear-gradient(155deg, #4a0fc2, #2d0884);
  box-shadow: 0 8px 0 #24066e, 0 28px 55px #3b0b8a38;
  color: #fff;
}
.choose-head { margin-bottom: 5.25rem; text-align: center; }
.choose-head .eyebrow { background: #ffffff24; color: #fff; }
.choose-head h2 {
  margin: 0;
  color: #fff;
  font: 800 clamp(2.5rem, 4.8vw, 4.2rem)/1.06 var(--font-display);
  letter-spacing: -.055em;
}
.choose-head h2 em { font-style: normal; color: var(--orange-on-dark); }
.choose-price {
  display: inline-block;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  padding: .65rem 1.2rem;
  border: 2px solid #fff0ae;
  border-radius: 1rem;
  background: var(--ticket-grad);
  box-shadow: inset 0 0 0 2px #ffd76b, inset 3px 3px 9px #fff8cdab, inset -3px -4px 8px #ff760e66, 0 0 18px 3px #ffd36b66;
  color: var(--ticket-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
}
.choose-price b { font-weight: 800; }
.choose-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.choose-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.75rem 1.5rem 1.5rem;
  border: 2px solid #fff;
  border-radius: var(--radius-panel);
  background: linear-gradient(160deg, #fff 40%, #f3eaff);
  box-shadow: 0 7px 0 #1f0560, 0 18px 32px #14033d4d;
  color: var(--ink);
  text-align: center;
}
.choose-card--target { background: linear-gradient(160deg, #fff 40%, #fff0e4); }
.choose-card--ai { background: linear-gradient(160deg, #fff 40%, #ece3ff); }
.choose-owl {
  position: absolute;
  top: -4.25rem;
  left: 50%;
  width: 8rem;
  margin-left: -4rem;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px #16033f55);
  transform-origin: center bottom;
  transition: transform .3s ease;
}
.choose-owl img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.choose-card:hover .choose-owl { transform: rotate(-4deg) translateY(-3px); }
.choose-card h3 {
  margin: 0 0 .5rem;
  color: var(--heading-strong);
  font: 800 2rem/1.1 var(--font-display);
  letter-spacing: -.045em;
}
/* The space left in a tile goes under the subtitle: the sizes and buttons line up across the tiles. */
.choose-text { margin: 0 0 auto; color: var(--text-2); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.choose-facts { margin: .75rem 0 0; color: #5a1fb8; font-size: .9375rem; font-weight: 700; }
.choose-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  width: 100%;
  padding-top: 1.5rem;
}
.choose-actions .button { width: 100%; }
@media (max-width: 1000px) {
  .choose-panel { padding: 3rem 2rem 2rem; }
  .choose-head { margin-bottom: 2.5rem; }
  .choose-list { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .choose-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(12rem, 15rem);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: 'owl title actions' 'owl text actions' 'owl facts actions';
    align-items: start;
    gap: 0 1.5rem;
    padding: 1.5rem;
    text-align: left;
  }
  .choose-owl { position: static; grid-area: owl; align-self: center; width: 6rem; margin: 0; }
  .choose-card h3 { grid-area: title; font-size: 1.75rem; }
  .choose-text { grid-area: text; }
  .choose-facts { grid-area: facts; }
  .choose-actions { grid-area: actions; align-self: center; margin: 0; padding: 0; }
}
@media (max-width: 700px) {
  .home-faq { padding: 3rem 0 3.5rem; }
  .home-choose { padding: 3rem 0 3.5rem; }
  .choose-panel { padding: 2.5rem 1rem 1rem; border-radius: 1.75rem; }
  .choose-head { margin-bottom: 2rem; }
  .choose-head h2 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .choose-price { padding: .6rem .9rem; font-size: .9375rem; }
  /* The course's size beside the owl, under the title. */
  .choose-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: 'owl title' 'owl facts' 'text text' 'actions actions';
    gap: 0 .9rem;
    padding: 1.25rem;
  }
  .choose-owl { width: 4.5rem; }
  .choose-card h3 { align-self: end; margin: 0; }
  .choose-facts { margin-top: .2rem; }
  .choose-text { margin-top: .85rem; }
  .choose-actions { padding-top: 1.25rem; }
}
/* Too narrow for the size beside the owl: it goes under the owl and the title. */
@media (max-width: 360px) {
  .choose-card { grid-template-areas: 'owl title' 'facts facts' 'text text' 'actions actions'; padding: 1rem; }
  .choose-card h3 { align-self: center; font-size: 1.6rem; }
  .choose-facts { margin-top: .75rem; }
  .choose-text { margin-top: .5rem; }
  .choose-price { font-size: .875rem; }
  .choose-actions .button { padding-inline: .75rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 5px solid #ff851c;
  border-radius: 2rem 2rem 0 0;
  background: radial-gradient(ellipse at 85% 20%, var(--footer-glow), transparent 50%), var(--footer-bg);
  color: #fff;
}
.site-footer a:focus-visible,
.site-footer button:focus-visible { outline-color: var(--orange-on-dark); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-logo { margin: 0; }
/* Light version of the logo for the dark footer: white letters, orange "Academy". */
.footer-logo-img {
  display: block;
  width: 129px;
  height: 72px;
  background: url('/assets/img/logo-light-144.webp?v=938690d7ce') left center / contain no-repeat;
  background-image: image-set(url('/assets/img/logo-light-72.webp?v=0885aeda23') 1x, url('/assets/img/logo-light-144.webp?v=938690d7ce') 2x, url('/assets/img/logo-light-216.webp?v=d9b767755f') 3x);
}
.site-footer p { color: #e0d1f7; font-size: 1rem; line-height: 1.6; }
.footer-tagline { margin: 1rem 0 0; }
.footer-payment { margin: 1rem 0 0; font-size: .9375rem; }
/* Romanian consumer protection: ANPC's website and the official SAL pictogram (an image with a
   white background, shown at its own size, so it stays as ANPC published it). */
.footer-consumer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.1rem; }
.footer-anpc {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f1e9ff;
  font-size: .9375rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.footer-anpc:hover { text-decoration-thickness: 2px; }
.footer-sal { display: inline-block; flex: none; border-radius: 4px; line-height: 0; }
.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font: 800 .875rem/1.4 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.seller-list { display: grid; gap: .5rem; margin: 0; font-size: .9375rem; }
.seller-list div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .75rem; }
.seller-list dt { color: #d9c8f6; }
.seller-list dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.seller-list a { text-decoration: underline; text-underline-offset: .2em; }
.footer-links { display: grid; gap: .1rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #f1e9ff;
  font-size: .9375rem;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.withdraw-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-top: 1rem;
  padding: .6rem 1rem;
  border: 2px solid var(--orange-on-dark);
  border-radius: 12px;
  background: #ffffff12;
  color: #ffe2c4;
  font-weight: 800;
}
.withdraw-link:hover { background: #ffffff24; }
/* "Cookie settings" (pages/consent.js shows it): a button that looks like the links above it. */
.consent-settings {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #f1e9ff;
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.consent-settings:hover { text-decoration: underline; text-underline-offset: .2em; }
.consent-settings[hidden] { display: none; }

/* ---------- Analytics consent banner (pages/consent.js) ----------
   Not modal: it sits at the bottom of the window and the page keeps working
   under it; body.has-consent-banner leaves room so the end of the page can
   still scroll above it. "Reject" and "Accept" look the same. */
.consent-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 46rem;
  max-height: calc(100vh - 2rem);
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 18px 48px #28105b40;
  color: var(--ink);
}
.consent-banner[hidden] { display: none; }
.consent-title {
  margin: 0 0 .5rem;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}
.consent-banner p { margin: 0 0 .75rem; font-size: .9375rem; line-height: 1.55; }
.consent-banner a { color: var(--violet-text); text-decoration: underline; text-underline-offset: .2em; }
.consent-more, .consent-choose { margin: 0 0 .75rem; font-size: .9375rem; }
.consent-more summary, .consent-choose summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--violet-text);
  font-weight: 700;
  cursor: pointer;
}
.consent-more p { margin: .25rem 0 0; }
/* Clarity's three modes (without cookies until the visitor chooses), the pixel's checkbox (never
   ticked before the visitor ticks it), then "Save my choices". */
.consent-choices { display: grid; justify-items: start; gap: .25rem; }
.consent-group { display: grid; justify-items: start; margin: 0; padding: 0; border: 0; }
.consent-group legend { margin-bottom: .125rem; padding: 0; color: var(--heading); font-weight: 700; }
.consent-choice { display: flex; align-items: center; gap: .625rem; min-height: 44px; cursor: pointer; }
.consent-choice input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--violet-text); }
.consent-choices .button { margin-top: .25rem; }
.consent-current { color: var(--text-2); font-weight: 700; }
.consent-current:empty { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.consent-actions .button { flex: 1 1 12rem; }
body.has-consent-banner { padding-bottom: 25rem; }
/* WCAG 2.4.11 (technique C43): focus scrolling keeps the focused element above the fixed banner. */
html:has(body.has-consent-banner) { scroll-padding-bottom: 25rem; }
/* Wider windows: in the bottom-right corner, over the hero's illustration rather than its text and
   buttons. */
@media (min-width: 701px) and (min-height: calc(34rem + 1px)) {
  .consent-banner { inset-inline: auto 1rem; max-width: 34rem; margin-inline: 0; }
}
/* Phones and zoomed windows: the banner is part of the page, so it never covers the focused element
   or the end of the page: at the top of most pages (right after the skip link), after the hero on the
   home page and the course pages ({{{consentSlot}}}), so that a visitor's first screen is the offer.
   The two buttons share one row. */
@media (max-width: 700px), (max-height: 34rem) {
  .consent-banner { position: static; max-width: none; max-height: none; margin: .5rem; padding: 1rem; overflow: visible; }
  body.has-consent-banner { padding-bottom: 0; }
  html:has(body.has-consent-banner) { scroll-padding-bottom: 0; }
  .consent-actions { flex-wrap: nowrap; gap: .5rem; }
  .consent-actions .button { flex: 1 1 0; min-width: 0; padding-inline: .5rem; font-size: .9375rem; }
}
.footer-bottom {
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid #ffffff26;
}
.footer-bottom p { margin: 0; font-size: .875rem; }

/* ---------- Course page ---------- */
.course-page { background: radial-gradient(ellipse at 90% 15%, #e5d5ff, transparent 45%), #fbf8ff; }
.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 5rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-bottom: 1rem;
  color: #5a24c9;
  font-size: 1.0625rem;
  font-weight: 800;
}
.back-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.course-tag {
  display: block;
  width: fit-content;
  margin: 0 0 1rem;
  padding: .45rem .75rem;
  border-radius: 9px;
  background: #ecdeff;
  color: #5d27a3;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.course-hero h1 {
  margin: 0 0 1.25rem;
  color: var(--heading-course);
  font: 800 clamp(2.5rem, 6.4vw, 5.75rem)/1.02 var(--font-display);
  letter-spacing: -.06em;
}
.course-hero h1::after {
  content: '.';
  content: '.' / '';
  color: var(--orange-display);
}
.course-subtitle {
  max-width: 34rem;
  margin: 0;
  color: #625074;
  font-size: clamp(1.125rem, 1.6vw, 1.45rem);
  line-height: 1.55;
}
.purchase-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  max-width: 34rem;
  margin-top: 2.25rem;
  padding: 1.5rem;
  border: 2px solid #e5d5f8;
  border-radius: var(--radius-panel);
  background: linear-gradient(145deg, #fff, #f5efff);
  box-shadow: 0 7px 0 #eee3fb;
}
.purchase-panel .button {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 56px;
  font-size: 1.0625rem;
}
.purchase-panel .price-badge {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 7.25rem;
  min-height: 5.5rem;
  padding: .6rem .9rem;
  transform: rotate(-3deg);
}
.purchase-panel .price-badge strong { font-size: 2.5rem; line-height: 1; letter-spacing: -.06em; }
.purchase-panel .price-badge small { font-size: .75rem; }
.purchase-notes { grid-column: 1 / -1; display: grid; gap: .35rem; }
.purchase-notes p { margin: 0; color: var(--text-4); font-size: .9375rem; line-height: 1.55; }
.purchase-notes .purchase-status { color: #4a2585; font-weight: 700; }
/* #a33a00: 5.7:1 on the panel's light purple (--orange-text is 4.4:1 there). */
.purchase-notes .launch-note { color: #a33a00; font-weight: 700; }
.purchase-notes .tax-note { font-size: .875rem; }
.course-team {
  max-width: 34rem;
  margin: .9rem 0 0;
  padding-left: .85rem;
  border-left: 3px solid #c39bf7;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}
.course-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 27rem;
  border: 2px solid #dbc6f7;
  border-radius: 3rem;
  background: radial-gradient(circle at 60% 60%, #d2aff9, transparent 64%), linear-gradient(145deg, #fff, #ece0ff);
  box-shadow: 0 9px 0 #e6d5fb, 0 22px 45px #48117c10;
  transform: rotate(2deg);
}
.course-hero-visual picture {
  width: 100%;
  max-width: 31rem;
  transform: rotate(-2deg);
  filter: drop-shadow(0 16px 15px #5d199b22);
}
.course-hero-visual img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.course-info { padding: 4rem 0 5rem; background: linear-gradient(140deg, #f0e5ff, #f8f4ff); }
.course-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.info-card {
  padding: 2rem;
  border: 2px solid #e7d9f8;
  border-radius: 1.8rem;
  background: #ffffffb8;
  box-shadow: 0 8px 0 #eadcfa;
}
.info-card h2 {
  margin: 0 0 1rem;
  color: var(--heading-card);
  font: 800 2.125rem/1.2 var(--font-display);
  letter-spacing: -.04em;
}
.info-card .eyebrow + h2 { margin-top: .5rem; }
.info-card > p:not(.eyebrow),
.info-card li { color: #5d5668; font-size: 1.0625rem; line-height: 1.65; }
.info-card > p:not(.eyebrow) { margin: 0 0 1.25rem; }
.info-card ul { margin: 0; padding-left: 21px; list-style: disc; }
.info-card li + li { margin-top: 10px; }
.course-facts { display: grid; gap: .75rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid #e5d7f5; }
.course-facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
.course-facts dt { color: #441178; font-weight: 800; }
.course-facts dd { margin: 0; color: #5d5668; }

/* ---------- Course sales page (a course with a marketing.json) ----------
   Mobile first inside this section: base rules for phones, wider layouts from
   701px and 1001px. Ticks, crosses and chevrons are drawn with borders, so
   they stay visible in forced colours. */
.course-glance[role='list'] {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 34rem;
  margin: 1.5rem 0 0;
}
.course-glance li {
  padding: .3rem .75rem;
  border: 1px solid #dcc8f7;
  border-radius: 999px;
  background: #ffffffd9;
  color: #4a2585;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.45;
}
.course-glance .course-glance-access {
  flex-basis: 100%;
  padding: .2rem 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text-4);
  font-weight: 600;
}
/* Two buttons in the purchase panel ("Buy now" and "Read the first lesson free"), the price
   ticket beside both of them. */
.purchase-panel--two .price-badge { grid-row: 1 / span 2; }
.purchase-panel--two .button-secondary { grid-column: 1; grid-row: 2; min-height: 52px; font-size: 1rem; }
.purchase-panel--two .purchase-notes { grid-row: 3; }

.course-section { padding: 3rem 0; }
.course-section--tint { background: linear-gradient(140deg, #f0e5ff, #f8f4ff); }
.course-section .section-heading { margin-bottom: 2rem; }
.course-section .section-heading h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.course-lead {
  max-width: 46rem;
  margin: 0 0 2rem;
  color: var(--text-hero);
  font-size: 1.125rem;
  line-height: 1.65;
}

/* Lists with a tick (outcomes, who it is for) or a cross (who it is not for). */
.check-list,
.cross-list { display: grid; gap: .8rem; }
.check-list li,
.cross-list li {
  position: relative;
  padding-left: 2.2rem;
  color: #43375a;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: linear-gradient(140deg, #ad6aff, #6915e8);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: .52rem;
  top: .38em;
  width: .42rem;
  height: .78rem;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cross-list li::before,
.cross-list li::after {
  content: '';
  position: absolute;
  left: .2rem;
  top: .8em;
  width: 1rem;
  border-top: 3px solid #8d7aa5;
  border-radius: 2px;
  transform: rotate(45deg);
}
.cross-list li::after { transform: rotate(-45deg); }
.outcome-list { gap: .9rem; }
.outcome-list li {
  padding: 1rem 1.1rem 1rem 3.4rem;
  border: 2px solid #e7d9f8;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 5px 0 #eee3fb;
}
.outcome-list li::before { left: 1.05rem; top: 1.1rem; }
.outcome-list li::after { left: 1.57rem; top: 1.33rem; }

.audience-grid { display: grid; gap: 1.25rem; }
.audience-card {
  padding: 1.4rem;
  border: 2px solid #e7d9f8;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 7px 0 #eee3fb;
}
.audience-card--not { border-style: dashed; background: #fcfaff; box-shadow: none; }
.audience-card h3,
.info-card h3 {
  margin: 0 0 1rem;
  color: var(--heading-card);
  font: 800 1.5rem/1.25 var(--font-display);
  letter-spacing: -.03em;
}

.course-stats { margin: 0 0 2rem; }
/* Two columns at most: the cards hold a few sentences each, which read badly in narrow columns. */
.include-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1rem;
}
.include-card {
  padding: 1.4rem;
  border: 2px solid #e1d1f6;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #fff, #f6f0ff);
  box-shadow: 0 6px 0 #eee3fb;
}
.include-card h3 {
  margin: 0 0 .5rem;
  color: #3d176d;
  font: 800 1.25rem/1.3 var(--font-display);
  letter-spacing: -.02em;
}
.include-card p { margin: 0; color: var(--text-2); line-height: 1.6; }

/* Accordions (the program's modules, the questions): <details>, no script. */
.accordion-list { display: grid; gap: .75rem; }
.accordion {
  border: 2px solid #e7d9f8;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 5px 0 #eee3fb;
}
.accordion[open] { border-color: #d3b8f7; }
.accordion > summary {
  position: relative;
  display: block;
  padding: 1rem 3.4rem 1rem 1.15rem;
  border-radius: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
  content: '';
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: .62rem;
  height: .62rem;
  margin-top: -.5rem;
  border: solid var(--violet-text);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.accordion[open] > summary::after { margin-top: -.15rem; transform: rotate(-135deg); }
.accordion > summary:hover .accordion-title { color: var(--violet-hover); }
.accordion > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.accordion-label { display: grid; gap: .2rem; }
.accordion-title {
  color: var(--heading-strong);
  font: 800 1.125rem/1.35 var(--font-display);
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}
.accordion-body { padding: 0 1.15rem 1.15rem; }
.accordion-body > :last-child { margin-bottom: 0; }
.accordion-body p { margin: 0 0 .85rem; color: #4f4560; font-size: 1.0625rem; line-height: 1.65; }
.program-module-num {
  color: var(--violet-label);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.program-module-meta { color: var(--text-3); font-size: .9375rem; font-weight: 600; }
.program-lessons[role='list'] { margin-top: .25rem; border-top: 1px solid #efe6fb; }
.program-lesson {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: baseline;
  padding: .65rem 0;
  border-bottom: 1px solid #efe6fb;
}
.program-lesson:last-child { border-bottom: 0; padding-bottom: 0; }
.program-lesson-num { color: var(--text-tag); font-size: .875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.program-lesson-title { color: var(--ink); line-height: 1.45; overflow-wrap: break-word; }
.program-lesson-title a {
  color: var(--violet-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.program-lesson-title a:hover { text-decoration-thickness: 2px; }
.program-lesson-title a:focus-visible { outline-offset: 2px; border-radius: 3px; }
.program-lesson-time { color: var(--text-3); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.free-badge {
  display: inline-block;
  margin-left: .3rem;
  padding: .05rem .5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffe6cc;
  color: #5a2400;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.faq-item .text-link { min-height: 44px; }

/* How the course works: the steps as a column (any number of them), the time and what you
   need beside them on wide screens. */
.how-grid { display: grid; gap: 1.5rem; }
.steps.course-steps { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.steps.course-steps > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.1rem;
  align-items: start;
  padding: 1.2rem;
}
.steps.course-steps > li::before { grid-row: span 2; width: 2.85rem; height: 2.85rem; border-radius: .9rem; font-size: 1.1rem; }
.steps.course-steps h3 { margin: .15rem 0 .35rem; }
.steps.course-steps p { grid-column: 2; padding-top: 0; }
.course-practical { display: grid; gap: 1.25rem; }
.course-practical .info-card { padding: 1.4rem; }
.course-practical .info-card > p:last-child { margin-bottom: 0; }

.sample-card {
  padding: 1.25rem;
  border: 2px solid #e7d9f8;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 8px 0 #eadcfa;
}
.sample-source {
  margin: 0 0 1rem;
  color: var(--violet-label);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sample-grid { display: grid; gap: 1.25rem; }
.sample-block,
.sample-grid { min-width: 0; }
.sample-block h3,
.sample-notes h3 {
  margin: 0 0 .6rem;
  color: var(--heading-strong);
  font: 800 1.15rem/1.3 var(--font-display);
  letter-spacing: -.01em;
}
.sample-tag {
  display: inline-block;
  margin: 0 0 .6rem;
  padding: .1rem .6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffe6cc;
  color: #5a2400;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .05em;
  text-transform: uppercase;
}
/* Wraps instead of scrolling sideways, as code in lessons does. */
.sample-text {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #22113f;
  color: #f4eeff;
  font: .9rem/1.6 ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sample-text--output { border: 2px dashed #e9a465; background: #fff8f0; color: #3b2a1d; }
.sample-notes {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid #b78af5;
  border-radius: 0 12px 12px 0;
  background: #f7f1ff;
}
.sample-notes ul { margin: 0; padding-left: 1.2rem; }
.sample-notes li { color: #45365c; line-height: 1.6; }
.sample-notes li + li { margin-top: .45rem; }
.sample-notes li::marker { color: var(--orange-display); }

.teams-card {
  display: grid;
  gap: .25rem;
  padding: 1.75rem 1.4rem;
  border-radius: 2rem;
  background: radial-gradient(ellipse at 85% 10%, #7b35ea, transparent 55%), linear-gradient(140deg, #4a0fb8, #2e0872);
  box-shadow: 0 9px 0 #ddcbfa;
  color: #fff;
}
.teams-card .eyebrow { background: #ffffff21; color: #f3eaff; }
.teams-card h2 {
  margin: .25rem 0 .75rem;
  color: #fff;
  font: 800 clamp(1.9rem, 4vw, 2.75rem)/1.1 var(--font-display);
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
.teams-text p { max-width: 46rem; margin: 0 0 1rem; color: #eee5ff; font-size: 1.0625rem; line-height: 1.65; }
.teams-text p:last-child { margin-bottom: 0; }

.course-final { padding-bottom: 4rem; }
.course-final-grid { display: grid; gap: 1.75rem; }
.course-final h2 {
  margin: 0 0 1rem;
  color: var(--heading-course);
  font: 800 clamp(2.4rem, 9vw, 4rem)/1.04 var(--font-display);
  letter-spacing: -.055em;
}
.course-final h2 em { font-style: normal; color: var(--orange-display); }
.course-final-lead { max-width: 34rem; margin: 0; color: #625074; font-size: 1.125rem; line-height: 1.6; }
.course-final .purchase-panel { margin-top: 1.75rem; }
.course-final-facts .course-facts { margin: 0; padding-top: 0; border-top: 0; }

@media (min-width: 701px) {
  .course-section { padding: 4.5rem 0; }
  .course-glance li { font-size: 1rem; }
  .outcome-list[role='list'] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
  .audience-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.5rem; }
  .audience-card { padding: 2rem; }
  .accordion > summary { padding: 1.2rem 3.75rem 1.2rem 1.5rem; }
  .accordion > summary::after { right: 1.6rem; }
  .accordion-body { padding: 0 1.5rem 1.4rem; }
  .accordion-label { grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: baseline; gap: .25rem 1rem; }
  .faq-item .accordion-label { grid-template-columns: minmax(0, 1fr); }
  .program-summary { padding-left: 7.5rem; }
  .program-lessons[role='list'] { margin-left: 7.5rem; }
  .accordion-title { font-size: 1.25rem; }
  .sample-card { padding: 2rem; }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teams-card { padding: 3rem; }
  .course-final { padding-bottom: 5.5rem; }
}
@media (min-width: 1001px) {
  .how-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); align-items: start; gap: 2rem; }
  .teams-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 3rem; padding: 3.25rem 3.5rem; }
  .teams-card h2 { margin-bottom: 0; }
  .course-final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 3rem; }
}
@media (max-width: 400px) {
  /* The price ticket goes above the buttons (see Responsive), both buttons under it. */
  .purchase-panel.purchase-panel--two .button-secondary { grid-row: 3; }
  .purchase-panel.purchase-panel--two .purchase-notes { grid-row: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .accordion > summary::after { transition: none; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 2.5rem 0 5rem; background: radial-gradient(ellipse at 90% 0%, #ece0ff, transparent 40%), #fbf8ff; }
.legal-shell { width: min(52rem, calc(100% - 48px)); margin-inline: auto; }
.legal-page h1 {
  margin: 0 0 .5rem;
  color: var(--heading-course);
  font: 800 clamp(2.25rem, 5vw, 3.5rem)/1.08 var(--font-display);
  letter-spacing: -.05em;
}
.legal-meta { margin: 0 0 2rem; color: var(--text-3); font-size: .9375rem; }
.legal-section {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid #e7d9f8;
  border-radius: 1.25rem;
  background: #fff;
}
.legal-section h2 { margin: 0 0 .75rem; color: var(--heading-card); font: 800 1.35rem/1.3 var(--font-display); letter-spacing: -.02em; }
.legal-text { color: var(--ink); font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; }
.legal-text > :first-child { margin-top: 0; }
.legal-text > :last-child { margin-bottom: 0; }
.legal-text p,
.legal-text ul,
.legal-text ol { margin: 0 0 .9rem; }
.legal-text ul,
.legal-text ol { padding-left: 1.35rem; }
.legal-text li + li { margin-top: .4rem; }
.legal-text strong { color: var(--heading-strong); }
.legal-text h3 { margin: 1.35rem 0 .5rem; color: var(--heading-strong); font: 800 1.0625rem/1.4 var(--font-display); letter-spacing: -.01em; }
.legal-text a {
  color: var(--violet-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.legal-text a:hover { text-decoration-thickness: 2px; }
.legal-text a:focus-visible { outline-offset: 2px; border-radius: 3px; }
/* Tables scroll sideways inside their own region (focusable, named by the section heading), never
   the page. */
.table-scroll { margin: 0 0 1rem; overflow-x: auto; border: 1px solid #e2d2f8; border-radius: .9rem; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* A table wider than the screen shows shadows at the edges that it goes on to the side; they scroll
   away at either end (white covers that move with the table hide them there), as in lessons. The
   header cells have no background of their own, so the shadows show through them too. */
.legal-text .table-scroll {
  background:
    linear-gradient(to right, #fff 30%, rgb(255 255 255 / 0)) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgb(255 255 255 / 0)) right center / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(40 16 91 / .3), transparent) left center / .9rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(40 16 91 / .3), transparent) right center / .9rem 100% no-repeat scroll;
}
.legal-text table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.legal-text th,
.legal-text td { padding: .65rem .8rem; border-bottom: 1px solid #ece2fa; text-align: left; vertical-align: top; }
.legal-text th + th,
.legal-text td + td { border-left: 1px solid #ece2fa; }
.legal-text th { border-bottom: 2px solid #d9c6f5; color: var(--heading-strong); font-weight: 800; }
/* An email address in a table breaks after "@" (a <wbr>), never letter by letter. */
.legal-text td a { overflow-wrap: break-word; }
.legal-text tbody tr:last-child td { border-bottom: 0; }
.legal-text .align-center { text-align: center; }
.legal-text .align-right { text-align: right; }
.legal-section .seller-list dt { color: var(--text-3); }
.legal-section .seller-list dd { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: center;
  gap: 2rem;
  padding-block: 4rem 5rem;
}
.notfound h1 {
  margin: 0 0 1rem;
  color: var(--ink-hero);
  font: 800 clamp(2.4rem, 5vw, 4rem)/1.08 var(--font-display);
  letter-spacing: -.055em;
}
.notfound p:not(.eyebrow) { color: var(--text-hero); font-size: 1.125rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-inner { gap: .75rem; }
  .site-nav { gap: 0 .9rem; font-size: .875rem; }
  .header-actions .button { display: none; }
  .home-hero-grid { min-height: 540px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* Half the footer's width: a narrower label column keeps the email address on one line. */
  .seller-list div { grid-template-columns: 7.5rem minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.8rem 2rem; }
  .course-card h3 { font-size: 3.2rem; }
  .steps { grid-template-columns: 1fr; }
  .steps > li { padding: 1.4rem; }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
}
@media (max-width: 860px) {
  .home-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 2.5rem 1rem; }
  .home-hero-art { width: min(100%, 560px); margin-inline: auto; }
  .home-hero-art .hero-picture { width: 100%; margin: 0; }
  .course-hero { grid-template-columns: 1fr; }
  .course-hero-visual { width: min(100%, 520px); margin-inline: auto; }
}
@media (max-width: 700px) {
  .consent-settings { min-height: 44px; }
  .shell, .legal-shell { width: min(100% - 32px, 550px); }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem 1rem;
    min-height: 0;
    padding-block: .75rem 0;
  }
  .header-actions { grid-row: 1; grid-column: 2; }
  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 0 1rem;
    padding-block: .25rem;
    border-top: 1px solid #eee5ff;
  }
  .brand-logo { width: 79px; height: 44px; }
  .section-heading { display: block; margin-bottom: 2rem; }
  .section-heading > p { margin-top: 1.2rem; }
  /* Phones: the art first, then only the offer (the headline, the launch price and the button). The
     rest waits below: every course card has its free lesson, the course pages name the team. */
  .hero-kicker, .hero-lead, .hero-free, .hero-team { display: none; }
  .home-hero-grid { gap: .75rem; padding-block: 0 2rem; }
  .home-hero-art { order: -1; width: auto; margin-inline: -1rem; }
  /* A band across the screen, its edges feathered into the hero. */
  .home-hero-art .hero-picture {
    display: flex;
    justify-content: center;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#0000, #000 10%, #000 86%, #0000), linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(#0000, #000 10%, #000 86%, #0000), linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000);
    mask-composite: intersect;
  }
  /* As tall as the screen leaves room for (24rem: the header, headline, price and button), so the
     button stays on the first screen; the 1.32 crop drops the art's empty margins. The build's
     sizes attribute follows this width on phones: min(115vw, 582px). */
  .home-hero-art .hero-picture img {
    flex: none;
    width: auto;
    min-width: 100%;
    max-width: none;
    height: clamp(10rem, min(87vw, 100vh - 24rem), 26rem);
    height: clamp(10rem, min(87vw, 100svh - 24rem), 26rem);
    aspect-ratio: 1.32;
    object-fit: cover;
    object-position: 50% 37%;
  }
  .home-hero h1 { font-size: clamp(2.4rem, 10.2vw, 4rem); line-height: 1.08; }
  /* The price as a ticket across the column: the tag is its stub ("LAUNCH" over "PRICE"), the
     terms beside it. */
  .hero-launch {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0;
    margin-top: 1.25rem;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    font-size: .875rem;
  }
  .hero-launch-tag {
    display: grid;
    place-items: center;
    align-self: stretch;
    width: min-content;
    padding: .55rem .85rem;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.3;
    text-align: center;
  }
  .hero-launch > :last-child { padding: .6rem .9rem; }
  .hero-actions { margin-top: 1rem; gap: .75rem 1rem; }
  .hero-actions .button { width: 100%; }
  .courses-section { padding: 2.5rem 0 3rem; }
  .courses-section .section-heading { margin-bottom: 2.75rem; }
  .course-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .course-card h3 { font-size: 2.8rem; }
  .card-bottom { min-height: 0; }
  .card-owl { max-width: 15rem; }
  .course-link { align-self: stretch; justify-content: center; padding: 1rem; }
  .course-card--photo .course-link { left: 1rem; right: 1rem; bottom: 1rem; }
  .card-photo { margin-top: -4.5rem; }
  .price-badge {
    top: -1rem;
    right: .65rem;
    width: 6.75rem;
    min-height: 5.5rem;
    border-radius: 1.2rem;
    transform: rotate(5deg);
  }
  .price-badge::before { border-radius: calc(1.2rem - 6px); }
  .price-badge strong { font-size: 2.5rem; }
  .price-badge small { font-size: .875rem; }
  /* The launch ticket: a little wider, its three lines well inside the inner frame. */
  .price-badge--launch { width: 8.25rem; min-height: 0; padding: .8rem .55rem .75rem; }
  .price-badge--launch strong { font-size: 2.6rem; }
  .price-badge .price-kicker { margin-bottom: .2rem; font-size: .66rem; letter-spacing: .05em; }
  .price-badge--launch small:last-child { margin-top: .25rem; font-size: .75rem; }
  .facts { margin-block: 2rem; padding: 1.5rem; }
  .facts-list li { padding-inline: 1rem; }
  .learn-section { padding: 2.5rem 0 3rem; }
  .steps-section { padding: 3rem 0 4.5rem; }
  .steps-heading { min-height: 0; margin-bottom: 1.5rem; }
  .steps-visual { display: none; }
  .steps-heading h2 { font-size: 2.5rem; }
  .steps { gap: 1.5rem; }
  .steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.3rem; align-items: center; padding: 1.5rem; }
  .steps h3 { margin: 0; }
  .steps p { grid-column: 1 / -1; padding-top: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem 2rem; }
  .seller-list div { grid-template-columns: 8rem minmax(0, 1fr); }
  .footer-links a { min-height: 44px; }
  .course-hero { gap: 2rem; padding-block: 1.5rem 3.5rem; }
  .course-hero h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); overflow-wrap: anywhere; }
  .course-hero-visual { min-height: 0; transform: none; }
  .course-hero-visual picture { max-width: 20rem; transform: none; }
  .purchase-panel { margin-top: 1.75rem; padding: 1.25rem; }
  .purchase-panel .price-badge { min-width: 6.25rem; transform: none; }
  .purchase-panel .price-badge strong { font-size: 2.25rem; }
  .course-info { padding: 3rem 0 4rem; }
  .course-info-grid { grid-template-columns: 1fr; }
  .info-card { padding: 1.4rem; }
  .info-card h2 { font-size: 1.8rem; overflow-wrap: anywhere; }
  .legal-page { padding-top: 1.5rem; }
  .legal-section { padding: 1.1rem 1.2rem; }
  .notfound { grid-template-columns: 1fr; padding-block: 2.5rem 3.5rem; }
  .notfound-art { width: min(100%, 18rem); }
}
@media (max-width: 400px) {
  .facts { padding: 1.25rem; }
  .facts-list { column-gap: .5rem; }
  .facts-list li { padding-inline: .75rem; font-size: .9375rem; }
  .facts-list b { font-size: 1.35rem; }
  .purchase-panel { grid-template-columns: 1fr; }
  .purchase-panel .price-badge { grid-column: 1; grid-row: 1; justify-self: start; }
  .purchase-panel .button { grid-row: 2; }
  .course-facts div, .seller-list div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 380px) {
  .site-nav { gap: 0 .7rem; font-size: .8125rem; }
}
@media (max-width: 340px) {
  /* "Learn design, ads" keeps its line. */
  .home-hero h1 { font-size: 2.15rem; }
  /* The header takes two nav rows here. */
  .home-hero-art .hero-picture img {
    height: clamp(10rem, min(87vw, 100vh - 26.5rem), 26rem);
    height: clamp(10rem, min(87vw, 100svh - 26.5rem), 26rem);
  }
}
@media (max-width: 360px) {
  .card-bottom .course-link { font-size: .9375rem; padding-inline: .75rem; }
}

/* ---------- Forced colours (Windows contrast themes) ---------- */
@media (forced-colors: active) {
  /* A disabled button (aria-disabled) must not look like the active one. */
  .button-disabled,
  .button-disabled:hover,
  .button[aria-disabled='true'],
  .button[aria-disabled='true']:hover,
  .faq-contact .button[aria-disabled='true'],
  .faq-contact .button[aria-disabled='true']:hover { border-color: GrayText; color: GrayText; }
  /* Background images (the logo) are dropped: the brand name shows as text instead. */
  .brand-logo,
  .footer-logo-img { display: none; }
  .brand .visually-hidden,
  .footer-logo .visually-hidden {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font: 800 1.25rem/1.2 var(--font-display);
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .course-card, .price-badge, .card-owl, .card-photo img, .choose-owl, .hero-chip { transition: none; }
  .button:hover,
  .course-card:hover,
  .course-card:hover .card-owl,
  .course-card--photo:hover .card-photo img,
  .choose-card:hover .choose-owl,
  .hero-chip:hover { transform: none; }
  /* Keep the ticket's resting tilt, drop the hover lift. */
  .course-card:hover .price-badge { transform: rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .course-card:hover .price-badge { transform: rotate(5deg); }
}
