/* ============================================================
   FocusLab — design system
   Bg #161515  Text #f7f0d6  Font Saans
   ============================================================ */

@font-face {
  font-family: "Saans";
  src: url("/assets/fonts/Saans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saans";
  src: url("/assets/fonts/Saans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saans Mono";
  src: url("/assets/fonts/SaansMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #161515;
  --bg-2: #1f1e1e;
  --text: #f7f0d6;
  --text-dim: rgba(247, 240, 214, 0.55);
  --text-mid: rgba(247, 240, 214, 0.75);
  --rule: rgba(247, 240, 214, 0.15);
  --gutter: clamp(20px, 4vw, 80px);

  /* type scale — converted from Sketch sizes at 1920px → 1rem = 16px */
  --fs-hero:     clamp(48px, 8vw, 100px);
  --fs-mega:     clamp(64px, 12vw, 150px);
  --fs-h2:       clamp(36px, 5vw, 65px);
  --fs-h3:       clamp(28px, 3vw, 45px);
  --fs-body:     clamp(20px, 2vw, 35px);
  --fs-body-sm:  clamp(16px, 1.6vw, 25px);
  --fs-eyebrow:  clamp(13px, 1.1vw, 20px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Saans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

/* ---------- top bar (logo + hamburger) ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar .logo svg { width: 56px; height: auto; }
.topbar .logo svg path { fill: var(--text); }

.topbar__right {
  display: flex;
  align-items: center;
  gap: 32px;
}
/* Permanent corner login link — hidden when the menu is open so the X sits alone.
   line-height:1 collapses the line-box to cap-height so flex-centering puts the
   cap-height middle exactly on the row's centre (matches the X / hamburger). */
.topbar__login {
  font-size: var(--fs-eyebrow);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .25s ease;
}
.topbar__login:hover { opacity: 1; }
body.menu-open .topbar__login { opacity: 0; pointer-events: none; }

/* Hamburger — flex column with gap so the icon self-centres in the box, no
   hard-coded top offsets. Closed: three 2px bars. Open: X via translateY +
   rotation (the translate folds outer bars onto the middle's y, which is the
   true box centre). */
.hamburger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .35s ease, opacity .25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- slide-in menu ---------- */

.menu {
  position: fixed;
  top: 0; right: 0;
  /* Sketch spec: panel is 960px on a 1920px artboard = exactly 50vw. */
  width: min(50vw, 100vw);
  min-width: 360px;
  height: 100vh;
  background: var(--bg);
  padding: 32px var(--gutter) 6vh;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.6,.05,.2,1);
  z-index: 40;
  overflow-y: auto;
}
.menu.is-open { transform: translateX(0); }

.menu__top {
  /* Height matches the hamburger/X icon (44px) so flex-centering aligns the
     text's cap-height middle exactly with the X's centre. line-height:1
     collapses the line-box to cap-height for a perfectly tight centre. */
  height: 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  font-size: var(--fs-eyebrow);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu__top a { opacity: .85; }
.menu__top a:hover { opacity: 1; }

.menu__list {
  list-style: none;
  padding: 0;
  /* Push the list toward the bottom of the panel, matching the Sketch where
     items occupy roughly the lower 60% of the panel height. */
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
}
.menu__list li {
  position: relative;
}
/* Rounded divider — same colour as the text, pill-capped ends. */
.menu__list li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.menu__list li:last-child::after { display: none; }
.menu__list a {
  display: block;
  font-size: var(--fs-h3);
  padding: 22px 0;
  letter-spacing: -.01em;
  opacity: .9;
}
.menu__list a:hover { opacity: 1; }

.menu-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  z-index: 35;
}
.menu-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---------- sections ---------- */

.section {
  padding: 14vh var(--gutter);
  position: relative;
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.65);
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,21,21,.3) 0%, rgba(22,21,21,.0) 30%, rgba(22,21,21,.6) 100%);
}
.hero__inner {
  position: relative;
  padding: 0 var(--gutter) 8vh;
  z-index: 1;
  max-width: 1200px;
}
.hero__title {
  font-family: "Saans", sans-serif;
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.0;
  letter-spacing: -.015em;
  margin: 0 0 18px;
}
.hero__subtitle {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  opacity: .9;
}

/* about */
.about__title {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.0;
  letter-spacing: -.015em;
  margin: 0 0 48px;
}
.about__body {
  font-size: var(--fs-body);
  line-height: 1.35;
  /* Sketch spec: body block is 960px on a 1920px artboard = 50vw.
     Subtract the left gutter so the right edge lands at the page midline. */
  max-width: calc(50vw - var(--gutter));
  margin: 0 0 48px;
}
.about__body p { margin: 0 0 1.1em; }
.about__body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .about__body { max-width: none; } }

/* "Koop nu" pill button */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25em 2.4em;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.btn-pill:hover {
  background: transparent;
  color: var(--text);
}
.btn-pill--ghost {
  background: transparent;
  color: var(--text);
}
.btn-pill--ghost:hover {
  background: var(--text);
  color: var(--bg);
}

/* courses */
.courses__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 72px;
}
.courses__title {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0;
}
.courses__count {
  font-family: "Saans Mono", monospace;
  font-size: var(--fs-body-sm);
  opacity: .85;
  margin-top: 6px;
}
.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(32px, 5vw, 80px);
}
.course-card {
  display: block;
}
.course-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  background: #2a2727;
}
.course-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.course-card:hover .course-card__media img { transform: scale(1.04); }

/* Hover overlay: darkens the image and reveals a "Meer weten?" pill. */
.course-card__hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 21, 21, 0);
  opacity: 0;
  transition: opacity .3s ease, background .3s ease;
}
.course-card:hover .course-card__hover {
  opacity: 1;
  background: rgba(22, 21, 21, 0.45);
}
.course-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25em 2.4em;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform .3s ease, background .25s, color .25s;
}
.course-card:hover .course-card__cta { transform: translateY(0); }
.course-card__cta:hover {
  background: var(--text);
  color: var(--bg);
}
.course-card__body {
  padding: 28px 4px 0;
}
.course-card__title {
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.0;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.course-card__sub {
  font-size: var(--fs-body-sm);
  opacity: .8;
  margin: 0;
}

/* footer */
.footer {
  position: relative;
  padding: 14vh var(--gutter) 6vh;
  border-top: 1px solid var(--rule);
}
.footer__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 12vh;
}
.footer__logo svg { width: 64px; height: auto; }
.footer__logo svg path { fill: var(--text); }
.footer__cols {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, max-content));
  gap: 48px;
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer__cols ul { list-style: none; padding: 0; margin: 0; }
.footer__cols li { margin-bottom: 8px; opacity: .85; }
.footer__cols li:hover { opacity: 1; }
.footer__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 24px;
  opacity: .85;
}
.footer__mega {
  font-family: "Saans", sans-serif;
  font-weight: 400;
  font-size: var(--fs-mega);
  line-height: 0.95;
  letter-spacing: -.02em;
  margin: 0;
  text-transform: uppercase;
}
.footer__up {
  position: absolute;
  right: var(--gutter);
  bottom: 6vh;
  width: 56px; height: 56px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.footer__up:hover { background: var(--text); color: var(--bg); }

@media (max-width: 900px) {
  .footer__head {
    grid-template-columns: 1fr;
    margin-bottom: 8vh;
  }
  .footer__cols { grid-column: 1; }
}

/* ---------- account / library ---------- */

.account-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  pointer-events: none;
}
.account-top > * { pointer-events: auto; }
.account-top__right {
  display: flex; align-items: center;
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  gap: 40px;
}
.account-top__right a { opacity: .85; white-space: nowrap; }
.account-top__right a:hover { opacity: 1; }
@media (min-width: 1001px) {
  .account-top__right { min-width: 380px; gap: 0; }
  .account-top__right a + a { margin-left: auto; }
  .account-top__right .avatar { margin-left: 18px; }
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: center/cover no-repeat;
  border: 1px solid var(--rule);
  background-color: #333;
  flex-shrink: 0;
  transition: opacity .2s ease;
}
a.avatar:hover { opacity: .8; }
.avatar--lettered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(247, 240, 214, 0.12);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.account-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 8vw, 120px);
  padding: 18vh var(--gutter) 10vh;
  min-height: 100vh;
}
.account-side {
  padding-top: 24px;
}
.account-side ul { list-style: none; padding: 0; margin: 0; }
.account-side li { border-bottom: 1.5px solid var(--text); }
.account-side a {
  display: block;
  font-size: var(--fs-h3);
  padding: 24px 0;
  font-weight: 400;
  letter-spacing: -.01em;
  opacity: .9;
}
.account-side a:hover { opacity: 1; }
.account-side a.is-active {
  opacity: 1;
  font-weight: 500;
}

@media (max-width: 1000px) {
  .account-layout { grid-template-columns: 1fr; }
}

/* ---------- course player ---------- */

.player {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter);
}
.player__chapter {
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.player__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 32px 0;
}

.player__content {
  align-self: stretch;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.player__arrow {
  width: 56px; height: 56px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.player__arrow:hover { background: var(--text); color: var(--bg); }
.player__arrow[disabled] { opacity: .25; pointer-events: none; }

.player__frame {
  position: relative;
  /* Never taller than the viewport minus the chrome above/below the stage.
     Width follows, capped at 1280 px so it doesn't sprawl on ultra-wides. */
  max-height: calc(100vh - 180px);
  width: 100%;
  max-width: min(1280px, calc((100vh - 180px) * 16 / 9));
  margin: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.player__frame img,
.player__frame iframe {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.player__play-overlay {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.0);
  transition: background .25s;
}
.player__play-overlay:hover { background: rgba(0,0,0,.25); }
.player__play-overlay svg { width: 80px; height: 80px; }

/* article slide */
.player__article {
  max-width: 760px;
  margin: auto;
  padding: 0 24px;
}
.player__article h2 {
  font-weight: 500;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0 0 32px;
}
.player__article p {
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  margin: 0 0 1.2em;
}

/* tool slide */
.player__tool {
  max-width: 800px;
  margin: auto;
  padding: 0 24px;
}
.player__tool h2 {
  font-weight: 500;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
/* Intro / subtitle paragraph just below the tool heading */
.player__tool > p.muted {
  font-size: var(--fs-body-sm);
  margin: 0 0 24px;
}
.tool-calc {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.tool-calc label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--text);
}
.tool-calc label span { font-size: var(--fs-body-sm); }
.tool-calc input {
  background: transparent;
  border: 0;
  outline: 0;
  text-align: right;
  font-size: var(--fs-body-sm);
  font-family: "Saans Mono", monospace;
  width: 140px;
  padding: 6px 0;
}
.tool-calc__total {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-h3);
}
.tool-calc__total span:last-child {
  font-family: "Saans Mono", monospace;
}

/* ---------- budget pie tool (Ramit Sethi Conscious Spending Plan) ---------- */

.tool-budget {
  position: relative;
  width: 100%;
  padding-top: 8px;
}

.tool-budget__inputs {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}

.tool-budget__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 6px;
}

.tool-budget__field span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
}

.tool-budget__field input {
  background: transparent;
  border: 0;
  outline: 0;
  font-size: var(--fs-body-sm);
  font-family: "Saans Mono", monospace;
  padding: 6px 0;
  color: var(--text);
}

.tool-budget__chart {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.tool-budget__pie {
  width: min(260px, 40vw);
  height: auto;
  flex-shrink: 0;
}

.tool-budget__legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.tool-budget__item {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 14px;
  align-items: center;
  font-size: var(--fs-body-sm);
}

.tool-budget__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tool-budget__label { opacity: .9; }

.tool-budget__pct {
  font-family: "Saans Mono", monospace;
  font-size: var(--fs-eyebrow);
  opacity: .6;
  min-width: 36px;
  text-align: right;
}

.tool-budget__amount {
  font-family: "Saans Mono", monospace;
  font-size: var(--fs-eyebrow);
  text-align: right;
  min-width: 96px;
}

.tool-budget__attr {
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .45;
  margin: 20px 0 0;
  text-align: right;
}

@media (max-width: 700px) {
  .tool-budget__inputs { flex-direction: column; gap: 16px; }
  .tool-budget__chart { grid-template-columns: 1fr; justify-items: center; }
  .tool-budget__pie { width: min(220px, 75vw); }
  .tool-budget__legend { width: 100%; }
  .tool-budget__item { font-size: 14px; }
}

.player__footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  padding: 8px 0 16px;
  font-family: "Saans Mono", monospace;
  font-size: var(--fs-eyebrow);
}
.player__progress {
  width: min(420px, 60vw);
  height: 2px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.player__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--text);
  transition: width .4s ease;
}

/* ---------- forms (login, signup, contact) ---------- */

.form-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 14vh var(--gutter);
}
.form-card {
  width: min(440px, 100%);
}
.form-card h1 {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0 0 32px;
}
.form-card .field {
  display: flex;
  flex-direction: column;
  border-bottom: 1.5px solid var(--text);
  padding: 14px 0 6px;
  margin-bottom: 18px;
}
.form-card .field label {
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 6px;
}
.form-card input {
  background: transparent;
  border: 0;
  outline: 0;
  font-size: var(--fs-body-sm);
  padding: 6px 0;
}
.form-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.form-card .form-error {
  color: #ff7878;
  font-size: var(--fs-eyebrow);
  margin-top: 8px;
  min-height: 1em;
}
.form-card .form-help {
  margin-top: 24px;
  font-size: var(--fs-eyebrow);
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .7;
}
.form-card .form-help a { text-decoration: underline; }

/* ---------- utility ---------- */

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.center { text-align: center; }
.hide { display: none !important; }
.muted { opacity: .65; }
.spacer-lg { height: clamp(40px, 8vh, 120px); }

/* arrow icons */
.icon-arrow {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* page crossfade */
body.fading main { opacity: 0; transition: opacity .35s ease; }
main { transition: opacity .4s ease; }

/* ---------- legal pages (privacy / terms) ---------- */

.legal-page {
  padding-top: 22vh;
  padding-bottom: 14vh;
  max-width: 880px;
}
.legal-page .eyebrow {
  display: block;
  margin: 0 0 18px;
}
.legal-page__title {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 48px;
}
.legal-page__body p {
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  margin: 0 0 1.1em;
}
.legal-page__h2 {
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1.6em 0 0.5em;
}

/* ---------- sales page (per-course one-pager) ---------- */

.sales {
  padding: 18vh var(--gutter) 14vh;
  max-width: 1280px;
  margin: 0 auto;
}
.sales__back {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 48px;
}
.sales__back:hover { opacity: 1; }

.sales__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: 14vh;
}
.sales__head-text .eyebrow { display: block; margin-bottom: 12px; }
.sales__title {
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.0;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.sales__sub {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.15;
  opacity: .9;
  margin: 0;
}
.sales__media {
  position: relative;
  /* 16 / 9 so the Vimeo trailer iframe fills the frame edge-to-edge with no
     letterbox bands. The still thumbnail uses object-fit: cover, so it just
     crops a bit top/bottom — comp your trailer poster centrally. */
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #2a2727;
}
.sales__media img,
.sales__media iframe {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.sales__media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 21, 21, 0);
  cursor: pointer;
  padding: 0;
  border: 0;
  transition: background .25s ease;
}
.sales__media-play:hover { background: rgba(22, 21, 21, 0.35); }
.sales__media-play svg {
  width: 88px; height: 88px;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,0.35));
  transition: transform .25s ease;
}
.sales__media-play:hover svg { transform: scale(1.06); }

.sales__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.sales__col { min-width: 0; }
.sales__h2 {
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 45px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 24px;
}
.sales__h2:not(:first-child) { margin-top: 64px; }
.sales__body p {
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  margin: 0 0 1.1em;
}
.sales__highlights {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.sales__highlights li {
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  padding-left: 28px;
  position: relative;
}
.sales__highlights li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  opacity: .6;
}

.sales__buybox {
  position: sticky;
  top: 120px;
  background: rgba(247, 240, 214, 0.04);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 32px 36px;
}
.sales__buybox .eyebrow { display: block; margin-bottom: 8px; }
.sales__price {
  font-weight: 500;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  font-family: "Saans", sans-serif;
}
.sales__meta {
  font-family: "Saans Mono", monospace;
  font-size: 13px;
  opacity: .7;
  margin: 0 0 24px;
}
.sales__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sales__cta .btn-pill { width: 100%; }
.sales__pricenote {
  font-size: 13px;
  opacity: .7;
  margin: 0;
  line-height: 1.4;
}
.sales__pricenote a { text-decoration: underline; }

/* Inline buy form — minimum-friction email + password, then Mollie. */
.sales__buyform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sales__buyform .field {
  display: flex;
  flex-direction: column;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 6px;
}
.sales__buyform .field span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 2px;
}
.sales__buyform input {
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
  padding: 6px 0;
  color: var(--text);
}
.sales__buyform .btn-pill { width: 100%; }
.sales__err {
  color: #ff7878;
  font-size: 12px;
  margin: 0;
  min-height: 1em;
}

/* Status banner after Mollie redirect (canceled / failed / pending) */
.sales__alert {
  background: rgba(247, 240, 214, 0.06);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  margin: 0 0 32px;
}

@media (max-width: 900px) {
  .sales__head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 10vh; }
  .sales__grid { grid-template-columns: 1fr; }
  .sales__buybox { position: static; }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 14vh var(--gutter);
}
.notfound__inner {
  max-width: 720px;
  text-align: center;
}
.notfound__code {
  font-family: "Saans Mono", monospace;
  font-size: clamp(80px, 16vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  opacity: 0.55;
}
.notfound__title {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.notfound__body {
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  opacity: .85;
  margin: 0 0 40px;
}
.notfound__actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- profile + settings forms (member area) ---------- */

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
  margin-top: 24px;
}
.profile-form--block { margin-top: 64px; }
.profile-section {
  font-weight: 500;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0;
}
.profile-help {
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  opacity: .75;
  margin: -16px 0 0;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--text);
  position: relative;
}
.profile-field > span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
}
.profile-field input {
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
  padding: 6px 0;
  color: var(--text);
}
.profile-field--readonly input {
  opacity: .55;
}
.profile-field__edit {
  position: absolute;
  right: 0; bottom: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
}
.profile-field__edit:hover { opacity: 1; }

/* Avatar card on the profile page */
.profile-avatar {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 8px;
}
.profile-avatar__circle {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: center/cover no-repeat;
  background-color: rgba(247, 240, 214, 0.08);
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.profile-avatar__circle--lettered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
}
.profile-avatar__upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}
.profile-avatar__upload::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(247, 240, 214, 0.12);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 1;
}
.profile-avatar__upload::before {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  color: var(--text);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 2;
}
.profile-avatar__upload:hover::before,
.profile-avatar__upload:hover::after,
.profile-avatar__upload:focus-within::before,
.profile-avatar__upload:focus-within::after {
  opacity: 1;
}
.profile-avatar__upload:hover .profile-avatar__circle--lettered,
.profile-avatar__upload:focus-within .profile-avatar__circle--lettered {
  color: transparent;
}
.profile-avatar__hint {
  font-size: 12px;
  opacity: .55;
  margin: 0;
  line-height: 1.6;
}

/* Radio-style choices (subtitle language) */
.profile-choice {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.profile-choice__item {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: .03em;
  transition: background .2s ease, color .2s ease;
}
.profile-choice__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}
.profile-choice__item:has(input:checked) {
  background: var(--text);
  color: var(--bg);
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 18px;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.toggle-switch__track {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  transition: background .2s ease;
}
.toggle-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  background: var(--text);
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}
.toggle-switch input:checked + .toggle-switch__track {
  background: var(--text);
}
.toggle-switch input:checked + .toggle-switch__track .toggle-switch__thumb {
  transform: translateX(20px);
  background: var(--bg);
}
.toggle-switch input:focus-visible + .toggle-switch__track {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.toggle-switch__label {
  font-size: 15px;
  letter-spacing: .03em;
}
.profile-status {
  font-size: 13px;
  opacity: .75;
  min-height: 1em;
}

@media (max-width: 700px) {
  .profile-avatar { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Avatar cropper modal */
.avatar-crop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.avatar-crop[hidden] { display: none; }
.avatar-crop__panel {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.avatar-crop__title {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  align-self: flex-start;
}
.avatar-crop__hint {
  font-size: 13px;
  opacity: .65;
  margin: 0;
  align-self: flex-start;
}
.avatar-crop__stage {
  width: 320px;
  height: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(247, 240, 214, 0.04);
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.avatar-crop__stage:active { cursor: grabbing; }
.avatar-crop__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}
.avatar-crop__zoom {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .75;
}
.avatar-crop__zoom input[type="range"] {
  flex: 1;
  accent-color: var(--text);
}
.avatar-crop__actions {
  display: flex;
  gap: 12px;
  align-self: stretch;
  justify-content: flex-end;
}

/* ---------- player: topbar + button-arrow resets ---------- */

/* Topbar row above the stage (chapter label + close link) */
.player__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* The arrow is now a <button>, not an <a> — reset browser defaults */
.player__arrow {
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

/* ---------- player: curtain wipe transition ---------- */

/* The curtain starts parked off-screen to the right. It's fixed so it
   covers the entire viewport regardless of scroll / page layout. */
.player__curtain {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
  pointer-events: none;
  transform: translateX(100%);
}

/* Phase 1 — sweeps in from the right to centre (covers the old slide) */
.player__curtain--in {
  transform: translateX(0);
  transition: transform 250ms ease-in;
}

/* Phase 3 — sweeps out to the left (reveals the new slide) */
.player__curtain--out {
  transform: translateX(-100%);
  transition: transform 300ms ease-out;
}

/* New slide content fades in and travels 150 px from the right while the
   curtain is sweeping out. Both animations run in parallel. */
.player__content--entering {
  animation: playerSlideIn 320ms ease-out both;
}
@keyframes playerSlideIn {
  from { opacity: 0; transform: translateX(150px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- player: title slide ---------- */

/* Full-screen centred chapter-title card — auto-advances after 4 s. */
.player__title-slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.player__title-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
  margin: 0 0 28px;
}
.player__title-heading {
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
}
.player__title-sub {
  font-size: var(--fs-h3);
  opacity: .8;
  margin: 28px 0 0;
  line-height: 1.2;
}

/* End-of-course thank-you card — same layout, smaller and more refined. */
.player__title-slide--thankyou .player__title-heading {
  font-size: var(--fs-h2);
  letter-spacing: -.01em;
}
.player__title-slide--thankyou .player__title-sub {
  font-size: var(--fs-body);
  max-width: 640px;
  margin-top: 20px;
  line-height: 1.35;
  opacity: .7;
}
