:root {
  --paper: #f7f4eb;
  --paper-highlight: #fffdf8;
  --ink: #132126;
  --petrol: #123f47;
  --cyan: #62c9df;
  --muted: #59696d;
  --line: rgba(18, 33, 38, 0.18);
  --focus: rgba(98, 201, 223, 0.34);
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

.brand-link {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(32px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(30px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}

.waitlist-content {
  width: min(100%, 860px);
  text-align: center;
}

.brand-logo {
  display: block;
  width: clamp(150px, 14vw, 184px);
  height: auto;
  margin: 0 auto clamp(34px, 5.8vh, 58px);
}

.waitlist-title {
  max-width: 860px;
  margin: 0 auto;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino,
    "Times New Roman", serif;
  font-size: clamp(5.25rem, 9.5vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -0.066em;
  line-height: 0.81;
  text-wrap: balance;
}

.title-lead,
.waitlist-title em {
  display: block;
}

.title-lead {
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 0.39em;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.waitlist-title em {
  position: relative;
  isolation: isolate;
  width: max-content;
  max-width: 100%;
  margin: 0.075em auto 0;
  color: var(--petrol);
  font-style: italic;
  font-weight: 400;
  line-height: 0.88;
}

.waitlist-title em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.035em;
  bottom: -0.012em;
  left: 0.005em;
  height: 0.072em;
  border-radius: 72% 22% 78% 28%;
  background: var(--cyan);
  clip-path: polygon(
    0 46%,
    7% 29%,
    18% 39%,
    31% 20%,
    46% 34%,
    60% 21%,
    73% 35%,
    87% 17%,
    100% 43%,
    98% 78%,
    84% 66%,
    70% 84%,
    55% 68%,
    40% 88%,
    23% 70%,
    8% 83%,
    1% 67%
  );
  transform: rotate(-1deg);
}

.waitlist-description {
  max-width: 690px;
  margin: clamp(26px, 3.7vh, 36px) auto clamp(28px, 4.2vh, 40px);
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.62;
  text-wrap: balance;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(206px, 232px);
  gap: 12px;
  width: min(100%, 700px);
  margin: 0 auto;
}

.waitlist-form input,
.waitlist-form button {
  min-height: 60px;
  border-radius: 12px;
}

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-form input {
  min-width: 0;
  padding: 0 21px;
  color: var(--ink);
  background: var(--paper-highlight);
  border: 1px solid var(--line);
  outline: none;
  caret-color: var(--petrol);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.waitlist-form input::placeholder {
  color: #69777a;
  opacity: 0.75;
}

.waitlist-form input:hover {
  border-color: rgba(18, 63, 71, 0.34);
}

.waitlist-form input:focus-visible {
  background: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--focus);
}

.waitlist-form input[aria-invalid="true"] {
  border-color: #a34437;
  box-shadow: 0 0 0 4px rgba(163, 68, 55, 0.14);
}

.waitlist-form button {
  padding: 0 24px;
  color: #f5f0e6;
  background: var(--petrol);
  border: 0;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.waitlist-form button:hover {
  background: #0d343b;
  transform: translateY(-1px);
}

.waitlist-form button:active {
  transform: translateY(0);
}

.waitlist-form button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 7px var(--cyan);
}

.privacy-note,
.form-status {
  width: min(100%, 700px);
  margin: 13px auto 0;
  font-size: 0.79rem;
  line-height: 1.5;
}

.privacy-note {
  color: #5f6f73;
}

.form-status {
  min-height: 1.5em;
  color: var(--petrol);
  font-weight: 700;
}

.form-status:empty {
  min-height: 0;
  margin-top: 0;
}

.thank-you-page {
  min-height: 100svh;
  padding:
    max(40px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(56px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}

.thank-you-content {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.thank-you-content .brand-logo {
  margin-bottom: clamp(38px, 6vh, 64px);
}

.thank-you-kicker {
  margin: 0 0 12px;
  color: var(--petrol);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thank-you-title {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--petrol);
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino,
    "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.thank-you-description {
  max-width: 610px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.62;
  text-wrap: balance;
}

.survey-card {
  width: min(100%, 640px);
  min-height: 260px;
  margin: 32px auto 0;
  padding: clamp(22px, 4vw, 36px);
  text-align: left;
  background: var(--paper-highlight);
  border: 1px solid var(--line);
  border-top: 5px solid var(--cyan);
  border-radius: 18px;
  box-shadow: 0 24px 70px -48px rgba(18, 33, 38, 0.5);
}

.rm-area-quick-start-survey {
  min-height: 180px;
}

.rm-area-quick-start-survey:empty::before {
  content: "Loading Maya’s questions…";
  display: block;
  padding: 54px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.survey-note {
  margin: 14px 0 0;
  color: #5f6f73;
  font-size: 0.79rem;
}

.purchase-confirmation-page {
  display: grid;
  place-items: center;
  padding-top: max(clamp(22px, 4vh, 36px), env(safe-area-inset-top));
  padding-bottom: max(clamp(22px, 4vh, 36px), env(safe-area-inset-bottom));
}

.confirmation-content {
  width: min(100%, 760px);
}

.confirmation-content .brand-logo {
  width: clamp(120px, 11vw, 152px);
  margin-bottom: clamp(20px, 3.2vh, 30px);
}

.confirmation-title {
  max-width: 680px;
  margin: 0 auto clamp(14px, 2.2vh, 20px);
  color: var(--petrol);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(3.7rem, 6.2vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}

.confirmation-title-accent {
  position: relative;
  isolation: isolate;
  display: inline-block;
}

.confirmation-title-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.13em;
  left: -0.025em;
  height: 0.26em;
  background: center / 100% 100% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C18 5 31 13 46 10.5 C63 7.5 78 12.5 98 9.5' fill='none' stroke='%2362c9df' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E");
}

.confirmation-description {
  max-width: 610px;
  margin: 0 auto clamp(18px, 2.8vh, 26px);
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.52;
  text-wrap: balance;
}

.confirmation-video {
  width: min(100%, 620px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 60px -40px rgba(18, 33, 38, 0.52);
}

.confirmation-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--paper);
  border-radius: 16px;
}

.confirmation-next-step {
  width: min(100%, 620px);
  margin: clamp(12px, 2vh, 18px) auto 0;
  padding: 13px 18px;
  color: var(--petrol);
  background: rgba(98, 201, 223, 0.14);
  border-left: 4px solid var(--cyan);
  border-radius: 10px;
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .waitlist-page {
    align-items: center;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }

  .brand-logo {
    width: 142px;
    margin-bottom: clamp(28px, 5vh, 38px);
  }

  .waitlist-title {
    font-size: clamp(3.8rem, 18vw, 5rem);
    line-height: 0.83;
  }

  .title-lead {
    font-size: 0.38em;
    line-height: 1.04;
  }

  .waitlist-description {
    max-width: 34rem;
    margin-top: 24px;
    margin-bottom: 27px;
    font-size: 1rem;
    line-height: 1.53;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .waitlist-form input,
  .waitlist-form button {
    min-height: 56px;
  }

  .waitlist-form input {
    padding-right: 18px;
    padding-left: 18px;
    text-align: center;
  }

  .thank-you-page {
    padding-top: max(32px, env(safe-area-inset-top));
  }

  .thank-you-title {
    font-size: clamp(3.2rem, 15vw, 4.7rem);
  }

  .survey-card {
    margin-top: 26px;
    padding: 20px 17px;
    border-radius: 14px;
  }

  .purchase-confirmation-page {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .confirmation-content .brand-logo {
    width: 122px;
    margin-bottom: 18px;
  }

  .confirmation-title {
    margin-bottom: 14px;
    font-size: clamp(3.15rem, 15vw, 4rem);
  }

  .confirmation-description {
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .confirmation-video {
    border-radius: 13px;
  }

  .confirmation-video video {
    border-radius: 13px;
  }

  .confirmation-next-step {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
  }
}

@media (max-width: 390px) {
  .waitlist-title {
    font-size: clamp(3.4rem, 17.5vw, 4.1rem);
  }

  .waitlist-description {
    font-size: 0.94rem;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .waitlist-page {
    align-items: start;
    overflow-y: auto;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .brand-logo {
    margin-bottom: 26px;
  }

  .waitlist-title {
    font-size: clamp(4.9rem, 8.5vw, 7.3rem);
  }

  .waitlist-description {
    margin-top: 20px;
    margin-bottom: 24px;
  }

  .purchase-confirmation-page {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .confirmation-content .brand-logo {
    width: 116px;
    margin-bottom: 14px;
  }

  .confirmation-title {
    margin-bottom: 11px;
    font-size: 4rem;
  }

  .confirmation-description {
    margin-bottom: 13px;
    font-size: 0.94rem;
  }

  .confirmation-video {
    width: min(100%, clamp(340px, calc((100svh - 280px) * 1.5), 520px));
    border-radius: 13px;
  }

  .confirmation-video video {
    border-radius: 13px;
  }

  .confirmation-next-step {
    width: min(100%, 520px);
    margin-top: 9px;
    padding: 9px 14px;
    font-size: 0.84rem;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .waitlist-page {
    align-items: start;
  }
}

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

@media (forced-colors: active) {
  .waitlist-title em::after,
  .confirmation-title-accent::after {
    display: none;
  }

  .waitlist-form input,
  .waitlist-form button {
    border: 1px solid ButtonText;
  }
}
