/*
  orkhon.ai/earspace: the Earspace product page (MIT-063). Loaded after site.css, on that page only.
  The look is the app's own (MIT-062 direction D, the owner's pick): dark and calm, neutral greys, graphite
  controls, rounded like a Mac window. The five-hue light means one thing, as in the app: something new for you.
  On this page it marks only the steps of "One minute, as it happens" where a new card arrives, at the quieter
  strength.
  The Orkhon frame (navigation, footer, fonts) is the site's own, in the kit's dark-section colours: Ink ground,
  Limestone text, the white Orkhon mark in the footer. The header carries the Earspace logo from the Earspace kit
  (MIT-063 STEER 6), endorsed "by Orkhon"; the kit's colours are the page's: Ink #141518, Paper #E7E5DF, amber
  #FFA347 (its dark-ground value, inside the app's light only) and the muted #8C8A85.
*/

.lec-page {
  --ground: #141518;
  --raised: #1C1D21;
  --raised-2: #24252A;
  --text: #E7E5DF;
  --text-2: #B4B1AA;
  /* The Earspace kit's muted colour for dark grounds (5.3:1 on the ground): captions, labels, "by Orkhon". */
  --text-3: #8C8A85;
  --line: rgb(231 229 223 / 0.12);
  --line-2: rgb(231 229 223 / 0.24);
  --error: #FF8A82;
  /* The app's light: five hues, always in this order, never one alone (D/assets/lc.css). */
  --amber: #FFA347;
  --rose: #FF5F92;
  --orchid: #BF6DF6;
  --blue: #6A8DFF;
  --sky: #42C5F8;
  --light: conic-gradient(var(--amber) 0%, var(--rose) 13%, var(--orchid) 29%, var(--blue) 45%, var(--sky) 57%, var(--blue) 68%, var(--orchid) 80%, var(--rose) 91%, var(--amber) 100%);
  --radius: 14px;

  color-scheme: dark;
  background-color: var(--ground);
  color: var(--text);
}

html:has(> body.lec-page) {
  background-color: #141518;
  scroll-padding-top: 0;
}

.lec-page main [id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
}

.lec-page ::selection {
  background-color: var(--text);
  color: var(--ground);
}

.lec-page :focus-visible {
  outline-color: var(--text);
}

.lec-page a {
  color: var(--text);
}

.lec-page main p {
  text-wrap: pretty;
}

/* The site frame, in the kit's dark-section colours. */

.lec-page .site-header {
  background-color: rgb(20 21 24 / 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.lec-page .site-nav {
  border-top-color: var(--line);
}

.lec-page .site-nav a {
  color: var(--text);
}

/* This page's own item in the navigation (MIT-063 STEER 7) is marked like the current page anywhere on the site, in
   this page's text colour: the site's ink underline would not show on the dark ground. */
.lec-page .site-nav a[aria-current="page"] {
  text-decoration-color: var(--text);
}

.lec-page .header-cta {
  color: var(--text);
}

.lec-page .skip {
  background-color: var(--text);
  color: var(--ground);
}

/* The brand: the Earspace logo, then "by Orkhon", which is the one-click way back to Orkhon (MIT-063 STEER 6).
   The logo is the kit's web/header-logo.svg, drawn for a dark header at 28 px high and shown at exactly that height at
   every width: its mark is then 30.5 px wide, the kit's smallest size for the full cut, so the file is never scaled
   down. The file is tight to the ink; its clear space (one core height, 6.1 px at this size) is kept by the header's
   height above and below it and by the gap before "by Orkhon". "by Orkhon" is the kit's muted colour, as in the kit's
   endorsed lockup. Wide: one line, "by Orkhon" on the wordmark's baseline. Phones: "by Orkhon" under the wordmark,
   starting where the wordmark starts, as the kit's lockup sets it. */

.es-brand {
  grid-area: brand;
  justify-self: start;
  padding-block: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.es-brand__logo {
  display: inline-block;
  width: auto;
  max-width: none;
  height: 28px;
  /* The file runs 20.5 of its 97.18 units below the wordmark's baseline (the descender of the p). Lowering the image
     by that much puts the wordmark and "by Orkhon" on one baseline. */
  vertical-align: calc(-28px * 20.5 / 97.18);
}

.lec-page .es-brand__by {
  position: relative;
  margin-inline-start: 6px;
  color: var(--text-3);
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

/* The words are short; the target around them is at least 44 px tall and a little wider, over empty header space
   only (it never reaches the navigation's targets). */
.es-brand__by::after {
  content: "";
  position: absolute;
  inset: -14px -8px;
}

.lec-page .es-brand__by:active,
.lec-page .es-brand__by:focus-visible {
  color: var(--text);
}

@media (max-width: 479px) {
  .es-brand {
    display: grid;
    justify-items: start;
    row-gap: 3px;
    padding-block: 13px 14px;
  }

  .lec-page .es-brand__by {
    /* The wordmark starts 127.94 units into the file, of its 97.18-unit height. */
    margin-inline-start: calc(28px * 127.94 / 97.18);
    font-size: 0.875rem;
  }
}

/* Wide screens up to 1279 px: the brand is wider than the Orkhon lockup it replaces, so the header closes up a little
   to keep the navigation and "Write to us" on one line, with "Write to us" still set apart from the links. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .lec-page .site-header__inner {
    column-gap: var(--space-md);
  }

  .lec-page .site-nav ul {
    gap: 12px;
  }

  .lec-page .header-cta {
    margin-inline-start: var(--space-md);
  }
}

/* Up to 1151 px the links close up to the 20 px their own padding leaves between the words; "Write to us" is then set
   apart by the column gap alone. Six links (MIT-063 STEER 7) needed it to fit beside the brand; the five of STEER 8
   keep it, and the brand keeps 142 px of clear room before the links at 1024 px. */
@media (min-width: 1024px) and (max-width: 1151px) {
  .lec-page .site-nav ul {
    gap: 0;
  }

  .lec-page .header-cta {
    margin-inline-start: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .lec-page .site-nav a:hover {
    color: #FFFFFF;
  }

  .lec-page .es-brand__by:hover {
    color: var(--text);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lec-page .site-header {
    background-color: var(--ground);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.lec-page .site-footer {
  border-top-color: var(--line);
  color: var(--text-2);
}

.lec-page .site-footer__slogan,
.lec-page .site-footer__nav a {
  color: var(--text);
}

.lec-page .label {
  color: var(--text-3);
}

.lec-page .site-footer__line {
  border-top-color: var(--line);
}

/* Type */

.lec-h2 {
  max-width: 18em;
  font-size: clamp(2rem, 1.25rem + 2.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lec-h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.lec-body {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-2);
}

.lec-body--small {
  font-size: 1rem;
}

.lec-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 30px + 4vw, 88px);
}

.lec-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-wrap: pretty;
}

/* The one filled control: a light pill, like the app's own primary button. */

.lec-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background-color: var(--text);
  color: var(--ground);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background-color 150ms ease,
    transform 160ms var(--ease-out);
}

.lec-page a.lec-button {
  color: var(--ground);
}

.lec-button:active {
  transform: scale(0.97);
}

.lec-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.lec-button:disabled {
  cursor: progress;
}

@media (hover: hover) and (pointer: fine) {
  .lec-button:hover {
    background-color: #FFFFFF;
  }
}

/* A window from the design: the picture carries its own rounded corners (transparent outside them). */

.lec-window {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 48px rgb(0 0 0 / 0.5));
}

/* Hero: the name, the one sentence, the action, then the window at its own size. */

.lec-hero {
  padding-top: clamp(40px, 20px + 4vw, 72px);
}

.lec-hero__text {
  display: grid;
  justify-items: start;
}

/* Wide screens: the name on the left, the sentence and the action beside it, so the window (and its new answer
   card) starts high enough to be seen in the first screen. */
@media (min-width: 1024px) {
  .lec-hero__text {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: end;
  }

  .lec-hero__brand {
    grid-column: 1 / span 6;
  }

  .lec-hero__pitch {
    grid-column: 7 / span 6;
  }

  .lec-hero__pitch .lec-hero__lead {
    margin-top: 0;
  }
}

.lec-hero__name {
  font-size: clamp(4rem, 2.2rem + 6vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.lec-hero__by {
  margin-top: 10px;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.lec-hero__lead {
  max-width: 21em;
  margin-top: clamp(24px, 16px + 2vw, 40px);
  font-size: clamp(1.375rem, 1.05rem + 1.25vw, 2.25rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Wide screens: three lines at display size read better a little tighter. */
@media (min-width: 1024px) {
  .lec-hero__lead {
    line-height: 1.22;
  }
}

.lec-hero__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(28px, 20px + 1.5vw, 40px);
}

.lec-hero__facts {
  display: grid;
  gap: 2px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-2);
}

.lec-hero__facts span {
  display: block;
}

.lec-status {
  color: var(--text);
  font-weight: 500;
}

/* The two uses side by side, equal: a lecture and a meeting or panel, each window whole. */
.lec-uses {
  display: grid;
  gap: 48px;
  margin-top: clamp(48px, 28px + 4vw, 80px);
}

.lec-use {
  display: grid;
  gap: 18px;
  align-content: start;
}

.lec-use__cap {
  display: grid;
  gap: 6px;
  max-width: 30em;
}

.lec-use__k {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.lec-use__v {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-2);
}

.lec-uses__note {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .lec-uses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 24px;
  }

  .lec-uses__note {
    grid-column: 1 / -1;
  }
}

/* More than a recording: two cards from the design beside their words, then two features in words. */

.lec-more {
  padding-block: var(--section);
}

.lec-cards {
  display: grid;
  gap: 72px;
}

.lec-feature {
  display: grid;
  gap: 20px;
  align-content: start;
}

.lec-feature__text {
  display: grid;
  gap: 14px;
  align-content: start;
}

.lec-feature__shot img {
  width: 100%;
  height: auto;
}

.lec-feature__shot .lec-caption {
  margin-top: 4px;
  padding-left: 4.65%;
}

.lec-feature--words,
.lec-feature--route {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.lec-rules {
  display: grid;
  margin-top: 12px;
}

.lec-rules > div {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.lec-rules > div:first-child {
  border-top: 0;
}

.lec-rules dt {
  font-weight: 500;
  color: var(--text);
}

.lec-rules dd {
  margin: 0;
  color: var(--text-2);
}

.lec-route {
  margin-top: 16px;
}

.lec-route__rows {
  display: grid;
  gap: 16px;
}

.lec-route__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(72px, 1fr) 11.5rem;
  align-items: center;
  gap: 10px;
}

.lec-route__node {
  display: grid;
  min-height: 56px;
  align-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background-color: var(--raised);
  font-weight: 500;
  line-height: 1.25;
}

.lec-route__node small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-3);
}

.lec-route__wire {
  position: relative;
  display: grid;
  justify-items: center;
  height: 1px;
}

.lec-route__wire::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--line-2);
}

.lec-route__wire::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--text-3);
  border-right: 1px solid var(--text-3);
  transform: rotate(45deg);
}

.lec-route__wire span {
  position: absolute;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
  white-space: nowrap;
}

.lec-route__note {
  margin-top: 20px;
  font-weight: 500;
  color: var(--text);
}

/* Phones: each route reads top to bottom, the label beside a short downward wire. */
@media (max-width: 599px) {
  .lec-route__rows {
    gap: 24px;
  }

  .lec-route__row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 8px;
  }

  .lec-route__node {
    min-width: 11.5rem;
  }

  .lec-route__wire {
    justify-items: start;
    width: 1px;
    height: 30px;
    margin-left: 28px;
  }

  .lec-route__wire::after {
    right: auto;
    top: auto;
    left: -4px;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .lec-route__wire span {
    bottom: auto;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
  }
}

@media (min-width: 1024px) {
  .lec-cards {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 88px;
  }

  .lec-feature--shot {
    grid-column: 1 / -1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: center;
  }

  .lec-feature--shot .lec-feature__text {
    grid-column: 1 / span 4;
  }

  .lec-feature--shot .lec-feature__shot {
    grid-column: 5 / span 8;
  }

  .lec-feature--words {
    grid-column: 1 / span 5;
  }

  .lec-feature--route {
    grid-column: 7 / span 6;
  }
}

/* One minute, as it happens. Without the script (and on phones), each step shows its own window under its words.
   With the script on a wide screen, the windows share one sticky stage beside the steps and change as the steps
   pass the middle of the screen. The dot of a step where a new card arrives carries the app's light while that
   step is the current one, and goes plain once it is passed: read. */

.lec-moment {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.lec-steps {
  display: grid;
  gap: 64px;
}

.lec-step {
  display: grid;
  gap: 12px;
  align-content: start;
}

.lec-step__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.lec-step .lec-body {
  padding-left: 23px;
}

.lec-step__shot {
  margin-top: 12px;
}

.lec-step__shot--compact {
  width: 70%;
  max-width: 340px;
}

.lec-dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transform: translateY(-2px);
  transition: box-shadow 240ms ease-out;
}

.lec-dot::before,
.lec-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--light);
  opacity: 0;
  transition: opacity 240ms ease-out;
}

/* The bloom: the quieter strength, a soft halo a few pixels wide. */
.lec-dot::after {
  inset: -5px;
  filter: blur(5px);
}

/* No script: every step where a card arrives shows the light, still. */
.lec-step[data-new] .lec-dot::before {
  opacity: 1;
}

.lec-step[data-new] .lec-dot::after {
  opacity: 0.35;
}

.lec-moment.is-live .lec-step[data-new] .lec-dot::before,
.lec-moment.is-live .lec-step[data-new] .lec-dot::after {
  opacity: 0;
}

.lec-moment.is-live .lec-step.is-current .lec-dot {
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.lec-moment.is-live .lec-step[data-new].is-current .lec-dot::before {
  opacity: 1;
}

.lec-moment.is-live .lec-step[data-new].is-current .lec-dot::after {
  opacity: 0.35;
}

.lec-stage {
  display: none;
}

@media (min-width: 768px) {
  .lec-step__shot {
    max-width: 760px;
  }

  .lec-step__shot--compact {
    width: 300px;
  }
}

@media (min-width: 1024px) {
  .lec-moment.is-live .lec-moment__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .lec-moment.is-live .lec-steps {
    grid-column: 1 / span 4;
    gap: 0;
  }

  .lec-moment.is-live .lec-step {
    min-height: 58vh;
    align-content: center;
  }

  /* The steps that are not current step back by colour, not opacity, so their words keep at least 4.5:1. */
  .lec-moment.is-live .lec-step:not(.is-current) .lec-step__title {
    color: var(--text-2);
  }

  .lec-moment.is-live .lec-step:not(.is-current) .lec-body {
    color: var(--text-3);
  }

  .lec-step__title,
  .lec-step .lec-body {
    transition: color 320ms ease-out;
  }

  .lec-moment.is-live .lec-step__shot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lec-moment.is-live .lec-stage {
    display: block;
    grid-column: 5 / span 8;
    position: sticky;
    top: calc(var(--header-h) + max(24px, (100vh - var(--header-h) - 600px) / 2));
    align-self: start;
    margin-top: 12vh;
  }

  .lec-stage__frames {
    position: relative;
    aspect-ratio: 1600 / 1077;
  }

  .lec-stage__frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 420ms var(--ease-out);
  }

  .lec-stage__frame.is-active {
    opacity: 1;
  }

  /* The compact window at the same scale as the big one: 448 of 1296 window pixels. */
  .lec-stage__frame--compact {
    inset: auto;
    left: 50%;
    top: 50%;
    width: 34.7%;
    translate: -50% -50%;
    scale: 0.96;
    transition:
      opacity 420ms var(--ease-out),
      scale 520ms var(--ease-out);
  }

  .lec-stage__frame--compact.is-active {
    scale: 1;
  }
}

/* Privacy and the rules: three plain statements. */

.lec-rules-band {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.lec-promises {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 28px + 3vw, 72px);
}

.lec-promises li {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

.lec-promise {
  max-width: 15em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .lec-promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-lg);
  }
}

/* The source-available intent (STEER 4): a plain statement, not a link (no code is published yet). */
.lec-open {
  margin-top: clamp(40px, 28px + 2vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  color: var(--text-2);
}

/* Questions */

.lec-faq {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.lec-faq__grid {
  display: grid;
  gap: 32px;
}

.lec-qa {
  border-bottom: 1px solid var(--line);
}

.lec-qa:first-child {
  border-top: 1px solid var(--line);
}

.lec-qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding-block: 16px;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.lec-qa summary::-webkit-details-marker {
  display: none;
}

.lec-qa summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}

.lec-qa[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.lec-qa p {
  max-width: 38em;
  padding-bottom: 22px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-2);
}

@media (hover: hover) and (pointer: fine) {
  .lec-qa summary:hover {
    color: #FFFFFF;
  }
}

@media (min-width: 1024px) {
  .lec-faq__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .lec-faq__grid > .lec-h2 {
    grid-column: 1 / span 4;
  }

  .lec-faq__list {
    grid-column: 5 / span 8;
  }
}

/* The waitlist */

.lec-waitlist {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.lec-waitlist__grid {
  display: grid;
  gap: 48px;
}

.lec-waitlist__head {
  display: grid;
  gap: 20px;
  align-content: start;
}

.lec-facts {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.lec-facts > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.lec-facts dt {
  color: var(--text-3);
}

.lec-facts dd {
  margin: 0;
  color: var(--text);
}

.wl {
  display: grid;
  align-content: start;
}

.wl__fields {
  display: grid;
  gap: 22px;
}

.wl__field {
  display: grid;
  gap: 8px;
}

/* The optional questions ship hidden: the script shows them, because only it carries their answers to the list. */
.wl__field[hidden] {
  display: none;
}

.wl__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* "Mostly for": one optional choice, drawn like the app's own segmented control. The radios stay real inputs. */
.wl__choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.wl__choice legend {
  margin-bottom: 8px;
  padding: 0;
}

.wl__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wl__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wl__radio + label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background-color: var(--raised);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 160ms var(--ease-out);
}

.wl__radio + label:active {
  transform: scale(0.97);
}

.wl__radio:checked + label {
  border-color: var(--text);
  background-color: var(--text);
  color: var(--ground);
}

.wl__radio:focus-visible + label {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .wl__radio:not(:checked) + label:hover {
    border-color: var(--text-3);
    color: var(--text);
  }
}

.wl__label .req {
  margin-left: 6px;
  font-weight: 400;
  color: var(--text-3);
}

.wl__input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background-color: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
  caret-color: var(--text);
  transition: border-color 150ms ease;
}

.wl__input--area {
  min-height: 108px;
  resize: vertical;
}

.wl__input:focus-visible {
  border-color: var(--text-2);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.wl__input[aria-invalid="true"] {
  border-color: var(--error);
}

.wl__hint {
  font-size: 0.875rem;
  color: var(--text-3);
}

.wl__err {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1rem;
  color: var(--error);
}

.wl__err[hidden] {
  display: none;
}

.wl__err::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--error);
}

.wl__button {
  justify-self: start;
  margin-top: 4px;
}

.wl__status {
  font-size: 1.125rem;
  font-weight: 500;
  outline: none;
}

.wl__status:not(:empty) {
  margin-top: 20px;
}

.wl__privacy {
  max-width: 34em;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.wl.is-failed .wl__status {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--error);
}

.wl.is-failed .wl__status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 2px solid var(--error);
  border-radius: 50%;
  transform: translateY(1px);
}

.wl__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 559px) {
  .wl__button {
    justify-self: stretch;
  }
}

@media (min-width: 1024px) {
  .lec-waitlist__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .lec-waitlist__head {
    grid-column: 1 / span 5;
  }

  .wl {
    grid-column: 7 / span 6;
  }
}

/* Reduced motion: the steps and the stage change without fading; the light stays, still. */
@media (prefers-reduced-motion: reduce) {
  .lec-dot,
  .lec-dot::before,
  .lec-dot::after,
  .lec-step__title,
  .lec-step .lec-body,
  .lec-stage__frame,
  .lec-qa summary::after,
  .wl__radio + label,
  .lec-button,
  .lec-page .es-brand__by {
    transition: none !important;
  }

  .lec-stage__frame--compact {
    scale: 1;
  }
}
