.lead-dialog {
  width: min(920px, calc(100% - 40px));
  height: min(740px, calc(100dvh - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #142943;
  background: #fffdf7;
  border: 1px solid rgba(20, 41, 67, 0.16);
  border-radius: 24px;
  box-shadow: 0 32px 100px rgba(7, 25, 45, 0.38);
}

.lead-dialog::backdrop {
  background: rgba(7, 25, 45, 0.76);
  backdrop-filter: blur(7px);
}

.lead-flow {
  display: grid;
  grid-template-rows: auto 4px 1fr;
  height: 100%;
  overflow: hidden;
}

.lead-flow-header {
  display: flex;
  min-height: 76px;
  padding: 0 26px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 41, 67, 0.1);
}

.lead-flow-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #142943;
  text-decoration: none;
}

.lead-flow-brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #142943;
  font-size: 12px;
  font-weight: 900;
  background: #ffd447;
  border-radius: 50%;
}

.lead-flow-brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.lead-flow-tools,
.lead-language {
  display: flex;
  align-items: center;
}

.lead-flow-tools {
  gap: 14px;
}

.lead-language {
  padding: 3px;
  gap: 2px;
  background: #f2eee3;
  border-radius: 999px;
}

.lead-language button {
  width: 42px;
  min-height: 38px;
  padding: 0;
  color: #73808d;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.lead-language button[aria-pressed="true"] {
  color: #fff;
  background: #142943;
  box-shadow: 0 2px 8px rgba(20, 41, 67, 0.2);
}

.lead-dialog-close {
  display: inline-flex;
  min-height: 44px;
  padding: 0 0 0 14px;
  gap: 10px;
  align-items: center;
  color: #657384;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lead-dialog-close b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #142943;
  font-size: 24px;
  font-weight: 500;
  background: #f2eee3;
  border-radius: 50%;
}

.lead-progress {
  overflow: hidden;
  background: rgba(8, 114, 95, 0.12);
}

.lead-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #08725f;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lead-stage {
  display: grid;
  width: min(696px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding-inline: 8px;
  align-items: center;
  overflow: auto;
  scrollbar-width: thin;
}

.lead-step-form,
.lead-otp-form,
.lead-order-form,
.lead-success {
  width: 100%;
  padding: 48px 0 56px;
}

.lead-question-meta {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
}

.lead-dialog-kicker,
.lead-step-count {
  margin: 0;
  color: #08725f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lead-step-count {
  color: #788594;
  letter-spacing: 0.04em;
}

.lead-question h2,
.lead-otp-form h2,
.lead-order-form h2,
.lead-success h2 {
  max-width: 18ch;
  margin: 0;
  color: #142943;
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead-question-help,
.lead-otp-help,
.lead-order-heading > p:last-child,
.lead-success p {
  max-width: 56ch;
  margin: 14px 0 28px;
  color: #637183;
  font-size: 16px;
  line-height: 1.55;
}

.lead-control {
  margin-top: 30px;
}

.lead-input-wrap > input,
.lead-input-wrap > textarea,
.lead-otp-input {
  width: 100%;
  min-height: 72px;
  padding: 10px 2px 12px;
  color: #142943;
  font: inherit;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.25;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #98a5b2;
  border-radius: 0;
  outline: 0;
}

.lead-input-wrap > textarea {
  min-height: 140px;
  resize: vertical;
}

.lead-input-wrap > input::placeholder,
.lead-input-wrap > textarea::placeholder {
  color: #a1aab4;
}

.lead-input-wrap > input:focus,
.lead-input-wrap > textarea:focus,
.lead-otp-input:focus {
  border-color: #08725f;
  box-shadow: 0 3px 0 rgba(8, 114, 95, 0.12);
}

.lead-input-choice {
  display: grid;
  gap: 10px;
}

.lead-choice {
  position: relative;
  display: grid;
  min-height: 56px;
  padding: 10px 52px 10px 12px;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  color: #142943;
  font-weight: 700;
  background: rgba(8, 114, 95, 0.055);
  border: 1px solid rgba(8, 114, 95, 0.32);
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lead-choice input {
  position: absolute;
  opacity: 0;
}

.lead-choice-key {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #08725f;
  font-size: 12px;
  font-weight: 900;
  background: #fffdf7;
  border: 1px solid rgba(8, 114, 95, 0.4);
  border-radius: 5px;
}

.lead-choice-copy {
  display: grid;
  gap: 4px;
  line-height: 1.3;
}

.lead-choice-translation {
  display: block;
  color: #607184;
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.35;
}

.lead-choice b {
  position: absolute;
  right: 18px;
  color: #08725f;
  opacity: 0;
}

.lead-choice:has(input:checked) {
  background: rgba(8, 114, 95, 0.12);
  border-color: #08725f;
  box-shadow: inset 0 0 0 1px #08725f;
}

.lead-choice:has(input:checked) b {
  opacity: 1;
}

.lead-choice:has(input:focus-visible) {
  outline: 3px solid rgba(8, 114, 95, 0.2);
  outline-offset: 2px;
}

.lead-step-actions {
  display: flex;
  min-height: 70px;
  margin-top: 32px;
  align-items: flex-end;
  justify-content: space-between;
}

.lead-back,
.lead-resend {
  min-height: 44px;
  padding: 0;
  color: #08725f;
  font: inherit;
  font-weight: 800;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lead-forward {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 12px;
  align-items: center;
}

.lead-forward small {
  color: #8a96a3;
  font-size: 12px;
}

.lead-continue,
.lead-verify,
.lead-done {
  max-width: 100%;
  min-height: 54px;
  padding: 0 24px;
  white-space: normal;
  border: 0;
}

.lead-dialog .lead-continue:focus-visible,
.lead-dialog .lead-verify:focus-visible,
.lead-dialog .lead-done:focus-visible {
  outline-color: #142943;
  outline-offset: -5px;
}

.lead-consent,
.lead-form-status {
  margin: 14px 0 0;
  color: #718091;
  font-size: 13px;
  line-height: 1.5;
}

.lead-consent {
  max-width: 62ch;
}

.lead-form-status {
  min-height: 20px;
  color: #a33624;
  font-weight: 750;
}

.lead-otp-form .lead-dialog-kicker {
  margin-bottom: 18px;
}

.lead-otp-field {
  display: block;
  max-width: 420px;
  margin-top: 30px;
}

.lead-otp-input {
  text-align: center;
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 850;
  letter-spacing: 0.28em;
}

.lead-verify {
  margin-top: 28px;
}

.lead-otp-actions {
  display: flex;
  margin-top: 18px;
  gap: 16px;
  align-items: center;
}

.lead-verify[disabled],
.lead-continue[disabled],
.lead-resend[disabled] {
  cursor: wait;
  opacity: 0.62;
}

.lead-success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  background: #08725f;
  border-radius: 50%;
}

.lead-success .lead-done {
  margin-top: 4px;
}

.lead-order-form {
  max-width: 640px;
  margin-inline: auto;
}

.lead-order-form h2 {
  max-width: 15ch;
  font-size: clamp(34px, 5vw, 48px);
}

.lead-order-heading .lead-dialog-kicker {
  margin-bottom: 12px;
}

.lead-order-heading > p:last-child {
  margin-bottom: 24px;
}

.lead-order-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 41, 67, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 41, 67, 0.09);
}

.lead-order-primary,
.lead-order-total {
  display: flex;
  padding: 20px 22px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.lead-order-primary strong,
.lead-order-total span {
  display: block;
  color: #142943;
  font-size: 15px;
  font-weight: 850;
}

.lead-order-primary small {
  display: block;
  margin-top: 3px;
  color: #6f7c8b;
  font-size: 12px;
}

.lead-order-price {
  display: grid;
  justify-items: end;
  line-height: 1.05;
}

.lead-order-price s {
  color: #8793a0;
  font-size: 13px;
}

.lead-order-price b,
.lead-order-total strong {
  color: #142943;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.lead-order-coupon {
  padding: 18px 22px 20px;
  background: #f4f0e7;
  border-top: 1px solid rgba(20, 41, 67, 0.11);
  border-bottom: 1px solid rgba(20, 41, 67, 0.11);
}

.lead-order-coupon > label {
  display: block;
  margin-bottom: 8px;
  color: #142943;
  font-size: 12px;
  font-weight: 850;
}

.lead-order-coupon > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.lead-order-coupon input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: #142943;
  background: #fff;
  border: 1px solid rgba(20, 41, 67, 0.26);
  border-radius: 5px;
  outline: 0;
}

.lead-order-coupon input:focus {
  border-color: #08725f;
  box-shadow: 0 0 0 3px rgba(8, 114, 95, 0.13);
}

.lead-order-coupon button {
  min-width: 94px;
  min-height: 48px;
  padding-inline: 16px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  background: #142943;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.lead-order-coupon button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.lead-order-coupon p {
  min-height: 18px;
  margin: 8px 0 0;
  color: #08725f;
  font-size: 12px;
  font-weight: 750;
}

.lead-order-coupon p.error,
.lead-order-error {
  color: #a33624;
}

.lead-order-companion {
  position: relative;
  display: grid;
  min-height: 90px;
  padding: 18px 22px;
  grid-template-columns: 24px 1fr auto;
  gap: 13px;
  align-items: center;
  cursor: pointer;
}

.lead-order-companion input {
  position: absolute;
  opacity: 0;
}

.lead-order-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #80909e;
  border-radius: 4px;
}

.lead-order-companion input:checked + .lead-order-check {
  background: #08725f;
  border-color: #08725f;
}

.lead-order-companion input:checked + .lead-order-check::after {
  color: #fff;
  content: "✓";
  font-size: 15px;
  font-weight: 900;
}

.lead-order-companion input:focus-visible + .lead-order-check {
  outline: 3px solid rgba(8, 114, 95, 0.2);
  outline-offset: 3px;
}

.lead-order-companion strong,
.lead-order-companion small {
  display: block;
}

.lead-order-companion strong {
  color: #142943;
  font-size: 14px;
  font-weight: 850;
}

.lead-order-companion small {
  max-width: 42ch;
  margin-top: 3px;
  color: #6f7c8b;
  font-size: 11px;
  line-height: 1.45;
}

.lead-order-companion > b {
  color: #08725f;
  font-size: 13px;
  text-align: right;
}

.lead-order-total {
  color: #fff;
  background: #142943;
}

.lead-order-total span,
.lead-order-total strong {
  color: #fff;
}

.lead-order-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
}

.lead-order-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.lead-order-error {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 750;
}

.lead-order-secure {
  display: block;
  margin-top: 10px;
  color: #748190;
  font-size: 11px;
  text-align: center;
}

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

body:has(.lead-dialog[open]) {
  overflow: hidden;
}

.attendee-early-access {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 38px);
  color: #fff;
  background: #112844;
  border-radius: 18px;
}

.attendee-early-access .sp-card-kicker { margin: 0; color: #ffd447; }
.attendee-early-access h3 { max-width: 16ch; margin: 0; color: #fff; font-size: clamp(28px, 5vw, 42px); line-height: 1.02; }
.attendee-early-access p,
.attendee-early-access small { margin: 0; color: rgba(255, 255, 255, 0.76); line-height: 1.55; }
.attendee-price-calendar { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 6px 2px; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.attendee-price-calendar > div { min-width: 0; padding: 16px 12px; border-right: 1px solid rgba(255,255,255,.18); }
.attendee-price-calendar > div:first-child { padding-left: 0; }
.attendee-price-calendar > div:last-child { padding-right: 0; border-right: 0; }
.attendee-price-calendar span,
.attendee-price-calendar strong,
.attendee-price-calendar small { display: block; }
.attendee-price-calendar span { color: #ffd447; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.attendee-price-calendar strong { margin-top: 4px; color: #fff; font-size: clamp(24px, 5vw, 34px); line-height: 1; letter-spacing: -.03em; }
.attendee-price-calendar small { margin-top: 6px; font-size: 10px; line-height: 1.35; }
.attendee-early-access ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.attendee-early-access li { position: relative; padding-left: 26px; color: #fff; line-height: 1.45; }
.attendee-early-access li::before { position: absolute; left: 0; color: #ffd447; content: "✓"; font-weight: 900; }
.attendee-early-access .button { margin-top: 4px; }

@media (hover: hover) and (pointer: fine) {
  .lead-choice:hover {
    background: rgba(8, 114, 95, 0.09);
    border-color: #08725f;
    transform: translateY(-1px);
  }
}

@media (max-width: 620px) {
  .lead-dialog {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .lead-flow-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .lead-flow-tools {
    gap: 8px;
  }

  .lead-language button {
    width: 38px;
    min-height: 36px;
  }

  .lead-flow-brand strong,
  .lead-dialog-close > span {
    display: none;
  }

  .lead-stage {
    width: calc(100% - 24px);
    align-items: start;
  }

  .lead-step-form,
  .lead-otp-form,
  .lead-order-form,
  .lead-success {
    padding: 48px 0 calc(36px + env(safe-area-inset-bottom));
  }

  .lead-question-meta {
    margin-bottom: 22px;
  }

  .lead-question h2,
  .lead-otp-form h2,
  .lead-order-form h2,
  .lead-success h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .lead-order-form {
    padding-top: 34px;
  }

  .lead-order-heading > p:last-child {
    font-size: 14px;
  }

  .lead-order-primary,
  .lead-order-coupon,
  .lead-order-companion,
  .lead-order-total {
    padding-inline: 18px;
  }

  .lead-order-companion {
    grid-template-columns: 24px 1fr;
  }

  .lead-order-companion > b {
    grid-column: 2;
    text-align: left;
  }

  .lead-control {
    margin-top: 34px;
  }

  .lead-step-actions {
    margin-top: 28px;
  }

  .lead-forward small {
    display: none;
  }

  .lead-continue,
  .lead-verify,
  .lead-done {
    min-height: 56px;
  }
}

@media (max-width: 420px) {
  .lead-question-meta {
    display: grid;
    gap: 7px;
  }

  .lead-step-actions {
    align-items: center;
  }

  .lead-forward {
    margin-left: auto;
  }

  .lead-choice {
    font-size: 14px;
  }

  .attendee-price-calendar > div {
    padding-inline: 8px;
  }

  .attendee-price-calendar strong {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lead-question,
  .lead-otp-form,
  .lead-order-form,
  .lead-success {
    animation: lead-step-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .lead-dialog[data-direction="back"] .lead-question {
    animation-name: lead-step-back;
  }

  @keyframes lead-step-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes lead-step-back {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
