/*
 * MentorGoat waitlist landing pages (NIC-523): / (Dutch, /waitlist on the
 * preview address) and /english. Layout = Figma 386:299 / 386:187 (desktop
 * 1440) and 386:411 / 379:162 (phone 390); form and its states = set 186:2,
 * C/Checkbox 319:78; language switch = 255:40. Colours, radii and the font
 * come from base.css tokens only. Phone styles apply at max-width 767px.
 */

.wl-landing-page {
  min-height: 100vh;
}

/* Header actions (base.css): the join link, after the language switch. */
.wl-join {
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
  color: var(--c-pine);
  text-decoration: none;
}

.wl-join:hover {
  text-decoration: underline;
}

.wl-join-short {
  display: none;
}

/* Hero: copy + form | plan picture | nudges picture. */
.wl-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 56px;
  padding: 56px max(24px, calc((100% - 1280px) / 2)) 96px;
}

.wl-hero-copy {
  display: flex;
  flex: 0 0 480px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.wl-eyebrow {
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-terracotta);
}

.wl-hero h1 {
  font-size: 64px;
  line-height: 67px;
  font-weight: 700;
  letter-spacing: -1px;
}

.wl-hero-body {
  font-size: 17px;
  line-height: 26px;
  color: var(--c-ink-muted);
}

/* Signup form (set 186:2): Desktop 480 / Phone 342. */
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 24px;
}

.wl-form-entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wl-form-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-field label {
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
}

.wl-email {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--c-field-line);
  border-radius: var(--r-input);
  background: var(--c-surface);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
}

.wl-email::placeholder {
  color: var(--c-ink-muted);
  opacity: 1;
}

.wl-email[aria-invalid='true'] {
  border-color: var(--c-error);
  box-shadow: inset 0 0 0 0.5px var(--c-error);
}

.wl-email:focus-visible,
.wl-check input:focus-visible,
.wl-button:focus-visible,
.wl-join:focus-visible {
  outline: 2px solid var(--c-pine);
  outline-offset: 2px;
}

.wl-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* C/Checkbox (319:78): the box sits 1px down, beside the first label line. */
.wl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 21px;
  cursor: pointer;
}

.wl-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1.5px solid var(--c-check-line);
  border-radius: var(--r-check);
  background: var(--c-surface) no-repeat center / 10px 7px;
  appearance: none;
  cursor: pointer;
}

.wl-check input:checked {
  border-color: var(--c-pine);
  background-color: var(--c-pine);
  background-image: url('/waitlist-assets/tick.svg');
}

.wl-check input[aria-invalid='true'] {
  border-color: var(--c-error);
}

.wl-field-error {
  font-size: 13px;
  line-height: 16px;
  color: var(--c-error);
}

.wl-field-error:empty,
.wl-alert:empty {
  display: none;
}

/* Error state: an inline alert above the email field. */
.wl-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--c-error-line);
  border-radius: var(--r-input);
  background: var(--c-error-tint);
  font-size: 14px;
  line-height: 17px;
}

.wl-alert-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--r-pill);
  background: var(--c-error);
  color: var(--c-surface);
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
}

.wl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-button);
  background: var(--c-pine);
  color: var(--c-surface);
  font-family: var(--font);
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.wl-form-entry .wl-button {
  align-self: flex-start;
}

.wl-form.is-busy .wl-button {
  cursor: progress;
}

.wl-form.is-busy .wl-email {
  color: var(--c-ink-muted);
}

.wl-spinner {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--c-surface);
  border-right-color: transparent;
  border-radius: var(--r-pill);
  animation: wl-spin 0.8s linear infinite;
}

@keyframes wl-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-spinner {
    animation: none;
  }
}

.wl-privacy-line {
  font-size: 13px;
  line-height: 16px;
  color: var(--c-ink-muted);
}

/* Success / already on the list: a card in place of the fields. */
.wl-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--c-pine-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
}

.wl-form [hidden] {
  display: none;
}

.wl-result:focus {
  outline: none;
}

.wl-result[data-state='already'] {
  border-color: var(--c-field-line);
}

.wl-result-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--c-pine);
  color: var(--c-surface);
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
}

.wl-result-icon svg {
  display: block;
  width: 12px;
  height: 9px;
}

.wl-result[data-state='already'] .wl-result-icon {
  border: 1.5px solid var(--c-pine);
  background: var(--c-page);
  color: var(--c-pine);
}

.wl-result-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wl-result-title {
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
}

.wl-result-body {
  font-size: 17px;
  line-height: 26px;
  color: var(--c-ink-muted);
  overflow-wrap: anywhere;
}

/* The two app pictures, built in HTML so their words are text. */
.wl-visuals {
  display: flex;
  flex: 0 0 744px;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  max-width: 100%;
}

.wl-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 360px;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-picture);
}

.wl-visual-label {
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

.wl-visual-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
}

.wl-session {
  display: flex;
  gap: 12px;
  padding: 14px 0;
}

.wl-badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-badge);
  background: var(--c-pine);
  color: var(--c-surface);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.wl-session-stack,
.wl-task {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wl-session-stack.is-open {
  gap: 10px;
}

.wl-session-line {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--c-pine);
}

.wl-task-title {
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
}

.wl-chip {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-page);
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
}

.wl-task-length {
  font-size: 14px;
  line-height: 17px;
}

.wl-task-status,
.wl-break {
  font-size: 12px;
  line-height: 14px;
  color: var(--c-ink-muted);
}

.wl-break {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.wl-break::before,
.wl-break::after {
  flex: 1 1 0;
  height: 1px;
  background: var(--c-line);
  content: '';
}

.wl-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-input);
  background: var(--c-page);
  font-size: 13px;
  line-height: 16px;
  color: var(--c-ink-muted);
}

.wl-detail-heading {
  font-weight: 600;
  color: var(--c-pine);
}

.wl-detail-text {
  font-size: 14px;
  line-height: 21px;
  color: var(--c-ink);
}

.wl-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.wl-day + .wl-nudge + .wl-day {
  padding-top: 20px;
}

.wl-day-date {
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
}

.wl-day-count {
  font-size: 13px;
  line-height: 16px;
  color: var(--c-ink-muted);
}

.wl-nudge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}

.wl-nudge-time {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--c-pine);
}

.wl-nudge-type {
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
}

.wl-notification {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
  padding: 14px;
  border-radius: var(--r-input);
  background: var(--c-page);
}

.wl-notification-title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.wl-notification-text {
  font-size: 14px;
  line-height: 21px;
}

/* Check-ins: heading and text, centred column. */
.wl-checkins {
  padding: 96px 24px;
  background: var(--c-surface);
}

.wl-checkins-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.wl-section-title {
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
}

.wl-section-text {
  font-size: 17px;
  line-height: 26px;
  color: var(--c-ink-muted);
}

/* What MentorGoat does: eyebrow, heading, three cards. */
.wl-features {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 96px max(24px, calc((100% - 1200px) / 2));
  background: var(--c-surface);
}

.wl-features .wl-eyebrow {
  color: var(--c-ink-muted);
}

.wl-cards {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.wl-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--c-page);
}

.wl-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-button);
  background: var(--c-pine-tint);
  color: var(--c-pine);
}

/* The icons are Dana's exports (40 x 40, draft page 413:2), drawn over this tile. */
.wl-card-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.wl-card h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.wl-card p {
  font-size: 17px;
  line-height: 26px;
  color: var(--c-ink-muted);
}

/* Closing band: centred heading, text and button. */
.wl-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 96px 24px;
  text-align: center;
}

.wl-closing .wl-section-title {
  line-height: 32px;
}

/* Phone (frames 386:411 / 379:162). */
@media (max-width: 767px) {
  .wl-join-long {
    display: none;
  }

  .wl-join-short {
    display: inline;
  }

  .wl-hero {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
    padding: 32px 24px 48px;
  }

  .wl-hero-copy {
    flex: none;
    gap: 20px;
  }

  /* Dutch phone frame 386:411: the eyebrow breaks after "Binnenkort beschikbaar" and its dot. */
  html[lang='nl'] .wl-eyebrow-line {
    display: block;
  }

  .wl-hero h1 {
    font-size: 40px;
    line-height: 43px;
    letter-spacing: -0.5px;
  }

  .wl-form-entry .wl-button,
  .wl-closing .wl-button {
    align-self: stretch;
  }

  .wl-visuals {
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
  }

  .wl-visual {
    width: auto;
    padding: 20px;
  }

  .wl-visual-card {
    padding: 16px;
  }

  .wl-session {
    gap: 10px;
    padding: 12px 0;
  }

  .wl-badge {
    width: 24px;
    height: 24px;
    border-radius: var(--r-badge-small);
    font-size: 12px;
    line-height: 14px;
  }

  .wl-session-line,
  .wl-nudge-time {
    font-size: 12px;
    line-height: 14px;
  }

  .wl-task-title,
  .wl-nudge-type,
  .wl-day-date {
    font-size: 14px;
    line-height: 17px;
  }

  .wl-chip {
    font-size: 11px;
    line-height: 13px;
  }

  .wl-task-length {
    font-size: 13px;
    line-height: 16px;
  }

  .wl-detail {
    gap: 6px;
    padding: 12px;
    font-size: 12px;
    line-height: 14px;
  }

  .wl-detail-text,
  .wl-notification-text {
    font-size: 13px;
    line-height: 20px;
  }

  .wl-day {
    padding: 12px 0;
  }

  .wl-day + .wl-nudge + .wl-day {
    padding-top: 18px;
  }

  .wl-day-count {
    font-size: 12px;
    line-height: 14px;
  }

  .wl-nudge {
    padding: 12px 0;
  }

  .wl-notification {
    padding: 12px;
  }

  .wl-notification-title {
    font-size: 12px;
    line-height: 14px;
  }

  .wl-checkins {
    padding: 48px 24px;
  }

  .wl-checkins-copy {
    gap: 16px;
  }

  .wl-section-title,
  .wl-closing .wl-section-title {
    font-size: 28px;
    line-height: 32px;
  }

  .wl-features {
    gap: 24px;
    padding: 48px 24px;
  }

  .wl-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .wl-card {
    flex: none;
    gap: 10px;
    padding: 24px;
  }

  .wl-card h3 {
    font-size: 18px;
    line-height: 22px;
  }

  .wl-closing {
    align-items: stretch;
    gap: 16px;
    padding: 48px 24px;
  }
}

/* Narrow phones (under 380): no room for the header join link beside the
   switch; the form follows the hero text directly. */
@media (max-width: 379px) {
  .wl-join {
    display: none;
  }
}
