:root {
  --pink: #f5205e;
  --rose: #da58a6;
  --violet: #9173d8;
  --blue: #2173dc;
  --ink: #10131d;
  --ink-soft: #1a1f31;
  --panel: rgba(14, 18, 32, 0.86);
  --panel-strong: rgba(9, 12, 24, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --danger: #ff6f91;
  --success: #72f2bb;
  --radius: 18px;
  --shadow: 0 28px 80px rgba(4, 8, 25, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(245, 32, 94, 0.22), transparent 28rem),
    radial-gradient(circle at 80% 8%, rgba(33, 115, 220, 0.28), transparent 30rem),
    linear-gradient(135deg, #110b1b 0%, #15162d 48%, #07142f 100%);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.link-card {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100vh - 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  overflow-y: auto;
}

.hero,
.form-shell {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 28px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(245, 32, 94, 0.9), rgba(218, 88, 166, 0.72) 36%, rgba(145, 115, 216, 0.72) 64%, rgba(33, 115, 220, 0.9)),
    #161a2f;
  text-align: center;
}

.eyebrow,
.step-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 3.3rem;
  line-height: 0.92;
  font-weight: 900;
}

.tagline {
  max-width: 410px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  line-height: 1.36;
  font-weight: 650;
}

.hero__badges {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 0;
}

.hero__badges span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-shell {
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
}

.is-intro-step .form-shell {
  padding-top: 20px;
}

.form-topline {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 17px;
}

.is-intro-step .form-topline,
.is-intro-step .progress {
  display: none;
}

.form-topline h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.05;
}

.step-count {
  min-width: 58px;
  margin: 0;
  padding-top: 3px;
  color: var(--muted);
  text-align: right;
  font-size: 0.9rem;
  font-weight: 800;
}

.progress {
  height: 8px;
  margin: 16px 0 16px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue));
  transition: width 240ms ease;
}

#lead-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#step-content {
  flex: 1;
}

.step-copy {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.step-copy strong {
  color: #fff;
  font-weight: 850;
}

.is-intro-step .step-copy {
  max-width: 465px;
  margin: 0 auto 20px;
  line-height: 1.5;
  text-align: center;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.choice-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
}

.hint {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(145, 115, 216, 0.22);
}

.field[data-error="true"] input,
.field[data-error="true"] textarea,
.choices[data-error="true"] .choice-button {
  border-color: rgba(255, 111, 145, 0.86);
}

.error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 750;
}

.field[data-error="true"] .error,
.choices[data-error="true"] .error,
.consent[data-error="true"] .error {
  display: block;
}

.choices {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 9px;
}

.choice-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  padding: 11px 13px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.choice-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.choice-button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.74);
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 32, 94, 0.72), rgba(33, 115, 220, 0.76));
  box-shadow: 0 12px 28px rgba(33, 115, 220, 0.16);
}

.offer-stack {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.offer-stack__header {
  padding: 12px 14px 10px;
  background: linear-gradient(135deg, rgba(245, 32, 94, 0.2), rgba(33, 115, 220, 0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offer-stack__eyebrow {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.offer-stack h3 {
  margin-bottom: 0;
  font-size: 1.06rem;
}

.offer-list,
.mini-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 14px 13px;
  list-style: none;
}

.offer-list li,
.mini-list li {
  position: relative;
  padding-left: 21px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.28;
}

.offer-list li::before,
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.access-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 13px;
}

.access-strip span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
}

.scenario-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.scenario-card + .scenario-card {
  margin-top: 14px;
}

.offer-stack + .scenario-card {
  margin-top: 10px;
}

.form-note {
  margin: 10px 2px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.34;
  text-align: center;
}

.scenario-card--compact {
  padding: 15px 16px;
}

.scenario-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.scenario-card p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.46;
}

.scenario-card .mini-list {
  padding: 2px 0 0;
}

.consent {
  display: grid;
  gap: 10px;
}

.consent-control {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--pink);
  flex: 0 0 auto;
}

.consent label {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
  font-weight: 680;
}

.review-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.review-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 9px;
  color: rgba(255, 255, 255, 0.78);
}

.review-list strong {
  color: #fff;
}

.success-panel {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: left;
}

.success-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--success);
  font-size: 1.8rem;
  font-weight: 900;
}

.success-panel h2 {
  margin-bottom: 0;
  font-size: 2.7rem;
  line-height: 1;
}

.success-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.52;
}

.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 850;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--violet) 54%, var(--blue));
  box-shadow: 0 16px 34px rgba(33, 115, 220, 0.26);
}

.button--ghost {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

.button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-actions {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.form-actions .button--primary {
  width: 100%;
}

.button--ghost.is-hidden + .button--primary {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none !important;
}

.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 19px;
  height: 19px;
  margin: -9px 0 0 -9px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.05rem;
  }

  .tagline {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    align-items: flex-start;
    padding: 10px;
  }

  .link-card {
    max-height: none;
    min-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .hero {
    padding: 18px 14px 15px;
  }

  .form-shell {
    padding: 0 14px 14px;
  }

  .is-intro-step .form-shell {
    padding-top: 14px;
  }

  .field-grid,
  .choice-group,
  .success-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    gap: 10px;
  }

  .button--ghost {
    order: 2;
  }

  h1 {
    font-size: 2.02rem;
    line-height: 0.95;
  }

  .tagline {
    margin-bottom: 12px;
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  .hero__badges {
    gap: 6px;
  }

  .hero__badges span {
    min-height: 27px;
    padding: 4px 9px;
    font-size: 0.72rem;
  }

  .step-copy {
    margin-bottom: 10px;
    font-size: 0.84rem;
    line-height: 1.34;
  }

  .is-intro-step .step-copy {
    margin-bottom: 14px;
    line-height: 1.42;
  }

  .offer-stack__header {
    padding: 10px 12px 8px;
  }

  .offer-stack h3 {
    font-size: 0.98rem;
  }

  .offer-list,
  .mini-list {
    gap: 5px;
    padding: 10px 12px 11px;
  }

  .offer-list li,
  .mini-list li {
    padding-left: 19px;
    font-size: 0.82rem;
    line-height: 1.22;
  }

  .access-strip {
    gap: 6px;
    padding: 0 12px 11px;
  }

  .access-strip span {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .form-note {
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .form-topline h2 {
    font-size: 1.22rem;
  }

  .success-panel h2 {
    font-size: 2.05rem;
  }
}
