/* Lstand design system. Rules and reasoning: docs/DESIGN.md.
   Two families (Bricolage Grotesque display, Figtree body), one action colour (blue),
   the other three Google hues only as flat tints and small marks. Spacing: 8/16/24/40/64/96/128. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f8fafd;
  --card: #fefeff;
  --ink: #0f1b33;
  --muted: #4b5875;
  --line: #dbe3f0;
  --line-strong: #b9c6dc;

  --blue: #1967d2;
  --blue-deep: #174ea6;
  --blue-tint: #e8f0fe;
  --yellow: #f9ab00;
  --yellow-tint: #fef3d6;
  --green: #188038;
  --green-tint: #e3f5e8;
  --red: #c5221f;
  --red-tint: #fce8e6;
  --stage: #0f1b33;
  --stage-soft: #1b2a4a;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 128px;

  --r-card: 20px;
  --r-control: 12px;

  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --body: 'Figtree', 'Segoe UI', sans-serif;

  --shadow-lift: 0 1px 0 rgba(15, 27, 51, 0.04), 0 12px 32px -12px rgba(15, 27, 51, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.2rem + 5.2vw, 4.5rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.05;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h4 {
  font-size: 1.125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p {
  margin: 0;
  max-width: 65ch;
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 160ms var(--ease);
}
a:hover {
  color: var(--blue-deep);
}

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

::selection {
  background: var(--yellow-tint);
}

.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.wrap-narrow {
  width: min(760px, 100% - 48px);
  margin-inline: auto;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
}
.small {
  font-size: 0.9375rem;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.stack > * + * {
  margin-top: var(--s2);
}
.stack-lg > * + * {
  margin-top: var(--s3);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--s2);
  top: -64px;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s1) var(--s2);
  border-radius: var(--r-control);
  z-index: 100;
}
.skip-link:focus {
  top: var(--s2);
  color: var(--paper);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 52px;
  padding: 12px var(--s3);
  border: 1.5px solid transparent;
  border-radius: var(--r-control);
  font: 700 1.0625rem/1.25 var(--body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
  /* Labels wrap. A long one ("Next: <lesson title>") with nowrap once stretched whole pages sideways on phones. */
  white-space: normal;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--blue);
  color: #fefeff;
}
.btn-primary:hover {
  background: var(--blue-deep);
  color: #fefeff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: #1d2c4f;
  color: var(--paper);
}
.btn-danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red-tint);
  color: var(--red);
}
.btn-small {
  min-height: 44px;
  padding: 8px var(--s2);
  font-size: 0.9375rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-google {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-google:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.text-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 253, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover {
  color: var(--ink);
}
.logo svg {
  width: 30px;
  height: 30px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-left: auto;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--s1) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current='page']:not(.btn) {
  border-bottom-color: var(--ink);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s1) var(--s3) var(--s3);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a:not(.btn) {
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .site-nav .btn {
    margin-top: var(--s2);
  }
}

.announcement {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px var(--s3);
}

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

.section {
  padding-block: var(--s6);
}
.section-tight {
  padding-block: var(--s5);
}
.section-head {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s5);
  max-width: 760px;
}
.band-blue {
  background: var(--blue-tint);
}
.band-ink {
  background: var(--stage);
  color: var(--paper);
}
.band-ink .muted,
.band-ink .lede {
  color: #b8c4dc;
}
.rule-top {
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
    line-height: 1.65;
  }
  .wrap,
  .wrap-narrow {
    width: calc(100% - 32px);
  }
  .section {
    padding-block: var(--s5);
  }
  .section-tight {
    padding-block: var(--s4);
  }
  .section-head {
    margin-bottom: var(--s4);
  }
  .lede {
    font-size: 1.125rem;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s5) var(--s4);
  /* The only textured surface on the site: a faint counter-top grid. */
  background-image: radial-gradient(circle at 1px 1px, rgba(25, 103, 210, 0.13) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: center top;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(248, 250, 253, 0), var(--paper));
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s5);
  align-items: center;
}
.hero-copy > * + * {
  margin-top: var(--s3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}
.hero-terms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  padding: 0;
  margin: var(--s3) 0 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-terms li {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
}
.hero-terms li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* The one load animation on the site: copy staggers in, then the phone taps the stand and the stars fill. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-copy > * {
  animation: rise 480ms var(--ease) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}
.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}
.hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}

@media (max-width: 900px) {
  .hero {
    padding-block: var(--s4) var(--s5);
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- the stand (hero object, built in CSS so the text stays crisp and it can move) ---------- */

.stand-scene {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
}
.stand {
  position: absolute;
  left: 8%;
  top: 4%;
  width: 66%;
  height: 80%;
  transform: rotateY(-22deg) rotateX(6deg) rotateZ(-1deg);
  transform-style: preserve-3d;
  /* its own keyframes: the shared "rise" ends on transform:none, which would flatten the tilt */
  animation: stand-in 700ms 150ms var(--ease) both;
}
@keyframes stand-in {
  from {
    opacity: 0;
    transform: rotateY(-34deg) rotateX(6deg) rotateZ(-1deg) translateY(24px);
  }
  to {
    opacity: 1;
    transform: rotateY(-22deg) rotateX(6deg) rotateZ(-1deg);
  }
}
.stand-panel {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 16px;
  /* acrylic: clear with a blue cast, a bright edge and one diagonal sheen */
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.9) 0%, rgba(210, 227, 252, 0.55) 38%, rgba(255, 255, 255, 0.85) 52%, rgba(210, 227, 252, 0.5) 100%);
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(25, 103, 210, 0.22), 0 0 0 1px rgba(25, 103, 210, 0.14), 22px 30px 50px -20px rgba(15, 27, 51, 0.45);
}
.stand-card {
  height: 100%;
  border-radius: 8px;
  background: #fefeff;
  box-shadow: 0 0 0 1px rgba(15, 27, 51, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9% 9% 7%;
  gap: 5%;
  color: var(--ink);
}
.stand-card-title {
  font: 800 clamp(1.125rem, 4.6vw, 1.625rem) / 1.05 var(--display);
  letter-spacing: -0.03em;
}
.stand-stars {
  display: flex;
  gap: 4px;
}
.stand-stars svg {
  width: clamp(18px, 4.6vw, 26px);
  height: auto;
  fill: var(--line);
  animation: star-fill 300ms var(--ease) forwards;
  animation-delay: calc(1500ms + var(--i) * 110ms);
}
@keyframes star-fill {
  0% {
    fill: var(--line);
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.25);
  }
  100% {
    fill: var(--yellow);
    transform: scale(1);
  }
}
.stand-qr {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 6px;
}
.stand-qr svg {
  width: 100%;
  height: 100%;
}
.stand-tap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 clamp(0.6875rem, 2.4vw, 0.8125rem) / 1 var(--body);
  color: var(--muted);
  margin-top: auto;
}
.stand-tap svg {
  width: 16px;
  height: 16px;
}
.stand-foot {
  position: absolute;
  left: 4%;
  right: -4%;
  bottom: -9%;
  height: 12%;
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(219, 227, 240, 0.7));
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 28px -14px rgba(15, 27, 51, 0.35);
  transform: rotateX(68deg);
  transform-origin: top center;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: 36%;
  aspect-ratio: 9 / 18.5;
  border-radius: 22px;
  background: var(--ink);
  padding: 5px;
  box-shadow: -10px 18px 36px -14px rgba(15, 27, 51, 0.5);
  transform: rotate(9deg) translate(48%, 10%);
  opacity: 0;
  animation: phone-tap 1700ms 700ms var(--ease) forwards;
}
@keyframes phone-tap {
  0% {
    opacity: 0;
    transform: rotate(14deg) translate(60%, 14%);
  }
  35% {
    opacity: 1;
    transform: rotate(7deg) translate(-16%, 0);
  }
  50% {
    transform: rotate(6deg) translate(-22%, -1%);
  }
  100% {
    opacity: 1;
    transform: rotate(9deg) translate(0, 4%);
  }
}
.phone-screen {
  height: 100%;
  border-radius: 18px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  overflow: hidden;
}
.phone-line {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
}
.phone-line.short {
  width: 60%;
}
.phone-stars {
  display: flex;
  gap: 2px;
}
.phone-stars svg {
  width: 100%;
  fill: var(--line);
  animation: star-fill 300ms var(--ease) forwards;
  animation-delay: calc(1750ms + var(--i) * 110ms);
}
.phone-post {
  margin-top: 4px;
  height: 22px;
  border-radius: 8px;
  background: var(--blue);
  opacity: 0;
  animation: rise 400ms 2500ms var(--ease) forwards;
}

.tap-waves {
  position: absolute;
  right: 30%;
  top: 50%;
  width: 56px;
  height: 56px;
  pointer-events: none;
}
.tap-waves i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
  animation: wave 900ms 1250ms ease-out 2;
}
.tap-waves i:nth-child(2) {
  animation-delay: 1450ms;
}
@keyframes wave {
  from {
    opacity: 0.7;
    transform: scale(0.3);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

.review-chip {
  position: absolute;
  left: 0;
  bottom: 2%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--s2);
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  animation: rise 500ms 2700ms var(--ease) forwards;
}
.review-chip small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9375rem;
}
.review-chip .tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
}
.review-chip .tick svg {
  width: 16px;
  height: 16px;
}

/* Desktop only: on a phone you cannot scan your own screen. */
.stand-caption {
  margin: var(--s2) auto 0;
  max-width: 30ch;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0;
  animation: rise 500ms 3000ms var(--ease) forwards;
}
@media (max-width: 900px), (hover: none) {
  .stand-caption {
    display: none;
  }
}

/* ---------- how it works (a real sequence, so it is numbered) ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s5);
  align-items: start;
}
.steps > ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps > ol > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s3);
  padding-block: var(--s4);
  border-top: 1px solid var(--line);
}
.steps > ol > li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps > ol > li::before {
  content: counter(step);
  font: 800 4rem/0.9 var(--display);
  letter-spacing: -0.05em;
  color: var(--blue);
}
.steps > ol > li h3 + p {
  margin-top: var(--s1);
  color: var(--muted);
}
.kit {
  background: var(--yellow-tint);
  border-radius: var(--r-card);
  padding: var(--s4);
  position: sticky;
  top: 112px;
}
.kit ul {
  list-style: none;
  padding: 0;
  margin: var(--s3) 0 0;
}
.kit li {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: 12px;
  border-top: 1px dashed rgba(15, 27, 51, 0.25);
  font-weight: 600;
}
.kit li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kit .small {
  margin-top: var(--s2);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .steps > ol > li {
    grid-template-columns: 48px 1fr;
    gap: var(--s2);
    padding-block: var(--s3);
  }
  .steps > ol > li::before {
    font-size: 2.75rem;
  }
  .kit {
    position: static;
    padding: var(--s3);
  }
}

/* ---------- the receipt (the one section that breaks the grid) ---------- */

.math {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s5);
  align-items: center;
}
.dials {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}
.dial label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}
.dial output {
  font: 800 1.5rem/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--line-strong) var(--fill, 50%));
}
input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line-strong);
}
input[type='range']::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--ink);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--ink);
  transition: transform 160ms var(--ease);
}
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--ink);
}
input[type='range']:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}

.receipt {
  --notch: 10px;
  position: relative;
  background: #fffef9;
  color: var(--ink);
  padding: var(--s4) var(--s4) calc(var(--s4) + var(--notch));
  transform: rotate(2deg);
  box-shadow: 0 24px 48px -24px rgba(15, 27, 51, 0.35), 0 2px 0 rgba(15, 27, 51, 0.03);
  font-variant-numeric: tabular-nums;
  /* torn zig-zag bottom edge */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--notch)),
    95% 100%,
    90% calc(100% - var(--notch)),
    85% 100%,
    80% calc(100% - var(--notch)),
    75% 100%,
    70% calc(100% - var(--notch)),
    65% 100%,
    60% calc(100% - var(--notch)),
    55% 100%,
    50% calc(100% - var(--notch)),
    45% 100%,
    40% calc(100% - var(--notch)),
    35% 100%,
    30% calc(100% - var(--notch)),
    25% 100%,
    20% calc(100% - var(--notch)),
    15% 100%,
    10% calc(100% - var(--notch)),
    5% 100%,
    0 calc(100% - var(--notch))
  );
}
/* The grid-breaker: the receipt pokes out above its blue band, as if it was just torn off and dropped there. */
.receipt-wrap {
  filter: drop-shadow(0 24px 32px rgba(15, 27, 51, 0.16));
  align-self: start;
  margin-top: calc((var(--s6) + var(--s4)) * -1);
}
.receipt header {
  text-align: center;
  padding-bottom: var(--s3);
  border-bottom: 2px dashed var(--line-strong);
}
.receipt header strong {
  display: block;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: -0.03em;
}
.receipt header span {
  font-size: 0.9375rem;
  color: var(--muted);
}
.receipt dl {
  margin: var(--s3) 0 0;
  display: grid;
  gap: 12px;
}
.receipt dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 1rem;
}
.receipt dt {
  color: var(--muted);
}
.receipt dd {
  margin: 0;
  font-weight: 700;
}
.receipt .total {
  margin-top: var(--s2);
  padding-top: var(--s3);
  border-top: 2px dashed var(--line-strong);
  align-items: baseline;
}
.receipt .total dt {
  color: var(--ink);
  font-weight: 700;
}
.receipt .total dd {
  font: 800 2.5rem/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--green);
}
.receipt footer {
  margin-top: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .math {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .receipt-wrap {
    margin-top: 0;
  }
  .receipt {
    padding: var(--s3) var(--s3) calc(var(--s3) + var(--notch));
    transform: rotate(1deg);
  }
  .receipt .total dd {
    font-size: 2rem;
  }
}

/* ---------- evidence (sourced figures; one big, two small, not a row of identical stats) ---------- */

.evidence-lead {
  font: 700 clamp(1.5rem, 1rem + 1.8vw, 2.25rem) / 1.2 var(--display);
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.evidence-lead strong {
  display: block;
  font-size: clamp(4rem, 2.5rem + 6vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: var(--s2);
}
.evidence ul {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
.evidence li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s2);
  align-items: baseline;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.evidence li strong {
  font: 800 1.5rem/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---------- objections ---------- */

.objections {
  margin: 0;
}
.objections > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--line-strong);
}
.objections > div:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.objections dt {
  font: 700 clamp(1.375rem, 1.1rem + 1vw, 1.75rem) / 1.2 var(--display);
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.objections dd {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}
@media (max-width: 900px) {
  .objections > div {
    grid-template-columns: 1fr;
    gap: var(--s2);
    padding-block: var(--s3);
  }
}

/* ---------- curriculum ---------- */

.curriculum {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s5);
  align-items: start;
}
.curriculum-aside {
  position: sticky;
  top: 112px;
}
.curriculum-aside > * + * {
  margin-top: var(--s3);
}
.curriculum-aside .tally {
  display: flex;
  gap: var(--s4);
  padding: 0;
  margin: var(--s4) 0 0;
  list-style: none;
}
.tally strong {
  display: block;
  font: 800 2.5rem/1 var(--display);
  letter-spacing: -0.04em;
}
.tally span {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 600;
}

.module {
  border-top: 1px solid var(--line-strong);
}
.module:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.module summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s2);
  align-items: center;
  padding-block: var(--s3);
  cursor: pointer;
  list-style: none;
}
.module summary::-webkit-details-marker {
  display: none;
}
.module summary h3 {
  transition: color 160ms var(--ease);
}
.module summary:hover h3 {
  color: var(--blue);
}
.module summary .count {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.module summary .count::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms var(--ease);
}
.module[open] summary .count::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.module-body {
  padding-bottom: var(--s3);
}
.module-body > p {
  color: var(--muted);
  margin-bottom: var(--s2);
}
.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lesson-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s2);
  padding-block: 12px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.lesson-list .meta {
  font-size: 0.9375rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--green-tint);
  color: #0d5c25;
  text-decoration: none;
  white-space: nowrap;
}
a.tag {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 22px;
}
a.tag:hover {
  background: var(--green);
  color: #fefeff;
}
.tag-draft {
  background: var(--yellow-tint);
  color: #7a5200;
}
.tag-blue {
  background: var(--blue-tint);
  color: var(--blue-deep);
}
.tag-red {
  background: var(--red-tint);
  color: var(--red);
}

@media (max-width: 900px) {
  .curriculum {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .curriculum-aside {
    position: static;
  }
  .tally strong {
    font-size: 2rem;
  }
}

/* ---------- fit / not fit ---------- */

.fit {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s3);
}
.fit > div {
  border-radius: var(--r-card);
  padding: var(--s4);
}
.fit-yes {
  background: var(--green-tint);
}
.fit-no {
  background: var(--red-tint);
}
.fit ul {
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s2);
}
.fit li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}
.fit li svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}
.fit-yes svg {
  color: var(--green);
}
.fit-no svg {
  color: var(--red);
}
@media (max-width: 900px) {
  .fit {
    grid-template-columns: 1fr;
  }
  .fit > div {
    padding: var(--s3);
  }
}

/* ---------- mentor ---------- */

.mentor {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s5);
  align-items: center;
}
.mentor-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  background: var(--blue-tint);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.mentor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mentor-photo .initial {
  font: 800 9rem/1 var(--display);
  letter-spacing: -0.05em;
  color: var(--blue);
}
.mentor blockquote {
  margin: 0;
}
.mentor blockquote p {
  font: 700 clamp(1.375rem, 1rem + 1.4vw, 1.875rem) / 1.25 var(--display);
  letter-spacing: -0.025em;
  max-width: 28ch;
}
@media (max-width: 900px) {
  .mentor {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .mentor-photo {
    max-width: 280px;
    aspect-ratio: 1;
  }
  .mentor-photo .initial {
    font-size: 6rem;
  }
}

/* ---------- pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s5);
  align-items: start;
}
.price-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  padding: var(--s4);
  box-shadow: 8px 8px 0 var(--ink);
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  flex-wrap: wrap;
}
.price-line strong {
  font: 800 5rem/0.9 var(--display);
  letter-spacing: -0.05em;
}
.price-line span {
  font-weight: 600;
  color: var(--muted);
}
.includes {
  list-style: none;
  padding: 0;
  margin: var(--s3) 0;
  display: grid;
  gap: 12px;
}
.includes li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
}
.includes svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  margin-top: 2px;
}
.price-card .small {
  margin-top: var(--s2);
  text-align: center;
  color: var(--muted);
}
@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .price-card {
    padding: var(--s3);
    box-shadow: 5px 5px 0 var(--ink);
  }
  .price-line strong {
    font-size: 4rem;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
}
.faq details {
  border-top: 1px solid var(--line-strong);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: var(--s2);
  align-items: center;
  padding-block: var(--s3);
  cursor: pointer;
  list-style: none;
  font: 700 1.25rem/1.25 var(--display);
  letter-spacing: -0.02em;
  transition: color 160ms var(--ease);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--blue);
}
.faq summary::after {
  content: '+';
  font: 400 2rem/1 var(--body);
  text-align: center;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding-bottom: var(--s3);
  color: var(--muted);
}
.faq details > div > * + * {
  margin-top: var(--s2);
}

/* ---------- closing call ---------- */

.closing .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4);
  align-items: end;
}
.closing h2 {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem);
  max-width: 16ch;
}
@media (max-width: 900px) {
  .closing .wrap {
    grid-template-columns: 1fr;
  }
  .closing .btn {
    width: 100%;
  }
}

.lead-form {
  width: min(400px, 100%);
  display: grid;
  gap: var(--s2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s3);
}
.lead-form h3 {
  font-size: 1.25rem;
}
/* honeypot: real people never see or fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .lead-form {
    width: 100%;
  }
}

/* Mobile-only buy bar that appears after the hero scrolls away. */
.buy-bar {
  display: none;
}
@media (max-width: 720px) {
  .buy-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    padding: 12px var(--s2) calc(12px + env(safe-area-inset-bottom));
    background: rgba(254, 254, 255, 0.96);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 260ms var(--ease);
  }
  .buy-bar.is-visible {
    transform: none;
  }
  .buy-bar strong {
    font: 800 1.5rem/1 var(--display);
    letter-spacing: -0.03em;
  }
  .buy-bar span {
    display: block;
    font-size: 0.9375rem;
    color: var(--muted);
    font-weight: 600;
  }
  .has-buy-bar .site-footer {
    padding-bottom: calc(var(--s5) + 76px);
  }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s5);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr));
  gap: var(--s4);
}
.footer-grid h2 {
  font: 700 0.9375rem/1.4 var(--body);
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.footer-grid a:not(.logo) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-grid a:not(.logo):hover {
  text-decoration: underline;
}
.footer-note {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.footer-note p {
  max-width: 96ch;
}
.footer-note p + p {
  margin-top: var(--s1);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- forms ---------- */

.field {
  display: grid;
  gap: var(--s1);
}
.field label,
.field .label {
  font-weight: 700;
  font-size: 1rem;
}
.field .hint {
  font-size: 0.9375rem;
  color: var(--muted);
}
input[type='text'],
input[type='email'],
input[type='password'],
input[type='url'],
input[type='number'],
input[type='search'],
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px var(--s2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--card);
  color: var(--ink);
  font: 500 1.0625rem/1.4 var(--body);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
textarea {
  min-height: 160px;
  resize: vertical;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}
input:not([type='checkbox']):not([type='radio']):not([type='range']):focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.22);
}
input[aria-invalid='true'] {
  border-color: var(--red);
}
.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
  min-height: 44px;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 76px;
}
.password-wrap button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  min-width: 60px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font: 700 0.9375rem/1 var(--body);
  cursor: pointer;
}
.password-wrap button:hover {
  background: var(--blue-tint);
}

.notice {
  border-radius: var(--r-control);
  padding: var(--s2);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  border: 1.5px solid transparent;
}
.notice-error {
  background: var(--red-tint);
  border-color: rgba(197, 34, 31, 0.35);
  color: #8c1613;
}
.notice-ok {
  background: var(--green-tint);
  border-color: rgba(24, 128, 56, 0.35);
  color: #0d5c25;
}
.notice-info {
  background: var(--blue-tint);
  border-color: rgba(25, 103, 210, 0.3);
  color: var(--blue-deep);
}
.notice a {
  color: inherit;
}

/* ---------- auth pages: form left, the stand's promise right ---------- */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 73px);
}
.auth-form {
  padding: var(--s5) var(--s3);
  display: flex;
  justify-content: center;
}
.auth-form > div {
  width: min(440px, 100%);
}
.auth-form h1 {
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
}
.auth-form form {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}
.auth-form .lede {
  margin-top: var(--s2);
  font-size: 1.125rem;
}
.auth-alt {
  margin-top: var(--s3);
  font-size: 1rem;
  color: var(--muted);
}
.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s2);
  align-items: center;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  background: var(--line-strong);
}
.auth-side {
  background: var(--blue-tint);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s4);
}
.auth-side h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  max-width: 16ch;
}
.auth-side ol,
.auth-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  max-width: 40ch;
}
.path li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--s2);
  align-items: center;
  font-weight: 600;
}
.path li span:first-child {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1rem/1 var(--display);
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}
.path li.is-now span:first-child {
  background: var(--ink);
  color: var(--paper);
}
.path li.is-done span:first-child {
  background: var(--green);
  color: #fefeff;
}
@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-form {
    padding: var(--s4) var(--s2) var(--s5);
  }
  .auth-side {
    padding: var(--s4) var(--s2);
    order: 2;
  }
}

/* ---------- plain content pages (about, contact, legal, 404) ---------- */

.page-head {
  padding-block: var(--s5) var(--s4);
}
.page-head > .wrap > * + *,
.page-head > .wrap-narrow > * + * {
  margin-top: var(--s2);
}
.prose {
  padding-bottom: var(--s6);
}
.prose > * + * {
  margin-top: var(--s2);
}
.prose h2 {
  font-size: 1.75rem;
  margin-top: var(--s5);
  letter-spacing: -0.025em;
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: var(--s4);
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
  max-width: 65ch;
  margin-block: var(--s2) 0;
}
.prose li + li {
  margin-top: var(--s1);
}
.prose blockquote {
  margin: var(--s3) 0 0;
  padding: var(--s2) var(--s3);
  border-left: 4px solid var(--yellow);
  background: var(--yellow-tint);
  border-radius: 0 var(--r-control) var(--r-control) 0;
}
/* long review links must wrap on a phone instead of pushing the page sideways */
.prose code,
.prose a {
  overflow-wrap: anywhere;
}
.prose code {
  font-size: 0.9em;
  background: var(--blue-tint);
  padding: 2px 6px;
  border-radius: 6px;
}
.callout {
  background: var(--yellow-tint);
  border-radius: var(--r-card);
  padding: var(--s3);
}
.callout > * + * {
  margin-top: var(--s1);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s5);
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}

.lost {
  min-height: 70vh;
  display: grid;
  align-items: center;
}
.lost .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s5);
  align-items: center;
}
.lost-code {
  font: 800 clamp(6rem, 3rem + 14vw, 13rem) / 0.85 var(--display);
  letter-spacing: -0.06em;
  color: var(--ink);
  display: flex;
}
/* the zero has been knocked over */
.lost-code span:nth-child(2) {
  color: var(--blue);
  transform: rotate(-14deg) translateY(7%);
  display: inline-block;
}
@media (max-width: 900px) {
  .lost .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- member area ---------- */

.member-head {
  padding-block: var(--s4) var(--s3);
}
.member-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s3);
}
.member-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

.resume {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.resume-card {
  background: var(--stage);
  color: var(--paper);
  border-radius: var(--r-card);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  justify-content: space-between;
  min-height: 280px;
}
.resume-card .muted {
  color: #b8c4dc;
}
.resume-card h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  max-width: 20ch;
}
.resume-card .btn {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
}
.resume-card .btn:hover {
  background: var(--yellow);
  color: var(--ink);
}
.progress-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s3);
}
.progress-card strong {
  font: 800 4rem/0.9 var(--display);
  letter-spacing: -0.05em;
}
.bar {
  height: 10px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: calc(var(--pct, 0) * 1%);
  border-radius: 5px;
  background: var(--green);
  transition: width 600ms var(--ease);
}
.locked-card {
  background: var(--yellow-tint);
  border-radius: var(--r-card);
  padding: var(--s4);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s3);
  align-items: center;
  margin-bottom: var(--s5);
}
.locked-card > div > * + * {
  margin-top: var(--s1);
}
@media (max-width: 900px) {
  .resume {
    grid-template-columns: 1fr;
  }
  .resume-card,
  .progress-card {
    padding: var(--s3);
    min-height: 0;
  }
  .resume-card .btn {
    align-self: stretch;
  }
  .locked-card {
    grid-template-columns: 1fr;
    padding: var(--s3);
  }
}

.course-module + .course-module {
  margin-top: var(--s5);
}
.course-module > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s2);
}
.course-module > header p {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}
.rows li + li {
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: var(--s2);
  align-items: center;
  padding: var(--s2) var(--s3);
  min-height: 72px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}
a.row:hover {
  background: var(--blue-tint);
  color: var(--ink);
}
.row.is-current {
  background: var(--blue-tint);
}
.row-title {
  font-weight: 700;
  line-height: 1.3;
}
.row-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  display: block;
  font-weight: 500;
}
.row .meta {
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: inline-flex;
  gap: var(--s1);
  align-items: center;
}
.status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: transparent;
  flex: none;
}
.status svg {
  width: 14px;
  height: 14px;
}
.status.is-done {
  background: var(--green);
  border-color: var(--green);
  color: #fefeff;
}
.status.is-started {
  border-color: var(--blue);
  background: conic-gradient(var(--blue) calc(var(--pct, 40) * 1%), transparent 0);
}
.status.is-locked {
  border-color: transparent;
  background: var(--line);
  color: var(--muted);
}
@media (max-width: 720px) {
  .row {
    padding: 12px var(--s2);
    gap: 12px;
  }
  .row .meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
}

/* lesson page: the video sits on a dark stage so it is the only bright thing in view */

.stage {
  background: var(--stage);
  color: var(--paper);
  padding-block: var(--s3) var(--s4);
}
.stage .crumbs {
  display: flex;
  gap: var(--s1);
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--s2);
  color: #b8c4dc;
}
.stage .crumbs a {
  color: #b8c4dc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.stage .crumbs a:hover {
  color: var(--paper);
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  /* never taller than the screen: on a 768px laptop the full-width player pushed Vimeo's controls below the fold */
  width: min(100%, calc((100vh - 200px) * 16 / 9));
  margin-inline: auto;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--stage-soft);
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* No video to show (locked, or not uploaded yet): a compact band, so the text under it is not pushed off the screen
   and the message never overflows a 16:9 box on a phone. */
.player.is-empty {
  aspect-ratio: auto;
  width: 100%;
}
/* Looks like a heading, is a paragraph: the page's real h1 (the lesson title) comes after the player. */
.h2 {
  font: 800 clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem) / 1.05 var(--display);
  letter-spacing: -0.035em;
  color: var(--paper);
}
.player-empty p.h2 {
  color: var(--paper);
}
.player.is-empty .player-empty {
  position: static;
  padding: var(--s5) var(--s3);
}
.player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s3);
}
.player-empty > div > * + * {
  margin-top: var(--s2);
}
.player-empty p {
  color: #b8c4dc;
  margin-inline: auto;
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s5);
  align-items: start;
  padding-block: var(--s4) var(--s6);
}
.lesson-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s3);
  flex-wrap: wrap;
}
.lesson-title h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  max-width: 22ch;
}
.lesson-actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  justify-content: space-between;
}
.lesson-notes {
  margin-top: var(--s3);
  padding-bottom: 0;
}
.resources {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s1);
}
.resources a {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  align-items: center;
  min-height: 52px;
  padding: 0 var(--s2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.resources a:hover {
  border-color: var(--ink);
  background: var(--card);
}
.resources a svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
}
.playlist {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}
.playlist h2 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.playlist h3 {
  font: 700 0.9375rem/1.3 var(--body);
  letter-spacing: 0;
  color: var(--muted);
  padding: var(--s2) var(--s3) var(--s1);
}
.playlist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.playlist .row {
  min-height: 56px;
  padding: 10px var(--s3);
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  font-size: 0.9375rem;
}
.playlist .status {
  width: 22px;
  height: 22px;
}
.playlist .status svg {
  width: 11px;
  height: 11px;
}
@media (max-width: 900px) {
  .stage {
    padding-block: var(--s2) var(--s3);
  }
  .stage .wrap {
    width: 100%;
  }
  .stage .crumbs {
    padding-inline: var(--s2);
  }
  .player {
    border-radius: 0;
  }
  .lesson-layout {
    /* minmax(0, …): a plain 1fr column grows to fit its widest child instead of letting it wrap */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
    padding-block: var(--s3) var(--s5);
  }
  .playlist {
    position: static;
    max-height: none;
  }
  .lesson-actions .btn {
    flex: 1 1 100%;
  }
}

/* account + studio share these */

.account-panels > * {
  max-width: 760px;
}
.lesson-notes h2 {
  font-size: 1.5rem;
  margin-top: var(--s4);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s4);
}
.panel + .panel {
  margin-top: var(--s3);
}
.panel > h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.panel > h2 + p {
  margin-top: var(--s1);
  color: var(--muted);
}
.panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
  margin-top: var(--s3);
  max-width: 520px;
}
.panel-danger {
  border-color: rgba(197, 34, 31, 0.4);
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s1) var(--s3);
  margin: var(--s3) 0 0;
}
.kv dt {
  color: var(--muted);
  font-weight: 600;
}
.kv dd {
  margin: 0;
  font-weight: 700;
}
@media (max-width: 720px) {
  .panel {
    padding: var(--s3);
  }
  .kv {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .kv dd {
    margin-bottom: var(--s1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
