:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #141b17;
  color: #f9f3e8;
}
*, *::before, *::after { box-sizing: border-box; }
body, p, figure, h1, h2 { margin: 0; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(24px, 4vw, 56px) clamp(24px, 7vw, 112px) 22px;
  overflow: hidden;
  background: #1b221c url("/assets/city-walk.jpg") center / cover no-repeat;
}
.city, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.city { z-index: -2; object-fit: cover; pointer-events: none; }
.hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 22, 16, .95), rgba(13, 22, 16, .80) 45%, rgba(13, 22, 16, .29)),
              linear-gradient(0deg, rgba(13, 22, 16, .90), transparent 29%);
}
.hero-content, .hero-footer { width: 100%; max-width: 1240px; margin-inline: auto; }
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  padding-block: clamp(38px, 7vh, 80px);
}
h1 {
  max-width: 13ch;
  font-size: clamp(3.15rem, 6.1vw, 6.35rem);
  font-weight: 780;
  letter-spacing: -.073em;
  line-height: .99;
  text-wrap: balance;
}
.hero-copy p { max-width: 39ch; margin-top: 24px; color: #e3e6d9; font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.55; }
.hero-copy .course-length { display: grid; gap: 2px; margin-top: 22px; }
.course-length strong { color: #f9f3e8; font-size: clamp(1.12rem, 2vw, 1.45rem); }
.course-length span { font-size: .92rem; }
.sample-form { max-width: 510px; margin-top: 24px; }
.sample-form h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.15; }
.sample-form p { margin-top: 7px; max-width: none; font-size: .95rem; }
.sample-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; margin-top: 12px; }
.sample-fields label { display: grid; gap: 4px; font-size: .88rem; font-weight: 650; }
.sample-fields input { min-width: 0; width: 100%; min-height: 45px; padding: 8px 10px; border: 1px solid #e3e6d999; border-radius: 9px; background: #101914ec; color: #fff; font: inherit; font-size: 1rem; }
.sample-form .free-download { margin-top: 12px; background: #86e8d7; }
.hero-copy .buy-button { margin-top: 14px; box-shadow: inset 0 0 0 1px #e3e6d9aa; background: #141b1780; color: #f9f3e8; }
.sample-tracks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sample-tracks a { color: #a5e7ef; text-underline-offset: 3px; }
.phone-demo {
  --sample-text-size: clamp(1.25rem, 2.1vw, 1.65rem);
  width: min(100%, clamp(245px, 35svh, 322px));
  justify-self: center;
}
.phone-demo figcaption {
  margin-bottom: 14px;
  text-align: center;
  white-space: nowrap;
  font-size: var(--sample-text-size);
  font-weight: 730;
}
.phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 5px solid #171c19;
  outline: 1px solid #d0ddcb70;
  border-radius: 44px;
  background: #000;
  box-shadow: 0 28px 76px #080d0abb;
}
.phone video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}
.phone video::cue { color: #fff; background: #101410; }
.lesson-caption {
  position: absolute;
  inset: 67% 12px auto;
  color: #edf8ff;
  font-size: var(--sample-text-size);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}
.lesson-prompt {
  position: absolute;
  inset: 16% 14px auto;
  color: #b6e8ff;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 350ms ease-out;
}
.lesson-prompt.is-visible { opacity: 1; transition-duration: 140ms; }
@media (prefers-reduced-motion: reduce) {
  .lesson-prompt, .lesson-prompt.is-visible { transition: none; }
}
.order-button {
  display: inline-block;
  margin-top: 20px;
  padding: .8em 1.15em;
  border: 0;
  border-radius: 100px;
  background: #ddfa83;
  color: #141b17;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.order-button[hidden] { display: none; }
.order-button:disabled { opacity: .65; cursor: wait; }
.order-page {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 16px;
  min-height: 100svh;
  max-width: 740px;
  margin: auto;
  padding: 30px;
}
.order-page h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
.order-page p { line-height: 1.55; }
.order-page a:not(.order-button) { color: #f9f3e8; }
.hero-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; color: #e3e6d9; font-size: .72rem; }
.hero-footer a, .hero-footer button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-footer button { margin-inline-start: auto; border: 0; padding: 5px 0; font: inherit; background: none; cursor: pointer; }
@media (width > 690px) {
  .hero-content { padding-block: clamp(26px, 5vh, 64px); }
}
@media (max-width: 690px) {
  .hero::before { background: linear-gradient(180deg, rgba(13, 22, 16, .87), rgba(13, 22, 16, .70) 54%, rgba(13, 22, 16, .85)); }
  .hero-content { grid-template-columns: 1fr; gap: 33px; }
  h1 { font-size: clamp(2.8rem, 10vw, 4.25rem); }
  .hero-copy p { margin-top: 16px; }
  .phone-demo { width: min(100%, clamp(216px, 65vw, 268px)); }
  .phone { border-radius: 38px; }
}
