/* ============================================================
   MMT — free course page (free.makemoney.com.au)
   Visual system: apply.makemoney.com.au (warm black + orange)
   Readability: Lexend body, 18px base, generous spacing.
   Multi-line paragraphs inside cards stay LEFT aligned.
   ============================================================ */

:root {
  --bg:          hsl(24 14% 5%);
  --bg-2:        hsl(24 12% 7%);
  --card:        hsl(24 12% 9.5%);
  --card-2:      hsl(24 12% 12%);
  --fg:          hsl(30 20% 94%);
  --muted:       hsl(28 12% 72%);
  --muted-2:     hsl(28 10% 55%);
  --border:      hsl(24 10% 19%);
  --border-2:    hsl(24 10% 27%);

  --accent:      hsl(28 94% 56%);
  --accent-soft: hsl(30 96% 63%);
  --accent-shim: hsl(38 98% 72%);
  --accent-deep: hsl(20 88% 46%);
  --accent-ink:  hsl(24 45% 8%);
  --bad:         hsl(4 82% 66%);
  --good:        hsl(148 52% 58%);

  --pad-x: clamp(18px, 5vw, 48px);
  --maxw: 1000px;

  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-num: "Space Grotesk", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fs: 18px;
  --lh: 1.7;
  --ls: .006em;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs);
  line-height: var(--lh);
  letter-spacing: var(--ls);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(820px 560px at 50% -6%, hsl(28 94% 56% / .13), transparent 62%),
    radial-gradient(700px 520px at 88% 88%, hsl(20 88% 46% / .07), transparent 64%);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 700; z-index: 50;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent-shim);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================ layout */

.wrap {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 56px) var(--pad-x) 0;
  text-align: center;
}

/* ============================================================ brand */

.brand {
  display: inline-block;
  line-height: 0;
  transition: opacity .2s var(--ease);
}
.brand:hover { opacity: .82; }
.brand img {
  width: auto;
  height: clamp(34px, 6.6vw, 46px);
  display: block;
}

/* ============================================================ price */

.price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 5vw, 40px);
}

.price s {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4.6vw, 34px);
  color: var(--muted-2);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent-deep);
  letter-spacing: -.01em;
}

.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(12px, 1.9vw, 14px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1.5px solid hsl(28 94% 56% / .55);
  background: hsl(28 94% 56% / .1);
  border-radius: 8px;
  padding: 8px 14px 7px;
  line-height: 1;
}

/* ============================================================ headline */

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5.1vw, 46px);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: clamp(18px, 3.4vw, 26px) auto 0;
  max-width: 100%;
  text-wrap: balance;
  word-spacing: 0;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.sub {
  margin: clamp(16px, 2.8vw, 22px) auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(15.5px, 2.1vw, 17.5px);
  line-height: 1.65;
}

/* ============================================================ video */

.stage {
  margin: clamp(28px, 5vw, 44px) auto 0;
  max-width: 920px;
}

.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px hsl(28 94% 56% / .08),
    0 34px 90px -40px hsl(20 88% 46% / .55),
    0 20px 50px -30px hsl(0 0% 0% / .9);
  aspect-ratio: 1912 / 940;
}

.frame .poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.locked .poster {
  filter: saturate(.72) brightness(.62) blur(2.5px);
  transform: scale(1.035);
}

.locked::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsl(24 14% 4% / .25), hsl(24 14% 4% / .62));
}

.lock-chip {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(12px, 1.8vw, 13.5px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 11px 20px 10px;
  line-height: 1;
  box-shadow: 0 12px 34px -12px hsl(20 88% 46% / .85);
}
.lock-chip svg { flex: none; }

.player { background: #000; }

.pending-frame {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 44px);
  background: var(--card);
}
.pending {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(14.5px, 2vw, 16px);
  line-height: 1.6;
  text-align: left;
}

.wistia_responsive_padding { position: relative; padding: 56.25% 0 0 0; }
.wistia_responsive_wrapper { position: absolute; inset: 0; height: 100%; width: 100%; }

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 0 4px;
  font-size: clamp(13px, 1.9vw, 14.5px);
  color: var(--muted-2);
}
.meta-len {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ============================================================ gate */

.gate {
  margin: clamp(30px, 5.4vw, 48px) auto 0;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4.6vw, 38px) clamp(20px, 4.4vw, 36px);
  text-align: center;
}

.gate h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.22;
  letter-spacing: -.012em;
}

.gate-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(14.5px, 2vw, 15.5px);
  line-height: 1.6;
  text-align: left;
}

.form { margin-top: clamp(20px, 3.4vw, 26px); }

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { text-align: left; margin-bottom: 14px; }
.row2 .field { margin-bottom: 0; }
.row2 + .field { margin-top: 14px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  font-family: var(--font);
  font-size: 16.5px;
  color: var(--fg);
  background: var(--bg-2);
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  padding: 13px 15px;
  line-height: 1.35;
  transition: border-color .18s var(--ease), background .18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: hsl(28 10% 42%); }
.field input:hover { border-color: hsl(24 10% 34%); }
.field input:focus {
  border-color: var(--accent);
  background: hsl(24 12% 11%);
  outline: none;
  box-shadow: 0 0 0 3px hsl(28 94% 56% / .18);
}
.field input[aria-invalid="true"] { border-color: var(--bad); }

.err {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--bad);
  text-align: left;
}

/* ============================================================ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  word-spacing: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  color: var(--accent-ink);
  box-shadow: 0 14px 34px -16px hsl(20 88% 46% / .95);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); }

.btn-lg {
  width: 100%;
  font-size: clamp(16px, 2.4vw, 18px);
  padding: 17px 26px;
  margin-top: 6px;
}

.btn[disabled] { cursor: progress; filter: saturate(.6) brightness(.85); transform: none; }

.spin {
  display: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2.4px solid hsl(24 45% 8% / .3);
  border-top-color: var(--accent-ink);
  animation: spin .7s linear infinite;
}
.btn[data-busy="true"] .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ status + consent */

.form-status {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  text-align: left;
  color: var(--bad);
}
.form-status:empty { margin-top: 0; }
.form-status[data-tone="ok"] { color: var(--good); }

.consent {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  text-align: left;
}

/* ============================================================ after unlock */

.after { margin-top: clamp(30px, 5.4vw, 48px); }

.after-note {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2.1vw, 16.5px);
  line-height: 1.6;
}

.cta {
  width: auto;
  margin: clamp(18px, 3vw, 24px) auto 0;
  padding: 18px 34px;
}

.after-fine {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ============================================================ footer */

.foot {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: clamp(48px, 8vw, 84px) auto 0;
  padding: clamp(26px, 4vw, 34px) var(--pad-x) clamp(40px, 7vw, 64px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.lic {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 11px 18px;
  transition: border-color .2s var(--ease);
}
.lic:hover { border-color: var(--accent); }
.lic-k {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.3;
}
.lic-v {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-soft);
  line-height: 1.3;
}

.fine {
  max-width: 72ch;
  margin: 18px auto 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-2);
  text-align: left;
}

/* ============================================================ unlocked state */

body[data-unlocked="true"] .gate { display: none; }

/* ============================================================ responsive */

@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .row2 .field + .field { margin-top: 14px; }
  .meta { font-size: 12.5px; }
  .cta { width: 100%; }
  h1 { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
