/* ==========================================================================
   D02 Waitlist — page styles (demo/waitlist.html)
   Pre-launch hero with the waitlist form and joined state, video teaser,
   founder note, share card and FAQ.
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.wl-hero {
  padding-top: clamp(64px, 10vw, 144px);
}

.wl-hero__title {
  max-width: 11ch;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: var(--hero-size);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.055em;
  font-variation-settings: 'wdth' var(--hero-wdth), 'opsz' 96;
}

.wl-hero__lead {
  max-width: 56ch;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.6vw, 22px);
}

.wl-join {
  max-width: 620px;
  margin-top: 40px;
}

/* Waitlist form: pill with the email input and the submit button */
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
}

.wl-form__field {
  display: flex;
  flex: 1;
  min-width: 200px;
}

.wl-form__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
  outline-offset: -2px;
}

.wl-form__submit {
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.wl-form__submit:hover {
  background: var(--action-hover);
}

.wl-form__hint,
.wl-form__note {
  padding-left: 18px;
  font-size: 14px;
}

.wl-form__hint {
  color: var(--ink-2);
}

.wl-form__note {
  color: var(--ink-3);
}

/* "Did you mean …?" suggestion */
.wl-form__fix {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

/* Joined state ----------------------------------------------------------- */
.wl-joined {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  animation: pop .36s cubic-bezier(.34, 1.56, .64, 1);
}

.wl-joined__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wl-joined__title {
  font-size: 18px;
}

.wl-joined__position {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.wl-joined__number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.wl-joined__of {
  color: var(--ink-2);
  font-size: 15px;
}

.wl-joined__boost {
  align-self: flex-start;
}

.wl-joined__reset {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 13px;
  text-decoration: underline;
}

/* Referral link */
.wl-referral {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-referral__title {
  font-size: 14px;
  font-weight: 600;
}

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

.wl-referral__link {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--canvas);
  font-family: var(--font-mono);
  font-size: 14px;
}

.wl-referral__copy {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 600;
}

.wl-referral__simulate {
  min-height: 44px;
  padding: 0 14px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
}

/* Video teaser (placeholder) --------------------------------------------- */
.wl-video {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 320px;
  padding: clamp(20px, 3vw, 40px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--inverse);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .04) 14px 15px);
  color: var(--on-inverse);
}

.wl-video__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .8;
}

.wl-video__play {
  align-self: center;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  background: var(--action);
  color: var(--on-action);
  font-size: 28px;
}

.wl-video__chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wl-video__chapter {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.wl-transcript {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
}

.wl-transcript__summary {
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.wl-transcript__text {
  max-width: 70ch;
}

/* Founder note ----------------------------------------------------------- */
.wl-founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: start;
  gap: 40px;
}

/* Photo placeholder — fixed stripe colors, not themed */
.wl-founders__photo {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, #E9E4F0 0 10px, #F4F1F6 10px 20px);
}

.wl-founders__caption {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wl-founders__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wl-founders__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.wl-founders__text {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-2);
}

.wl-founders__sign {
  font-size: 15px;
}

/* Share card + FAQ ------------------------------------------------------- */
.wl-share {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
}

.wl-share__card-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
}

.wl-h2--faq {
  margin-bottom: 12px;
}

/* Social share image preview (1200 × 630) */
.wl-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1200 / 630;
  padding: 6%;
  border-radius: 16px;
  background: var(--inverse);
  color: var(--on-inverse);
}

.wl-card__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
}

.wl-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
}

.wl-card__url {
  font-size: 13px;
}

.wl-share__note {
  color: var(--ink-3);
  font-size: 13px;
}

/* FAQ accordion */
.wl-faq {
  border-top: 1px solid var(--line);
}

.wl-faq__item {
  border-bottom: 1px solid var(--line);
}

.wl-faq__question {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 18px 0;
  border: 0;
  background: none;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
}

.wl-faq__icon {
  font-family: var(--font-mono);
}

.wl-faq__answer {
  margin: 0 0 18px;
  color: var(--ink-2);
}
