/*
 * Simsalasim waitlist front end (spec §6.9). Values from the Figma design spec
 * (docs/superpowers/specs/2026-09-30-waitlist-figma/design-spec.md).
 *
 * Breakpoints: mobile < 744 <= tablet < 1024 <= desktop. Desktop is fluid from 1024 and capped at
 * the 1440 frame's measures.
 *
 * Figma trims every text box to its cap height (leadingTrim CAP_HEIGHT), so a Figma gap G between
 * two texts becomes G - (lh1 - 0.71 fs1)/2 - (lh2 - 0.71 fs2)/2 here. The comments give the Figma
 * value; the declared value is the converted one.
 */

@font-face {
  font-family: 'PP Object Sans';
  src: url('../fonts/PPObjectSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Object Sans';
  src: url('../fonts/PPObjectSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Object Sans';
  src: url('../fonts/PPObjectSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --wl-bg: #f5f4f4;
  --wl-white: #fff;
  --wl-black: #000;
  --wl-text-card: #161617;
  --wl-text-2: #545353;
  --wl-placeholder: #a29f9f;
  --wl-success: #08a75a;
  --wl-error: #d92d20;
  --wl-focus: #3385e3;
  --wl-border: rgba(0, 0, 0, 0.12);
  --wl-footer-bg: #000;
  --wl-footer-link: #fff;
  --wl-overlay: rgba(0, 0, 0, 0.09);
  --wl-font: 'PP Object Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --wl-header-h: 64px;
  --wl-margin: 0px;
  --wl-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wl-btn-size: 14px;
  --wl-btn-ls: 1.68px;
}

@media (min-width: 744px) {
  :root {
    --wl-margin: 24px;
    --wl-footer-bg: #161617;
    --wl-footer-link: rgba(255, 255, 255, 0.72);
  }
}

@media (min-width: 1024px) {
  :root {
    --wl-margin: 64px;
    --wl-btn-size: 16px;
    --wl-btn-ls: 1.92px;
  }
}

/* ----- Reset ----- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wl-bg);
  color: var(--wl-black);
  font-family: var(--wl-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
  margin: 0;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--wl-focus);
  outline-offset: 2px;
}

[tabindex='-1']:focus {
  outline: none;
}

html.wl-locked,
html.wl-locked body {
  overflow: hidden;
}

/* ----- Header ----- */

.wl-header {
  background: var(--wl-white);
  border-bottom: 1px solid var(--wl-border);
}

.wl-header__inner {
  display: flex;
  align-items: center;
  min-height: var(--wl-header-h);
  padding: 16px;
  max-width: 1776px;
  margin: 0 auto;
}

.wl-header__logo {
  display: block;
  border-radius: 4px;
}

.wl-header__logo img {
  width: 152px;
  height: 26px;
}

@media (max-width: 743.98px) {
  .wl-header--hide-mobile {
    display: none;
  }
}

@media (min-width: 744px) {
  .wl-header__inner {
    padding: 16px 24px;
  }
}

@media (min-width: 1024px) {
  .wl-header__inner {
    padding: 16px 88px;
  }
}

/* ----- Hero (mobile first: full-bleed photo, white bottom sheet) ----- */

.wl-hero {
  padding: var(--wl-margin);
}

.wl-hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #c8102e;
}

.wl-hero__media {
  position: absolute;
  inset: 0;
  display: block;
}

.wl-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Mobile scrim: black, 0 at ~54% of the height, ~65% at the bottom (Figma "Gradient"). */
.wl-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.wl-hero__logo {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: block;
  border-radius: 4px;
}

.wl-hero__logo img {
  width: 107px;
  height: 18px;
}

.wl-hero__col {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Every screen on mobile is the white bottom sheet (radius 24 24 0 0). */
.wl-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--wl-white);
  border-radius: 24px 24px 0 0;
  /* Figma: padding-top 32, container padding 0 16 24, padding-bottom 80 (sized around the Safari mock). */
  padding: 24.5px 16px calc(36px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.wl-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--wl-black);
}

.wl-br {
  display: none;
}

.wl-copy-group {
  display: flex;
  flex-direction: column;
  /* Figma 24 (title 24/32 -> body 14/20) */
  margin-top: 11.5px;
}

.wl-lead {
  font-size: 14px;
  line-height: 20px;
  color: var(--wl-text-card);
}

.wl-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Figma 32 (body -> buttons) */
  margin-top: 27px;
}

.wl-note {
  font-size: 12px;
  line-height: 15.6px;
}

.wl-note--hero {
  color: var(--wl-text-2);
  /* Figma 24 (button -> note, Label SM 12/auto) */
  margin-top: 20.5px;
}

.wl-lead + .wl-note--hero {
  margin-top: 16px;
}

.wl-note a,
.wl-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wl-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  border-radius: 2px;
}

.wl-nojs {
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.wl-notice {
  margin-top: 20px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(217, 45, 32, 0.08);
  color: var(--wl-error);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* ----- Buttons ----- */

.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-family: var(--wl-font);
  font-weight: 500;
  font-size: var(--wl-btn-size);
  line-height: 1.3;
  letter-spacing: var(--wl-btn-ls);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.wl-btn:hover {
  opacity: 0.9;
}

.wl-btn:active {
  transform: scaleY(0.97);
}

.wl-btn[disabled],
.wl-btn[aria-busy='true'] {
  opacity: 0.6;
  cursor: progress;
}

/* Primary on the photo is white (desktop, tablet); in the mobile sheet it is black. */
.wl-btn--hero,
.wl-btn--primary {
  background: var(--wl-black);
  color: var(--wl-white);
}

.wl-btn--secondary {
  background: transparent;
  color: var(--wl-black);
  box-shadow: inset 0 0 0 1px var(--wl-black);
}

/* ----- Status cards (check your mail, confirmed, confirm link) ----- */

.wl-card {
  align-items: center;
}

.wl-card__icon {
  width: 48px;
  height: 48px;
  flex: none;
  /* Mobile: Figma 24 from the icon to the title (title 24/32 trims 7.5). */
  margin-bottom: 16.5px;
}

.wl-card__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wl-card__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--wl-black);
}

.wl-position {
  display: block;
  /* Figma 44 Bold, lh 32; a 40 px line box keeps the digits inside it. 24 gap -> 12. */
  margin-top: 12px;
  font-size: 44px;
  line-height: 40px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wl-position:empty {
  display: none;
}

.wl-card__body {
  /* Figma 24 (title -> body) */
  margin-top: 11.5px;
  font-size: 14px;
  line-height: 20px;
  color: var(--wl-text-card);
  overflow-wrap: anywhere;
}

.wl-position + .wl-card__body,
.wl-card__title:has(.wl-position:not(:empty)) + .wl-card__body {
  margin-top: 14.5px;
}

.wl-card__body p + p {
  /* The blank line of the Figma text ("\n\n"). */
  margin-top: 20px;
}

.wl-email {
  overflow-wrap: anywhere;
}

.wl-card .wl-btn--secondary {
  width: 100%;
  /* Mobile: container gap 32 (body -> button) */
  margin-top: 27px;
}

.wl-card__status {
  width: 100%;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--wl-text-card);
}

.wl-card__status p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
}

.wl-card .wl-btn--primary {
  width: 100%;
  margin-top: 24px;
}

.wl-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--wl-border);
  border-top-color: var(--wl-black);
  border-radius: 50%;
  animation: wl-spin 0.8s linear infinite;
}

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

.wl-turnstile:empty {
  display: none;
}

.wl-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* ----- Tablet and desktop: the rounded hero card with the text column on the left ----- */

@media (min-width: 744px) {
  .wl-hero {
    padding: var(--wl-margin);
  }

  .wl-hero__card {
    /* The brief: the card fills the viewport minus the header and the margins. */
    min-height: 0;
    height: calc(100vh - var(--wl-header-h) - 2 * var(--wl-margin));
    height: calc(100svh - var(--wl-header-h) - 2 * var(--wl-margin));
    min-height: 600px;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 16px;
    justify-content: center;
    background: #e8102e;
    container-type: size;
  }

  .wl-hero__scrim,
  .wl-hero__logo {
    display: none;
  }

  /* Tablet crop (Figma transform): the image is 258.68% of the card's width, crop centre 38.7% / 57.2%. */
  .wl-hero__img {
    object-position: 38.7% 57.2%;
  }

  @supports (width: 1cqw) {
    .wl-hero__img {
      --wl-img-w: max(258.68cqw, 221.46cqh);
      --wl-img-h: calc(var(--wl-img-w) / 1.40659);
      inset: auto;
      width: var(--wl-img-w);
      height: var(--wl-img-h);
      left: clamp(calc(100cqw - var(--wl-img-w)), calc(50cqw - 0.387 * var(--wl-img-w)), 0px);
      top: clamp(calc(100cqh - var(--wl-img-h)), calc(50cqh - 0.572 * var(--wl-img-h)), 0px);
      object-fit: fill;
    }
  }

  .wl-hero__col {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
  }

  .wl-screen {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: left;
    align-items: flex-start;
  }

  .wl-screen--landing {
    color: var(--wl-white);
  }

  .wl-title {
    font-size: 44px;
    line-height: 54px;
    color: var(--wl-white);
  }

  .wl-br {
    display: inline;
  }

  .wl-copy-group {
    /* Figma 48 (title 44/54 -> copy 16/26) */
    margin-top: 29.3px;
  }

  .wl-lead {
    font-size: 16px;
    line-height: 26px;
    color: var(--wl-white);
  }

  .wl-cta {
    align-items: flex-start;
    /* Figma 32 (copy -> button) */
    margin-top: 24.7px;
  }

  .wl-note {
    font-size: 12px;
    line-height: 18px;
  }

  .wl-note--hero {
    color: var(--wl-white);
    /* Figma 12 (button -> note 12/18) */
    margin-top: 7.3px;
  }

  .wl-lead + .wl-note--hero {
    margin-top: 24.7px;
  }

  .wl-btn--hero {
    background: var(--wl-white);
    color: var(--wl-black);
  }

  .wl-nojs {
    color: var(--wl-white);
  }

  .wl-notice {
    background: var(--wl-white);
    color: var(--wl-error);
    text-align: left;
  }

  /* White status card: radius 24, padding 32/20, icon -> text 48, text group padding 0 24. */
  .wl-card {
    width: 100%;
    max-width: 416px;
    background: var(--wl-white);
    border-radius: 24px;
    padding: 32px 20px 27px;
    text-align: center;
    align-items: center;
  }

  .wl-card:has(.wl-btn:not([hidden])) {
    padding-bottom: 32px;
  }

  .wl-card__icon {
    /* Figma 48 (icon -> title 24/32) */
    margin-bottom: 40.5px;
  }

  .wl-card__text {
    padding: 0 24px;
  }

  .wl-card .wl-btn--secondary {
    /* Figma 24 (body -> button) */
    margin-top: 19px;
  }
}

/* ----- Desktop (fluid from 1024, capped at the 1440 frame's measures) ----- */

@media (min-width: 1024px) {
  /* Desktop crop (Figma transform): the image is 172.12% of the card's width, crop centre 38.1% / 55.3%. */
  .wl-hero__img {
    object-position: 38.1% 55.3%;
  }

  @supports (width: 1cqw) {
    .wl-hero__img {
      --wl-img-w: max(172.12cqw, 140.66cqh);
      left: clamp(calc(100cqw - var(--wl-img-w)), calc(50cqw - 0.381 * var(--wl-img-w)), 0px);
      top: clamp(calc(100cqh - var(--wl-img-h)), calc(50cqh - 0.553 * var(--wl-img-h)), 0px);
    }
  }

  .wl-hero__col {
    /* Figma padding 48 / 64 / 48 / 112 at 1440. */
    padding: 48px clamp(32px, 4.444vw, 64px) 48px clamp(48px, 7.778vw, 112px);
  }

  .wl-title {
    font-size: clamp(48px, 4.444vw, 64px);
    line-height: 1.3125;
  }

  .wl-copy-group {
    /* Figma 48 (title 64/84 -> copy 20/29) */
    margin-top: 21.3px;
    max-width: 480px;
  }

  .wl-lead {
    max-width: 402px;
    font-size: clamp(18px, 1.389vw, 20px);
    line-height: 1.45;
  }

  .wl-cta {
    /* Figma 32 (copy -> button) */
    margin-top: 24.6px;
  }

  .wl-card {
    width: min(416px, 100%);
  }

  .wl-card__title {
    font-size: 28px;
    line-height: 36px;
  }

  .wl-card__icon {
    /* Figma 48 (icon -> title 28/36) */
    margin-bottom: 40px;
  }

  .wl-card__body {
    /* Figma 24 (title 28/36 -> body) */
    margin-top: 11px;
  }

  .wl-position {
    /* Figma 64 Bold; 56 px line box. 24 gap -> 10.7. */
    margin-top: 10.7px;
    font-size: 64px;
    line-height: 56px;
  }

  .wl-card__title:has(.wl-position:not(:empty)) + .wl-card__body {
    margin-top: 13.7px;
  }
}

/* ----- Footer ----- */

.wl-footer {
  background: var(--wl-footer-bg);
  color: var(--wl-footer-link);
}

.wl-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  max-width: 1728px;
  margin: 0 auto;
}

.wl-footer__links {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 0 12px;
}

.wl-footer__link {
  display: inline-block;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--wl-footer-link);
  font-family: var(--wl-font);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  border-radius: 2px;
}

.wl-footer__link:hover {
  color: var(--wl-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The symbol links home; the link is the flex item, so it carries the order. */
.wl-footer__home {
  order: 1;
  display: block;
  line-height: 0;
  border-radius: 4px;
}

.wl-footer__home:focus-visible {
  outline: 2px solid var(--wl-white);
  outline-offset: 4px;
}

.wl-footer__symbol {
  width: 23px;
  height: 23px;
}

.wl-footer__socials {
  order: 3;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wl-footer__social {
  display: block;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.wl-footer__social:hover {
  opacity: 0.75;
}

.wl-footer__social img {
  width: 20px;
  height: 20px;
}

@media (min-width: 744px) {
  .wl-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 48px 24px;
  }

  .wl-footer__links {
    order: 0;
    justify-content: flex-start;
    gap: 0 32px;
    padding: 0;
  }

  .wl-footer__link {
    padding: 4px 0;
  }

  .wl-footer__home {
    order: 0;
  }

  .wl-footer__symbol {
    width: 24px;
    height: 24px;
  }

  .wl-footer__socials {
    order: 0;
    justify-self: end;
    gap: 20px;
  }
}

@media (min-width: 744px) and (max-width: 1023.98px) {
  .wl-footer__links {
    gap: 0 24px;
  }
}

@media (min-width: 1024px) {
  .wl-footer__inner {
    padding: 48px 64px;
  }
}

/* ----- Modal (desktop/tablet: 416 dialog; mobile: #F5F4F4 bottom sheet) ----- */

.wl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wl-modal__backdrop {
  position: fixed;
  inset: 0;
  background: var(--wl-overlay);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
}

.wl-modal__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}

.wl-modal__close-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px;
}

.wl-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 48px;
  background: var(--wl-white);
}

.wl-close img {
  width: 24px;
  height: 24px;
}

.wl-modal__dialog {
  background: var(--wl-bg);
  border-radius: 24px 24px 0 0;
  /* Figma: padding-top 32 (title 24/32 trims 7.5), container 0 16 24, bottom 80 (Safari mock). */
  padding: 24.5px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.wl-modal__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
}

.wl-form {
  display: flex;
  flex-direction: column;
}

.wl-fields {
  display: flex;
  flex-direction: column;
  /* Figma 32 between fields; the 20 px label sits inside it. */
  gap: 12px;
  /* Mobile: title -> first field 24 + 24 (Body padding), minus the trim and the label. */
  margin-top: 20.5px;
}

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

.wl-field__label {
  display: block;
  padding-bottom: 2px;
  font-size: 12px;
  line-height: 18px;
  color: var(--wl-text-2);
}

.wl-field__input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--wl-border);
  border-radius: 8px;
  background: var(--wl-white);
  color: var(--wl-black);
  font-size: 16px;
  line-height: 20px;
  appearance: none;
  -webkit-appearance: none;
}

.wl-field__input::placeholder {
  color: var(--wl-placeholder);
  opacity: 1;
}

.wl-field__input:focus {
  outline: 2px solid var(--wl-focus);
  outline-offset: -1px;
}

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

.wl-field__input--code {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wl-field__input--code::placeholder {
  letter-spacing: 1px;
}

.wl-field__error,
.wl-form__status {
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--wl-error);
}

.wl-form__status {
  margin: 0 0 12px;
  text-align: center;
}

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

.wl-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Mobile: fields -> button 48. */
  margin-top: 48px;
}

.wl-actions .wl-turnstile {
  margin: 0 0 16px;
}

.wl-actions .wl-btn {
  width: 100%;
}

.wl-note--muted {
  color: var(--wl-text-2);
  text-align: center;
  /* Mobile: Figma 24 (button -> note 12/auto) */
  margin-top: 20.5px;
}

@media (min-width: 744px) {
  .wl-modal {
    justify-content: center;
    align-items: center;
    padding: 24px;
  }

  .wl-modal__wrap {
    width: 416px;
    max-width: 100%;
    margin: auto;
    padding-top: 0;
    gap: 16px;
  }

  .wl-modal__dialog {
    background: var(--wl-white);
    border-radius: 24px;
    /* Figma: padding 0 24 24, content padding 32 top (title 28/36 trims 8). */
    padding: 24px 24px 19.3px;
  }

  .wl-modal__title {
    font-size: 28px;
    line-height: 36px;
  }

  .wl-fields {
    /* Figma 48 (title -> first field), minus the trim and the 20 px label. */
    margin-top: 20px;
  }

  .wl-field__input {
    padding: 0 8px;
    font-size: 14px;
  }

  .wl-actions {
    /* Figma: content padding-bottom 32 (fields -> button). */
    margin-top: 32px;
  }

  .wl-modal .wl-btn {
    font-size: 16px;
    letter-spacing: 1.92px;
  }

  .wl-note--muted {
    /* Figma 12 (button -> note 12/18) */
    margin-top: 7.3px;
  }
}

/* Entrance: the sheet slides up on mobile, the dialog lifts in on larger screens. */
.wl-modal.is-open .wl-modal__backdrop {
  animation: wl-fade 0.25s ease both;
}

.wl-modal.is-open .wl-modal__wrap {
  animation: wl-sheet 0.35s var(--wl-ease) both;
}

@media (min-width: 744px) {
  .wl-modal.is-open .wl-modal__wrap {
    animation-name: wl-lift;
  }
}

.wl-screen.is-entering {
  animation: wl-fade 0.3s ease both;
}

@keyframes wl-fade {
  from {
    opacity: 0;
  }
}

@keyframes wl-sheet {
  from {
    transform: translateY(100%);
  }
}

@keyframes wl-lift {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

/* ----- Legal chrome ----- */

.wl--legal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.wl--legal .wl-main {
  flex: 1 0 auto;
}

.wl-legal {
  padding: 40px 16px 64px;
}

.wl-legal__article {
  max-width: 720px;
  margin: 0 auto;
}

.wl-legal__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  margin-bottom: 24px;
}

.wl-legal__content {
  font-size: 16px;
  line-height: 26px;
  color: var(--wl-text-card);
  overflow-wrap: break-word;
}

.wl-legal__content > * + * {
  margin-top: 16px;
}

.wl-legal__content h1,
.wl-legal__content h2,
.wl-legal__content h3,
.wl-legal__content h4 {
  margin: 32px 0 8px;
  font-weight: 700;
  color: var(--wl-black);
}

.wl-legal__content h1 {
  font-size: 28px;
  line-height: 36px;
}

.wl-legal__content h2 {
  font-size: 22px;
  line-height: 30px;
}

.wl-legal__content h3,
.wl-legal__content h4 {
  font-size: 18px;
  line-height: 26px;
}

.wl-legal__content p,
.wl-legal__content ul,
.wl-legal__content ol {
  margin: 0;
}

.wl-legal__content * + p,
.wl-legal__content * + ul,
.wl-legal__content * + ol {
  margin-top: 16px;
}

.wl-legal__content a {
  color: var(--wl-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wl-legal__content img {
  height: auto;
}

.wl-legal__content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wl-legal__content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--wl-black);
  color: var(--wl-white);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  text-decoration: none;
}

@media (min-width: 744px) {
  .wl-legal {
    padding: 64px 24px 96px;
  }

  .wl-legal__title {
    font-size: 44px;
    line-height: 54px;
    margin-bottom: 32px;
  }
}

/* ----- Motion ----- */

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

  .wl-spinner {
    display: none;
  }
}
