:root {
  --ink: #1b0b2e;
  --ink-soft: #5f526c;
  --purple: #6d4aa8;
  --purple-deep: #3b2166;
  --lavender: #c4a5e8;
  --lavender-pale: #f5f0fa;
  --paper: #faf9f6;
  --white: #fff;
  --line: #e8e0f0;
  --green: #2f9e64;
  --red: #a7354b;
  --shadow: 0 28px 80px rgba(27, 11, 46, .16);
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 2%, rgba(196, 165, 232, .20), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

a { color: inherit; }

.site-header {
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(59, 33, 102, .10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  overflow: visible;
  fill: var(--purple-deep);
  stroke: var(--purple-deep);
  stroke-width: 3.25;
  stroke-linecap: round;
}

.header-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

main {
  padding: clamp(54px, 8vw, 110px) clamp(20px, 4vw, 56px) clamp(56px, 8vw, 96px);
}

.hero {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.eyebrow, .card-kicker {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.01;
  letter-spacing: -.05em;
}

h1 span { color: var(--purple); }

.lede {
  max-width: 580px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.steps {
  margin: 42px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  color: #8d8397;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.steps li:not(:last-child)::after {
  width: clamp(18px, 3vw, 42px);
  height: 1px;
  margin: 0 10px;
  background: var(--line);
  content: "";
}

.steps span {
  width: 25px;
  height: 25px;
  border: 1px solid #d8cfdf;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}

.steps .is-current { color: var(--purple-deep); }
.steps .is-current span { border-color: var(--purple); background: var(--purple); color: white; }

.gate-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(59, 33, 102, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.card-topline {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.card-topline h2, .dialog-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.secure-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf8f2;
  color: #237c4c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.secure-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid #d9cfdf;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field input::placeholder { color: #a59cac; }

.field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(109, 74, 168, .12);
}

.field-help {
  margin: 8px 0 0;
  color: #7d7287;
  font-size: 12px;
}

.agreement {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.agreement input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 1.5px solid #bdb1c7;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #fff;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.checkmark svg { width: 14px; fill: none; stroke: #fff; stroke-width: 2.2; opacity: 0; }
.agreement input:checked + .checkmark { border-color: var(--purple); background: var(--purple); }
.agreement input:checked + .checkmark svg { opacity: 1; }
.agreement input:focus-visible + .checkmark { box-shadow: 0 0 0 4px rgba(109, 74, 168, .15); }

.text-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.download-button, .agree-button {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  background: var(--purple-deep);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(59, 33, 102, .24);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-button:hover:not(:disabled), .agree-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(59, 33, 102, .30); }
.download-button:disabled { cursor: wait; opacity: .65; }

.status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.status.is-error { color: var(--red); }
.status.is-success { color: #237c4c; }

.privacy-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #867b8f;
  font-size: 11px;
  line-height: 1.55;
}

.honeypot { position: absolute; left: -10000px; }

footer {
  min-height: 74px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(59, 33, 102, .10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #746a7c;
  font-size: 12px;
}

footer a { text-underline-offset: 3px; }

dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(10, 4, 17, .32);
}

dialog::backdrop { background: rgba(27, 11, 46, .68); backdrop-filter: blur(4px); }
.dialog-shell { display: flex; max-height: inherit; flex-direction: column; }
.dialog-header { padding: 27px 30px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-header .card-kicker { margin-bottom: 8px; }

.close-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.close-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.license-copy {
  overflow: auto;
  padding: 28px 30px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.license-copy p { margin: 0 0 18px; }
.license-copy h3 { margin: 24px 0 7px; color: var(--ink); font-size: 15px; }
.license-copy .legal-note { margin-top: 28px; padding: 14px 16px; border-radius: 8px; background: var(--lavender-pale); font-size: 12px; }
.dialog-actions { padding: 18px 30px 24px; border-top: 1px solid var(--line); }
.agree-button { min-height: 50px; }

button:focus-visible, a:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  h1, .lede { margin-left: auto; margin-right: auto; }
  .steps { justify-content: center; }
}

@media (max-width: 520px) {
  .header-label { display: none; }
  main { padding-top: 44px; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .steps { font-size: 10px; letter-spacing: .04em; }
  .steps li:not(:last-child)::after { width: 12px; margin: 0 6px; }
  .gate-card { margin-inline: -6px; padding: 24px 20px; border-radius: 14px; }
  .secure-pill { display: none; }
  footer { padding-block: 22px; flex-direction: column; justify-content: center; gap: 8px; }
  .dialog-header, .license-copy, .dialog-actions { padding-left: 20px; padding-right: 20px; }
}

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