/* ============================================================================
   THE WAITLIST — lovesunday.media/waitlist
   landing/waitlist/waitlist.css

   Built on the shared brand, unchanged: love-sunday.css supplies the tokens,
   the light across the scroll, the type, the mark, the frames, the buttons
   and the reduced-motion settle. This file holds only what this page adds:
   the form hung on the line, the four prints, the nonprofit seal.

   NO NEW COLOURS AND NO NEW SURFACES. Every piece of type below sits on
   --paper, --mat or --blush, in --ink, --ink-soft, --red-ink or display-sized
   --red, and every one of those pairings is measured in love-sunday.css
   section 2 at every stop of the day. Restated here, because a pairing a
   file uses is a pairing it answers for:
   ------------------------------------------------------------------------ */
/* pair: --ink on --paper */
/* pair: --ink-soft on --paper */
/* pair: --red-ink on --paper */
/* pair: --red on --paper @ 3 */
/* pair: --ink on --mat */
/* pair: --ink-soft on --mat */
/* pair: --red-ink on --mat */
/* pair: --red on --mat @ 3 */
/* pair: --ink on --blush */
/* pair: --ink-soft on --blush */
/* pair: --mat on --red @ 3 */

/* the peg's wood and spring, as the line on the home page has them */
.waitlist-page {
  --peg-1:  #C9A57A;
  --peg-2:  #8F6B45;
  --peg-3:  #D8B78C;
  --spring: #8C8C8C;
}
/* Keep the roaming sun's halo from widening the page. */
html { overflow-x: clip; }
.waitlist-page [hidden] { display: none !important; }
.waitlist-page :is(h2, h3) em { font-weight: 400; color: var(--red-ink); }
.waitlist-page .btn { max-width: 100%; white-space: normal; }

/* ---------------------------------------------------------------- HERO --- */
.wl-hero.hero { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(3.5rem, 8vw, 6.5rem); }
.wl-hero__grid { display: grid; gap: clamp(2.25rem, 5vw, 4rem); align-items: start; }
.wl-hero__copy { min-width: 0; }
.wl-sun { line-height: 0; margin-block-end: var(--space-4); }
.wl-sun .mark--sun { --mark-size: clamp(4rem, 12vw, 6.5rem); }

/* the studio's answer to the headline: bright red, so display size only.
   Its floor is 28px, above the 24px large-text rule for --red on --paper. */
.wl-reply {
  margin-block-start: .5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  color: var(--red);
}
.wl-hero .lede { max-width: 32ch; }

/* who reads it: a face, not a logo */
.wl-sign { display: flex; align-items: center; gap: var(--space-4); max-width: 29rem; margin-block-start: var(--space-6); }
.wl-sign__face {
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 0 3px var(--mat), var(--shadow-sm);
}
/* Her face and camera sit at 49% / 51% of the portrait; cover-cropped there
   and drawn at 2.2x, the circle holds the face rather than the pink wall. */
.wl-sign__face > img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 51%; scale: 2.2; }
.wl-sign p { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }
.wl-sign strong { color: var(--ink); }

@media (min-width: 60rem) {
  .wl-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); gap: clamp(3rem, 6vw, 6.5rem); }
  /* the promise stays in view while the form is filled in beside it */
  .wl-hero__copy { position: sticky; top: var(--space-5); padding-block-start: var(--space-6); }
}

/* ------------------------------------------------ THE FORM, ON THE LINE --- */
.wl-hang { position: relative; min-width: 0; padding-block-start: 2.25rem; scroll-margin-top: var(--space-3); }
/* the wire the card hangs from, fading at both ends into the page */
.wl-hang::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1rem auto;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.wl-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.15rem, 3.5vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: 4px;
  background: var(--mat);
  color: var(--ink);
  box-shadow: var(--shadow-lg), var(--shadow-contact);
  transform-origin: 50% -1.5rem;               /* the peg */
}
.wl-card > .peg { top: -1.65rem; pointer-events: none; }

.wl-form { display: grid; gap: 1.35rem; }
.wl-form__title { font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.25rem); }
.wl-form__title:focus { outline: none; }
.wl-form__hint { margin-block-start: -.75rem; color: var(--ink-soft); font-size: var(--text-sm); }

.wl-field { display: grid; gap: .45rem; min-width: 0; margin: 0; }
.wl-field > label,
.wl-choices > legend { color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.35; }
.wl-optional {
  margin-inline-start: .45em;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.wl-hint { margin-block-start: -.15rem; color: var(--ink-soft); font-size: var(--text-sm); }

/* The text fields are the field's own children; the checkboxes sit inside
   their labels, so they never take this shape. */
.wl-field > input,
.wl-field > textarea {
  width: 100%;
  min-height: var(--tap);
  margin: 0;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;                             /* 16px: iOS Safari zooms into anything smaller */
  line-height: 1.45;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.wl-field > textarea { min-height: 7.5rem; resize: vertical; }
.wl-field > input::placeholder,
.wl-field > textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.wl-field > input:hover,
.wl-field > textarea:hover { border-color: var(--ink-soft); }
.wl-field > input:focus,
.wl-field > textarea:focus { border-color: var(--red-ink); background: var(--mat); }
.wl-field > input:focus-visible,
.wl-field > textarea:focus-visible { outline-offset: 2px; }
.wl-field > [aria-invalid="true"] { border-color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-ink); }
.wl-choice > input[aria-invalid="true"] { border-color: var(--red-ink); border-width: 2px; }
.wl-error { color: var(--red-ink); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }

/* — the choices. Each is a real checkbox, restyled: an empty ring that, once
     ticked, comes on as the sun. The ring is --ink-soft on --mat (6.89:1)
     and the sun --red on --mat (3.87:1), both past the 3:1 floor for a
     control's state. — */
.wl-choices { display: grid; gap: .6rem; padding: 0; border: 0; }
.wl-choices > legend { padding: 0; margin-block-end: .65rem; }
.wl-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  min-height: var(--tap);
  padding: .85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--mat);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.wl-choice > input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.wl-choice > input::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--red);
  scale: 0;
  transition: scale var(--dur) cubic-bezier(0.3, 1.6, 0.5, 1);
}
@supports (mask: url("/img/mark.svg")) or (-webkit-mask: url("/img/mark.svg")) {
  .wl-choice > input::before {
    border-radius: 0;
    -webkit-mask: url("/img/mark.svg") center / contain no-repeat;
            mask: url("/img/mark.svg") center / contain no-repeat;
  }
}
.wl-choice > input:checked { border-color: transparent; background: transparent; }
.wl-choice > input:checked::before { scale: 1; }
.wl-choice > input:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }
.wl-choice__text { display: grid; gap: .1rem; min-width: 0; padding-block-start: .1rem; }
.wl-choice__name { font-weight: 600; line-height: 1.3; }
.wl-choice__note { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.4; }
.wl-choice:has(> input:checked) { border-color: var(--red-ink); background: var(--blush); }
.wl-choice--quiet { border-style: dashed; }
.wl-choice--nonprofit { margin-block-start: -.35rem; }
@media (hover: hover) and (pointer: fine) {
  .wl-choice:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-sm); }
  .wl-choice:hover > input:not(:checked) { border-color: var(--ink); }
}

.wl-pair { display: grid; gap: 1.35rem; }

/* the field a person never sees */
.wl-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.wl-submit { width: 100%; margin-block-start: .35rem; }
.wl-submit[disabled] { cursor: not-allowed; }
.wl-form[aria-busy="true"] .wl-submit { cursor: progress; }
.wl-form:not([aria-busy="true"]) .wl-submit[disabled] { opacity: .55; }  /* only before the script is there */
.wl-status { color: var(--ink); font-size: var(--text-sm); line-height: 1.5; }
.wl-status:empty { margin-block-start: -1.35rem; }                       /* no gap for an empty live region */
.wl-status.is-error { color: var(--red-ink); font-weight: 600; }
.wl-privacy, .wl-noscript { color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }
.wl-noscript { color: var(--ink); font-weight: 600; }

/* — what the card becomes: the sun answers, and winks — */
.wl-done { display: grid; justify-items: start; gap: var(--space-4); padding-block: .25rem; }
.wl-done:focus { outline: none; }
.wl-done__sun { --mark-size: clamp(3.75rem, 10vw, 4.75rem); color: var(--red); filter: drop-shadow(0 0 .9rem var(--glow)); }
.wl-done__title { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem); line-height: 1.04; }
.wl-done__body { max-width: 34ch; color: var(--ink-soft); }
.wl-done__body strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.wl-done__actions { margin-block-start: var(--space-2); gap: var(--space-3) var(--space-5); }
.wl-done__actions .link { display: inline-flex; align-items: center; min-height: var(--tap); }
#wl-face-wink .heart { transform-box: fill-box; transform-origin: center; }
body.wl-winking #wl-face-wink .heart { animation: ls-wink 560ms var(--ease-in-out) 1; }

@media (prefers-reduced-motion: no-preference) {
  /* the card arrives the way a print does when it is pinned: a small swing
     about the peg, settling square. The base state is the finished one. */
  @keyframes wl-pin {
    from { opacity: 0; translate: 0 -10px; rotate: -2.4deg; }
    55%  { opacity: 1; rotate: .9deg; }
    80%  { rotate: -.3deg; }
  }
  .wl-card { animation: wl-pin 1200ms var(--ease-out) 180ms both; }
  /* and when the details are in, the answer comes up like a print */
  @keyframes wl-develop { from { opacity: 0; filter: blur(10px) saturate(.4); translate: 0 6px; } }
  @keyframes wl-sun-on { from { scale: 0; rotate: -40deg; } 70% { scale: 1.12; } }
  .wl-done:not([hidden]) { animation: wl-develop 900ms var(--ease-out) both; }
  .wl-done:not([hidden]) .wl-done__sun { animation: wl-sun-on 720ms var(--ease-out) 120ms both; }
}

/* -------------------------------------------------------- FOUR WAYS IN --- */
.wl-ways .section__head { max-width: 44rem; }
.wl-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wl-print { position: relative; display: grid; align-content: start; gap: .5rem; min-width: 0; padding-block-start: 2.25rem; }
/* each print draws its own length of wire, half a gap past each side, so the
   lengths meet and the row reads as one line */
.wl-print::before {
  content: "";
  position: absolute;
  inset: 1.1rem -.5rem auto;
  height: 1.5px;
  background: var(--line-strong);
}
.wl-print > .peg { top: .45rem; pointer-events: none; }
.wl-print__frame { --ar: 4 / 5; --frame-max: none; --mat-w: 8px; width: 100%; transform-origin: 50% 0; }
.wl-print__n {
  margin-block-start: .85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red-ink);
}
.wl-print__name { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.18; overflow-wrap: break-word; }
.wl-print__note { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; max-width: 28ch; }
.wl-print__pick {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: var(--tap);
  color: var(--red-ink);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--red-ink) 40%, transparent);
  text-underline-offset: .22em;
}
.wl-print__pick:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (min-width: 56rem) {
  .wl-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 1.75rem; }
  .wl-print::before { inset-inline: -.875rem; }
  .wl-print__frame { --mat-w: 10px; }
  .wl-print__note { font-size: var(--text-base); }
}

/* ---------------------------------------------------------- NONPROFITS --- */
.wl-np {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  justify-items: start;
  padding: clamp(1.75rem, 5vw, 3.75rem);
  border-radius: var(--r-3);
  background: var(--mat);
  color: var(--ink);
  box-shadow: var(--shadow), var(--shadow-contact);
}
/* the seal: a stamp addressed TO nonprofits ("welcome"), never a claim that
   the studio is one. The number is display-sized bright red on the mat
   (26px and up, past the 24px floor); the small word is --red-ink. */
.wl-np__seal {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .35rem;
  width: clamp(9.5rem, 24vw, 13rem);
  aspect-ratio: 1;
  border: 2px solid var(--red);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px var(--mat), inset 0 0 0 7.5px var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1;
  rotate: -8deg;
}
.wl-np__seal small {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--red-ink);
}
.wl-np__copy { display: grid; gap: var(--space-4); max-width: 38rem; }
.wl-np__copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: var(--measure); }
.wl-np__copy h2 { max-width: 20ch; }
@media (min-width: 52rem) {
  .wl-np { grid-template-columns: auto minmax(0, 1fr); padding-inline: clamp(2.5rem, 5vw, 4.5rem); }
}

/* ---------------------------------------------------------- WHY A LIST --- */
.wl-why__grid { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.wl-why__print { position: relative; display: grid; justify-items: center; gap: var(--space-4); width: 100%; max-width: 15.5rem; margin-inline: auto; padding-block-start: 1.6rem; }
.wl-why__print::before {
  content: "";
  position: absolute;
  inset: .55rem -2.5rem auto;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
}
.wl-why__print > .peg { top: -.2rem; pointer-events: none; }
.wl-why__frame { --ar: 4 / 5; --frame-max: none; --mat-w: 10px; width: 100%; transform-origin: 50% 0; }
.wl-why__copy { display: grid; gap: var(--space-4); }
.wl-why__copy h2 { max-width: 17ch; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.04; }
.wl-why__copy .lede { max-width: var(--measure); }
@media (min-width: 56rem) {
  .wl-why__grid { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
  .wl-why__print { margin-inline: 0; }
}

/* --------------------------------------------------------------- PHONES --- */
@media (max-width: 37.99rem) {
  .wl-sign { margin-block-start: var(--space-5); }
  .wl-choice { padding: .8rem .85rem; gap: .75rem; }
  .wl-print__note { max-width: none; }
  .wl-np__seal { rotate: -6deg; }
}
