/* Start-screen waitlist dialog: a quiet bottom sheet on phones, centered card on wider screens. */
html.waitlist-open, html.waitlist-open body, html.waitlist-open .start-experience { overflow: hidden; }

.waitlist-dialog {
  --onb-ink: #11100f;
  --waitlist-ease: cubic-bezier(.22, 1, .36, 1);
  --waitlist-line: #e4dbd2;
  --waitlist-muted: #6f6258;
  --waitlist-error: #b3284d;
  position: fixed;
  inset: auto 0 var(--waitlist-keyboard, 0px) 0;
  width: 100%;
  max-width: 100%;
  max-height: calc(var(--waitlist-viewport, 100dvh) - max(12px, env(safe-area-inset-top)));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: #fff;
  color: #11100f;
  box-shadow: 0 -18px 60px rgba(35, 25, 20, .16);
  overflow: hidden;
  font-family: var(--sans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
.waitlist-dialog[open] { display: flex; animation: waitlist-sheet-in 460ms var(--waitlist-ease) both; }
.waitlist-dialog::backdrop { background: rgba(17, 16, 15, .34); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.waitlist-dialog[open]::backdrop { animation: waitlist-fade-in 320ms ease both; }

.waitlist-sheet {
  position: relative;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 24px max(22px, calc(env(safe-area-inset-bottom) + 14px));
}
.waitlist-sheet::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; border-radius: 4px; background: #e8e0d8; transform: translateX(-50%); }

.waitlist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6f6258;
  cursor: pointer;
}
.waitlist-close svg { width: 22px; height: 22px; }
.waitlist-close:hover { background: #f6f1ec; color: #11100f; }

.waitlist-panel[hidden] { display: none; }
.waitlist-eyebrow { margin: 4px 0 10px; color: #e93e6b; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.waitlist-title {
  margin: 0 48px 10px 0;
  font-family: var(--serif, Didot, "Bodoni MT", "Times New Roman", serif);
  font-size: clamp(30px, 8.6vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.waitlist-title:focus { outline: none; }
.waitlist-title:focus-visible { outline: 2px solid rgba(233, 62, 107, .5); outline-offset: 4px; border-radius: 4px; }
.waitlist-pink { color: #e93e6b; }
.waitlist-intro { margin: 0 0 22px; color: var(--waitlist-muted); font-size: 15px; line-height: 1.5; }

.waitlist-form { display: grid; gap: 16px; }
.waitlist-field { display: grid; gap: 7px; }
.waitlist-field > label { color: #11100f; font-size: 13px; font-weight: 650; }
.waitlist-field input,
.waitlist-country {
  min-height: 54px;
  border: 1px solid var(--waitlist-line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.waitlist-field input {
  width: 100%;
  min-width: 0;
  padding: 0 15px;
  color: #11100f;
  font: inherit;
  font-size: 16px; /* Prevents iOS focus zoom. */
}
.waitlist-field input:focus, .waitlist-country:focus-within { border-color: #11100f; outline: none; box-shadow: 0 0 0 3px rgba(233, 62, 107, .16); }
.waitlist-field input[aria-invalid="true"] { border-color: var(--waitlist-error); }
.waitlist-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 40, 77, .14); }

.waitlist-phone-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.waitlist-country { position: relative; display: flex; align-items: center; min-width: 92px; }
.waitlist-country-display { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; color: #11100f; font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.waitlist-country-display svg { width: 16px; height: 16px; color: #97887b; }
.waitlist-country select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.waitlist-country.is-overridden .waitlist-country-display { color: #b5a99e; }

.waitlist-hint { margin: 0; color: #8b7f75; font-size: 12.5px; line-height: 1.45; }
.waitlist-field-error, .waitlist-form-error { margin: 0; color: var(--waitlist-error); font-size: 13px; line-height: 1.45; }
.waitlist-field-error[hidden], .waitlist-form-error[hidden] { display: none; }
.waitlist-form-error { padding: 11px 13px; border-radius: 11px; background: #fdf0f3; }

.waitlist-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.waitlist-submit { position: relative; min-height: 56px; margin-top: 4px; }
.waitlist-submit:focus-visible, .waitlist-done:focus-visible, .waitlist-close:focus-visible { outline: 2px solid #e93e6b; outline-offset: 3px; }
.waitlist-submit:disabled { opacity: .78; cursor: progress; }
.waitlist-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: waitlist-spin 800ms linear infinite; }
.waitlist-submit.is-pending .waitlist-spinner { display: inline-block; }
.waitlist-disclosure { margin: -2px 0 0; color: #8b7f75; font-size: 12.5px; line-height: 1.5; text-align: center; }

.waitlist-success { padding-top: 10px; text-align: center; }
.waitlist-success .waitlist-title { margin: 0 0 10px; }
.waitlist-success .waitlist-intro { margin: 0 auto 26px; max-width: 32ch; }
.waitlist-success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 6px auto 18px; border-radius: 50%; background: #fbe6eb; color: #e93e6b; }
.waitlist-success-mark svg { width: 28px; height: 28px; }
.waitlist-success:not([hidden]) { animation: waitlist-fade-up 420ms var(--waitlist-ease) both; }

@media (min-width: 600px) and (min-height: 560px) {
  .waitlist-dialog {
    inset: 0;
    width: min(440px, calc(100% - 48px));
    height: fit-content;
    max-height: calc(100dvh - 48px);
    margin: auto;
    border-radius: 26px;
    box-shadow: 0 28px 90px rgba(35, 25, 20, .24);
  }
  .waitlist-sheet { padding: 36px 34px 30px; }
  .waitlist-sheet::before { display: none; }
  .waitlist-dialog[open] { animation-name: waitlist-card-in; }
}
@media (max-width: 359px) {
  .waitlist-sheet { padding-right: 18px; padding-left: 18px; }
  .waitlist-country { min-width: 84px; }
  .waitlist-country-display { padding: 0 8px 0 11px; font-size: 14px; }
}
@media (max-height: 560px) {
  .waitlist-sheet { padding-top: 22px; }
  .waitlist-intro { margin-bottom: 14px; }
  .waitlist-form { gap: 12px; }
}

@keyframes waitlist-sheet-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes waitlist-card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes waitlist-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes waitlist-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes waitlist-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .waitlist-dialog[open], .waitlist-dialog[open]::backdrop, .waitlist-success:not([hidden]) { animation: none; }
  .waitlist-field input, .waitlist-country { transition: none; }
  .waitlist-spinner { animation-duration: 2400ms; }
}
.waitlist-dialog.is-reduced-motion[open], .waitlist-dialog.is-reduced-motion[open]::backdrop { animation: none; }
