:root {
  --purple: #6f3fbe;
  --purple-dark: #5a2eaa;
  --purple-light: #8255cf;
  --green: #54bd56;
  --field: #eef2f5;
  --text: #181818;
  --muted: #6f7780;
  --white: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--purple);
  color: var(--white);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.landing {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 52%, rgba(154, 104, 229, 0.42), transparent 31rem),
    linear-gradient(135deg, #6635b8 0%, var(--purple) 54%, #7445c3 100%);
}

.screen {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(31rem, 1.02fr) minmax(31rem, 0.98fr);
  gap: clamp(1rem, 3vw, 4.5rem);
  align-items: center;
  width: min(100%, 90rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5.25rem) clamp(1.5rem, 5vw, 5rem);
}

.screen[hidden] {
  display: none;
}

.content-column,
.success-copy {
  position: relative;
  z-index: 2;
}

.headline {
  max-width: 45rem;
  margin: 0 0 clamp(1.5rem, 3.3vw, 3rem);
  font-size: clamp(2.3rem, 4.4vw, 4.65rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lead-form {
  width: min(100%, 30rem);
  padding: clamp(1.35rem, 2.3vw, 2rem);
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: 0 1.4rem 3.8rem rgba(34, 12, 69, 0.18);
}

.field {
  position: relative;
  margin-bottom: 1.15rem;
}

.field__icon {
  position: absolute;
  top: 0.92rem;
  left: 1rem;
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  color: #8a929a;
  pointer-events: none;
}

.field__icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.field input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  outline: 0;
  background: var(--field);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder {
  color: #7d858d;
  opacity: 1;
}

.field input:hover {
  background: #e8edf1;
}

.field input:focus {
  border-color: var(--purple-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(111, 63, 190, 0.15);
}

.field.has-error input {
  border-color: #d64051;
  background: #fff8f8;
}

.field__error {
  display: block;
  min-height: 0;
  margin: 0.32rem 0 0 0.25rem;
  color: #c52f43;
  font-size: 0.76rem;
  line-height: 1.25;
}

.field__error:empty {
  display: none;
}

.submit-button,
.dialog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #7141c1, #8253cf);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.submit-button:hover,
.dialog-button:hover {
  box-shadow: 0 0.65rem 1.25rem rgba(91, 47, 171, 0.25);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.submit-button:active,
.dialog-button:active {
  transform: translateY(0);
}

.consent {
  display: grid;
  grid-template-columns: 1rem 1fr;
  column-gap: 0.55rem;
  margin: 1rem 0 0;
  color: #66707a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.consent__checkbox {
  appearance: none;
  display: grid;
  width: 1rem;
  height: 1rem;
  margin: 0.05rem 0 0;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid #87909a;
  border-radius: 0.18rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.consent__checkbox::before {
  width: 0.55rem;
  height: 0.3rem;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  opacity: 0;
  transform: translateY(-0.06rem) rotate(-45deg) scale(0.6);
  transition: opacity 120ms ease, transform 120ms ease;
}

.consent__checkbox:checked {
  border-color: var(--purple);
  background: var(--purple);
}

.consent__checkbox:checked::before {
  opacity: 1;
  transform: translateY(-0.06rem) rotate(-45deg) scale(1);
}

.consent__checkbox:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(111, 63, 190, 0.2);
}

.consent.has-error .consent__checkbox {
  border-color: #d64051;
  box-shadow: 0 0 0 2px rgba(214, 64, 81, 0.11);
}

.consent__copy {
  margin: 0;
}

.consent__copy label {
  cursor: pointer;
}

.consent__error {
  grid-column: 2;
  display: block;
  margin-top: 0.28rem;
  color: #c52f43;
  font-size: 0.76rem;
}

.consent__error:empty {
  display: none;
}

.text-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.product-column {
  position: relative;
  z-index: 1;
  align-self: end;
  display: flex;
  min-width: 0;
  height: min(78svh, 52rem);
  align-items: flex-end;
  justify-content: center;
}

.product-column::after {
  position: absolute;
  right: 4%;
  bottom: 2%;
  left: 0;
  z-index: -1;
  height: 8%;
  border-radius: 50%;
  background: rgba(42, 17, 76, 0.32);
  filter: blur(1.4rem);
  content: "";
}

.glow {
  position: absolute;
  inset: 15% 4% 2% 6%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 86, 0.2), rgba(127, 217, 212, 0.1) 45%, transparent 72%);
  filter: blur(0.5rem);
}

.product-image {
  display: block;
  width: min(100%, 44rem);
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1.5rem 1.6rem rgba(28, 12, 55, 0.25));
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen--success {
  grid-template-columns: minmax(29rem, 0.9fr) minmax(34rem, 1.1fr);
}

.success-kicker {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.headline--success {
  margin-bottom: 2rem;
  font-size: clamp(2.45rem, 4.5vw, 4.65rem);
}

.schedule-card {
  width: min(100%, 34rem);
  padding: 1.4rem 1.55rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #58c35b, #49af4d);
  box-shadow: 0 1.1rem 2.8rem rgba(33, 67, 34, 0.18);
}

.schedule-card__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.schedule-card p {
  margin: 0;
}

.schedule-card span,
.schedule-card strong {
  display: block;
}

.schedule-card span {
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.schedule-card strong {
  font-size: 0.94rem;
}

.schedule-card__note {
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  line-height: 1.45;
}

.back-button {
  margin-top: 1.25rem;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.back-button:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.privacy-dialog {
  width: min(calc(100% - 2rem), 30rem);
  padding: 2.1rem;
  border: 0;
  border-radius: 1.2rem;
  color: var(--text);
  box-shadow: 0 2rem 6rem rgba(26, 11, 49, 0.4);
}

.privacy-dialog::backdrop {
  background: rgba(30, 13, 54, 0.68);
  backdrop-filter: blur(0.25rem);
}

.privacy-dialog h2 {
  margin: 1rem 0 0.8rem;
  font-size: 1.45rem;
}

.privacy-dialog p {
  margin: 0 0 1.4rem;
  color: #626a73;
  line-height: 1.55;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #7a8188;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(111, 63, 190, 0.12);
  color: var(--purple);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.dialog-button {
  width: auto;
  min-width: 9rem;
  padding: 0 1.4rem;
}

.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;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.985);
  }
}

@media (max-width: 67rem) {
  .screen,
  .screen--success {
    grid-template-columns: minmax(25rem, 1fr) minmax(22rem, 0.8fr);
    gap: 0;
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .headline {
    font-size: clamp(2.2rem, 5vw, 3.45rem);
  }

  .product-column {
    height: min(66svh, 42rem);
  }
}

@media (max-width: 49rem) {
  .landing {
    overflow: visible;
  }

  .screen,
  .screen--success {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: 2.2rem 1.1rem 0;
    text-align: center;
  }

  .content-column,
  .success-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .headline {
    margin-bottom: 1.35rem;
    font-size: clamp(2rem, 8.3vw, 3.35rem);
    line-height: 1.04;
  }

  .headline br {
    display: none;
  }

  .lead-form {
    text-align: left;
  }

  .product-column {
    align-self: center;
    width: min(100%, 32rem);
    height: auto;
    margin: 1.5rem auto 0;
  }

  .product-image {
    max-height: 31rem;
  }

  .screen--success {
    padding-top: 3rem;
  }

  .success-kicker {
    margin-bottom: 0.85rem;
  }

  .schedule-card {
    text-align: left;
  }

  .product-column--success {
    margin-top: 2rem;
  }
}

@media (max-width: 31rem) {
  .screen,
  .screen--success {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .lead-form {
    padding: 1.1rem;
    border-radius: 0.95rem;
  }

  .headline {
    font-size: clamp(1.85rem, 9.4vw, 2.6rem);
  }

  .schedule-card__top {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

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