:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --ink: #172033;
  --muted: #687386;
  --line: #e5e9f0;
  --surface: #ffffff;
  --soft: #f6f8fc;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 70px 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: var(--ink);
}

button, input, textarea, select {
  font: inherit;
}

.launcher {
  max-width: 720px;
  margin: 40px auto;
  padding: 65px 35px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(20,35,65,.06);
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.launcher h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -1.8px;
  margin: 16px 0;
}

.launcher p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 490px;
  margin: 0 auto 27px;
}

.primary-btn {
  border: 0;
  border-radius: 10px;
  padding: 14px 23px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.dialog {
  background: var(--surface);
  width: 100%;
  max-width: 790px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: 0 25px 100px rgba(0,0,0,.2);
  position: relative;
  animation: appear .25s ease;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 25px 32px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  font-size: 21px;
  cursor: pointer;
  color: var(--muted);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin: 22px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 5px;
  background: #edf0f5;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width .3s;
}

.modal-body {
  padding: 32px;
  min-height: 390px;
}

.step-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 10px;
}

.step-title {
  font-size: 28px;
  letter-spacing: -.8px;
  margin: 0 0 10px;
}

.step-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 26px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: white;
  transition: .2s;
  min-height: 90px;
}

.option:hover {
  border-color: #9bb9f8;
  background: #f8faff;
}

.option.selected {
  border-color: var(--primary);
  background: #eff5ff;
  box-shadow: inset 0 0 0 1px var(--primary);
}

.option-icon {
  font-size: 23px;
  flex-shrink: 0;
}

.option strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.option small {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #cbd3e0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: white;
}

.selected .check {
  background: var(--primary);
  border-color: var(--primary);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: white;
  outline: none;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.field textarea {
  min-height: 105px;
  resize: vertical;
}

.field .hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.modal-footer {
  padding: 19px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: white;
  padding: 12px 19px;
  border-radius: 9px;
  font-weight: 650;
  cursor: pointer;
}

.next-btn {
  border: 0;
  background: var(--primary);
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.next-btn:hover {
  background: var(--primary-dark);
}

.error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 10px;
}

.summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px;
  background: var(--soft);
  margin-bottom: 18px;
}

.summary h3 {
  font-size: 13px;
  margin: 0 0 10px;
}

.summary p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.success {
  text-align: center;
  padding: 55px 20px;
}

.success-icon {
  width: 65px;
  height: 65px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.success h2 {
  font-size: 27px;
}

.success p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 410px;
  margin: auto;
}

@media(max-width: 600px) {
  body {
    padding: 20px 12px;
  }

  .modal {
    padding: 0;
  }

  .dialog {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .modal-header {
    padding: 19px 20px;
  }

  .modal-body {
    padding: 25px 20px;
  }

  .modal-footer {
    padding: 16px 20px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-title {
    font-size: 24px;
  }

  .launcher {
    padding: 45px 20px;
  }
}
