/* ==========================================================================
   MIZAN — design system
   Logo-derived: charcoal and gold on warm paper. Editorial serif display,
   hand-drawn balance motifs, Apple-grade restraint in motion.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --alt: #f4f1ea;
  --ink: #26262a;
  --ink-2: #57585a;
  --muted: #8a8a8e;
  --hairline: #e3e0d6;
  --hairline-soft: rgba(38, 38, 42, 0.08);
  --gold: #c4a22c;
  --gold-deep: #8a7115;
  --gold-tint: #f6f0dd;
  --dark: #232326;
  --dark-2: #2c2c30;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --nav-h: 56px;
  --max: 1120px;
  --max-wide: 1280px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@view-transition { navigation: auto; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(196, 162, 44, 0.22); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.002em;
  line-height: 1.08;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.9rem, 6.4vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
}
.display em, .title-lg em {
  font-style: normal;
  color: var(--gold);
}

.title-lg { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 500; }
.title-md { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; }
.title-sm { font-size: 1.3125rem; }

.lede {
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42em;
  text-wrap: pretty;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.center .eyebrow { justify-content: center; }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  flex: none;
}

.measure { max-width: 42em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(72px, 10vw, 132px) 0; }
.section-alt { background: var(--alt); }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }

.section-dark { background: var(--dark); color: #f4f1ea; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #f4f1ea; }
.section-dark .lede { color: #b9b7ae; }
.section-dark .eyebrow { color: var(--gold); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 250, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f4f1ea !important;
  background: var(--ink);
  padding: 8px 18px;
  border-radius: 980px;
  transition: background 0.25s var(--ease);
}
.nav-cta:hover { background: #000; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav.open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

main { padding-top: var(--nav-h); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }

.btn-primary { background: var(--ink); color: #f4f1ea; }
.btn-primary:hover { background: #000; box-shadow: 0 10px 24px rgba(38, 38, 42, 0.18); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.btn-secondary:hover { background: var(--gold-tint); }

.btn-gold { background: var(--gold); color: #26262a; }
.btn-gold:hover { background: #d3b13a; box-shadow: 0 10px 24px rgba(196, 162, 44, 0.3); }

.btn-light { background: #f4f1ea; color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { font-size: 0.875rem; padding: 10px 20px; }

.link-arrow { font-weight: 500; white-space: nowrap; }
.link-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(84px, 12vw, 158px) 0 clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%;
  right: -14%;
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 162, 44, 0.13), rgba(196, 162, 44, 0));
  pointer-events: none;
}
.hero-motif {
  position: absolute;
  right: clamp(-60px, 4vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 26vw, 380px);
  opacity: 0.5;
  pointer-events: none;
}

.hero .lede { margin: 26px auto 0; }
.hero-ctas {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note { margin-top: 22px; font-size: 0.875rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 162, 44, 0.55);
  box-shadow: 0 24px 48px rgba(38, 38, 42, 0.1);
  text-decoration: none;
}

.card-art {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  overflow: hidden;
  background: var(--art-bg, var(--alt));
}
.card-art .motif {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 58%;
  max-width: 215px;
}
.card-art .cat {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.71875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--art-ink, var(--ink-2));
}
.card-art .idx {
  position: absolute;
  bottom: 14px;
  right: 20px;
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--art-ink, var(--ink-2));
  opacity: 0.7;
}
.card-art .dur {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--art-ink, var(--ink-2));
}

.cat-communication { --art-bg: #eef0e9; --art-ink: #4d5442; --art-stroke: #757d63; }
.cat-leadership     { --art-bg: #f4ecda; --art-ink: #6d5a24; --art-stroke: #a8892f; }
.cat-teams          { --art-bg: #ece9e1; --art-ink: #565044; --art-stroke: #857b64; }
.cat-thinking       { --art-bg: #e9ebee; --art-ink: #474f5c; --art-stroke: #6e7b8e; }
.cat-wellbeing      { --art-bg: #e9efec; --art-ink: #42564c; --art-stroke: #6a8677; }

.library-banner { --art-stroke: #f4f1ea; --art-ink: #f4f1ea; --gold: #c4a22c; }

.card-body { padding: 22px 22px 24px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.card-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--muted);
}
.card-meta .price { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Tiles and glyphs
   -------------------------------------------------------------------------- */

.tile {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  padding: 28px 26px;
}
.tile h3 { font-size: 1.125rem; margin-bottom: 8px; }
.tile p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.tile .glyph { margin-bottom: 18px; }

.glyph { display: block; width: 34px; height: 34px; color: var(--gold); }
.glyph svg { width: 100%; height: 100%; }

.section-alt .tile, .section-alt .card { border-color: rgba(38, 38, 42, 0.06); }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.step { padding: 8px 0; }
.step .num {
  display: block;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Category chips / filters
   -------------------------------------------------------------------------- */

.cat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 980px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cat-chip:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(38, 38, 42, 0.08);
}
.cat-chip .n { font-size: 0.8125rem; color: var(--muted); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 36px 0 44px; }
.filter-pill {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 980px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-pill:hover { border-color: var(--gold); color: var(--ink); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: #f4f1ea; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-grid .card.hide { display: none; }
.count-note { font-size: 0.875rem; color: var(--muted); margin-top: -28px; margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   Course page
   -------------------------------------------------------------------------- */

.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 8px; opacity: 0.6; }

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.course-head { margin-bottom: 40px; }
.course-head h1 { font-size: clamp(2.25rem, 4.5vw, 3.4rem); font-weight: 500; }
.course-head .lede { margin-top: 16px; }

.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.meta-chip {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--alt);
  border-radius: 980px;
  padding: 7px 14px;
}

.course-section { padding: 36px 0; border-top: 1px solid var(--hairline); }
.course-section:first-of-type { border-top: 0; padding-top: 0; }
.course-section h2 { font-size: 1.625rem; margin-bottom: 20px; font-weight: 500; }

.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.outcomes li { padding-left: 32px; position: relative; color: var(--ink-2); }
.outcomes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  border: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* accordion */
.acc { border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.acc-btn .acc-ic { flex: none; width: 12px; height: 12px; position: relative; }
.acc-ic::before, .acc-ic::after {
  content: "";
  position: absolute;
  background: var(--gold-deep);
  transition: transform 0.3s var(--ease);
}
.acc-ic::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.acc-ic::after { top: 0; bottom: 0; left: 5px; width: 1.5px; }
.acc-item.open .acc-ic::after { transform: scaleY(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 2px 20px; color: var(--ink-2); font-size: 0.9375rem; }

/* what's inside grid */
.inside-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inside-item { background: var(--alt); border-radius: var(--radius-sm); padding: 18px 20px; }
.inside-item h4 { font-family: var(--sans); font-size: 0.9375rem; margin: 0 0 4px; font-weight: 600; }
.inside-item p { margin: 0; font-size: 0.875rem; color: var(--ink-2); }

/* buy card */
.buy-card {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 40px rgba(38, 38, 42, 0.07);
}
.buy-card .price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.buy-card .price {
  font-family: var(--serif);
  font-size: 2.375rem;
  font-weight: 600;
}
.buy-card .per { font-size: 0.875rem; color: var(--muted); }
.buy-card .vat { font-size: 0.8125rem; color: var(--muted); margin-bottom: 20px; }

.tier {
  display: block;
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.tier input { position: absolute; opacity: 0; }
.tier.selected { border-color: var(--gold); background: var(--gold-tint); }
.tier .t-name { font-weight: 600; font-size: 0.9375rem; display: flex; justify-content: space-between; }
.tier .t-desc { font-size: 0.8125rem; color: var(--ink-2); margin-top: 2px; }

.buy-card .btn { margin-top: 14px; }
.buy-list { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hairline); }
.buy-list li { font-size: 0.875rem; color: var(--ink-2); padding: 5px 0 5px 26px; position: relative; }
.buy-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  border: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.buy-foot { margin-top: 18px; font-size: 0.8125rem; color: var(--muted); }
.buy-foot a { color: var(--muted); text-decoration: underline; }

.license-box {
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid rgba(196, 162, 44, 0.35);
}
.license-box h3 { font-size: 1.125rem; margin-bottom: 10px; }
.license-box p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Library banner
   -------------------------------------------------------------------------- */

.library-banner {
  border-radius: 24px;
  background: linear-gradient(150deg, #232326, #2c2c30 55%, #3a3320);
  color: #f4f1ea;
  padding: clamp(44px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.library-banner .banner-motif {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 240px;
  opacity: 0.16;
}
.library-banner h2 { color: #f4f1ea; font-size: clamp(1.85rem, 3.4vw, 2.9rem); font-weight: 500; }
.library-banner p { color: #b9b7ae; max-width: 36em; margin: 16px auto 0; position: relative; }
.library-banner .btn { margin-top: 30px; }
.library-banner .eyebrow { color: var(--gold); justify-content: center; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.lic-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.lic-table th, .lic-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.lic-table th {
  font-size: 0.78125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.lic-table td:first-child { color: var(--ink-2); }
.yes { color: var(--gold-deep); font-weight: 600; }
.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose { max-width: 42em; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; font-weight: 500; }
.prose h3 { font-size: 1.125rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1rem; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  background: var(--dark);
  color: #b9b7ae;
  padding: 56px 0 40px;
  font-size: 0.8125rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.foot-brand .wordmark { font-size: 1.25rem; color: #f4f1ea; }
.foot-logo {
  width: 150px;
  filter: brightness(0) invert(0.94);
  opacity: 0.95;
}
.foot-brand .brand-line {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--gold);
}
.foot-brand p { margin: 12px 0 0; color: #8f8e86; max-width: 26em; }
footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8f8e86;
  margin: 0 0 14px;
  font-weight: 600;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 8px 0; }
footer a { color: #b9b7ae; }
footer a:hover { color: #f4f1ea; }
.foot-legal {
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #8f8e86;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

.draw path, .draw circle, .draw line, .draw ellipse {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}
.draw.in path, .draw.in circle, .draw.in line, .draw.in ellipse {
  animation: draw 1.8s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .cat-chip { transition: none; }
  .draw path, .draw circle, .draw line, .draw ellipse {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .course-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: 1fr; }
  .course-layout aside { order: -1; }
  .buy-card { position: static; margin-bottom: 8px; }
  .hero-motif { display: none; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .course-grid, .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(251, 250, 247, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 0; font-size: 1.0625rem; width: 100%; }
  .nav-links .nav-cta { text-align: center; margin-top: 10px; padding: 12px 16px; }
  .nav-toggle { display: block; }
}
