/* ==========================================================================
   Minetly · AI Master Class — "Soft Pop" light theme
   1 Tokens · 2 Base · 3 Layout utilities · 4 Components · 5 Sections
   6 Motion · 7 Media queries
   Phone first (390px), enhanced at 768px and 1100px.
   ========================================================================== */

/* 1 ── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  /* colour */
  --bg: #FFF7EF;
  --surface: #FFFFFF;
  --peach: #FFDCCB;
  --butter: #FFEBAD;
  --mint: #CDEFE0;
  --lilac: #E3DAFF;
  --sky: #D3E8FF;
  --ink: #2A1F45;
  --ink-2: #5B5077;
  --line: #EADFD3;
  --cta: #6C3BE4;
  --cta-deep: #4A22B8;
  --on-cta: #FFFFFF;
  --pop: #FF7A59;            /* decorative shapes only, never text */
  --sun: #FFC93C;            /* sticker fills, always with --ink text */
  --edge-soft: #DCCFC1;      /* bottom edge of white pill buttons */
  --edge-lilac: #C2B3F0;     /* bottom edge of the lilac secondary button */
  --field-line: #8B81A4;     /* input outline, 3:1 against white */
  --glass: rgba(255, 247, 239, .92);
  --shade-1: rgba(42, 31, 69, .06);
  --shade-2: rgba(42, 31, 69, .10);
  --shade-3: rgba(42, 31, 69, .16);
  --gloss: rgba(255, 255, 255, .7);
  --gloss-soft: rgba(255, 255, 255, .28);

  /* type */
  --font-head: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: .875rem;
  --fs-sm: .9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + .5vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  --fs-h1: clamp(2.125rem, 10.2vw, 2.75rem);
  --fs-num: clamp(1.75rem, 8.6vw, 3.5rem);
  --fs-price: clamp(4rem, 19vw, 6rem);

  /* space, 4/8 rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-30: 120px;
  --gutter: 20px;
  --wrap: 1160px;
  --sec-y: var(--s-16);
  --band-y: var(--s-10);
  --wave-h: clamp(28px, 5vw, 64px);
  --header-h: 60px;
  --bar-h: 76px;

  /* shape */
  --r-card: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;
  --r-squircle: 32%;

  /* depth (clay: soft outer shadow, top gloss, bottom shade) */
  --shadow-clay: 0 10px 24px var(--shade-2), inset 0 2px 0 var(--gloss), inset 0 -6px 0 var(--shade-1);
  --shadow-clay-sm: 0 6px 16px var(--shade-2), inset 0 2px 0 var(--gloss), inset 0 -4px 0 var(--shade-1);
  --shadow-sticker: 0 4px 10px var(--shade-2), inset 0 1.5px 0 var(--gloss), inset 0 -3px 0 var(--shade-1);
  --shadow-float: 0 16px 32px var(--shade-3);
  --shadow-float-sm: 0 8px 16px var(--shade-3);
  --shadow-bar: 0 0 0 1px var(--line), 0 14px 34px var(--shade-3), 0 2px 8px var(--shade-2);

  /* motion */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ── BASE ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  color-scheme: only light;      /* a light theme: opt out of forced dark mode */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button, input, textarea { font: inherit; color: inherit; }
s { text-decoration-thickness: 2px; }
strong { font-weight: 800; }

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

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

/* The sticky header must never cover an anchor target or the control that
   has focus (phones also clear the buy bar, see the media queries). */
[id], a, button, summary, input, textarea { scroll-margin-top: calc(var(--header-h) + var(--s-3)); }
a, button, summary, input, textarea { scroll-margin-bottom: var(--s-4); }

/* 3 ── LAYOUT UTILITIES ───────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: var(--sec-y); }

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

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: var(--s-3);
  z-index: 100;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* pastel bands with wavy edges: the page colour shows through the waves */
.band { --band: var(--sky); }
.band--sky { --band: var(--sky); }
.band--mint { --band: var(--mint); }
.band--lilac { --band: var(--lilac); }
.band--butter { --band: var(--butter); }
.band--peach { --band: var(--peach); }

.band__body {
  position: relative;
  padding-block: var(--band-y);
  background: var(--band);
  overflow: hidden;
  overflow: clip;
}

.wave {
  display: block;
  width: 100%;
  height: var(--wave-h);
  fill: var(--band);
}
.wave--top { margin-bottom: -1px; }
.wave--bottom { margin-top: -1px; }

.sec-head {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  max-width: 44rem;
}
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head__lead {
  max-width: 36rem;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* 4 ── COMPONENTS ─────────────────────────────────────────────────────── */

/* Buttons: chunky 3D pills. The bottom edge is reserved with a margin so
   pressing the button never moves the layout. The press is an instant state
   change (transform + shorter edge), so nothing but transform ever animates. */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-edge: var(--edge-soft);
  --btn-glow: var(--shade-2);    /* soft ambient shadow under the solid edge */
  --edge: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  margin: 0 0 var(--edge);
  padding: 0 var(--s-6);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 var(--edge) 0 var(--btn-edge), 0 calc(var(--edge) + 8px) 18px var(--btn-glow), inset 0 2px 0 var(--gloss-soft);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active {
  transform: translateY(calc(var(--edge) - 2px));
  box-shadow: 0 2px 0 var(--btn-edge), 0 6px 10px var(--btn-glow), inset 0 2px 0 var(--gloss-soft);
}
.btn[aria-disabled="true"] { opacity: .45; cursor: default; }

.btn--primary {
  --btn-bg: var(--cta);
  --btn-fg: var(--on-cta);
  --btn-edge: var(--cta-deep);
  --edge: 6px;
}
.btn--lilac {
  --btn-bg: var(--lilac);
  --btn-edge: var(--edge-lilac);
}
.btn--lg {
  min-height: 60px;
  padding-inline: var(--s-5);
  font-size: clamp(1.0625rem, 4.6vw, 1.1875rem);
}
.btn--sm {
  --edge: 4px;
  min-height: 48px;
  padding-inline: var(--s-5);
  font-size: 1rem;
}
.btn--block { display: flex; width: 100%; }
.btn--round {
  width: 52px;
  padding: 0;
}

/* Eyebrows and quick facts: small rounded sticker pills */
.pill {
  --tone: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--tone);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  vertical-align: top;
  box-shadow: var(--shadow-sticker);
}
.pill .ico { width: 16px; height: 16px; }
.pill--fact {
  min-height: 36px;
  padding-inline: 14px;
  transform: rotate(var(--tilt, 0deg));
}

/* Floating stickers that overlap media corners */
.sticker {
  --tone: var(--sun);
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 4px solid var(--surface);
  background: var(--tone);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  box-shadow: var(--shadow-float-sm);
  transform: rotate(var(--tilt, 0deg));
}
.sticker--round {
  flex-direction: column;
  gap: 0;
  width: 100px;
  height: 100px;
  padding: var(--s-2);
  border-radius: 50%;
}
.sticker--round span { white-space: nowrap; }
.sticker--pill {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.sticker .ico { width: 18px; height: 18px; }

/* Video play / pause toggle (shown once app.js has wired it up) */
.vbtn {
  position: absolute;
  z-index: 3;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float-sm), inset 0 -3px 0 var(--shade-1);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
html.ui .vbtn { display: grid; }
.vbtn .ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.vbtn[aria-pressed="true"] .ico--play,
.vbtn[aria-pressed="false"] .ico--pause { display: none; }

/* Decorative coral shapes */
.spark {
  position: absolute;
  width: 32px;
  height: 32px;
  fill: var(--pop);
  pointer-events: none;
}
.squiggle {
  display: block;
  width: 72px;
  height: 16px;
  fill: none;
  stroke: var(--pop);
  stroke-width: 4;
  stroke-linecap: round;
  pointer-events: none;
}

/* Prices */
.was {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.now {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Social pill links */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.social .btn { flex: 1 1 0; padding-inline: var(--s-4); }   /* a matched pair: equal widths */
.social .ico { width: 20px; height: 20px; }

/* Offer state (the only two !important rules in this file) */
[data-offer="on"] .regular-only { display: none !important; }
[data-offer="off"] .offer-only { display: none !important; }

/* 5 ── SECTIONS ───────────────────────────────────────────────────────── */

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  touch-action: manipulation;
}
.brand__mark {
  width: 12px;
  height: 12px;
  margin-inline: 3px 5px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 3px var(--sun);
}
.nav { display: none; }
/* In the slim bar the button keeps its solid edge but drops the soft shadow
   (it would spill over the bar's border), and its focus ring is pulled in so
   the top of the ring stays inside the viewport. */
.header .btn { --btn-glow: transparent; }
.header .btn:focus-visible { outline-offset: 1px; }

/* Hero */
.hero {
  position: relative;
  padding-block: var(--s-5) var(--s-10);
  overflow: hidden;
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
}
.hero__copy { min-width: 0; }
.hero__title {
  margin-top: var(--s-3);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
.h1-line { display: block; }
.marker {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  isolation: isolate;
}
.marker::before {             /* the butter marker swipe */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 44% -.14em 0 -.14em;
  border-radius: .28em .5em .32em .44em;
  background: var(--butter);
  transform: rotate(-1.2deg);
}
.hero__lead {
  max-width: 34rem;
  margin-top: var(--s-3);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}
.hero__buy { margin-top: var(--s-5); }

/* The offer under the hero button: a bold price row, then one small line with
   the end date and the countdown. Deliberately light: no card, no boxes. */
.hero__deal {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-4);
}
.hero__deal-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}
.hero__deal-prices .was { font-size: 1.125rem; font-weight: 700; }
.hero__deal-prices .now { font-size: 1.75rem; line-height: 1.1; }
.hero__deal-tag { --tone: var(--sun); }
.hero__deal-ends {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
}
.hero__deal-ends .ico { width: 18px; height: 18px; }
.hero__deal-ends strong,
.hero__deal-timer b {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--s-3);
  margin-top: var(--s-3);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-2);
  margin-top: var(--s-5);
}
.tilt-a { --tilt: -3deg; }
.tilt-b { --tilt: 2deg; }
.tilt-c { --tilt: -1deg; }

.hero__media {
  position: relative;
  width: min(300px, calc(100% - 44px));
  margin: var(--s-4) auto 0;
  aspect-ratio: 1;
}
.hero__blob {
  position: absolute;
  inset: -7% -8% -6% -8%;
  border-radius: 62% 38% 54% 46% / 45% 57% 43% 55%;
  background: var(--butter);
  pointer-events: none;
}
.hero__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 8px solid var(--surface);
  border-radius: var(--r-squircle);
  background: var(--peach);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: rotate(2deg);
}
.hero__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__vbtn { left: -4px; bottom: 6px; }
.hero__s1 { --tilt: -10deg; --float-d: 6s; top: -20px; left: -22px; }
.hero__s2 { --tilt: 5deg; --float-d: 7s; right: -18px; bottom: 36px; }
.hero__spark { top: -8px; right: -6px; transform: rotate(12deg); }

/* Proof numbers: heading, the four numbers, then the two outbound links */
.proof { padding-block: var(--s-6) var(--sec-y); }
.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.stat {
  --tone: var(--surface);
  min-width: 0;
  padding: var(--s-5) var(--s-4) var(--s-6);
  border-radius: var(--r-card);
  background: var(--tone);
  box-shadow: var(--shadow-clay);
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-num);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.35;
}

/* Sample videos */
.videos__spark { top: var(--s-6); right: 7%; width: 40px; height: 40px; transform: rotate(-10deg); }
.reels { margin-top: var(--s-2); }
.reels__track {
  position: relative;
  display: flex;
  gap: var(--s-5);
  padding: var(--s-6) var(--gutter) var(--s-10);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reels__track::-webkit-scrollbar { display: none; }
.reel {
  flex: 0 0 68%;
  min-width: 0;
  max-width: 280px;
  scroll-snap-align: center;
}
.reel__fig { transform: rotate(var(--tilt, 0deg)); }
.tilt-r1 { --tilt: -2deg; }
.tilt-r2 { --tilt: 1.5deg; }
.tilt-r3 { --tilt: -1deg; }
.reel__frame {
  position: relative;
  aspect-ratio: 608 / 1080;
  border: 6px solid var(--surface);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;          /* keeps the playing video clipped to the rounded corners in WebKit */
  box-shadow: var(--shadow-float);
}
.reel__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel__frame .vbtn { right: var(--s-3); bottom: var(--s-3); }
.reel__cap {
  margin-top: var(--s-3);
  padding-inline: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
}
.reels__controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.reels__dots { display: flex; gap: var(--s-2); }
.reels__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--ink);
  opacity: .25;
}
.reels__dot.is-on { width: 28px; opacity: 1; }
.reels__btns { display: flex; gap: var(--s-3); }

/* What you'll learn */
.modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.module {
  --tone: var(--surface);
  min-width: 0;
  padding: var(--s-5) var(--s-5) var(--s-8);
  border-radius: var(--r-card);
  background: var(--tone);
  box-shadow: var(--shadow-clay);
}
.module__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-sticker);
}
.module__icon { width: 32px; height: 32px; margin-right: var(--s-1); }
.module__title { margin-top: var(--s-4); font-size: var(--fs-h3); }
.module__desc { margin-top: var(--s-2); font-size: 1rem; line-height: 1.55; }

/* Course facts */
.facts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
}
.fact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  min-width: 0;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-clay-sm);
}
.fact__icon {
  --tone: var(--bg);
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tone);
}
.fact__icon .ico { width: 24px; height: 24px; }
.fact__text { min-width: 0; padding-top: 2px; }
.fact__title { font-size: 1.125rem; line-height: 1.25; }
.fact__desc {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.about { display: grid; justify-items: start; gap: var(--s-3); }
.about__text {
  max-width: 34rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

/* Instructor */
.instructor {
  overflow: hidden;
  overflow: clip;
}
.instructor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-12);
}
.portrait {
  position: relative;
  width: min(300px, calc(100% - 48px));
  margin-inline: auto;
  aspect-ratio: 1;
}
.portrait__blob {
  position: absolute;
  inset: -8% -9% -6% -8%;
  border-radius: 44% 56% 48% 52% / 56% 44% 56% 44%;
  background: var(--lilac);
  pointer-events: none;
}
.portrait__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 8px solid var(--surface);
  border-radius: var(--r-squircle);
  background: var(--lilac);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__handle { --tilt: -4deg; --float-d: 6.5s; right: -14px; bottom: -6px; }
.portrait__spark { top: 2%; left: -6%; transform: rotate(-14deg); }
.instructor__copy { min-width: 0; }
.instructor__copy h2 { font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.5rem); }
.bio {
  display: grid;
  gap: var(--s-4);
  max-width: 38rem;
  margin-top: var(--s-5);
  color: var(--ink-2);
}
.instructor__copy .social { margin-top: var(--s-6); }

/* Pricing */
.pcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  max-width: 960px;
  margin-top: var(--s-12);
  padding: var(--s-8) var(--s-5) var(--s-6);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-clay);
}
.pcard__badge { --tilt: 10deg; --float-d: 7s; top: -38px; right: 12px; width: 116px; height: 116px; font-size: var(--fs-sm); }
.pcard__head { min-width: 0; }
.pcard__title { font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.25rem); }
[data-offer="on"] .pcard__title,
[data-offer="on"] .pcard__sub { padding-right: 116px; }   /* room for the offer sticker */
.pcard__sub { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 700; }
.price__row {
  display: grid;
  justify-items: start;
  gap: var(--s-1);
  margin-top: var(--s-4);
}
.price__was {
  color: var(--ink-2);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.price__now {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-price);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.price__fig {
  display: inline-flex;
  align-items: flex-start;
}
.rs {                         /* small raised currency sign beside the big figure */
  margin: .2em .06em 0 0;
  font-family: var(--font-body);
  font-size: .46em;
  font-weight: 800;
  line-height: 1;
}
.offer { margin-top: var(--s-4); }
.offer__ends {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1rem;
  font-weight: 700;
}
.offer__ends .ico { width: 20px; height: 20px; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  max-width: 22rem;
  margin-top: var(--s-3);
}
.countdown[hidden] { display: none; }
.cd__box {
  --tone: var(--bg);
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: var(--s-3) var(--s-1);
  border-radius: var(--r-md);
  background: var(--tone);
  box-shadow: var(--shadow-sticker);
}
.cd__num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd__label { font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; }
.pcard__list {
  min-width: 0;
  padding: var(--s-5) var(--s-4);
  border-radius: var(--r-md);
  background: var(--bg);
}
.pcard__label { font-size: 1.125rem; }
.checks { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 1rem;
  line-height: 1.45;
}
.checks li > span:last-child { min-width: 0; padding-top: 2px; }   /* the text, not the check bubble */
.check {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
}
.check .ico { width: 16px; height: 16px; stroke-width: 2.25; }
.pcard__buy { min-width: 0; }
.notes { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.notes li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.45;
}
.notes .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--ink); }

/* FAQ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
}
.faq__list { display: grid; gap: var(--s-3); max-width: 46rem; }
.faq__item {
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-clay-sm);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 68px;
  padding: var(--s-3) var(--s-3) var(--s-4) var(--s-5);
  border-radius: 24px;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { min-width: 0; font-size: 1.125rem; line-height: 1.3; }
.faq__plus {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lilac);
}
.faq__plus .ico { width: 22px; height: 22px; stroke-width: 2.25; }
.faq__item[open] .faq__plus { background: var(--sun); transform: rotate(45deg); }
.faq__a {
  max-width: 40rem;
  padding: 0 var(--s-5) var(--s-6);
  color: var(--ink-2);
}

/* Final call to action */
.final { text-align: center; }
.final__in {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 44rem;
  margin-inline: auto;
}
.final__pic {
  width: 112px;
  aspect-ratio: 1;
  border: 6px solid var(--surface);
  border-radius: var(--r-squircle);
  background: var(--peach);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: rotate(-6deg);
}
.final__pic img { width: 100%; height: 100%; object-fit: cover; }
.final h2 { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.5rem); font-weight: 700; }
.final__lead { max-width: 30rem; font-size: var(--fs-lead); line-height: 1.5; }
.final__buy { width: 100%; max-width: 22rem; margin-top: var(--s-2); }
.final__price {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
}
.final__spark-a { top: 6%; left: 4%; transform: rotate(-12deg); }
.final__spark-b { top: 18%; right: 5%; width: 24px; height: 24px; transform: rotate(18deg); }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
}
.contact__intro { display: grid; justify-items: start; align-content: start; gap: var(--s-3); min-width: 0; }
.contact__intro h2 { font-size: var(--fs-h2); }
.contact__q { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-lead); }
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  max-width: 100%;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}
.contact__mail .ico { width: 24px; height: 24px; }
.form {
  display: grid;
  gap: var(--s-4);
  min-width: 0;
  padding: var(--s-6) var(--s-5) var(--s-5);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-clay);
}
.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
.field { min-width: 0; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1.3;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  border: 2px solid var(--field-line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  outline-offset: 2px;
}
.req { font-weight: 800; }
.form__hint,
.form__note {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* Footer */
.footer__body { padding-block: var(--s-8) var(--s-10); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
}
.footer__brand { display: grid; justify-items: start; gap: var(--s-1); }
.footer__tag { max-width: 20rem; font-size: 1rem; line-height: 1.45; }
.footer__nav ul { display: grid; gap: var(--s-2); justify-items: start; }
.footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  max-width: 100%;
  font-weight: 700;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}
.footer__nav .ico { width: 20px; height: 20px; }
.footer__copy { font-size: var(--fs-sm); font-weight: 700; }

/* Sticky bottom buy bar (phones only, see media queries) */
.buybar { display: none; }

/* Pastel tones. Kept after every component and section rule above that sets a
   default --tone (.pill, .sticker, .stat, .module, .fact__icon, .cd__box), so
   the tone class wins at equal weight. */
.t-peach { --tone: var(--peach); }
.t-butter { --tone: var(--butter); }
.t-mint { --tone: var(--mint); }
.t-lilac { --tone: var(--lilac); }
.t-sky { --tone: var(--sky); }

/* 6 ── MOTION ─────────────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-5px) rotate(var(--tilt, 0deg)); }
}
@keyframes settle {
  from { transform: translateY(14px) scale(.97); }
  to { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .vbtn { transition: transform .14s var(--ease); }
  .vbtn:active { transform: scale(.94); }
  .skip-link { transition: transform .2s var(--ease); }
  .faq__plus { transition: transform .35s var(--spring); }
  .faq__item[open] .faq__a { animation: fade-up .3s var(--ease) backwards; }

  .sticker { animation: float var(--float-d, 6s) ease-in-out infinite; }

  /* hero entrance: pure CSS and transform only. The hero is never hidden,
     so it is readable from the first paint even if the animation is late. */
  .hero [data-pop] {
    animation: settle .5s var(--spring) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
  .hero__copy > :nth-child(2) { --i: 1; }
  .hero__copy > :nth-child(3) { --i: 2; }
  .hero__copy > :nth-child(4) { --i: 3; }
  .hero__copy > :nth-child(5) { --i: 4; }
  .hero__media { --i: 3; }

  /* scroll reveal: only hidden when scripts are confirmed to be running */
  html.js [data-reveal] {
    transition: opacity .45s var(--ease), transform .45s var(--spring);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  html.js:not(.reveal-all) [data-reveal] {
    opacity: 0;
    transform: scale(.94);
  }
  html.js:not(.reveal-all) [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (hover: hover) {
  .btn:hover:not(:active):not([aria-disabled="true"]) {
    transform: translateY(-2px);
    box-shadow: 0 calc(var(--edge) + 2px) 0 var(--btn-edge), 0 calc(var(--edge) + 12px) 22px var(--btn-glow), inset 0 2px 0 var(--gloss-soft);
  }
}

/* 7 ── MEDIA QUERIES ──────────────────────────────────────────────────── */

/* Phones only: carousel controls and the sticky buy bar */
@media (max-width: 767px) {
  /* the control that has focus always scrolls clear of the buy bar */
  a, button, summary, input, textarea {
    scroll-margin-bottom: calc(var(--bar-h) + var(--s-8) + env(safe-area-inset-bottom, 0px));
  }

  html.ui .reels__controls { display: flex; }

  .footer__body {
    /* the buy bar is hidden while the footer is on screen, so no room is kept for it */
    padding-bottom: calc(var(--s-10) + env(safe-area-inset-bottom, 0px));
  }

  .buybar {
    position: fixed;
    z-index: 60;
    left: max(var(--s-3), env(safe-area-inset-left, 0px));
    right: max(var(--s-3), env(safe-area-inset-right, 0px));
    bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    min-height: var(--bar-h);
    padding: var(--s-2) var(--s-3) var(--s-2) var(--s-5);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-bar);
    visibility: hidden;
    transform: translateY(calc(100% + var(--s-6) + env(safe-area-inset-bottom, 0px)));
  }
  .buybar.is-visible {
    visibility: visible;
    transform: none;
  }
  .buybar__info { min-width: 0; }
  .buybar__name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
  }
  .buybar__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--s-2);
    font-size: var(--fs-sm);
    line-height: 1.35;
  }
  .buybar__price .now { font-size: 1.125rem; }
  .buybar .btn { --btn-glow: transparent; min-height: 48px; padding-inline: var(--s-5); }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .buybar { transition: transform .4s var(--ease), visibility 0s linear .4s; }
  .buybar.is-visible { transition: transform .45s var(--spring), visibility 0s; }
}

/* Tablet and up */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --sec-y: var(--s-24);
    --band-y: var(--s-16);
    --fs-h1: clamp(2.75rem, 5.2vw, 4.5rem);
    --fs-num: clamp(2rem, 4.4vw, 3.5rem);
    --fs-price: clamp(4.5rem, 7vw, 6rem);
  }

  .social .btn { flex: 0 0 auto; padding-inline: var(--s-6); }

  .hero { padding-block: var(--s-12) var(--s-16); }
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: var(--s-10);
  }
  .hero__title { margin-top: var(--s-4); }
  .hero__lead { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.55; }
  .hero__buy { margin-top: var(--s-8); }
  .hero__buy .btn { display: inline-flex; width: auto; padding-inline: var(--s-8); }
  .hero__facts { margin-top: var(--s-6); }
  .hero__media { width: min(440px, calc(100% - 40px)); margin-top: 0; }

  .proof { padding-block: var(--s-8) var(--sec-y); }
  .proof__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head links" "stats stats";
    align-items: end;
    gap: var(--s-8) var(--s-5);
  }
  .proof__grid > .sec-head { grid-area: head; }
  .proof__grid > .social { grid-area: links; }
  .stats { grid-area: stats; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
  .stat { padding: var(--s-6) var(--s-5) var(--s-8); }

  /* a heading over a centred block is centred with it */
  .videos .sec-head,
  .pricing .sec-head {
    justify-items: center;
    margin-inline: auto;
    text-align: center;
  }
  .reels { margin-top: var(--s-6); }
  .reels__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-8);
    max-width: 960px;
    margin-inline: auto;
    padding: var(--s-4) var(--s-10) var(--s-6);
    overflow: visible;
    scroll-snap-type: none;
  }
  .reel { max-width: none; }

  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-12); }
  .module { padding: var(--s-6) var(--s-6) var(--s-8); }
  .module:last-child { grid-column: 1 / -1; }

  .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }

  .instructor__grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: var(--s-12);
  }
  .portrait { width: min(380px, calc(100% - 40px)); }

  .pcard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head list" "buy list";
    gap: var(--s-8) var(--s-10);
    margin-inline: auto;
    padding: var(--s-10);
  }
  .pcard__head { grid-area: head; }
  .pcard__list { grid-area: list; align-self: stretch; padding: var(--s-6); }
  .pcard__buy { grid-area: buy; align-self: end; }
  .pcard__badge { top: -44px; right: -18px; width: 132px; height: 132px; font-size: 1.0625rem; }
  [data-offer="on"] .pcard__title,
  [data-offer="on"] .pcard__sub { padding-right: 0; }

  .final__pic { width: 136px; }
  .final__spark-a { left: -4%; }
  .final__spark-b { right: -2%; }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: var(--s-12);
  }
  .form { padding: var(--s-8); }
  .form .btn { justify-self: start; width: auto; padding-inline: var(--s-10); }

  .footer__body { padding-block: var(--s-10) var(--s-12); }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: var(--s-8) var(--s-10);
  }
  .footer__copy { grid-column: 1 / -1; }
}

/* Desktop */
@media (min-width: 1100px) {
  :root {
    --gutter: 40px;
    --sec-y: var(--s-30);
    --band-y: var(--s-20);
    --header-h: 64px;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-inline: auto var(--s-4);
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: var(--s-3);
    border-radius: var(--r-pill);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
  }
  .nav a:hover { background: var(--butter); }

  .hero { padding-block: var(--s-16) var(--s-20); }
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: var(--s-16);
  }
  .hero__s1 { top: -26px; left: -34px; width: 124px; height: 124px; font-size: 1.25rem; }
  .hero__s2 { right: -30px; bottom: 52px; font-size: 1.125rem; }
  .hero__vbtn { left: 4px; bottom: 14px; }
  .hero__spark { width: 44px; height: 44px; top: -14px; right: -10px; }

  .modules { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-6); }
  .module { grid-column: span 2; }
  .module:nth-child(n + 4) { grid-column: span 3; }
  .module:last-child { grid-column: span 3; }

  .facts__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "head list" "about list";
    grid-template-rows: auto 1fr;
    gap: var(--s-10) var(--s-16);
  }
  .facts__head { grid-area: head; }
  .fact-list { grid-area: list; }
  .about { grid-area: about; align-content: start; }

  .instructor__grid { gap: var(--s-20); }
  .portrait { width: min(420px, calc(100% - 48px)); }
  .portrait__handle { right: -22px; bottom: 4px; font-size: 1.125rem; }

  .pcard { padding: var(--s-12); gap: var(--s-8) var(--s-12); }

  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
    gap: var(--s-16);
  }
  .faq__grid > .sec-head {
    position: sticky;
    top: calc(var(--header-h) + var(--s-8));
  }
  .faq__list { max-width: none; }
  .faq__q { padding-left: var(--s-6); }
  .faq__a { padding-inline: var(--s-6); }

  .contact__grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: var(--s-20);
  }
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
